-
Notifications
You must be signed in to change notification settings - Fork 14.5k
Open
Labels
Description
We should probably better handle this case. maybe cmake should fail ?
With both 21 & 22
[3936/4068] cd /build/source/libclc/build && /build/source/build-llvm/tools/clang/stage2-bins/bin/opt -O3 -o /build/source/libclc/build/obj.libclc.dir/cayman-r600--/builtins.opt.cayman-r600--.bc /build/source/libclc/build/obj.libclc.dir/cayman-r600--/builtins.link.cayman-r600--.bc
[3937/4068] cd /build/source/libclc/build && -o /build/source/libclc/build/cayman-r600--.bc /build/source/libclc/build/obj.libclc.dir/cayman-r600--/builtins.opt.cayman-r600--.bc
FAILED: cayman-r600--.bc /build/source/libclc/build/cayman-r600--.bc
cd /build/source/libclc/build && -o /build/source/libclc/build/cayman-r600--.bc /build/source/libclc/build/obj.libclc.dir/cayman-r600--/builtins.opt.cayman-r600--.bc
/bin/sh: 1: -o: not found
[3938/4068] cd /build/source/libclc/build && /build/source/build-llvm/tools/clang/stage2-bins/bin/opt -O3 -o /build/source/libclc/build/obj.libclc.dir/cypress-r600--/builtins.opt.cypress-r600--.bc /build/source/libclc/build/obj.libclc.dir/cypress-r600--/builtins.link.cypress-r600--.bc
with:
mkdir -p libclc/build
echo "Using cmake: cmake"
Using cmake: cmake
cd libclc/build && \
cmake ../ \
-G Ninja \
-DCMAKE_C_COMPILER_LAUNCHER=/opt/sccache//sccache -DCMAKE_CXX_COMPILER_LAUNCHER=/opt/sccache//sccache \
-DCMAKE_C_COMPILER=/build/source/build-llvm/tools/clang/stage2-bins/bin/clang \
-DCMAKE_CXX_COMPILER=/build/source/build-llvm/tools/clang/stage2-bins/bin/clang++ \
-DCMAKE_C_FLAGS="-O2 -DNDEBUG -g1 -Werror=implicit-function-declaration -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-unused-command-line-argument -Wdate-time -D_FORTIFY_SOURCE=2" \
-DCMAKE_CXX_FLAGS="-O2 -DNDEBUG -g1 -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-unused-command-line-argument -Wdate-time -D_FORTIFY_SOURCE=2 -I/build/source/llvm/include" \
-DCMAKE_SHARED_LINKER_FLAGS="-Wl,-z,relro -Wl,--build-id -L/build/source/build-llvm/tools/clang/stage2-bins/lib" \
-DCMAKE_MODULE_LINKER_FLAGS="-Wl,-z,relro -Wl,--build-id -L/build/source/build-llvm/tools/clang/stage2-bins/lib" \
-DCMAKE_EXE_LINKER_FLAGS="-Wl,-z,relro -Wl,--build-id -L/build/source/build-llvm/tools/clang/stage2-bins/lib" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_DATADIR=lib \
-DCMAKE_INSTALL_INCLUDEDIR=include \
-DLLVM_CMAKE_DIR=/build/source/build-llvm/tools/clang/stage2-bins/bin/../ \
\
-DLIBCLC_TARGETS_TO_BUILD="amdgcn--;amdgcn--amdhsa;amdgcn-mesa-mesa3d;r600--;nvptx--;nvptx64--;nvptx--nvidiacl;nvptx64--nvidiacl"; \
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/build/source/build-llvm/tools/clang/stage2-bins/lib /usr/bin/time -v ninja -j 20 -v
-- The CXX compiler identification is Clang 21.1.0
-- The C compiler identification is Clang 21.1.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /build/source/build-llvm/tools/clang/stage2-bins/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /build/source/build-llvm/tools/clang/stage2-bins/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Performing Test HAVE_FFI_CALL
-- Performing Test HAVE_FFI_CALL - Success
-- Found FFI: /usr/lib/x86_64-linux-gnu/libffi.so
-- Looking for histedit.h
-- Looking for histedit.h - found
-- Found LibEdit: /usr/include (found version "2.11")
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.3.1")
-- Found zstd: /usr/lib/x86_64-linux-gnu/libzstd.so
-- Found LibXml2: /usr/lib/x86_64-linux-gnu/libxml2.so (found version "2.9.14")
-- Found CURL: /usr/lib/x86_64-linux-gnu/libcurl.so (found version "8.14.1")
-- Linker detection: GNU ld
-- libclc LLVM version: 21.1.0
-- Performing Test LLVM_LINKER_SUPPORTS_B_SYMBOLIC_FUNCTIONS
-- Performing Test LLVM_LINKER_SUPPORTS_B_SYMBOLIC_FUNCTIONS - Success
-- Found Python3: /usr/bin/python3 (found version "3.13.5") found components: Interpreter
-- libclc target 'amdgcn--' is enabled
-- device: tahiti ( pitcairn;verde;oland;hainan;bonaire;kabini;kaveri;hawaii;mullins;tonga;tongapro;iceland;carrizo;fiji;stoney;polaris10;polaris11;gfx602;gfx705;gfx805;gfx900;gfx902;gfx904;gfx906;gfx908;gfx909;gfx90a;gfx90c;gfx942;gfx950;gfx1010;gfx1011;gfx1012;gfx1013;gfx1030;gfx1031;gfx1032;gfx1033;gfx1034;gfx1035;gfx1036;gfx1100;gfx1101;gfx1102;gfx1103;gfx1150;gfx1151;gfx1152;gfx1153;gfx1200;gfx1201 )
-- libclc target 'amdgcn--amdhsa' is enabled
-- device: none ( )
-- libclc target 'amdgcn-mesa-mesa3d' is enabled
-- device: tahiti ( pitcairn;verde;oland;hainan;bonaire;kabini;kaveri;hawaii;mullins;tonga;tongapro;iceland;carrizo;fiji;stoney;polaris10;polaris11;gfx602;gfx705;gfx805;gfx900;gfx902;gfx904;gfx906;gfx908;gfx909;gfx90a;gfx90c;gfx942;gfx950;gfx1010;gfx1011;gfx1012;gfx1013;gfx1030;gfx1031;gfx1032;gfx1033;gfx1034;gfx1035;gfx1036;gfx1100;gfx1101;gfx1102;gfx1103;gfx1150;gfx1151;gfx1152;gfx1153;gfx1200;gfx1201 )
-- libclc target 'nvptx--' is enabled
-- device: none ( )
-- libclc target 'nvptx--nvidiacl' is enabled
-- device: none ( )
-- libclc target 'nvptx64--' is enabled
-- device: none ( )
-- libclc target 'nvptx64--nvidiacl' is enabled
-- device: none ( )
-- libclc target 'r600--' is enabled
-- device: cedar ( palm;sumo;sumo2;redwood;juniper )
-- device: cypress ( hemlock )
-- device: barts ( turks;caicos )
-- device: cayman ( aruba )
-- Configuring done (2.7s)
-- Generating done (3.7s)
-- Build files have been written to: /build/source/libclc/build