pkgsrc-Users archive

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

Re: Multiple Rust build failures on 8.x and 9.x



> NetBSD 8 i386:
...
> running: /comp/obj/pkgsrc/lang/rust/work/rust-bootstrap/bin/cargo
> build --manifest-path
> /comp/obj/pkgsrc/lang/rust/work/rustc-1.41.0-src/src/bootstrap/Cargo.toml
> --frozen
> Shared object "libssl.so.14" not found
>
> NetBSD 8 has libssl.so.12 in /usr/lib and libssl.so.1.1 in
> /usr/pkg/lib.

Hm, yes, I made the mistake of building the bootstrap on NetBSD
9.0_RC1.  I'll see if I can update the bootstrap to one built on
8.0.

> NetBSD 8 amd64:
> error: linking with `cc` failed: exit code: 1
...
>   = note: ld: cannot find -lLLVM-9
>
> There is an LLVM-9.so but if I'm reading that command line right its
> specified static linking with -Bstatic and there is no libLLVM-9.a
> provided by the llvm package.

As has been mentioned later here, this appears to be an instance of

  https://github.com/rust-lang/rust/issues/68714

and a workaround could be to add

# XXX: fix for Rust 1.41.0 https://github.com/rust-lang/rust/issues/68714
MAKE_ENV+=	LIBRARY_PATH=${BUILDLINK_PREFIX.llvm}/lib

as Adam wrote just now.

> NetBSD 9 i386 fails with:
>
> /comp/obj/pkgsrc/lang/rust/work/rustc-1.41.0-src/build/i686-unknown-netbsd/stage1-rustc/release/deps/librustc_macros-c73e0427f4d03811.so:
> text relocations
> error:
> /comp/obj/pkgsrc/lang/rust/work/rustc-1.41.0-src/build/i686-unknown-netbsd/stage1-rustc/release/deps/librustc_macros-c73e0427f4d03811.so:
> Cannot write-enable text segment: Permission denied

This is apparenty also seen by others, and reported in

  https://github.com/rust-lang/rust/issues/68794

which is now closed.  There's apparently some hope it'll be
included in rust 1.42.  I don't know how to pull the fix from
what's referred to from that issue, though, as it appears just to
refer to other git repositories, and I don't think there's a
"fetch code from other git repos" stage in the rust build we
do...

Regards,

- Håvard


Home | Main Index | Thread Index | Old Index