To work around an unknown failure when compiling with default -fPIE:
https://github.com/llvm/llvm-project/issues/54082
-fno-pic makes the current default explicit.
Differential D123102
[test] Build test-suite::omptargetvv-test_parallel_for_allocate-50_parallel_for-c.test with -fno-pic MaskRay on Apr 4 2022, 5:13 PM. Authored by
Details
To work around an unknown failure when compiling with default -fPIE: -fno-pic makes the current default explicit.
Diff Detail
Event TimelineComment Actions Could you please add a comment in the CMakeLists.txt for why -fno-pic is need, possible with a link to the bug? TEST_SUITE_SOLLVEVV_OFFLOADING_CFLAGS is a user-controlled parameter. Defining it using -DTEST_SUITE_SOLLVEVV_OFFLOADING_CFLAGS=... (like the buildbot configuration does) will overwrite -fno-pic. Hence, the buildbot would continue to fail.
|
If this is indeed an OpenMP bug and it should work with -fpic), the alternative is to remove it from the list of tests that are known to work.
However, my assumption is that D120305 applied the changed default to device-code as well, when it should only do so for host code.