-
-
Notifications
You must be signed in to change notification settings - Fork 383
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
Illegal instruction (core dumped) on linux #795
Comments
likely overheating. Not an ANTs bug. |
I tried again after shutting down the whole system for hours and I got the exact same error. I don't think it's overheating. Any suggestions? |
Building ANTs on 18.04 does not result in such issues on any systems I admin, or during our automated builds. Given that, I suspect it is an issue with your system. Check "dmesg" for signs of thermal throttling. Another possibility is bad ram, check memtest86+ |
@belatulipo is this native Linux or a VM / WSL? |
Thank you I will try that. |
|
Thanks. I'm working on a VM, where I can successfully compile using 18.04 / GCC 7:
It might be related to this issue I can't test this because I can't reproduce the problem. |
This commit might fix the problem, at least for some machines 691c865#diff-821bb4259dcdb7f026034ba1b16e553c CC: @ronangarrison |
This problem was actually introduced earlier: |
To be clear, the devs believe the issue is that your CPU is older than corei7, which is what our default "arch" setting is: You can adjust this by adding "-march=native" to your compile options. |
Found a test case and fix for this issue: |
I'm trying to compile ANTs on ubuntu 18.04 using the instructions. I have searched and searched and I've done everything I can think of. Please help me understand what the problem is.
I have a laptop and a desktop computer with the same OS. With my laptop the system just crashed after the "make" command. With the desktop I get this error:
Illegal instruction (core dumped)
Modules/ThirdParty/HDF5/src/itkhdf5/src/CMakeFiles/hdf5-static.dir/build.make:61: recipe for target 'Modules/ThirdParty/HDF5/src/itkhdf5/H5Tinit.c' failed
make[5]: *** [Modules/ThirdParty/HDF5/src/itkhdf5/H5Tinit.c] Error 132
make[5]: *** Deleting file 'Modules/ThirdParty/HDF5/src/itkhdf5/H5Tinit.c'
CMakeFiles/Makefile2:7779: recipe for target 'Modules/ThirdParty/HDF5/src/itkhdf5/src/CMakeFiles/hdf5-static.dir/all' failed
make[4]: *** [Modules/ThirdParty/HDF5/src/itkhdf5/src/CMakeFiles/hdf5-static.dir/all] Error 2
make[4]: *** Waiting for unfinished jobs....
.
.
.
[ 58%] Built target gdcmDSED
Makefile:151: recipe for target 'all' failed
make[3]: *** [all] Error 2
CMakeFiles/ITKv5.dir/build.make:112: recipe for target 'ITKv5-prefix/src/ITKv5-stamp/ITKv5-build' failed
make[2]: *** [ITKv5-prefix/src/ITKv5-stamp/ITKv5-build] Error 2
CMakeFiles/Makefile2:109: recipe for target 'CMakeFiles/ITKv5.dir/all' failed
make[1]: *** [CMakeFiles/ITKv5.dir/all] Error 2
Makefile:116: recipe for target 'all' failed
make: *** [all] Error 2
The text was updated successfully, but these errors were encountered: