ITK icon indicating copy to clipboard operation
ITK copied to clipboard

prevent apple clang 17 wrapping

Open hjmjohnson opened this issue 2 months ago • 3 comments

castxml fails to configure ITK properly

FAILED: [code=1] Wrapping/Modules/ITKCommon/itkVersorPython.cpp Wrapping/Generators/Python/itk/itkVersorPython.py <ITK_BLD>/Wrapping/Modules/ITKCommon/itkVersorPython.cpp <ITK_BLD>/Wrapping/Generators/Python/itk/itkVersorPython.py

cd <ITK_BLD>/Wrapping/Typedefs/python && \
  /opt/homebrew/bin/ccache <ITK_BLD>/Wrapping/Generators/SwigInterface/swigmacos-arm64-2024-03-26-master/bin/swig \
  -c++ -python -fastdispatch -fvirtual -features autodoc=2 -doxygen -Werror -w302 -w303 -w312 -w314 -w361 -w362 -w350 -w383 -w384 -w389 -w394 -w395 -w467 -w508 -w509 \
  -o <ITK_BLD>/Wrapping/Modules/ITKCommon/itkVersorPython.cpp \
  -I<ITK_BLD>/Wrapping/Generators/SwigInterface/swigmacos-arm64-2024-03-26-master/share/swig/4.3.0/python -I<ITK_BLD>/Wrapping/Generators/SwigInterface/swigmacos-arm64-2024-03-26-master/share/swig/4.3.0 -I<ITK_SRC>/Wrapping/Generators -I<ITK_BLD>/Wrapping/Typedefs/python -I<ITK_BLD>/Wrapping/Typedefs \
  -outdir <ITK_BLD>/Wrapping/Generators/Python/itk <ITK_BLD>/Wrapping/Typedefs/itkVersor.i

The problem originates with the xml used to generate <ITK_BLD>/Wrapping/Modules/ITKCommon/itkVersorPython.cpp.

hjmjohnson avatar Nov 18 '25 03:11 hjmjohnson

@hjmjohnson Please git rebase main! I guess your pull request should only have one commit, being the last one, right?

N-Dekker avatar Nov 18 '25 10:11 N-Dekker

@hjmjohnson Please git rebase main! I guess your pull request should only have one commit, being the last one, right?

You are correct. Sorry for the noise.

hjmjohnson avatar Nov 18 '25 12:11 hjmjohnson

The OSX castxml binaries are linked against a zlib in the home-brew directory. Which make them unusable from me. Then forcing a local build, had the wrong git tag to clone in CMake ( patch coming )

After that I am able to build with clang 16 (Apple clang version 16.0.0 (clang-1600.0.26.6).

blowekamp avatar Nov 18 '25 20:11 blowekamp