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

Build on RHEL 9 #158

Open
tashrifbillah opened this issue Apr 9, 2024 · 2 comments
Open

Build on RHEL 9 #158

tashrifbillah opened this issue Apr 9, 2024 · 2 comments

Comments

@tashrifbillah
Copy link
Collaborator

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
Copy link
Collaborator Author

tashrifbillah commented Apr 12, 2024

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:
    Strip trailing spaces and convert tabs to spaces #157 (comment)

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
Copy link
Contributor

Indeed, this was the same issue I ran into.

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

No branches or pull requests

2 participants