-
-
Notifications
You must be signed in to change notification settings - Fork 668
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
Compilation error of v5.4.0 with GCC-13.2.0 - CastXML problem? #4911
Comments
Thank you for contributing an issue! 🙏 Welcome to the ITK community! 🤗👋☀️ We are glad you are here and appreciate your contribution. Please keep in mind our community participation guidelines. 📜 This is an automatic message. Allow for time for the ITK community to be able to read the issue and comment on it. |
Why not try the latest CastXML then? Or the bundled one, by setting |
Hi @pavelToman , does upgrading to CastXML 0.6.8 address the issue? |
I let it build with bundled one - but it use precompiled binaries (not ideal for our system). And with bundled CastXML the errors are the same. So I try to replace it by CastXML builded on our system. |
I build CastXML 0.6.8 and use it as dependency of ITK 5.4.0, but the errors during make step are the same |
@pavelToman thanks for the follow-up. To help identify the issue, do you get the same error:
|
We have RHEL 8/9 on our HPC clusters not Ubuntu. Also I am unable to build it outside the EasyBuild on HPC clusters. I have tried few more things:
There are some fails in configure step: Details - configure-- Performing Test C_HAS_WARNING-Wno-uninitialized - Failed Whole make error about Float128 Float32 Float64 Float32x Float64x: Details - make[ 22%] Generating ../../../castxml_inputs/itkPyCommand.xml |
Since the non-system CastXML does not work, I tried to build/install CastXML-0.6.8 either with cstd c++11 and gnu++14 to avoid this https://github.com/CastXML/CastXML/blob/v0.6.8/src/RunClang.cxx#L443, but there is still the same error. |
@bradking do you have some suggestions? |
@pavelToman against what version of LLVM/Clang are you building CastXML? |
The version of |
CastXML is being told to simulate GCC 13, which has builtin The error occurs in glibc's In summary, CastXML's fix for gcc 13+ with glibc 2.37+ breaks its support for gcc 13+ with glibc < 2.37. I need to think about how to deal with this. |
CastXML/CastXML#271 fixes this by reading I've released CastXML 0.6.9 with the fix. |
During this investigation I found another problem with simulating GCC 13 on RHEL that I'd meant to fix too. See CastXML/CastXML#272. I've released CastXML 0.6.10 for that. |
Great! |
Description
Hello! I am working for University Gent (UGent) and I am trying to install ITK 5.4.0 on our HPC to provide it to our researchers.
We are using EasyBuild to build and install all the software.
There is a problem with compilation of ITK 5.4.0, while ITK 5.3.0 can be build and install.
Steps to Reproduce
Configure (cmake) command seems ok, but it failed on make step:
cmake
-DCMAKE_INSTALL_PREFIX=/software/ITK/5.4.0-foss-2023b
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_POSITION_INDEPENDENT_CODE=ON
-DCMAKE_VERBOSE_MAKEFILE=ON
-DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF
-DPYTHON_EXECUTABLE=/software/Python/3.11.5-GCCcore-13.2.0/bin/python
-DPython3_EXECUTABLE=/software/Python/3.11.5-GCCcore-13.2.0/bin/python
-DBUILD_SHARED_LIBS=ON
-DBUILD_TESTING=OFF
-DModule_ITKReview=ON
-DModule_ITKVtkGlue=ON
-DModule_SimpleITKFilters=ON
-DITK_WRAP_PYTHON:BOOL=ON
-DPython_EXECUTABLE=/software/Python/3.11.5-GCCcore-13.2.0/bin/python
-DSWIG_EXECUTABLE=$EBROOTSWIG/bin/swig
-DSWIG_DIR=$EBROOTSWIG
-DPY_SITE_PACKAGES_PATH=/software/ITK/5.4.0-foss-2023b/lib/python3.11/site-packages
-DITK_USE_SYSTEM_CASTXML=ON
-DITK_USE_SYSTEM_DOUBLECONVERSION=ON
-DITK_USE_SYSTEM_EIGEN=ON
-DITK_USE_SYSTEM_EXPAT=ON
-DITK_USE_SYSTEM_FFTW=ON
-DITK_USE_SYSTEM_HDF5=ON
-DITK_USE_SYSTEM_JPEG=ON
-DITK_USE_SYSTEM_PNG=ON
-DITK_USE_SYSTEM_SWIG=ON
-DITK_USE_SYSTEM_TIFF=ON
-DITK_USE_SYSTEM_ZLIB=ON
/tmp/vsc47063/easybuild/build/ITK/5.4.0/foss-2023b/ITK-5.4.0/
-> exit 0
LC_ALL=C make -j 8
-> exit 2
Part of the error:
Whole log with errors is there: https://raw.githubusercontent.com/vscentrum/vsc-software-stack/refs/heads/wip/357_Synthcity/2023b_v0.2.11_new/monai-2023b-full/log2.txt
Versions
ITK 5.4.0
Environment
RHEL 8.8, 4.18.0-477.43.1.el8_8.x86_64
GCC 13.2.0 + FlexiBLAS + FFTW + ScaLAPACK + OpenMPI
('CMake', '3.27.6'),
('Bison', '3.8.2'),
('Eigen', '3.4.0'),
('SWIG', '4.1.1'),
('Perl', '5.38.0'),
('git', '2.42.0'),
('Python', '3.11.5'),
('double-conversion', '3.3.0'),
('expat', '2.5.0'),
('HDF5', '1.14.3'),
('libjpeg-turbo', '3.0.1'),
('libpng', '1.6.40'),
('LibTIFF', '4.6.0'),
('VTK', '9.3.0'),
('zlib', '1.2.13'),
('CastXML', '0.6.5'),
Additional Information
For me it seems similar to this problem you already fix:
d027586#diff-e7b9b1d2d1251e3340d02c7aae095ff229a0490fad2ff108c71eadc011961deeR25
The text was updated successfully, but these errors were encountered: