Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

internal compiler error: Segmentation fault #3

Open
ayush-agrawal opened this issue Apr 29, 2019 · 1 comment
Open

internal compiler error: Segmentation fault #3

ayush-agrawal opened this issue Apr 29, 2019 · 1 comment

Comments

@ayush-agrawal
Copy link

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

@RossHartley
Copy link
Contributor

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants