ITK: Syntax error in input(3) of itkVectorContainer.i

Description

I want to build insighttoolkit for openSUSE Tumbleweed on s390x and x86. It is failing with the following error message:

[ 1239s] /home/abuild/rpmbuild/BUILD/ITK-5.2.1/build/Wrapping/Typedefs/itkVectorContainer.i:177: Error: Syntax error in input(3).
[ 1239s] ninja: build stopped: subcommand failed.

Steps to Reproduce

%cmake \
  -DITK_INSTALL_LIBRARY_DIR:PATH=%{_lib}/ \
  -DITK_INSTALL_INCLUDE_DIR:PATH=include/%{name}/ \
  -DITK_INSTALL_PACKAGE_DIR:PATH=%{_lib}/cmake/%{name}/ \
  -DITK_INSTALL_RUNTIME_DIR:PATH=%{_bindir} \
  -DITK_INSTALL_DOC_DIR=share/doc/packages/%{name}/ \
  -DBUILD_EXAMPLES:BOOL=ON \
  -DBUILD_SHARED_LIBS:BOOL=ON \
  -DBUILD_TESTING:BOOL=OFF \
  -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=ON \
  -DITK_USE_FFTWD:BOOL=ON \
  -DITK_USE_FFTWF:BOOL=ON \
  -DITK_USE_SYSTEM_LIBRARIES:BOOL=ON \
  -DITK_USE_SYSTEM_CASTXML:BOOL=ON \
  -DITK_USE_SYSTEM_GDCM:BOOL=ON \
%if %{without system_eigen}
  -DITK_USE_SYSTEM_EIGEN:BOOL=OFF \
%endif
  -DITK_USE_SYSTEM_SWIG:BOOL=ON \
  -DITK_USE_SYSTEM_VXL:BOOL=OFF \
  -DVXL_BUILD_CORE_NUMERICS:BOOL=OFF \
  -DVCL_INCLUDE_CXX_0X:BOOL=ON \
  -DITK_FORBID_DOWNLOADS=ON \
  -DITK_WRAP_PYTHON:BOOL=ON

Expected behavior

You can build ITK without any syntax error.

Actual behavior

Build of the openSUSE package is failing because of a syntax error.

Reproducibility

100% on s390x and x86

Versions

5.2.1

Environment

openSUSE Tumbleweed architecture: s390x or x86 cpp-12-2.2 cmake-3.23.2-2.1 gcc-12-2.2 gtk2-devel-2.24.33-2.5

Additional Information

(see build log: https://build.opensuse.org/public/build/Application:Geo/openSUSE_Factory_zSystems/s390x/insighttoolkit/_log )

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 2
  • Comments: 33 (24 by maintainers)

Most upvoted comments

I could build itk master branch with this PKGBUILD, with -DITK_USE_SYSTEM_CASTXML=OFF, -DCMAKE_CXX_FLAGS='-fno-sized-deallocation' as menthioned in #3452. I’m ok to wait for release 5.3.

@thewtex Git master does not build due to something else:

[   78s] -- Build files have been written to: /home/abuild/rpmbuild/BUILD/ITK-5.2.1/build
[   79s] + ninja -v -j8
[   79s] ninja: error: 'Wrapping/Modules/ITKCommon/castxml', needed by 'Wrapping/castxml_inputs/itkFixedArray.xml', missing and no known rule to make it
[   79s] error: Bad exit status from /var/tmp/rpm-tmp.KL7ywe (%build)

Odd considering I am using -DITK_USE_SYSTEM_CASTXML:BOOL=ON.

Ditto with v5.3.0rc04; trying to figure out the last commit that proceeds with the build at all.