Skip to content

Testing hwloc cc#1598

Closed
lukaszstolarczuk wants to merge 3 commits into
oneapi-src:mainfrom
lukaszstolarczuk:testing-hwloc-cc
Closed

Testing hwloc cc#1598
lukaszstolarczuk wants to merge 3 commits into
oneapi-src:mainfrom
lukaszstolarczuk:testing-hwloc-cc

Conversation

@lukaszstolarczuk

Copy link
Copy Markdown
Collaborator

testing nightly of: #1597

wenju-he and others added 3 commits July 27, 2026 09:44
PR oneapi-src#1585 forwards CC=${CMAKE_C_COMPILER}/CXX=${CMAKE_CXX_COMPILER}
into hwloc's ExternalProject_Add autogen.sh/configure invocation, but
those are bare compiler paths with no notion of CMAKE_SYSROOT or
CMAKE_C_COMPILER_EXTERNAL_TOOLCHAIN. When UMF_LINK_HWLOC_STATICALLY is
combined with a sysroot- or toolchain-file-pinned compiler, hwloc still
ends up built against the host's headers/libs instead of the sysroot's,
which can produce ABI mismatches (e.g. undefined glibc symbols) at
final link time.

CC/CXX are passed to autotools as space-separated "compiler [flags...]"
strings (the same convention as CC="ccache gcc"), so --sysroot and
--gcc-toolchain can be appended directly without needing wrapper
scripts or touching CMAKE_C_COMPILER/CMAKE_CXX_COMPILER themselves.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@lukaszstolarczuk
lukaszstolarczuk deleted the testing-hwloc-cc branch July 27, 2026 12:24
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.

2 participants