When trying to build lang/rust on NetBSD (using pkgsrc-current --
2017-02-19) I got this error:
CMake Error at cmake/Modules/AddCompilerRT.cmake:1 (include):
include could not find load file:
AddLLVM
Call Stack (most recent call first):
lib/CMakeLists.txt:4 (include)
/disk/spare/pkgsrc-rust-compile-test/pkgsrc/lang/rust/work/rustc-1.11.0/mk/rustllvm.mk:62: recipe for target 'x86_64-unknown-netbsd/rustllvm/PassWrapper.o' failed
gmake: *** [x86_64-unknown-netbsd/rustllvm/PassWrapper.o] Error 1
-- Configuring incomplete, errors occurred!
See also "/disk/spare/pkgsrc-rust-compile-test/pkgsrc/lang/rust/work/rustc-1.11.0/x86_64-unknown-netbsd/rt/compiler-rt/CMakeFiles/CMakeOutput.log".
See also "/disk/spare/pkgsrc-rust-compile-test/pkgsrc/lang/rust/work/rustc-1.11.0/x86_64-unknown-netbsd/rt/compiler-rt/CMakeFiles/CMakeError.log".
/disk/spare/pkgsrc-rust-compile-test/pkgsrc/lang/rust/work/rustc-1.11.0/mk/rt.mk:475: recipe for target 'x86_64-unknown-netbsd/rt/libcompiler-rt.a' failed
gmake: *** [x86_64-unknown-netbsd/rt/libcompiler-rt.a] Error 1
*** Error code 2
Stop.
bmake[1]: stopped in /disk/spare/pkgsrc-rust-compile-test/pkgsrc/lang/rust
*** Error code 1
Stop.
bmake: stopped in /disk/spare/pkgsrc-rust-compile-test/pkgsrc/lang/rust
I'm using a bootstraped and unprivileged pkgsrc tree but the same
happens in a vanilla pkgsrc installation.
I don't know exactly how cmake works so what I tryied was to add the
absolute path to where AddLLVM.cmake stands in
rusc-1.11.0/src/compiler-rt/CMakeLists.txt, but other strange errors
ocurred.
Any help?
I can attach CMakeOutput.log and CMakeError.log if you want.
Thanks!
--
Silas
Attachment:
signature.asc
Description: PGP signature