[clang] [Clang] Correctly forward `--cuda-path` to the nvlink wrapper (PR #100170)

LLVM Continuous Integration via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 23 12:56:51 PDT 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `llvm-clang-aarch64-darwin` running on `doug-worker-4` while building `clang` at step 6 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/190/builds/2494

Here is the relevant piece of the build log for the reference:
```
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'Clang :: Driver/linker-wrapper-passes.c' FAILED ********************
Exit Code: 70

Command Output (stderr):
--
RUN: at line 4: mkdir -p /Users/buildbot/buildbot-root/aarch64-darwin/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp
+ mkdir -p /Users/buildbot/buildbot-root/aarch64-darwin/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp
RUN: at line 5: /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/clang -cc1 -emit-llvm-bc -o /Users/buildbot/buildbot-root/aarch64-darwin/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.bc      -disable-O0-optnone -triple=x86_64-unknown-linux-gnu /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/clang/test/Driver/linker-wrapper-passes.c
+ /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/clang -cc1 -emit-llvm-bc -o /Users/buildbot/buildbot-root/aarch64-darwin/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.bc -disable-O0-optnone -triple=x86_64-unknown-linux-gnu /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/clang/test/Driver/linker-wrapper-passes.c
RUN: at line 7: /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/clang -cc1 -emit-llvm-bc -o /Users/buildbot/buildbot-root/aarch64-darwin/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc      -disable-O0-optnone -triple=amdgcn-amd-amdhsa /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/clang/test/Driver/linker-wrapper-passes.c
+ /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/clang -cc1 -emit-llvm-bc -o /Users/buildbot/buildbot-root/aarch64-darwin/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc -disable-O0-optnone -triple=amdgcn-amd-amdhsa /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/clang/test/Driver/linker-wrapper-passes.c
RUN: at line 9: /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/opt /Users/buildbot/buildbot-root/aarch64-darwin/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc -o /Users/buildbot/buildbot-root/aarch64-darwin/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc      -passes=forceattrs -force-remove-attribute=f:noinline
+ /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/opt /Users/buildbot/buildbot-root/aarch64-darwin/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc -o /Users/buildbot/buildbot-root/aarch64-darwin/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc -passes=forceattrs -force-remove-attribute=f:noinline
/Users/buildbot/buildbot-root/aarch64-darwin/build/bin/opt: WARNING: failed to create target machine for 'amdgcn-amd-amdhsa': unable to get target for 'amdgcn-amd-amdhsa', see --version and --triple.
RUN: at line 11: /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/clang-offload-packager -o /Users/buildbot/buildbot-root/aarch64-darwin/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-x86_64-unknown-linux-gnu.out      --image=file=/Users/buildbot/buildbot-root/aarch64-darwin/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc,triple=amdgcn-amd-amdhsa
+ /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/clang-offload-packager -o /Users/buildbot/buildbot-root/aarch64-darwin/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-x86_64-unknown-linux-gnu.out --image=file=/Users/buildbot/buildbot-root/aarch64-darwin/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-amdgcn-amd-amdhsa.bc,triple=amdgcn-amd-amdhsa
RUN: at line 13: /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/clang -cc1 -S -o /Users/buildbot/buildbot-root/aarch64-darwin/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.s      -fopenmp -fopenmp-targets=amdgcn-amd-amdhsa      -fembed-offload-object=/Users/buildbot/buildbot-root/aarch64-darwin/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-x86_64-unknown-linux-gnu.out      /Users/buildbot/buildbot-root/aarch64-darwin/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.bc
+ /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/clang -cc1 -S -o /Users/buildbot/buildbot-root/aarch64-darwin/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.s -fopenmp -fopenmp-targets=amdgcn-amd-amdhsa -fembed-offload-object=/Users/buildbot/buildbot-root/aarch64-darwin/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/openmp-x86_64-unknown-linux-gnu.out /Users/buildbot/buildbot-root/aarch64-darwin/build/tools/clang/test/Driver/Output/linker-wrapper-passes.c.tmp/host-x86_64-unknown-linux-gnu.bc
warning: overriding the module target triple with arm64-apple-darwin23.5.0 [-Woverride-module]
'+cx8' is not a recognized feature for this target (ignoring feature)
'+mmx' is not a recognized feature for this target (ignoring feature)
'+sse' is not a recognized feature for this target (ignoring feature)
'+sse2' is not a recognized feature for this target (ignoring feature)
'+x87' is not a recognized feature for this target (ignoring feature)
'+cx8' is not a recognized feature for this target (ignoring feature)
'+mmx' is not a recognized feature for this target (ignoring feature)
'+sse' is not a recognized feature for this target (ignoring feature)
'+sse2' is not a recognized feature for this target (ignoring feature)
'+x87' is not a recognized feature for this target (ignoring feature)
fatal error: error in backend: Global variable 'llvm.embedded.object' has an invalid section specifier '.llvm.offloading': mach-o section specifier requires a segment and section separated by a comma.

--

********************


```

https://github.com/llvm/llvm-project/pull/100170


More information about the cfe-commits mailing list