pnlbwh / ukftractography

Other
25 stars 27 forks source link

Build on RHEL 9 #158

Open tashrifbillah opened 5 months ago

tashrifbillah commented 5 months ago

Hi @RyanZurrin ,

Opening this thread to document our effort on building UFKTractography on RHEL 9. I reproduced your ITK issue:

/software/rocky9/ukftractography/build/ITK/Modules/ThirdParty/VNL/src/vxl/vcl/vcl_compiler.h:90:4: error: #error "Dunno about this gcc"
   90 | #  error "Dunno about this gcc"
      |    ^~~~~
make[5]: *** [Modules/ThirdParty/VNL/src/vxl/vcl/CMakeFiles/itkvcl.dir/build.make:76: Modules/ThirdParty/VNL/src/vxl/vcl/CMakeFiles/itkvcl.dir/vcl_deprecated.cxx.o] Error 1
make[4]: *** [CMakeFiles/Makefile2:2571: Modules/ThirdParty/VNL/src/vxl/vcl/CMakeFiles/itkvcl.dir/all] Error 2
make[3]: *** [Makefile:156: all] Error 2
make[2]: *** [CMakeFiles/ITK.dir/build.make:87: ITK-prefix/src/ITK-stamp/ITK-build] Error 2
make[1]: *** [CMakeFiles/Makefile2:905: CMakeFiles/ITK.dir/all] Error 2
make: *** [Makefile:101: all] Error 2
[tb571@pnl-axon build]$ gcc --version
gcc (GCC) 11.4.1 20230605 (Red Hat 11.4.1-2)
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Given the above, I am going to downgrade GCC from RHEL 9's default and retry.

tashrifbillah commented 5 months ago

Progress note:

  1. Boost had to be upgraded to 1.8.0 from 1.7.0
  2. We are unable to build ITK because of GCC version incompatibility. I think @RyanZurrin ran into the same issue. Please see Tashrif's comment: https://github.com/pnlbwh/ukftractography/pull/157#issuecomment-2051872088

Tashrif is now trying with GCC-9.3.0 which was able to build current master in the past. However, this error resulted:

/software/rocky9/gcc-9.3.0/build/./gcc/cc1: /software/rocky9/gcc-9.3.0/build/x86_64-pc-linux-gnu/libstdc++-v3/src/.libs/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /software/rocky9/gcc-9.3.0/build/./gcc/cc1)
make[5]: *** [Makefile:787: alloc.lo] Error 1
make[5]: Leaving directory '/software/rocky9/gcc-9.3.0/build/x86_64-pc-linux-gnu/libgomp'
make[4]: *** [Makefile:1010: all-recursive] Error 1
make[4]: Leaving directory '/software/rocky9/gcc-9.3.0/build/x86_64-pc-linux-gnu/libgomp'
make[3]: *** [Makefile:614: all] Error 2
make[3]: Leaving directory '/software/rocky9/gcc-9.3.0/build/x86_64-pc-linux-gnu/libgomp'
make[2]: *** [Makefile:22278: all-stage1-target-libgomp] Error 2
make[2]: Leaving directory '/software/rocky9/gcc-9.3.0/build'
make[1]: *** [Makefile:24054: stage1-bubble] Error 2
make[1]: Leaving directory '/software/rocky9/gcc-9.3.0/build'
make: *** [Makefile:994: all] Error 2

Tashrif is looking into options.

RyanZurrin commented 5 months ago

Indeed, this was the same issue I ran into.