-
Notifications
You must be signed in to change notification settings - Fork 13.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
x.py build --stage 1 src/rustc --host=$HOST cross compiles rustc two times #38039
Comments
Also it seems the wrong
|
Hm ok some of this is expected, some of this isn't expected. I can't seem to quite make sense of your original logs, though. Are you sure that |
@alexcrichton repro as a shell script # Ubuntu 16.04
# SRC_DIR is the rust-lang/rust source
main() {
ARCH=armel
BUILD=x86_64-unknown-linux-gnu
HOST=arm-unknown-linux-gnueabi
PREFIX=arm-linux-gnueabi
sudo apt-get install -y --no-install-recommends \
g++-$PREFIX libc6-dev-$ARCH-cross
$SRC_DIR/configure \
--enable-ccache \
--enable-ninja \
--enable-rustbuild \
--host=$HOST
# work around rust-lang/rust#38037
nice $SRC_DIR/x.py build --stage 1 src/llvm --host=$BUILD
# STDOUT
# Building LLVM for x86_64-unknown-linux-gnu
nice $SRC_DIR/x.py build --stage 1 src/rustc --host=$HOST
# STDOUT
# Building stage0 std artifacts (x86_64-unknown-linux-gnu -> arm-unknown-linux-gnueabi)
# Building stage0 test artifacts (x86_64-unknown-linux-gnu -> arm-unknown-linux-gnueabi)
# Building LLVM for arm-unknown-linux-gnueabi
# Building stage0 compiler artifacts (x86_64-unknown-linux-gnu -> arm-unknown-linux-gnueabi)
# Building stage0 std artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
# Building stage0 test artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
# Building stage0 compiler artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
# Building stage1 std artifacts (x86_64-unknown-linux-gnu -> arm-unknown-linux-gnueabi)
# Building stage1 test artifacts (x86_64-unknown-linux-gnu -> arm-unknown-linux-gnueabi)
# Building stage1 compiler artifacts (x86_64-unknown-linux-gnu -> arm-unknown-linux-gnueabi)
}
main Meta
|
The `src/rustc` path is intended for assembling a compiler (e.g. the bare bones) not actually compiling the whole compiler itself. This path was accidentally getting hijacked to represent the whole compiler being compiled, so let's redirect that elsewhere for that particular cargo project. Closes rust-lang#38039
rustbuild: Use src/rustc for assembled compilers The `src/rustc` path is intended for assembling a compiler (e.g. the bare bones) not actually compiling the whole compiler itself. This path was accidentally getting hijacked to represent the whole compiler being compiled, so let's redirect that elsewhere for that particular cargo project. Closes #38039
(In this example
BUILD = x86_64-unknown-linux-gnu
andHOST=arm-unknown-linux-gnueabi
)This part:
seems unnecessary as that compiler won't be used in the bootstrap (in fact, it can be executed by the build machine due to the differences in architectures) and it's not the requested rustc either.
cc @alexcrichton
The text was updated successfully, but these errors were encountered: