pkgsrc-Users archive

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

Re: Building rust on netbsd-9/i386



On Wed, 2 Oct 2019 at 00:03, nia <nia%netbsd.org@localhost> wrote:
> > On 26/09/2019 23:02, David Brownlee wrote:
> > > I'm trying to build rust (for firefox) on netbsd-9/i386
> > >
> > > but then later I hit rust-bootstrap/bin/rustc failing with "Shared
> > > object \"libLLVM-7.so\" not found" (full error below).
> > >
> >
> > Seeing the exact same thing with 8.1_STABLE i386. The amd64 bootstrap rust
> > doesn't have this issue. Is there someway that the bootstrap rust
> > environment can be regenerated locally rather than relying on the download?
>
> Does pulling in lang/libLLVM instead of lang/llvm help?

Sorry, took a little while to test. Issue seems to be unchanged with
NetBSD-9/i386 (change builds fine on NetBSD-9/amd64)

Diff was just:
-.include "../../lang/llvm/buildlink3.mk"
+.include "../../lang/libLLVM/buildlink3.mk"

Still fails with:


running: /var/obj/pkg/lang/rust/work/rust-bootstrap/bin/cargo build
--manifest-path
/var/obj/pkg/lang/rust/work/rustc-1.38.0-src/src/bootstrap/Cargo.toml
--frozen
error: process didn't exit successfully:
`/var/obj/pkg/lang/rust/work/rust-bootstrap/bin/rustc -vV` (exit code:
1)
--- stdout
rustc 1.37.0
binary: rustc
commit-hash: unknown
commit-date: unknown
host: i686-unknown-netbsd
release: 1.37.0

--- stderr
error: couldn't load codegen backend
"/var/obj/pkg/lang/rust/work/rust-bootstrap/lib/rustlib/i686-unknown-netbsd/codegen-backends/librustc_codegen_llvm-llvm.so":
"/var/obj/pkg/lang/rust/work/rust-bootstrap/lib/rustlib/i686-unknown-netbsd/codegen-backends/librustc_codegen_llvm-llvm.so:
Shared object \"libLLVM-7.so\" not found"


Interestingly forcing .buildlink/lib/libLLVM into LD_LIBRARY path
switches the failure to:


running: /var/obj/pkg/lang/rust/work/rust-bootstrap/bin/cargo build
--manifest-path
/var/obj/pkg/lang/rust/work/rustc-1.38.0-src/src/bootstrap/Cargo.toml
--frozen
error: process didn't exit successfully:
`/var/obj/pkg/lang/rust/work/rust-bootstrap/bin/rustc -vV` (exit code:
1)
--- stdout
rustc 1.37.0
binary: rustc
commit-hash: unknown
commit-date: unknown
host: i686-unknown-netbsd
release: 1.37.0

--- stderr
error: couldn't load codegen backend
"/var/obj/pkg/lang/rust/work/rust-bootstrap/lib/rustlib/i686-unknown-netbsd/codegen-backends/librustc_codegen_llvm-llvm.so":
"/var/obj/pkg/lang/rust/work/rust-bootstrap/lib/rustlib/i686-unknown-netbsd/codegen-backends/librustc_codegen_llvm-llvm.so:
Undefined symbol
\"_ZNK4llvm10ModulePass17createPrinterPassERNS_11raw_ostreamERKSs\"
(symnum = 802)"


So... something building against a mismatched compiler?

David


Home | Main Index | Thread Index | Old Index