You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 16, 2024. It is now read-only.
Repository navigation
This repository was archived by the owner on Dec 16, 2024. It is now read-only.
servo-linux-cross2 is having trouble building arm64 #683
--- stderr
configure: error: in `/home/servo/buildbot/slave/arm64/build/target/release/build/backtrace-sys-204dc57c91e9a514/out':
configure: error: C compiler cannot create executables
See `config.log' for more details.
thread 'main' panicked at 'failed with: exit code: 77', /home/servo/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-sys-0.1.11/build.rs:136
Both arm32 and arm64 failed both times, and across all of servo-linux-cross1, servo-linux-cross2, and servo-linux-cross3. I wish I could get ahold of the config.log files that were generated for those builds :(
Apparently when the build succeeds, the command executed is this instead:
configure:2977: checking for C compiler default output file name
configure:2999: aarch64-linux-gnu-gcc -O3 -ffunction-sections -fdata-sections -fPIC conftest.c >&5
Specifically, the -m64 is missing. The failing log was retried from /home/servo/buildbot/slave/arm64/build/target/release/build/backtrace-sys-ef6211128d6f7e04/out/config.log, while the successful log was at /home/servo/buildbot/slave/arm64/build/target/aarch64-unknown-linux-gnu/release/build/backtrace-sys-87e91972833634cb/out/config.log. Note how one is build/target/release/build, while the other is build/target/aarch64-unknown-linux-gnu/release/build.
Well, either it's an unexpected target, or it's expected but cc-rs is finding the wrong compiler for it (perhaps we're setting CC somehow before the backtrace-rs build script is invoked?).
. That's why we see an issue when Cargo builds backtrace with a non-cross target. The mystery remains as to why that's happening - any suggestions for how to figure that out @alexchrichton?
Oh, I know why this is hitting us on servo/servo#18821 - the new version of metadeps uses error-chain 0.10, which depends on backtrace. dbus and x11-rs both have a build dependency on metadeps, which means that we now compile backtrace for the host system, leading to the situation where we end up selecting the wrong compiler.
Activity
jdm commentedon Oct 10, 2017
Haven't seen this for a long time.
jdm commentedon Oct 11, 2017
Saw this again on servo-linux-cross1 today in servo/servo#18821.
SimonSapin commentedon Oct 11, 2017
This happened for both arm32 and arm64 in servo/servo#18821, both times on servo-linux-cross1.
jdm commentedon Oct 11, 2017
Both arm32 and arm64 failed both times, and across all of servo-linux-cross1, servo-linux-cross2, and servo-linux-cross3. I wish I could get ahold of the config.log files that were generated for those builds :(
jdm commentedon Oct 11, 2017
jdm commentedon Oct 11, 2017
The argument in question comes from https://github.com/alexcrichton/cc-rs/blob/a84c5ee84e1a18091dd8c46b45912567fde9dbda/src/lib.rs#L614-L619 but I'm still confused how this sometimes works and sometimes does not.
jdm commentedon Oct 11, 2017
Apparently when the build succeeds, the command executed is this instead:
Specifically, the -m64 is missing. The failing log was retried from
/home/servo/buildbot/slave/arm64/build/target/release/build/backtrace-sys-ef6211128d6f7e04/out/config.log, while the successful log was at/home/servo/buildbot/slave/arm64/build/target/aarch64-unknown-linux-gnu/release/build/backtrace-sys-87e91972833634cb/out/config.log. Note how one isbuild/target/release/build, while the other isbuild/target/aarch64-unknown-linux-gnu/release/build.jdm commentedon Oct 11, 2017
Accordingly, the two configure scripts are invoked slightly differently:
Failed:
/home/servo/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-sys-0.1.11/src/libbacktrace/configure --with-pic --disable-multilib --disable-shared --disable-host-shared --host=x86_64-unknown-linux-gnu --build=x86_64-unknown-linux-gnu
Successful:
/home/servo/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-sys-0.1.11/src/libbacktrace/configure --with-pic --disable-multilib --disable-shared --disable-host-shared --host=aarch64-unknown-linux-gnu --build=x86_64-unknown-linux-gnu
jdm commentedon Oct 11, 2017
Cargo is definitely building backtrace-sys with an unexpected target, according to this output:
SimonSapin commentedon Oct 11, 2017
CC @alexcrichton, in case you’ve seen this before or have some idea what’s going on.
jdm commentedon Oct 11, 2017
Well, either it's an unexpected target, or it's expected but cc-rs is finding the wrong compiler for it (perhaps we're setting CC somehow before the backtrace-rs build script is invoked?).
jdm commentedon Oct 11, 2017
Ok, so the compiler is being set to the cross binary by the build environment in
saltfs/buildbot/master/files/config/environments.py
Lines 113 to 144 in df07d3a
jdm commentedon Oct 11, 2017
Oh, I know why this is hitting us on servo/servo#18821 - the new version of metadeps uses error-chain 0.10, which depends on backtrace. dbus and x11-rs both have a build dependency on metadeps, which means that we now compile backtrace for the host system, leading to the situation where we end up selecting the wrong compiler.
alexcrichton commentedon Oct 11, 2017
Interesting! Perhaps this is a case where the env var should be
CC_arm-linux-gnueabihf-gccinstead of justCC?jdm commentedon Oct 11, 2017
That sounds like a good solution; thanks!
Auto merge of #732 - servo:jdm-patch-13, r=SimonSapin