Fix openmp-offload-amdgpu-clang-flang #395
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Since 0ac8f9d, openmp-offload-amdgpu-clang-flang is failing with
The reason is that flang-rt now is built using Clang (like all LLVM runtimes in a bootstrapping build), instead of gcc.
quadmath.h
is located in gcc's "resource dir" (on my system, it is/usr/lib/gcc/x86_64-linux-gnu/13/include/quadmath.h
) instead in default paths such as/usr/include
. Hence, clang cannot find it.Remove the
FLANG_RUNTIME_F128_MATH_LIB=libquadmath
option since by design it does not work with Clang.Alterantive approaches:
CMAKE_CXX_COMPILER=gcc
.crtbegin.o
. It wouldn't be too far fetched to also add its include dir to Clang's default search path. Otherwise, we need to wait until LLVM gets its own equivalent of libquadmath.