| Issue |
171300
|
| Summary |
Failure to build Libclc 21.1.5 - /usr: Is a directory
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
Fulgurance
|
Hi guys, I am working from over 4 years on a new package manager for Linux. I am making my own Linux distribution.
Today when my package manager tried to compile Libclc 21.1.5 from source, I got this strange error:
```
FAILED: [code=126] spirv64-mesa3d-.spv /sources/BaseLibraries-Main/Libclc/21.1.5/Sources/mainBuild/spirv64-mesa3d-.spv
cd /sources/BaseLibraries-Main/Libclc/21.1.5/Sources/mainBuild && /usr --spirv-max-version=1.1 -o spirv64-mesa3d-.spv /sources/BaseLibraries-Main/Libclc/21.1.5/Sources/mainBuild/builtins.link.spirv64-mesa3d-.bc
/bin/sh: line 1: /usr: Is a directory
```
Please notice too I got these warnings:
```
[1899/1908] Generating builtins.opt.nvptx64--nvidiacl.bc
/usr/lib64/llvm/21/bin/opt: WARNING: failed to create target machine for 'nvptx64-unknown-nvidiacl': unable to get target for 'nvptx64-unknown-nvidiacl', see --version and --triple.
[1900/1908] Generating builtins.opt.nvptx64--.bc
/usr/lib64/llvm/21/bin/opt: WARNING: failed to create target machine for 'nvptx64-unknown-unknown': unable to get target for 'nvptx64-unknown-unknown', see --version and --triple.
[1901/1908] Generating builtins.opt.nvptx--nvidiacl.bc
/usr/lib64/llvm/21/bin/opt: WARNING: failed to create target machine for 'nvptx-unknown-nvidiacl': unable to get target for 'nvptx-unknown-nvidiacl', see --version and --triple.
[1902/1908] Generating builtins.opt.nvptx--.bc
/usr/lib64/llvm/21/bin/opt: WARNING: failed to create target machine for 'nvptx-unknown-unknown': unable to get target for 'nvptx-unknown-unknown', see --version and --triple.
ninja: build stopped: subcommand failed.
```
**This is the full log:** https://textup.fr/886754Hf
### **This is the commands my package manager used to build Libclc:**
```
LVM_DIR=/usr/lib/llvm/21 cmake -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DLLVM_SPIRV=/usr \
-DLIBCLC_TARGETS_TO_BUILD="nvptx--;nvptx64--;nvptx--nvidiacl;nvptx64--nvidiacl;spirv-mesa3d-;spirv64-mesa3d-" \
-G Ninja ..
ninja
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs