Issue 97832
Summary Error building with a sysroot, i.e. -DCMAKE_SYSROOT=
Labels new issue
Assignees
Reporter yowl
    Hi,

When building LLVM with `--target LLVMCore LLVMBitWriter` and `-DCMAKE_SYSROOT=/crossrootfs/x64`  the build will create `llvm-min-tblgen` but when attempting to run `llvm-min-tblgen` as it is not in the sysroot, it will fail to find the shared libraries and an error :

```
[ 80%] Built target llvm-min-tblgen
[ 80%] Building RISCVTargetParserDef.inc...
../../../bin/llvm-min-tblgen: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
include/llvm/TargetParser/CMakeFiles/RISCVTargetParserTableGen.dir/build.make:118: recipe for target 'include/llvm/TargetParser/RISCVTargetParserDef.inc' failed
make[3]: *** [include/llvm/TargetParser/RISCVTargetParserDef.inc] Error 127
CMakeFiles/Makefile2:11713: recipe for target 'include/llvm/TargetParser/CMakeFiles/RISCVTargetParserTableGen.dir/all' failed
make[2]: *** [include/llvm/TargetParser/CMakeFiles/RISCVTargetParserTableGen.dir/all] Error 2
CMakeFiles/Makefile2:11856: recipe for target 'lib/IR/CMakeFiles/LLVMCore.dir/rule' failed
make[1]: *** [lib/IR/CMakeFiles/LLVMCore.dir/rule] Error 2
Makefile:774: recipe for target 'LLVMCore' failed
```

Is this a supported scenario, or have I got something wrong?
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to