Closed gdevenyi closed 5 years ago
I saw it recently on Debian 6 too, was able to fix it with -fkeep-inline-functions while compiling ITK
Okay, I can try that, where exactly would I make that change though?
Right now I manually added -fkeep-inline-functions to CMAKE_CXX_FLAGS for building ITKv4
just change directory to ITKv4-build in your build location, then run cmake . -DCMAKE_CXX_FLAGS:STRING=-fkeep-inline-functions or use ccmake .
-fkeep-inline-functions did fix my build
I just made a clean build of minc-toolkit version 1.0.04 ( http://packages.bic.mni.mcgill.ca/minc-toolkit/Debian/minc-toolkit-1.0.04-20140826-Debian_6.0.4-x86_64.deb ) on my virtual machine running Debian 6.0.4 - it build fine with the following options:
cmake . \
-DCMAKE_INSTALL_PREFIX:PATH=/opt/minc \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DMT_BUILD_ITK_TOOLS:BOOL=ON \
-DMT_BUILD_ITK_TOOLS:BOOL=ON \
-DMT_BUILD_LITE:BOOL=OFF \
-DMT_BUILD_MINC_ANTS:BOOL=ON \
-DMT_BUILD_SHARED_LIBS:BOOL=ON \
-DMT_BUILD_VISUAL_TOOLS:BOOL=ON \
-DMT_USE_OPENMP:BOOL=ON \
-DMT_BUILD_C3D:BOOL=ON \
-DCPACK_BINARY_DEB:BOOL=ON \
-DCPACK_BINARY_NSIS:BOOL=OFF \
-DCPACK_BINARY_RPM:BOOL=OFF \
-DCPACK_BINARY_STGZ:BOOL=OFF \
-DCPACK_BINARY_TBZ2:BOOL=OFF \
-DCPACK_BINARY_TGZ:BOOL=OFF \
-DCPACK_BINARY_TZ:BOOL=OFF \
-DCPACK_SOURCE_TBZ2:BOOL=OFF \
-DCPACK_SOURCE_TGZ:BOOL=OFF \
-DCPACK_SOURCE_TZ:BOOL=OFF \
-DCPACK_SOURCE_ZIP:BOOL=OFF
was your system set up by Sylvain Milot ?
Yes it was
I observed this error on BIC machine also installed and maintained by Sylvain, but it doesn't happen on my vanilla Debian running inside of the virtual machine. Perhaps there is a different version of gnu compiler or binutils ?
The install is a bit aged, I'm planning to migrate the compute nodes to ubuntu-lts, but it's a lot of nodes to reinstall.
In the meantime, here's the versions reported: gcc (Debian 4.4.5-8) 4.4.5 GNU ld (GNU Binutils for Debian) 2.20.1-system.20100303
Mine are the same...
I noticed that versions of linux-libc-dev is different: stock: 2.6.32-41squeeze2 BIC: 3.13.6-1+grml.1
For me I have: linux-libc-dev 2.6.32-48squeeze4
I run apt-get dist-upgrade on my VM , that updated linux-libc-dev to 2.6.32-48squeeze6 and OS release to 6.0.10 , then i rebult minc-toolkit again from the scratch - it still builds without problems.
I had a similar issue, I added the following lines to the main CMakeLists.txt:
SET(CMAKE_POSITION_INDEPENDENT_CODE ON)
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -fkeep-inline-functions")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -fkeep-inline-functions")
Maybe related to #16 ?