Closed stefson closed 7 years ago
The target given to rustc is --target=x86_64-unknown-linux-gnu
when it should be --target=x86_64-unknown-linux-musl
. Looks like an issue with firefox's build system.
It is very likely build/moz.configure/rust.configure which is responsible for this. I'll keep you posted on this.
Indeed, at the moment the build system does only support tests to find a glibc based rust. I'll open a bug on the gentoo bugzilla and talk with the devs over there how to fix this. Basically it is a trivial one liner patch, but while this enables musl it would break glibc based builds.
Can you please try to get your efforts regarding rust to be merged into the gentoo tree?
Forgot to close this, the gentoo bug is here if someone wants to know more: https://bugs.gentoo.org/show_bug.cgi?id=627676
build log: build.log.zip
I managed to build rust and cargo from your overlay, with useflags as following
Calculating dependencies... done! [ebuild R ~] dev-lang/rust-1.19.0:stable/1.19::smaeul USE="-system-llvm -debug -doc -jemalloc" 0 KiB
Rustc is able to compile rust code, I tested a simple hello world with success.