<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/127378>127378</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
libclc: `error: 'clspv-generate_convert.cl', needed by 'obj.libclc.dir/cayman-r600--/convert.cl.bc', missing and no known rule to make it
</td>
</tr>
<tr>
<th>Labels</th>
<td>
build-problem,
libclc
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
sylvestre
</td>
</tr>
</table>
<pre>
On trunk - Linux Ubuntu Oracular or Debian bullseye (and other versions):
```
cd libclc/build && \
/tmp/cmake/bin/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 -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-command-line-argument -Wdate-time -D_FORTIFY_SOURCE=2" \
-DCMAKE_CXX_FLAGS="-O2 -DNDEBUG -g1 -fstack-protector-strong -Wformat -Werror=format-security -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 6 -v
-- The CXX compiler identification is Clang 21.0.0
-- The C compiler identification is Clang 21.0.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/s390x-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/s390x-linux-gnu/libz.so (found version "1.2.11")
-- Found zstd: /usr/lib/s390x-linux-gnu/libzstd.so
-- Found LibXml2: /usr/lib/s390x-linux-gnu/libxml2.so (found version "2.9.10")
-- Linker detection: GNU ld
-- libclc LLVM version: 21.0.0
-- Found Python3: /usr/bin/python3.9 (found version "3.9.2") 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;gfx940;gfx941;gfx942;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;gfx940;gfx941;gfx942;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
-- Generating done
-- Build files have been written to: /build/source/libclc/build
ninja: error: 'clspv-generate_convert.cl', needed by 'obj.libclc.dir/cayman-r600--/convert.cl.bc', missing and no known rule to make it
```
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJzsWFtv27gS_jX0y0CCRPkSP_jB19RYNSmcZJs9LwYljW3GFGmQlJv01x9QN9vbpk3P5gB9WCCIR-THby4ckkMyY_hWIo5Ib0J6sw4r7E7pkXkRRzRWYydR2cvoVoLVhdyDBzGXxTM8JIW0BdxqlhaCaVAaZphwJiEphDD4gkDoFZMZKLtDDUfUhitpCB2SaEyC8q8f1H_lZ5qB4EkqUkIXScFFBoT2Ce0D6U0dgi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