abseil / abseil/abseil-cpp

virtual memory exhausted: Cannot allocate memory while building btree_test.cc.o

Open
#1,499 1 comment 0 reactions 0 assignees View on GitHub
priority: p3
Dominant language
C++
Stars
18.1k
Forks
3.2k
Avg merge
20h 36m
Merged PRs (30d)
1

Description

### Describe the issue

```sh
..
..
[ 42%] Built target flags
[ 42%] Building CXX object absl/container/CMakeFiles/absl_btree_test.dir/btree_test.cc.o
virtual memory exhausted: Cannot allocate memory
make[2]: *** [absl/container/CMakeFiles/absl_btree_test.dir/build.make:63: absl/container/CMakeFiles/absl_btree_test.dir/btree_test.cc.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:4031: absl/container/CMakeFiles/absl_btree_test.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
```

### Steps to reproduce the problem

```sh
cmake -DABSL_BUILD_TESTING=ON -DABSL_USE_GOOGLETEST_HEAD=ON -DCMAKE_CXX_STANDARD=14 ..
cmake --build . --target all
```

### What version of Abseil are you using?

master branch
c9c0fd5185067208e1cc4227d16122571762af39

### What operating system and version are you using?

Distributor ID: Debian
Description: Debian GNU/Linux 10 (buster)
Release: 10
Codename: buster

### What compiler and version are you using?

gcc (Debian 8.3.0-6) 8.3.0

### What build system are you using?

cmake version 3.13.4

### Additional context

system total memory is about 2000MB, no other process consume much memory.
While building btree_test.cc.o, in '$top' i saw VIRT & RES of process cc1plus counted up to 1800000 ~ 1900000 gradually, after which i got 'virtual memory exhausted'

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.