Port-arm archive

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

Re: aarch64 rust install fails



On Mon, Oct 21, 2019 at 03:21:11PM -0400, Ronald Georgia wrote:
> All,
> I am trying to install Rust on my Pinebook pro. Using pkgsrc 2019_Q2.

Oh, they've finally shipped?

> Here is the error message.
> 
> error: process didn't exit successfully:
> `/usr/pkgsrc/lang/rust/work.aarch64/rust-bootstrap/bin/rustc -vV`
> (exit code: 1)
> --- stdout
> rustc 1.35.0
> binary: rustc
> commit-hash: unknown
> commit-date: unknown
> host: aarch64-unknown-netbsd
> release: 1.35.0
> 
> --- stderr
> error: couldn't load codegen backend
> "/usr/pkgsrc/lang/rust/work.aarch64/rust-bootstrap/lib/rustlib/aarch64-unknown-netbsd/codegen-backends/librustc_codegen_llvm-llvm.so":
> "/usr/pkgsrc/lang/rust/work.aarch64/rust-bootstrap/lib/rustlib/aarch64-unknown-netbsd/codegen-backends/librustc_codegen_llvm-llvm.so:
> Shared object \"libstdc++.so.8\" not found"

Yeah, it looks for /usr/lib/libstdc++.so.8, but what you have, since you
are running NetBSD 8.99 is /usr/lib/libstdc++.so.9, so that explains this.

Dirty hack, since the two versions of the libs should be close enough,
is to symlink the non-existing one to the existing one and nuke that hack
once you're done building rust. Worked for me on the Pinebook.

Kind regards,
            Alex.
-- 
"Opportunity is missed by most people because it is dressed in overalls and
 looks like work."                                      -- Thomas A. Edison


Home | Main Index | Thread Index | Old Index