[PATCH] D43378: FreeBSD driver / Xray flags moving pthread to compile flags.
Kamil Rytarowski via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 21 22:54:13 PST 2018
krytarowski added inline comments.
================
Comment at: cfe/trunk/test/Driver/XRay/xray-shared-noxray.cpp:11
//
-// REQUIRES: linux, enable_shared
+// REQUIRES: enable_shared
int foo() { return 42; }
----------------
```
FAIL: Clang :: Driver/XRay/xray-shared-noxray.cpp (6820 of 38122)
******************** TEST 'Clang :: Driver/XRay/xray-shared-noxray.cpp' FAILED ********************
Script:
--
/home/buildslave/ps4-buildslave4/llvm-clang-lld-x86_64-scei-ps4-ubuntu-fast/llvm.obj/bin/clang --driver-mode=g++ -shared -o /dev/null -v -fxray-instrument /home/buildslave/ps4-buildslave4/llvm-clang-lld-x86_64-scei-ps4-ubuntu-fast/llvm.src/tools/clang/test/Driver/XRay/xray-shared-noxray.cpp -###
/home/buildslave/ps4-buildslave4/llvm-clang-lld-x86_64-scei-ps4-ubuntu-fast/llvm.obj/bin/clang --driver-mode=g++ -shared -o /dev/null -v -fxray-instrument /home/buildslave/ps4-buildslave4/llvm-clang-lld-x86_64-scei-ps4-ubuntu-fast/llvm.src/tools/clang/test/Driver/XRay/xray-shared-noxray.cpp -### 2>&1 | /home/buildslave/ps4-buildslave4/llvm-clang-lld-x86_64-scei-ps4-ubuntu-fast/llvm.obj/bin/FileCheck /home/buildslave/ps4-buildslave4/llvm-clang-lld-x86_64-scei-ps4-ubuntu-fast/llvm.src/tools/clang/test/Driver/XRay/xray-shared-noxray.cpp --check-prefix=SHARED
/home/buildslave/ps4-buildslave4/llvm-clang-lld-x86_64-scei-ps4-ubuntu-fast/llvm.obj/bin/clang --driver-mode=g++ -static -o /dev/null -v -fxray-instrument /home/buildslave/ps4-buildslave4/llvm-clang-lld-x86_64-scei-ps4-ubuntu-fast/llvm.src/tools/clang/test/Driver/XRay/xray-shared-noxray.cpp -### -DMAIN
/home/buildslave/ps4-buildslave4/llvm-clang-lld-x86_64-scei-ps4-ubuntu-fast/llvm.obj/bin/clang --driver-mode=g++ -static -o /dev/null -v -fxray-instrument /home/buildslave/ps4-buildslave4/llvm-clang-lld-x86_64-scei-ps4-ubuntu-fast/llvm.src/tools/clang/test/Driver/XRay/xray-shared-noxray.cpp -### 2>&1 -DMAIN | /home/buildslave/ps4-buildslave4/llvm-clang-lld-x86_64-scei-ps4-ubuntu-fast/llvm.obj/bin/FileCheck /home/buildslave/ps4-buildslave4/llvm-clang-lld-x86_64-scei-ps4-ubuntu-fast/llvm.src/tools/clang/test/Driver/XRay/xray-shared-noxray.cpp --check-prefix=STATIC
--
Exit Code: 1
Command Output (stderr):
--
clang version 7.0.0 (trunk 325746)
Target: x86_64-scei-ps4
Thread model: posix
InstalledDir: /home/buildslave/ps4-buildslave4/llvm-clang-lld-x86_64-scei-ps4-ubuntu-fast/llvm.obj/bin
clang-7.0: error: the clang compiler does not support '-fxray-instrument on non-supported target OS'
"/home/buildslave/ps4-buildslave4/llvm-clang-lld-x86_64-scei-ps4-ubuntu-fast/llvm.obj/bin/clang-7.0" "-cc1" "-triple" "x86_64-scei-ps4" "-emit-obj" "-mrelax-all" "-disable-free" "-main-file-name" "xray-shared-noxray.cpp" "-mrelocation-model" "pic" "-pic-level" "2" "-mthread-model" "posix" "-mdisable-fp-elim" "-masm-verbose" "-mconstructor-aliases" "-munwind-tables" "-target-cpu" "btver2" "-debugger-tuning=sce" "-backend-option" "-generate-arange-section" "-debug-forward-template-params" "-dwarf-explicit-import" "-momit-leaf-frame-pointer" "-v" "-resource-dir" "/home/buildslave/ps4-buildslave4/llvm-clang-lld-x86_64-scei-ps4-ubuntu-fast/llvm.obj/lib/clang/7.0.0" "-fdeprecated-macro" "-fdebug-compilation-dir" "/home/buildslave/ps4-buildslave4/llvm-clang-lld-x86_64-scei-ps4-ubuntu-fast/llvm.obj/tools/clang/test/Driver/XRay" "-fstack-size-section" "-ferror-limit" "19" "-fmessage-length" "0" "-fxray-instrument" "-fxray-instruction-threshold=200" "-stack-protector" "2" "-fno-rtti" "-fdeclspec" "-fobjc-runtime=gnustep" "-fdiagnostics-show-option" "-o" "/tmp/lit_tmp_uoU38D/xray-shared-noxray-3e3746.o" "-x" "c++" "/home/buildslave/ps4-buildslave4/llvm-clang-lld-x86_64-scei-ps4-ubuntu-fast/llvm.src/tools/clang/test/Driver/XRay/xray-shared-noxray.cpp"
"orbis-ld" "--eh-frame-hdr" "-Bshareable" "--enable-new-dtags" "-o" "/dev/null" "crti.o" "crtbeginS.o" "/tmp/lit_tmp_uoU38D/xray-shared-noxray-3e3746.o" "-lkernel" "-lstdc++" "-lm" "-lcompiler_rt" "--as-needed" "-lstdc++" "--no-as-needed" "-lc" "-lcompiler_rt" "--as-needed" "-lstdc++" "--no-as-needed" "crtendS.o" "crtn.o"
clang-7.0: error: unsupported option '-static' for target 'PS4'
clang version 7.0.0 (trunk 325746)
Target: x86_64-scei-ps4
Thread model: posix
InstalledDir: /home/buildslave/ps4-buildslave4/llvm-clang-lld-x86_64-scei-ps4-ubuntu-fast/llvm.obj/bin
clang-7.0: error: the clang compiler does not support '-fxray-instrument on non-supported target OS'
"/home/buildslave/ps4-buildslave4/llvm-clang-lld-x86_64-scei-ps4-ubuntu-fast/llvm.obj/bin/clang-7.0" "-cc1" "-triple" "x86_64-scei-ps4" "-emit-obj" "-mrelax-all" "-disable-free" "-main-file-name" "xray-shared-noxray.cpp" "-static-define" "-mrelocation-model" "pic" "-pic-level" "2" "-mthread-model" "posix" "-mdisable-fp-elim" "-masm-verbose" "-mconstructor-aliases" "-munwind-tables" "-target-cpu" "btver2" "-debugger-tuning=sce" "-backend-option" "-generate-arange-section" "-debug-forward-template-params" "-dwarf-explicit-import" "-momit-leaf-frame-pointer" "-v" "-resource-dir" "/home/buildslave/ps4-buildslave4/llvm-clang-lld-x86_64-scei-ps4-ubuntu-fast/llvm.obj/lib/clang/7.0.0" "-D" "MAIN" "-fdeprecated-macro" "-fdebug-compilation-dir" "/home/buildslave/ps4-buildslave4/llvm-clang-lld-x86_64-scei-ps4-ubuntu-fast/llvm.obj/tools/clang/test/Driver/XRay" "-fstack-size-section" "-ferror-limit" "19" "-fmessage-length" "0" "-fxray-instrument" "-fxray-instruction-threshold=200" "-stack-protector" "2" "-fno-rtti" "-fdeclspec" "-fobjc-runtime=gnustep" "-fdiagnostics-show-option" "-o" "/tmp/lit_tmp_uoU38D/xray-shared-noxray-71e666.o" "-x" "c++" "/home/buildslave/ps4-buildslave4/llvm-clang-lld-x86_64-scei-ps4-ubuntu-fast/llvm.src/tools/clang/test/Driver/XRay/xray-shared-noxray.cpp"
"orbis-ld" "-o" "/dev/null" "/tmp/lit_tmp_uoU38D/xray-shared-noxray-71e666.o"
/home/buildslave/ps4-buildslave4/llvm-clang-lld-x86_64-scei-ps4-ubuntu-fast/llvm.src/tools/clang/test/Driver/XRay/xray-shared-noxray.cpp:9:12: error: expected string not found in input
// STATIC: {{clang_rt\.xray-}}
^
<stdin>:1:1: note: scanning from here
clang-7.0: error: unsupported option '-static' for target 'PS4'
^
<stdin>:7:674: note: possible intended match here
"/home/buildslave/ps4-buildslave4/llvm-clang-lld-x86_64-scei-ps4-ubuntu-fast/llvm.obj/bin/clang-7.0" "-cc1" "-triple" "x86_64-scei-ps4" "-emit-obj" "-mrelax-all" "-disable-free" "-main-file-name" "xray-shared-noxray.cpp" "-static-define" "-mrelocation-model" "pic" "-pic-level" "2" "-mthread-model" "posix" "-mdisable-fp-elim" "-masm-verbose" "-mconstructor-aliases" "-munwind-tables" "-target-cpu" "btver2" "-debugger-tuning=sce" "-backend-option" "-generate-arange-section" "-debug-forward-template-params" "-dwarf-explicit-import" "-momit-leaf-frame-pointer" "-v" "-resource-dir" "/home/buildslave/ps4-buildslave4/llvm-clang-lld-x86_64-scei-ps4-ubuntu-fast/llvm.obj/lib/clang/7.0.0" "-D" "MAIN" "-fdeprecated-macro" "-fdebug-compilation-dir" "/home/buildslave/ps4-buildslave4/llvm-clang-lld-x86_64-scei-ps4-ubuntu-fast/llvm.obj/tools/clang/test/Driver/XRay" "-fstack-size-section" "-ferror-limit" "19" "-fmessage-length" "0" "-fxray-instrument" "-fxray-instruction-threshold=200" "-stack-protector" "2" "-fno-rtti" "-fdeclspec" "-fobjc-runtime=gnustep" "-fdiagnostics-show-option" "-o" "/tmp/lit_tmp_uoU38D/xray-shared-noxray-cbfc40.o" "-x" "c++" "/home/buildslave/ps4-buildslave4/llvm-clang-lld-x86_64-scei-ps4-ubuntu-fast/llvm.src/tools/clang/test/Driver/XRay/xray-shared-noxray.cpp"
^
```
http://lab.llvm.org:8011/builders/llvm-clang-lld-x86_64-scei-ps4-ubuntu-fast/builds/25552/steps/test/logs/stdio
I've reverted change from this file in HEAD. Please check it and ship a new patch.
Repository:
rL LLVM
https://reviews.llvm.org/D43378
More information about the cfe-commits
mailing list