pkgsrc-Users archive

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

Re: rust-1.47.0 not building on sparc64

> i have installed my system new with NetBSD9.1 on sparc64, using
> pkgsrc-2020Q4.
> I seem to be unable to build rust-1.47.0 from pkgsrc-2020Q4.
> Any idea if i should i rather upgrade or downgrade rust to get my system
> running?

> CWRAPPERS_CONFIG_DIR=/usr/pkgsrc/lang/rust/work/.cwrapper/config  sh -c "if
> [ \"build\" = \"dist\" ]; then  unset DESTDIR;  fi;  /usr/pkg/bin/python3.8
> ./ -v build -j 1"
> running: /usr/pkgsrc/lang/rust/work/rust-bootstrap/bin/cargo build
> --manifest-path
> /usr/pkgsrc/lang/rust/work/rustc-1.47.0-src/src/bootstrap/Cargo.toml
> --frozen
> Traceback (most recent call last):
>   File "./", line 11, in <module>
>     bootstrap.main()
>   File
> "/usr/pkgsrc/lang/rust/work/rustc-1.47.0-src/src/bootstrap/",

It almost looks as if stderr isn't part of this output?  Or?

Can you ldd the work/rust-bootstrap/bin/cargo executable?

I just started a native build on 9.99.75 on a sparc64 system we
have, and that started just fine:

running: /work/pkgbuild/lang/rust/work/rust-bootstrap/bin/cargo build --manifest-path /work/pkgbuild/lang/rust/work/rustc-1.47.0-src/src/bootstrap/Cargo.toml --frozen
   Compiling proc-macro2 v1.0.19
   Compiling unicode-xid v0.2.1
   Compiling memchr v2.3.3
   Compiling syn v1.0.38
   Compiling serde_derive v1.0.115

Admittedly, this system has been upgraded from 8.0 or earlier

Did you get the compat80 package installed?

Do you have openssl from pkgsrc installed?

Otherwise, the advice form Greg is also worth it -- try with a
fully up-to-date lang/rust and try to build 1.48.0 and see if
that works any better, as the bootstrap compiler for 1.47.0
should have fewer run-time dependencies than the 1.46.0 bootstrap
you're using when building 1.47.0.


- Håvard

Home | Main Index | Thread Index | Old Index