[Lldb-commits] [lldb] [clang] [openmp] [compiler-rt] [lld] [llvm] [libc] [libcxx] [clang-tools-extra] [mlir] [pstl] [Driver] Test ignored target-specific options for AMDGPU/NVPTX (PR #79222)

via lldb-commits lldb-commits at lists.llvm.org
Wed Jan 24 13:57:13 PST 2024


gulfemsavrun wrote:

We started seeing a test failure in our Clang toolchain builders for Mac:
```
FAIL: Clang :: Driver/unsupported-option-gpu.c (10452 of 19269)
******************** TEST 'Clang :: Driver/unsupported-option-gpu.c' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 4: /Volumes/Work/s/w/ir/x/w/llvm_build/bin/clang -### -c -mcmodel=medium -x cuda /Volumes/Work/s/w/ir/x/w/llvm-llvm-project/clang/test/Driver/unsupported-option-gpu.c --cuda-path=/Volumes/Work/s/w/ir/x/w/llvm-llvm-project/clang/test/Driver/Inputs/CUDA/usr/local/cuda --offload-arch=sm_60 --no-cuda-version-check -fbasic-block-sections=all
+ /Volumes/Work/s/w/ir/x/w/llvm_build/bin/clang -### -c -mcmodel=medium -x cuda /Volumes/Work/s/w/ir/x/w/llvm-llvm-project/clang/test/Driver/unsupported-option-gpu.c --cuda-path=/Volumes/Work/s/w/ir/x/w/llvm-llvm-project/clang/test/Driver/Inputs/CUDA/usr/local/cuda --offload-arch=sm_60 --no-cuda-version-check -fbasic-block-sections=all
Fuchsia clang version 19.0.0git (https://llvm.googlesource.com/llvm-project c1cb0b80f00888920050068a8c6b4f78ca40dd43)
Target: x86_64-apple-darwin22.6.0
Thread model: posix
InstalledDir: /Volumes/Work/s/w/ir/x/w/llvm_build/bin
clang: error: unsupported option '-fbasic-block-sections=all' for target 'x86_64-apple-macosx13.0.0'
 "/Volumes/Work/s/w/ir/x/w/llvm_build/bin/llvm" "clang" "-cc1" "-triple" "nvptx64-nvidia-cuda" "-aux-triple" "x86_64-apple-darwin22.6.0" "-Wundef-prefix=TARGET_OS_" "-Werror=undef-prefix" "-Wdeprecated-objc-isa-usage" "-Werror=deprecated-objc-isa-usage" "-S" "-disable-free" "-clear-ast-before-backend" "-main-file-name" "unsupported-option-gpu.c" "-mrelocation-model" "static" "-mframe-pointer=all" "-fno-rounding-math" "-no-integrated-as" "-aux-target-cpu" "penryn" "-fcompatibility-qualified-id-block-type-checking" "-fvisibility-inlines-hidden-static-local-var" "-fbuiltin-headers-in-system-modules" "-fdefine-target-os-macros" "-fcuda-is-device" "-mllvm" "-enable-memcpyopt-without-libcalls" "-mlink-builtin-bitcode" "/Volumes/Work/s/w/ir/x/w/llvm-llvm-project/clang/test/Driver/Inputs/CUDA/usr/local/cuda/nvvm/libdevice/libdevice.compute_30.10.bc" "-target-sdk-version=7.0" "-mcmodel=medium" "-target-cpu" "sm_60" "-target-feature" "+ptx42" "-debugger-tuning=gdb" "-fno-dwarf-directory-asm" "-fdebug-compilation-dir=/Volumes/Work/s/w/ir/x/w/llvm_build/tools/clang/test/Driver" "-target-linker-version" "857.1" "-resource-dir" "/Volumes/Work/s/w/ir/x/w/llvm_build/lib/clang/19" "-internal-isystem" "/Volumes/Work/s/w/ir/x/w/llvm_build/lib/clang/19/include/cuda_wrappers" "-include" "__clang_cuda_runtime_wrapper.h" "-internal-isystem" "/Volumes/Work/s/w/ir/x/w/llvm_build/bin/../include/c++/v1" "-internal-isystem" "/Volumes/Work/s/w/ir/x/w/llvm_build/bin/../include/c++/v1" "-internal-isystem" "/usr/local/include" "-internal-isystem" "/Volumes/Work/s/w/ir/x/w/llvm_build/lib/clang/19/include" "-internal-externc-isystem" "/usr/include" "-internal-isystem" "/Volumes/Work/s/w/ir/x/w/llvm-llvm-project/clang/test/Driver/Inputs/CUDA/usr/local/cuda/include" "-internal-isystem" "/usr/local/include" "-internal-isystem" "/Volumes/Work/s/w/ir/x/w/llvm_build/lib/clang/19/include" "-internal-externc-isystem" "/usr/include" "-fdeprecated-macro" "-fno-autolink" "-ferror-limit" "19" "-fgnuc-version=4.2.1" "-fcxx-exceptions" "-fexceptions" "-cuid=5730a5be306aa06d" "-D__GCC_HAVE_DWARF2_CFI_ASM=1" "-o" "/Volumes/Work/s/w/ir/x/t/lit-tmp-sgc_485s/unsupported-option-gpu-sm_60-18c1d6.s" "-x" "cuda" "/Volumes/Work/s/w/ir/x/w/llvm-llvm-project/clang/test/Driver/unsupported-option-gpu.c"
 "/Volumes/Work/s/w/ir/x/w/llvm-llvm-project/clang/test/Driver/Inputs/CUDA/usr/local/cuda/bin/ptxas" "-m64" "-O0" "--gpu-name" "sm_60" "--output-file" "/Volumes/Work/s/w/ir/x/t/lit-tmp-sgc_485s/unsupported-option-gpu-sm_60-02dbb3.cubin" "/Volumes/Work/s/w/ir/x/t/lit-tmp-sgc_485s/unsupported-option-gpu-sm_60-18c1d6.s"
 "fatbinary" "--cuda" "-64" "--create" "/Volumes/Work/s/w/ir/x/t/lit-tmp-sgc_485s/unsupported-option-gpu-36608d.fatbin" "--image=profile=sm_60,file=/Volumes/Work/s/w/ir/x/t/lit-tmp-sgc_485s/unsupported-option-gpu-sm_60-02dbb3.cubin" "--image=profile=compute_60,file=/Volumes/Work/s/w/ir/x/t/lit-tmp-sgc_485s/unsupported-option-gpu-sm_60-18c1d6.s"
 "/Volumes/Work/s/w/ir/x/w/llvm_build/bin/llvm" "clang" "-cc1" "-triple" "x86_64-apple-macosx13.0.0" "-target-sdk-version=7.0" "-aux-triple" "nvptx64-nvidia-cuda" "-Wundef-prefix=TARGET_OS_" "-Werror=undef-prefix" "-Wdeprecated-objc-isa-usage" "-Werror=deprecated-objc-isa-usage" "-emit-obj" "-mrelax-all" "-disable-free" "-clear-ast-before-backend" "-main-file-name" "unsupported-option-gpu.c" "-mrelocation-model" "pic" "-pic-level" "2" "-mframe-pointer=all" "-ffp-contract=on" "-fno-rounding-math" "-funwind-tables=2" "-fcompatibility-qualified-id-block-type-checking" "-fvisibility-inlines-hidden-static-local-var" "-fbuiltin-headers-in-system-modules" "-fdefine-target-os-macros" "-mcmodel=medium" "-mlarge-data-threshold=65536" "-target-cpu" "penryn" "-tune-cpu" "generic" "-debugger-tuning=lldb" "-fdebug-compilation-dir=/Volumes/Work/s/w/ir/x/w/llvm_build/tools/clang/test/Driver" "-target-linker-version" "857.1" "-fcoverage-compilation-dir=/Volumes/Work/s/w/ir/x/w/llvm_build/tools/clang/test/Driver" "-resource-dir" "/Volumes/Work/s/w/ir/x/w/llvm_build/lib/clang/19" "-internal-isystem" "/Volumes/Work/s/w/ir/x/w/llvm_build/lib/clang/19/include/cuda_wrappers" "-include" "__clang_cuda_runtime_wrapper.h" "-internal-isystem" "/Volumes/Work/s/w/ir/x/w/llvm_build/bin/../include/c++/v1" "-internal-isystem" "/Volumes/Work/s/w/ir/x/w/llvm_build/bin/../include/c++/v1" "-internal-isystem" "/usr/local/include" "-internal-isystem" "/Volumes/Work/s/w/ir/x/w/llvm_build/lib/clang/19/include" "-internal-externc-isystem" "/usr/include" "-internal-isystem" "/usr/local/include" "-internal-isystem" "/Volumes/Work/s/w/ir/x/w/llvm_build/lib/clang/19/include" "-internal-externc-isystem" "/usr/include" "-internal-isystem" "/Volumes/Work/s/w/ir/x/w/llvm-llvm-project/clang/test/Driver/Inputs/CUDA/usr/local/cuda/include" "-fdeprecated-macro" "-ferror-limit" "19" "-stack-protector" "1" "-fblocks" "-fencode-extended-block-signature" "-fregister-global-dtors-with-atexit" "-fgnuc-version=4.2.1" "-fcxx-exceptions" "-fexceptions" "-fmax-type-align=16" "-fcuda-include-gpubinary" "/Volumes/Work/s/w/ir/x/t/lit-tmp-sgc_485s/unsupported-option-gpu-36608d.fatbin" "-cuid=5730a5be306aa06d" "-D__GCC_HAVE_DWARF2_CFI_ASM=1" "-o" "unsupported-option-gpu.o" "-x" "cuda" "/Volumes/Work/s/w/ir/x/w/llvm-llvm-project/clang/test/Driver/unsupported-option-gpu.c"

--

********************
```
https://luci-milo.appspot.com/ui/p/fuchsia/builders/toolchain.ci/clang-mac-x64/b8757994508930469025/overview

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


More information about the lldb-commits mailing list