You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I occasionally get the following error when using make. Any idea what might be causing this. I also recompiled all the functions in MATALB before running make.
/mnt/d/research/git/Cassie_CFROST/Cassie_two_step/opt_two_step_ds/periodic/c_code/src/gen/J_dxDiscreteMapLeftImpactDoubleSupport.cc: In function ‘void frost::gen::J_dxDiscreteMapLeftImpactDoubleSupport(double*, const double*)’: /mnt/d/research/git/Cassie_CFROST/Cassie_two_step/opt_two_step_ds/periodic/c_code/src/gen/J_dxDiscreteMapLeftImpactDoubleSupport.cc:96209:1: internal compiler error: Segmentation fault } ^ mmap: Cannot allocate memory Please submit a full bug report, with preprocessed source if appropriate. See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions. /mnt/d/research/git/Cassie_CFROST/Cassie_two_step/opt_two_step_ds/periodic/c_code/src/gen/J_dxDiscreteMapRightImpactDoubleSupport.cc: In function ‘void frost::gen::J_dxDiscreteMapRightImpactDoubleSupport(double*, const double*)’: /mnt/d/research/git/Cassie_CFROST/Cassie_two_step/opt_two_step_ds/periodic/c_code/src/gen/J_dxDiscreteMapRightImpactDoubleSupport.cc:96209:1: internal compiler error: Segmentation fault } ^ CMakeFiles/program.dir/build.make:5126: recipe for target 'CMakeFiles/program.dir/src/gen/J_dxDiscreteMapLeftImpactDoubleSupport.cc.o' failed make[2]: *** [CMakeFiles/program.dir/src/gen/J_dxDiscreteMapLeftImpactDoubleSupport.cc.o] Error 1 make[2]: *** Waiting for unfinished jobs.... Please submit a full bug report, with preprocessed source if appropriate. See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions. CMakeFiles/program.dir/build.make:5174: recipe for target 'CMakeFiles/program.dir/src/gen/J_dxDiscreteMapRightImpactDoubleSupport.cc.o' failed make[2]: *** [CMakeFiles/program.dir/src/gen/J_dxDiscreteMapRightImpactDoubleSupport.cc.o] Error 1 CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/program.dir/all' failed make[1]: *** [CMakeFiles/program.dir/all] Error 2 Makefile:127: recipe for target 'all' failed make: *** [all] Error 2
The text was updated successfully, but these errors were encountered:
We have seen this issue before. It has to do with the computer running out of memory when compiling the functions. Make sure to only compile one function at a time (not multiple in parallel). In other words, just use the make command. Not make -j8 or anything like that.
Also, make sure you are not running any other memory intensive programs when compiling. You may have to use a computer with a large amount of memory (it works on our 32 GB RAM laptops).
I occasionally get the following error when using
make
. Any idea what might be causing this. I also recompiled all the functions in MATALB before runningmake
./mnt/d/research/git/Cassie_CFROST/Cassie_two_step/opt_two_step_ds/periodic/c_code/src/gen/J_dxDiscreteMapLeftImpactDoubleSupport.cc: In function ‘void frost::gen::J_dxDiscreteMapLeftImpactDoubleSupport(double*, const double*)’: /mnt/d/research/git/Cassie_CFROST/Cassie_two_step/opt_two_step_ds/periodic/c_code/src/gen/J_dxDiscreteMapLeftImpactDoubleSupport.cc:96209:1: internal compiler error: Segmentation fault } ^ mmap: Cannot allocate memory Please submit a full bug report, with preprocessed source if appropriate. See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions. /mnt/d/research/git/Cassie_CFROST/Cassie_two_step/opt_two_step_ds/periodic/c_code/src/gen/J_dxDiscreteMapRightImpactDoubleSupport.cc: In function ‘void frost::gen::J_dxDiscreteMapRightImpactDoubleSupport(double*, const double*)’: /mnt/d/research/git/Cassie_CFROST/Cassie_two_step/opt_two_step_ds/periodic/c_code/src/gen/J_dxDiscreteMapRightImpactDoubleSupport.cc:96209:1: internal compiler error: Segmentation fault } ^ CMakeFiles/program.dir/build.make:5126: recipe for target 'CMakeFiles/program.dir/src/gen/J_dxDiscreteMapLeftImpactDoubleSupport.cc.o' failed make[2]: *** [CMakeFiles/program.dir/src/gen/J_dxDiscreteMapLeftImpactDoubleSupport.cc.o] Error 1 make[2]: *** Waiting for unfinished jobs.... Please submit a full bug report, with preprocessed source if appropriate. See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions. CMakeFiles/program.dir/build.make:5174: recipe for target 'CMakeFiles/program.dir/src/gen/J_dxDiscreteMapRightImpactDoubleSupport.cc.o' failed make[2]: *** [CMakeFiles/program.dir/src/gen/J_dxDiscreteMapRightImpactDoubleSupport.cc.o] Error 1 CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/program.dir/all' failed make[1]: *** [CMakeFiles/program.dir/all] Error 2 Makefile:127: recipe for target 'all' failed make: *** [all] Error 2
The text was updated successfully, but these errors were encountered: