Skip to content

Conversation

@dzenanz
Copy link
Member

@dzenanz dzenanz commented Sep 5, 2025

Commit bcb6876 introduced a configure error:

CMake Error at C:/Libs/VTK-8.2.0/CMake/vtkModuleAPI.cmake:140 (message):
  Requested modules not available:

    vtkvtksys
Call Stack (most recent call first):
  Modules/Bridge/VtkGlue/itk-module-init.cmake:93 (vtk_module_config)
  CMake/ITKModuleEnablement.cmake:436 (include)
  CMakeLists.txt:754 (include)

-- Configuring incomplete, errors occurred!

PR Checklist

Commit bcb6876 introduced a configure error:

CMake Error at C:/Libs/VTK-8.2.0/CMake/vtkModuleAPI.cmake:140 (message):
  Requested modules not available:

    vtkvtksys
Call Stack (most recent call first):
  Modules/Bridge/VtkGlue/itk-module-init.cmake:93 (vtk_module_config)
  CMake/ITKModuleEnablement.cmake:436 (include)
  CMakeLists.txt:754 (include)

-- Configuring incomplete, errors occurred!
@github-actions github-actions bot added type:Compiler Compiler support or related warnings area:Bridge Issues affecting the Bridge module labels Sep 5, 2025
@AlexyPellegrini
Copy link
Contributor

Hi Dzenan, sorry for the inconvenience. This is indeed the fix I would have suggested too! :)

@dzenanz
Copy link
Member Author

dzenanz commented Sep 5, 2025

itkFFTConvolutionImageFilterStreamingValidTest (Failed) in macOS-x86_64-rosetta. Here is the tail of the log:

2025-09-05T15:27:56.5466490Z Total Test time (real) = 664.48 sec
2025-09-05T15:27:56.5466490Z 
2025-09-05T15:27:56.5466550Z The following tests FAILED:
2025-09-05T15:27:56.5466740Z 	808 - itkFFTConvolutionImageFilterStreamingValidTest (Failed) ITKConvolution
2025-09-05T15:27:56.5466960Z SetCTestConfiguration:BuildDirectory:/Users/runner/work/ITK/ITK/build
2025-09-05T15:27:56.5467120Z SetCTestConfiguration:SourceDirectory:/Users/runner/work/ITK/ITK
2025-09-05T15:27:56.5467270Z SetCTestConfigurationFromCMakeVariable:DropMethod:CTEST_DROP_METHOD
2025-09-05T15:27:56.5467340Z SetCTestConfiguration:DropMethod:https
2025-09-05T15:27:56.5467470Z SetCTestConfigurationFromCMakeVariable:DropSite:CTEST_DROP_SITE
2025-09-05T15:27:56.5467560Z SetCTestConfiguration:DropSite:open.cdash.org
2025-09-05T15:27:56.5467720Z SetCTestConfigurationFromCMakeVariable:DropLocation:CTEST_DROP_LOCATION
2025-09-05T15:27:56.5467840Z SetCTestConfiguration:DropLocation:/submit.php?project=Insight
2025-09-05T15:27:56.5467970Z 	Add file: /Users/runner/work/ITK/ITK/ITK-dashboard/dashboard.cmake
2025-09-05T15:27:56.5468100Z 	Add file: /Users/runner/work/ITK/ITK/ITK-dashboard/itk_common.cmake
2025-09-05T15:27:56.5468140Z Submit files
2025-09-05T15:27:56.5468290Z    SubmitURL: https://open.cdash.org/submit.php?project=Insight
2025-09-05T15:27:56.5468370Z   Set CURLOPT_SSLVERSION to CURL_SSLVERSION_TLSv1_2
2025-09-05T15:27:56.5468430Z   Set CURLOPT_SSL_VERIFYPEER to on
2025-09-05T15:27:56.5469570Z    Upload file: /Users/runner/work/ITK/ITK/build/Testing/20250905-1425/Update.xml to https://open.cdash.org/submit.php?project=Insight&FileName=GitHub.InsightSoftwareConsortium%2FITK___macOS-Build17495990688-vtksysConfigureFix___20250905-1425-Experimental___XML___Update.xml&build=macOS-Build17495990688-vtksysConfigureFix&site=GitHub.InsightSoftwareConsortium%2FITK&stamp=20250905-1425-Experimental&MD5=832a5149a0847a6bce4512c7f81f18a2 Size: 611
2025-09-05T15:27:56.8558280Z    Uploaded: /Users/runner/work/ITK/ITK/build/Testing/20250905-1425/Update.xml
2025-09-05T15:27:56.8565310Z   Set CURLOPT_SSLVERSION to CURL_SSLVERSION_TLSv1_2
2025-09-05T15:27:56.8565550Z   Set CURLOPT_SSL_VERIFYPEER to on
2025-09-05T15:27:56.8573930Z    Upload file: /Users/runner/work/ITK/ITK/build/Testing/20250905-1425/Configure.xml to https://open.cdash.org/submit.php?project=Insight&FileName=GitHub.InsightSoftwareConsortium%2FITK___macOS-Build17495990688-vtksysConfigureFix___20250905-1425-Experimental___XML___Configure.xml&build=macOS-Build17495990688-vtksysConfigureFix&site=GitHub.InsightSoftwareConsortium%2FITK&stamp=20250905-1425-Experimental&MD5=94b8ef960ff59a923687efc56fccd1ee Size: 45672
2025-09-05T15:27:57.2070820Z    Uploaded: /Users/runner/work/ITK/ITK/build/Testing/20250905-1425/Configure.xml
2025-09-05T15:27:57.2071870Z   Set CURLOPT_SSLVERSION to CURL_SSLVERSION_TLSv1_2
2025-09-05T15:27:57.2072220Z   Set CURLOPT_SSL_VERIFYPEER to on
2025-09-05T15:27:57.2086160Z    Upload file: /Users/runner/work/ITK/ITK/build/Testing/20250905-1425/Build.xml to https://open.cdash.org/submit.php?project=Insight&FileName=GitHub.InsightSoftwareConsortium%2FITK___macOS-Build17495990688-vtksysConfigureFix___20250905-1425-Experimental___XML___Build.xml&build=macOS-Build17495990688-vtksysConfigureFix&site=GitHub.InsightSoftwareConsortium%2FITK&stamp=20250905-1425-Experimental&MD5=e4278fd2c76ae8cb6f9c80b33d83f9c4 Size: 1162
2025-09-05T15:27:57.4525610Z    Uploaded: /Users/runner/work/ITK/ITK/build/Testing/20250905-1425/Build.xml
2025-09-05T15:27:57.4596670Z   Set CURLOPT_SSLVERSION to CURL_SSLVERSION_TLSv1_2
2025-09-05T15:27:57.4634840Z   Set CURLOPT_SSL_VERIFYPEER to on
2025-09-05T15:27:57.4697630Z    Upload file: /Users/runner/work/ITK/ITK/build/Testing/20250905-1425/Test.xml to https://open.cdash.org/submit.php?project=Insight&FileName=GitHub.InsightSoftwareConsortium%2FITK___macOS-Build17495990688-vtksysConfigureFix___20250905-1425-Experimental___XML___Test.xml&build=macOS-Build17495990688-vtksysConfigureFix&site=GitHub.InsightSoftwareConsortium%2FITK&stamp=20250905-1425-Experimental&MD5=0324a44d6a07a5ac209c298b950ce5a0 Size: 6985472
2025-09-05T15:27:58.3544130Z    Uploaded: /Users/runner/work/ITK/ITK/build/Testing/20250905-1425/Test.xml
2025-09-05T15:27:58.3556950Z   Set CURLOPT_SSLVERSION to CURL_SSLVERSION_TLSv1_2
2025-09-05T15:27:58.3557430Z   Set CURLOPT_SSL_VERIFYPEER to on
2025-09-05T15:27:58.3559110Z    Upload file: /Users/runner/work/ITK/ITK/build/Testing/20250905-1425/Notes.xml to https://open.cdash.org/submit.php?project=Insight&FileName=GitHub.InsightSoftwareConsortium%2FITK___macOS-Build17495990688-vtksysConfigureFix___20250905-1425-Experimental___XML___Notes.xml&build=macOS-Build17495990688-vtksysConfigureFix&site=GitHub.InsightSoftwareConsortium%2FITK&stamp=20250905-1425-Experimental&MD5=55e093039a839ade8bf957dfc8a74b56 Size: 18159
2025-09-05T15:27:58.6636830Z    Uploaded: /Users/runner/work/ITK/ITK/build/Testing/20250905-1425/Notes.xml
2025-09-05T15:27:58.6637380Z   Set CURLOPT_SSLVERSION to CURL_SSLVERSION_TLSv1_2
2025-09-05T15:27:58.6637770Z   Set CURLOPT_SSL_VERIFYPEER to on
2025-09-05T15:27:58.6645340Z    Upload file: /Users/runner/work/ITK/ITK/build/Testing/20250905-1425/Done.xml to https://open.cdash.org/submit.php?project=Insight&FileName=GitHub.InsightSoftwareConsortium%2FITK___macOS-Build17495990688-vtksysConfigureFix___20250905-1425-Experimental___XML___Done.xml&build=macOS-Build17495990688-vtksysConfigureFix&site=GitHub.InsightSoftwareConsortium%2FITK&stamp=20250905-1425-Experimental&MD5=45f01b5b947240f553c1b08005e314a2 Size: 108
2025-09-05T15:27:58.9074130Z    Uploaded: /Users/runner/work/ITK/ITK/build/Testing/20250905-1425/Done.xml
2025-09-05T15:27:58.9074740Z    Submission successful
2025-09-05T15:27:58.9099950Z CMake Warning at /Users/runner/work/ITK/ITK/ITK-dashboard/itk_common.cmake:502 (message):
2025-09-05T15:27:58.9100520Z   test_return did not complete without warnings, errors, or failures.
2025-09-05T15:27:58.9100950Z Call Stack (most recent call first):
2025-09-05T15:27:58.9101360Z   /Users/runner/work/ITK/ITK/ITK-dashboard/github_actions_dashboard.cmake:89 (include)
2025-09-05T15:27:58.9101850Z   /Users/runner/work/ITK/ITK/ITK-dashboard/dashboard.cmake:11 (include)
2025-09-05T15:27:58.9102150Z 
2025-09-05T15:27:58.9102240Z 
2025-09-05T15:27:58.9102540Z CMake Error at /Users/runner/work/ITK/ITK/ITK-dashboard/itk_common.cmake:508 (message):
2025-09-05T15:27:58.9103380Z   ci_completed_successfully did not complete without warnings, errors, or
2025-09-05T15:27:58.9103760Z   failures.
2025-09-05T15:27:58.9103980Z Call Stack (most recent call first):
2025-09-05T15:27:58.9104610Z   /Users/runner/work/ITK/ITK/ITK-dashboard/github_actions_dashboard.cmake:89 (include)
2025-09-05T15:27:58.9105290Z   /Users/runner/work/ITK/ITK/ITK-dashboard/dashboard.cmake:11 (include)
2025-09-05T15:27:58.9105590Z 
2025-09-05T15:27:58.9105680Z 
2025-09-05T15:27:58.9230550Z ##[error]Process completed with exit code 255.
2025-09-05T15:27:58.9503680Z Post job cleanup.
2025-09-05T15:27:59.3230600Z [command]/opt/homebrew/bin/git version
2025-09-05T15:27:59.3453980Z git version 2.51.0
2025-09-05T15:27:59.3497500Z Copying '/Users/runner/.gitconfig' to '/Users/runner/work/_temp/8bf60e2b-3bf0-44d0-8f66-8e81b5b9ac47/.gitconfig'
2025-09-05T15:27:59.3504940Z Temporarily overriding HOME='/Users/runner/work/_temp/8bf60e2b-3bf0-44d0-8f66-8e81b5b9ac47' before making global git config changes
2025-09-05T15:27:59.3505920Z Adding repository directory to the temporary git global config as a safe directory
2025-09-05T15:27:59.3509280Z [command]/opt/homebrew/bin/git config --global --add safe.directory /Users/runner/work/ITK/ITK
2025-09-05T15:27:59.3624900Z [command]/opt/homebrew/bin/git config --local --name-only --get-regexp core\.sshCommand
2025-09-05T15:27:59.3686970Z [command]/opt/homebrew/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
2025-09-05T15:27:59.4664180Z [command]/opt/homebrew/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
2025-09-05T15:27:59.4719790Z http.https://github.com/.extraheader
2025-09-05T15:27:59.4729210Z [command]/opt/homebrew/bin/git config --local --unset-all http.https://github.com/.extraheader
2025-09-05T15:27:59.4827460Z [command]/opt/homebrew/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
2025-09-05T15:27:59.5742740Z Cleaning up orphan processes

Does anyone know why doesn't this build show up on the dashboard?

@hjmjohnson
Copy link
Member

@dzenanz I am working on an FFTW fix that might be related to this.

diff --git a/CMake/itkExternal_FFTW.cmake b/CMake/itkExternal_FFTW.cmake
index f268919a4c4..6369eaeeb98 100644
--- a/CMake/itkExternal_FFTW.cmake
+++ b/CMake/itkExternal_FFTW.cmake
@@ -96,7 +96,9 @@ if(NOT ITK_USE_SYSTEM_FFTW)
         -DCMAKE_C_FLAGS:STRING=${CMAKE_C_FLAGS}
         -DCMAKE_OSX_SYSROOT:PATH=${CMAKE_OSX_SYSROOT}
         -DCMAKE_OSX_DEPLOYMENT_TARGET:PATH=${CMAKE_OSX_DEPLOYMENT_TARGET}
+        -DCMAKE_OSX_ARCHITECTURES:STRING=${CMAKE_OSX_ARCHITECTURES}
         -DCMAKE_POSITION_INDEPENDENT_CODE:BOOL=${CMAKE_POSITION_INDEPENDENT_CODE}
+        -DCMAKE_POLICY_VERSION_MINIMUM:STRING=${ITK_OLDEST_VALIDATED_POLICIES_VERSION}
     )
     # set(
     #   FFTW3f_DIR ${FFTW_STAGED_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/cmake/fftw3f
@@ -152,7 +154,9 @@ if(NOT ITK_USE_SYSTEM_FFTW)
         -DCMAKE_C_FLAGS:STRING=${CMAKE_C_FLAGS}
         -DCMAKE_OSX_SYSROOT:PATH=${CMAKE_OSX_SYSROOT}
         -DCMAKE_OSX_DEPLOYMENT_TARGET:PATH=${CMAKE_OSX_DEPLOYMENT_TARGET}
+        -DCMAKE_OSX_ARCHITECTURES:STRING=${CMAKE_OSX_ARCHITECTURES}
         -DCMAKE_POSITION_INDEPENDENT_CODE:BOOL=${CMAKE_POSITION_INDEPENDENT_CODE}
+        -DCMAKE_POLICY_VERSION_MINIMUM:STRING=${ITK_OLDEST_VALIDATED_POLICIES_VERSION}
       DEPENDS
         ${PROJ_FFTWD_DEPENDS} # Avoid potential collisions on install
     )

@hjmjohnson
Copy link
Member

Merging as is, the new dashboard failure for new platform "macOS-x86_64-rosetta" is unrelated to this PR

@hjmjohnson hjmjohnson merged commit 8c56947 into InsightSoftwareConsortium:main Sep 5, 2025
16 of 17 checks passed
@dzenanz dzenanz deleted the vtksysConfigureFix branch September 8, 2025 16:43
@dzenanz
Copy link
Member Author

dzenanz commented Sep 15, 2025

Bisecting these build errors led me to this PR. The error messages themselves are rather non-descriptive. Invoking T:\Dashboard\ITK-build\Wrapping\Generators\CastXML\castxml\bin\castxml.exe produces C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(254,5): error MSB8066: Custom build for 'T:\Dashboard\ITK-build\CMakeFiles\4421ea14c7c3e195b3f9069c01c9f80b\itkPyBuffer.xml.rule;T:\Dashboard\ITK-build\CMakeFiles\4421ea14c7c3e195b3f9069c01c9f80b\itkPyVectorContainer.xml.rule;T:\Dashboard\ITK-build\CMakeFiles\6725a28ff350d258a1f36f67798991c8\ITKBridgeNumPyCastXML.rule;T:\Dashboard\ITK\Modules\Bridge\NumPy\wrapping\CMakeLists.txt' exited with code -1073741819. [T:\Dashboard\ITK-build\Wrapping\Modules\ITKBridgeNumPy\ITKBridgeNumPyCastXML.vcxproj], so it is hard to tell what is wrong exactly.

@dzenanz
Copy link
Member Author

dzenanz commented Sep 15, 2025

Interestingly, these build failures started on September 9th, not immediately.

@dzenanz
Copy link
Member Author

dzenanz commented Sep 15, 2025

@bradking Is there some way to get more verbose output from CastXML?

@bradking
Copy link
Member

That log shows castxml.exe exiting with code -1073741819, aka 0xC0000005, an "Access Violation". It's crashing. One may need to try debugging it locally.

@dzenanz
Copy link
Member Author

dzenanz commented Sep 15, 2025

Is there an easy way to get the exact parameters (and environment?) it was invoked with? It is over pretty quickly. Also, building this on Windows is quite an undertaking, so debugging is not easy.

@bradking
Copy link
Member

There is no such option to castxml itself (and isn't exactly a common feature of command-line tools in general). You'd need to make the build command more verbose, e.g., with msbuild's -v:diag option.

@AlexyPellegrini
Copy link
Contributor

AlexyPellegrini commented Sep 16, 2025

It reminds me of an issue we got on Activiz. We also use castxml to wrap VTK in C#, and with the latest MSVC toolset (19.44, which the CI seems to be using), we also had crashes in castxml. I didn't investigate much and simply built an upstream castxml with this MSVC version and it works fine now. It may be worth a try.

@dzenanz
Copy link
Member Author

dzenanz commented Sep 16, 2025

@thewtex I do not have the build setup for CastXML. Can you build Windows binaries with most up-to-date MSVC and update again?

@dzenanz
Copy link
Member Author

dzenanz commented Sep 16, 2025

Version 17.14.14 was released September 9th, which exactly correlates with the start of build failures.

@thewtex
Copy link
Member

thewtex commented Sep 16, 2025

Another build of Windows binaries is here: CastXML/CastXMLSuperbuild#76

thewtex added a commit to thewtex/ITK that referenced this pull request Sep 16, 2025
The GitHub Actions windows-2022 runner image for MSVC compatibility re:
Issue InsightSoftwareConsortium#5512.
@dzenanz
Copy link
Member Author

dzenanz commented Sep 17, 2025

Running cmake --build itk-build --config RelWithDebInfo --target ITKBridgeNumPyCastXML -- -v:diag >debug.log and inspecting the produced log, got me to run C:\Dev\itk-build\Wrapping>Generators\CastXML\castxml\bin\castxml.exe -o C:/Dev/itk-build/Wrapping/castxml_inputs/itkPyBuffer.xml --castxml-gccxml --castxml-start _wrapping_ --castxml-cc-msvc ( "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.44.35207/bin/Hostx64/x64/cl.exe" /DWIN32 /D_WINDOWS /EHsc -W3 /bigobj /bigobj -std:c++17 ) -fexceptions -w -c @C:/Dev/itk-build/Wrapping/castxml_inputs/ITKBridgeNumPy.castxml.inc C:/Dev/itk-build/Wrapping/castxml_inputs/itkPyBuffer.cxx, which complained that The code execution cannot proceed because libgcc_s_seh-1.dll was not found. Reinstalling the program may fix this problem. , and the same for libwinpthread-1.dll and libstdc++-6.dll. Adding C:\Program Files\Git\mingw64\bin to the path gets me past that, but I am not sure that is the right solution:

C:\Dev\itk-build\Wrapping>Generators\CastXML\castxml\bin\castxml.exe -o C:/Dev/itk-build/Wrapping/castxml_inputs/itkPyBuffer.xml --castxml-gccxml --castxml-start _wrapping_ --castxml-cc-msvc ( "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.44.35207/bin/Hostx64/x64/cl.exe" /DWIN32 /D_WINDOWS /EHsc -W3 /bigobj /bigobj -std:c++17 ) -fexceptions -w -c @C:/Dev/itk-build/Wrapping/castxml_inputs/ITKBridgeNumPy.castxml.inc C:/Dev/itk-build/Wrapping/castxml_inputs/itkPyBuffer.cxx
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0.      Program arguments: Generators\\CastXML\\castxml\\bin\\castxml.exe -o C:/Dev/itk-build/Wrapping/castxml_inputs/itkPyBuffer.xml --castxml-gccxml --castxml-start _wrapping_ --castxml-cc-msvc ( "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.44.35207/bin/Hostx64/x64/cl.exe" /DWIN32 /D_WINDOWS /EHsc -W3 /bigobj /bigobj -std:c++17 ) -fexceptions -w -c @C:/Dev/itk-build/Wrapping/castxml_inputs/ITKBridgeNumPy.castxml.inc C:/Dev/itk-build/Wrapping/castxml_inputs/itkPyBuffer.cxx
Exception Code: 0xC0000005
0x00007FFA717F3B29, C:\Program Files\Git\mingw64\bin\libstdc++-6.dll(0x00007FFA716E0000) + 0x113B29 byte(s), _ZNSt6localeaSERKS_() + 0x29 byte(s)
0x00007FFA718137E8, C:\Program Files\Git\mingw64\bin\libstdc++-6.dll(0x00007FFA716E0000) + 0x1337E8 byte(s), _ZNSt8ios_base7_M_initEv() + 0x48 byte(s)
0x00007FFA718151B1, C:\Program Files\Git\mingw64\bin\libstdc++-6.dll(0x00007FFA716E0000) + 0x1351B1 byte(s), _ZNSt9basic_iosIcSt11char_traitsIcEE4initEPSt15basic_streambufIcS1_E() + 0x11 byte(s)
0x00007FF6C55F6A73, C:\Dev\itk-build\Wrapping\Generators\CastXML\castxml\bin\castxml.exe(0x00007FF6C55E0000) + 0x16A73 byte(s)
0x00007FF6C55E3B84, C:\Dev\itk-build\Wrapping\Generators\CastXML\castxml\bin\castxml.exe(0x00007FF6C55E0000) + 0x3B84 byte(s)
0x00007FF6C55E46B2, C:\Dev\itk-build\Wrapping\Generators\CastXML\castxml\bin\castxml.exe(0x00007FF6C55E0000) + 0x46B2 byte(s)
0x00007FF6CA1145FF, C:\Dev\itk-build\Wrapping\Generators\CastXML\castxml\bin\castxml.exe(0x00007FF6C55E0000) + 0x4B345FF byte(s)
0x00007FF6C55E12EF, C:\Dev\itk-build\Wrapping\Generators\CastXML\castxml\bin\castxml.exe(0x00007FF6C55E0000) + 0x12EF byte(s)
0x00007FF6C55E1406, C:\Dev\itk-build\Wrapping\Generators\CastXML\castxml\bin\castxml.exe(0x00007FF6C55E0000) + 0x1406 byte(s)
0x00007FFB60D4E8D7, C:\WINDOWS\System32\KERNEL32.DLL(0x00007FFB60D20000) + 0x2E8D7 byte(s), BaseThreadInitThunk() + 0x17 byte(s)
0x00007FFB62B28D9C, C:\WINDOWS\SYSTEM32\ntdll.dll(0x00007FFB62B20000) + 0x8D9C byte(s), RtlUserThreadStart() + 0x2C byte(s)

A similar trace now also appears in Visual Studio output window:

Build started at 11:04...
1>------ Build started: Project: castxml (ITK\Wrapping\Generators\CastXML\castxml), Configuration: RelWithDebInfo x64 ------
1>1>
2>------ Build started: Project: ITKBridgeNumPyCastXML, Configuration: RelWithDebInfo x64 ------
2>Generating ../../castxml_inputs/itkPyBuffer.xml
2>PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
2>Stack dump:
2>0.	Program arguments: ..\\..\\Generators\\CastXML\\castxml\\bin\\castxml.exe -o C:/Dev/ITK-py12/Wrapping/castxml_inputs/itkPyBuffer.xml --castxml-gccxml --castxml-start _wrapping_ --castxml-cc-msvc ( "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.44.35207/bin/Hostx64/x64/cl.exe" /DWIN32 /D_WINDOWS /EHsc -W3 /bigobj /bigobj -std:c++17 ) -fexceptions -w -c @C:/Dev/ITK-py12/Wrapping/castxml_inputs/ITKBridgeNumPy.castxml.inc C:/Dev/ITK-py12/Wrapping/castxml_inputs/itkPyBuffer.cxx
2>Exception Code: 0xC0000005
2> #0 0x00007ffa28853b29 (C:\Program Files\Git\mingw64\bin\libstdc++-6.dll+0x113b29)
2> #1 0x00007ffa288737e8 (C:\Program Files\Git\mingw64\bin\libstdc++-6.dll+0x1337e8)
2> #2 0x00007ffa288751b1 (C:\Program Files\Git\mingw64\bin\libstdc++-6.dll+0x1351b1)
2> #3 0x00007ff74d8d6a73 runCommand(int, char const* const*, int&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*) (C:\Dev\ITK-py12\Wrapping\Generators\CastXML\castxml\bin\castxml.exe+0x16a73)
2> #4 0x00007ff74d8c3b84 detectCC_MSVC(char const* const*, char const* const*, Options&, char const*, char const*) (C:\Dev\ITK-py12\Wrapping\Generators\CastXML\castxml\bin\castxml.exe+0x3b84)
2> #5 0x00007ff74d8c46b2 detectCC(char const*, char const* const*, char const* const*, Options&) (C:\Dev\ITK-py12\Wrapping\Generators\CastXML\castxml\bin\castxml.exe+0x46b2)
2> #6 0x00007ff7523f45ff main (C:\Dev\ITK-py12\Wrapping\Generators\CastXML\castxml\bin\castxml.exe+0x4b345ff)
2> #7 0x00007ff74d8c12ef __tmainCRTStartup (C:\Dev\ITK-py12\Wrapping\Generators\CastXML\castxml\bin\castxml.exe+0x12ef)
2> #8 0x00007ff74d8c1406 .l_start (C:\Dev\ITK-py12\Wrapping\Generators\CastXML\castxml\bin\castxml.exe+0x1406)
2> #9 0x00007ffb60d4e8d7 (C:\WINDOWS\System32\KERNEL32.DLL+0x2e8d7)
2>#10 0x00007ffb62b28d9c (C:\WINDOWS\SYSTEM32\ntdll.dll+0x8d9c)
2>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(254,5): error MSB8066: Custom build for 'C:\Dev\ITK-py12\CMakeFiles\72cdf640b564d9dc4420d87b78a23cb2\itkPyBuffer.xml.rule;C:\Dev\ITK-py12\CMakeFiles\72cdf640b564d9dc4420d87b78a23cb2\itkPyVectorContainer.xml.rule;C:\Dev\ITK-py12\CMakeFiles\9673bee482e01b686d1fad8aa2c14261\ITKBridgeNumPyCastXML.rule' exited with code -1073741819.
2>Done building project "ITKBridgeNumPyCastXML.vcxproj" -- FAILED.
========== Build: 1 succeeded, 1 failed, 1 up-to-date, 0 skipped ==========
========== Build completed at 11:04 and took 10.795 seconds ==========

@dzenanz
Copy link
Member Author

dzenanz commented Sep 17, 2025

I also submitted a bug report to Visual Studio: https://developercommunity.visualstudio.com/t/Since-version-171414-ITK-with-Python/10968323

@thewtex
Copy link
Member

thewtex commented Sep 17, 2025

@dzenanz did your build work prior to the CastXML version bump?

@dzenanz
Copy link
Member Author

dzenanz commented Sep 17, 2025

What broke the build was VS update on September 9th, or maybe something else that happened on the same day (PATH environment variable change, Git update, etc).

@dzenanz
Copy link
Member Author

dzenanz commented Sep 17, 2025

The build errors seem unrelated to CastXML version.

@dzenanz
Copy link
Member Author

dzenanz commented Sep 18, 2025

After more testing, I conclude that PR #5509 broke things. I guess that the new way to build Windows binaries is faulty. Should we revert it for now? Or do we expect a fix soon?

@dzenanz
Copy link
Member Author

dzenanz commented Sep 18, 2025

The old binaries do not depend on libgcc_s_seh-1.dll, libwinpthread-1.dll and libstdc++-6.dll. That is the most likely cause of failure of the new binaries. I used DependenciesGui to determine this. The DLLs shipped with Git are probably not the right version for CastXML.

@thewtex
Copy link
Member

thewtex commented Sep 21, 2025

After more testing, I conclude that PR #5509 broke things.

#5509 fixed compiler support and is needed.

@thewtex
Copy link
Member

thewtex commented Sep 21, 2025

The old binaries do not depend on libgcc_s_seh-1.dll, libwinpthread-1.dll and libstdc++-6.dll. That is the most likely cause of failure of the new binaries. I used DependenciesGui to determine this. The DLLs shipped with Git are probably not the right version for CastXML.

I will look into it.

@thewtex
Copy link
Member

thewtex commented Sep 22, 2025

@dzenanz please test #5530

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:Bridge Issues affecting the Bridge module type:Compiler Compiler support or related warnings

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants