Atlas icon indicating copy to clipboard operation
Atlas copied to clipboard

c++: internal compiler error: Killed (program cc1plus)

Open ferngarc opened this issue 3 years ago • 2 comments

When running docker build . in the Docker dir, I ran into some CMake errors; anyone else experiencing this on mac os 10.15.6?

[ 52%] Building CXX object internal/ceres/CMakeFiles/ceres.dir/residual_block.cc.o
internal/ceres/CMakeFiles/ceres.dir/build.make:734: recipe for target 'internal/ceres/CMakeFiles/ceres.dir/covariance_impl.cc.o' failed
c++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-7/README.Bugs> for instructions.
make[2]: *** [internal/ceres/CMakeFiles/ceres.dir/covariance_impl.cc.o] Error 4
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [internal/ceres/CMakeFiles/ceres.dir/all] Error 2
CMakeFiles/Makefile2:117: recipe for target 'internal/ceres/CMakeFiles/ceres.dir/all' failed
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
The command '/bin/sh -c cmake -DBUILD_TESTING=OFF -DBUILD_EXAMPLES=OFF .. && make -j$(nproc) && make install && make clean' returned a non-zero code: 2

Docker version

docker --version                                                                                                 
Docker version 19.03.12, build 48a66213fe

For posterity, I'm asking for any tips on how you resolved this. Future me will be really grateful.

ferngarc avatar Aug 15 '20 21:08 ferngarc

I don't have any suggestions for building on mac... But if you do not want to run the COLMAP comparison experiments just comment lines 34-46 as these are not required to run the core components of Atlas (Ceres Solver is only necessary as part of the COLMAP installation).

zmurez-ml avatar Aug 16 '20 22:08 zmurez-ml

@ferngarc You don't have enough RAM to build on all cores, you can lower the job count by changing this from the dockerfile make -j$(nproc) to make -j2 for instance

adujardin avatar Aug 31 '20 08:08 adujardin