Skip to content

Conversation

tahonermann
Copy link
Contributor

CMake RelWithDebInfo builds failed on Windows because the Unified Runtime attempted to link with a Debug build of XPTI. Fortunately, the mismatch was detected by lld-link and it failed the build with the following error:
error: /failifmismatch: mismatch detected for '_ITERATOR_DEBUG_LEVEL'
The mismatch was due to a CMake generator expression in the Unified Runtime CMakeLists.txt that failed to account for RelWithDebInfo and MinSizeRel builds.

Investigation of the above also resulted in the identification of an issue in the XPTI CMakeLists.txt file; use of CMAKE_CXX_FLAGS_MINSIZEREL for a RelWithDebInfo build and CMAKE_CXX_FLAGS_RELWITHDEBINFO for a MinSizeRel build.

CMake RelWithDebInfo builds failed on Windows because the Unified Runtime
attempted to link with a Debug build of XPTI. Fortunately, the mismatch
was detected by lld-link and it failed the build with the following error:
  error: /failifmismatch: mismatch detected for '_ITERATOR_DEBUG_LEVEL'
The mismatch was due to a CMake generator expression in the Unified Runtime
CMakeLists.txt that failed to account for RelWithDebInfo and MinSizeRel
builds.

Investigation of the above also resulted in the identification of an
issue in the XPTI CMakeLists.txt file; use of `CMAKE_CXX_FLAGS_MINSIZEREL`
for a RelWithDebInfo build and `CMAKE_CXX_FLAGS_RELWITHDEBINFO` for a
MinSizeRel build.
@tahonermann tahonermann requested review from a team as code owners September 13, 2025 15:05
@tahonermann
Copy link
Contributor Author

I have no reason to believe that the Unified Runtime Conformance :: enqueue//enqueue-test/104/252 test failure is related to these changes.

I'm not authorized to push to this branch. @slawekptak, @bratpiorka, could you please merge or tag another appropriate code owner to do so? Thank you!

@bratpiorka
Copy link
Contributor

@intel/llvm-gatekeepers please consider merging

@uditagarwal97 uditagarwal97 merged commit 05ea3e9 into intel:sycl Sep 16, 2025
77 of 80 checks passed
YixingZhang007 pushed a commit to YixingZhang007/llvm that referenced this pull request Sep 22, 2025
…l#20078)

CMake `RelWithDebInfo` builds failed on Windows because the Unified
Runtime attempted to link with a `Debug` build of XPTI. Fortunately, the
mismatch was detected by `lld-link` and it failed the build with the
following error:
`error: /failifmismatch: mismatch detected for '_ITERATOR_DEBUG_LEVEL'`
The mismatch was due to a CMake generator expression in the Unified
Runtime `CMakeLists.txt` that failed to account for `RelWithDebInfo` and
`MinSizeRel` builds.

Investigation of the above also resulted in the identification of an
issue in the XPTI `CMakeLists.txt` file; use of
`CMAKE_CXX_FLAGS_MINSIZEREL` for a `RelWithDebInfo` build and
`CMAKE_CXX_FLAGS_RELWITHDEBINFO` for a `MinSizeRel` build.
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

Successfully merging this pull request may close these issues.

4 participants