Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 748849 - www-client/firefox: the `x86_64-gentoo-linux-musl` target may not be installed
Summary: www-client/firefox: the `x86_64-gentoo-linux-musl` target may not be installed
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-14 07:49 UTC by 12101111
Modified: 2020-10-15 10:39 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description 12101111 2020-10-14 07:49:45 UTC
dev-lang/rust-1.47.0 add gentoo vendor target but don't build std for those target.
The default target in rust is still x86_64-unknown-linux-musl.

$ rustc --print target-libdir
/usr/lib/rust/1.47.0/lib/rustlib/x86_64-unknown-linux-musl/lib

And x86_64-gentoo-linux-musl is in target list of rust:

rustc --print target-list | grep musl
aarch64-gentoo-linux-musl
aarch64-unknown-linux-musl
arm-unknown-linux-musleabi
arm-unknown-linux-musleabihf
armv5te-unknown-linux-musleabi
armv7-gentoo-linux-musleabihf
armv7-unknown-linux-musleabi
armv7-unknown-linux-musleabihf
hexagon-unknown-linux-musl
i586-unknown-linux-musl
i686-gentoo-linux-musl
i686-unknown-linux-musl
mips-unknown-linux-musl
mips64-unknown-linux-muslabi64
mips64el-unknown-linux-muslabi64
mipsel-unknown-linux-musl
powerpc-gentoo-linux-musl
powerpc-unknown-linux-musl
powerpc64-gentoo-linux-musl
powerpc64-unknown-linux-musl
powerpc64le-gentoo-linux-musl
powerpc64le-unknown-linux-musl
thumbv7neon-unknown-linux-musleabihf
x86_64-gentoo-linux-musl
x86_64-unknown-linux-musl

In firefox's rust.configure, x86_64-gentoo-linux-musl is chosen as the build target (base on CHOST), and failed because there is no std for this target.

We should disable those gentoo vendor target until https://bugs.gentoo.org/747760 is useable or patch rust.configure to choose x86_64-unknown-linux-musl

Reproducible: Always

Actual Results:  
 0:14.23 checking for rustc... /usr/bin/rustc
 0:14.23 checking for cargo... /usr/bin/cargo
 0:14.32 checking rustc version... 1.47.0-nightly
 0:14.32 checking cargo version... 1.47.0
 0:14.46 checking for rust target triplet...
 0:14.46 DEBUG: Creating `/tmp/portage/www-client/firefox-81.0.2/temp/conftest6hcd0hy_.rs` with content:
 0:14.46 DEBUG: | pub extern fn hello() { println!("Hello world"); }
 0:14.46 DEBUG: Executing: `/usr/bin/rustc --crate-type staticlib --target=x86_64-gentoo-linux-musl -o /tmp/portage/www-client/firefox-81.0.2/temp/conftest99l1dfs8.rlib /tmp/portage/www-client/firefox-81.0.2/temp/conftest6hcd0hy_.rs`
 0:14.46 DEBUG: The command returned non-zero exit status 1.
 0:14.46 DEBUG: Its error output was:
 0:14.46 DEBUG: | error[E0463]: can't find crate for `std`
 0:14.46 DEBUG: |   |
 0:14.46 DEBUG: |   = note: the `x86_64-gentoo-linux-musl` target may not be installed
 0:14.46 DEBUG: |
 0:14.46 DEBUG: | error: aborting due to previous error
 0:14.46 DEBUG: |
 0:14.46 DEBUG: | For more information about this error, try `rustc --explain E0463`.
 0:14.46 ERROR: Cannot compile for x86_64-gentoo-linux-musl with /usr/bin/rustc
 0:14.46 The target may be unsupported, or you may not have
 0:14.46 a rust std library for that target installed. Try:
 0:14.46
 0:14.46   rustup target add x86_64-gentoo-linux-musl
 0:14.46
 0:14.51 *** Fix above errors and then restart with\
 0:14.51                "./mach build"
 0:14.51 gmake: *** [client.mk:115: configure] Error 1
Comment 1 Georgy Yakovlev gentoo-dev 2020-10-15 10:37:34 UTC
yes, it's work in progress and not a mistake.
I've added them so rust knows the target definitions.

bootstrap from -unknown- to -gentoo- still does not work, even with json target specification and I will tackle it as I have more time, probably by providing bootstrap tarballs.
Comment 2 Georgy Yakovlev gentoo-dev 2020-10-15 10:39:24 UTC
and since firefox does not work with ::gentoo rust on musl, just use ::smaeul for now, as usual. it has real gentoo target with std.
so nothing really changed. but work in progress on that.