pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Problem when building lang/rust on NetBSD

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:

    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/ 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/ 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

    bmake[1]: stopped in /disk/spare/pkgsrc-rust-compile-test/pkgsrc/lang/rust
    *** Error code 1

    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

Any help?

I can attach CMakeOutput.log and CMakeError.log if you want.



Attachment: signature.asc
Description: PGP signature

Home | Main Index | Thread Index | Old Index