artivis / manif

A small C++11 header-only library for Lie theory.
https://artivis.github.io/manif
MIT License
1.46k stars 239 forks source link

cc1plus(48849) malloc: *** mmap(size=2097152) failed (error code=12) #278

Closed barracuda156 closed 1 year ago

barracuda156 commented 1 year ago

@artivis Could you please take a look? After making necessary fixes https://github.com/artivis/manif/pull/277 I got an error at the very end of the build:

[ 96%] Built target gtest_bundle_large
cc1plus(48849) malloc: *** mmap(size=2097152) failed (error code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug

cc1plus: out of memory allocating 124 bytes
make[2]: *** [test/rn/CMakeFiles/gtest_rn.dir/gtest_rn.cpp.o] Error 1
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_manif/manif/work/build'
make[1]: *** [test/rn/CMakeFiles/gtest_rn.dir/all] Error 2
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_PPCSnowLeopardPorts_devel_manif/manif/work/build'
make: *** [all] Error 2

This is a 32-bit environment. Can this be fixed?

barracuda156 commented 1 year ago

Ok I found a solution. I guess we should just use the same setting for 32-bit as used for COVERAGE.

barracuda156 commented 1 year ago

Will be fixed by: https://github.com/artivis/manif/pull/277/commits/3ff24821df766aa3f9a24cc57168dbf4b7516183 (once merged).