Skip to content
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

[WIP] run-make-support: Calculate artifact names for target platform, not host platform #139242

Draft
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

jieyouxu
Copy link
Member

@jieyouxu jieyouxu commented Apr 2, 2025

Caution

Stacked on top of #139469.

This was implemented incorrectly during the porting process, where we relied on std consts. However, run-make-support is a host-only library, which meant that these artifact names were for the host and not the target.

Helps with #138066.

r? @Kobzol

try-job: armhf-gnu
try-job: test-various
try-job: x86_64-msvc-1
try-job: i686-msvc-1
try-job: x86_64-mingw-1
try-job: aarch64-apple
try-job: x86_64-apple-1

@rustbot rustbot added A-run-make Area: port run-make Makefiles to rmake.rs S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Apr 2, 2025
@rustbot
Copy link
Collaborator

rustbot commented Apr 2, 2025

Reminder, once the PR becomes ready for a review, use @rustbot ready.

@jieyouxu
Copy link
Member Author

jieyouxu commented Apr 2, 2025

@bors try

@jieyouxu jieyouxu added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Apr 2, 2025
bors added a commit to rust-lang-ci/rust that referenced this pull request Apr 2, 2025
…ss, r=<try>

Fix `run-make-support` artifact name calculations for target on cross-compile

This was implemented incorrectly during the porting process, where we relied on std consts. However, `run-make-support` is a host-only library, which meant that these artifact names were for the *host* and not the *target*.

Helps with rust-lang#138066.

r? `@Kobzol`

`@rustbot` author (needs try-jobs)

try-job: armhf-gnu
try-job: test-various
try-job: `*windows*`
try-job: `*apple*`
@bors
Copy link
Collaborator

bors commented Apr 2, 2025

⌛ Trying commit cc4aee9 with merge c5e1340...

@rust-log-analyzer

This comment has been minimized.

Copy link
Contributor

@Kobzol Kobzol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, yeah, this might help a lot 😆 Btw why did you put it into build_helper, when you don't reuse it in bootstrap?

@jieyouxu
Copy link
Member Author

jieyouxu commented Apr 2, 2025

Oh, yeah, this might help a lot 😆 Btw why did you put it into build_helper, when you don't reuse it in bootstrap?

Oh it was because initially I saw exe in bootstrap shared_helpers but apparently shared_helpers is special (I think it's include!'d in rustc shim or sth). I'll move that back to run-make-support only.

@jieyouxu jieyouxu force-pushed the run-make-artifact-names-cross branch from cc4aee9 to e468241 Compare April 2, 2025 08:59
@jieyouxu
Copy link
Member Author

jieyouxu commented Apr 2, 2025

@bors try

@bors
Copy link
Collaborator

bors commented Apr 2, 2025

⌛ Trying commit e468241 with merge 52149f0...

bors added a commit to rust-lang-ci/rust that referenced this pull request Apr 2, 2025
…ss, r=<try>

Fix `run-make-support` artifact name calculations for target on cross-compile

This was implemented incorrectly during the porting process, where we relied on std consts. However, `run-make-support` is a host-only library, which meant that these artifact names were for the *host* and not the *target*.

Helps with rust-lang#138066.

r? `@Kobzol`

`@rustbot` author (needs try-jobs)

try-job: armhf-gnu
try-job: test-various
try-job: `*msvc*`
try-job: `*mingw*`
try-job: `*apple*`
@rust-log-analyzer

This comment has been minimized.

@jieyouxu
Copy link
Member Author

jieyouxu commented Apr 2, 2025

@bors try

bors added a commit to rust-lang-ci/rust that referenced this pull request Apr 2, 2025
…ss, r=<try>

Fix `run-make-support` artifact name calculations for target on cross-compile

This was implemented incorrectly during the porting process, where we relied on std consts. However, `run-make-support` is a host-only library, which meant that these artifact names were for the *host* and not the *target*.

Helps with rust-lang#138066.

r? `@Kobzol`

`@rustbot` author (needs try-jobs)

try-job: armhf-gnu
try-job: test-various
try-job: x86_64-msvc-1
try-job: i686-msvc-1
try-job: x86_64-mingw-1
try-job: i686-mingw-1
try-job: aarch64-apple
try-job: x86_64-apple-1
@bors
Copy link
Collaborator

bors commented Apr 2, 2025

⌛ Trying commit e468241 with merge 03b8450...

bors added a commit to rust-lang-ci/rust that referenced this pull request Apr 2, 2025
…<try>

[WIP] [WIP] Enable automatic cross-compilation in run-make tests

WIP for the WIP rust-lang#138066.

Based on rust-lang#138066 with rust-lang#139242 + rust-lang#139239 cherry-picked in, plus `rustdoc()` cross-compile changes.

r? `@ghost`

try-job: armhf-gnu
try-job: test-various
try-job: x86_64-msvc-1
try-job: i686-msvc-1
try-job: x86_64-mingw-1
try-job: i686-mingw-1
try-job: aarch64-apple
try-job: x86_64-apple-1
@rust-log-analyzer

This comment has been minimized.

@bors
Copy link
Collaborator

bors commented Apr 2, 2025

💔 Test failed - checks-actions

@jieyouxu
Copy link
Member Author

jieyouxu commented Apr 2, 2025

2025-04-02T09:19:19.5185410Z �[1m�[32m   Compiling�[0m regex-automata v0.4.9
2025-04-02T09:19:22.3591380Z [RUSTC-TIMING] regex_automata test:false 2.828
2025-04-02T09:19:22.3809420Z rustc exited with signal: 11 (SIGSEGV)
2025-04-02T09:19:22.3848270Z �[1m�[31merror�[0m�[1m:�[0m could not compile `regex-automata` (lib)
2025-04-02T09:19:22.3850090Z 
2025-04-02T09:19:22.3856560Z Caused by:

This is not normally

@jieyouxu
Copy link
Member Author

jieyouxu commented Apr 2, 2025

@bors try

@bors
Copy link
Collaborator

bors commented Apr 2, 2025

⌛ Trying commit e468241 with merge 0ac25c2...

@jieyouxu
Copy link
Member Author

jieyouxu commented Apr 4, 2025

Ah hah, i686-mingw-1 be gone
@bors try

@bors
Copy link
Collaborator

bors commented Apr 4, 2025

⌛ Trying commit 0e57f60 with merge b05222a...

bors added a commit to rust-lang-ci/rust that referenced this pull request Apr 4, 2025
…ss, r=<try>

[WIP] run-make-support: Calculate artifact names for target platform, not host platform

This was implemented incorrectly during the porting process, where we relied on std consts. However, `run-make-support` is a host-only library, which meant that these artifact names were for the *host* and not the *target*.

Helps with rust-lang#138066.

r? `@Kobzol`

try-job: armhf-gnu
try-job: test-various
try-job: x86_64-msvc-1
try-job: i686-msvc-1
try-job: x86_64-mingw-1
try-job: aarch64-apple
try-job: x86_64-apple-1
@rust-log-analyzer

This comment has been minimized.

@bors
Copy link
Collaborator

bors commented Apr 4, 2025

💔 Test failed - checks-actions

@jieyouxu jieyouxu force-pushed the run-make-artifact-names-cross branch from 0e57f60 to 9fd69fe Compare April 7, 2025 05:52
@rustbot rustbot added A-compiletest Area: The compiletest test runner A-rustc-dev-guide Area: rustc-dev-guide A-testsuite Area: The testsuite used to check the correctness of rustc labels Apr 7, 2025
@jieyouxu
Copy link
Member Author

jieyouxu commented Apr 7, 2025

@bors try

bors added a commit to rust-lang-ci/rust that referenced this pull request Apr 7, 2025
…ss, r=<try>

[WIP] run-make-support: Calculate artifact names for target platform, not host platform

> [!CAUTION]
>
> Stacked on top of rust-lang#139469.

This was implemented incorrectly during the porting process, where we relied on std consts. However, `run-make-support` is a host-only library, which meant that these artifact names were for the *host* and not the *target*.

Helps with rust-lang#138066.

r? `@Kobzol`

try-job: armhf-gnu
try-job: test-various
try-job: x86_64-msvc-1
try-job: i686-msvc-1
try-job: x86_64-mingw-1
try-job: aarch64-apple
try-job: x86_64-apple-1
@bors
Copy link
Collaborator

bors commented Apr 7, 2025

⌛ Trying commit 9fd69fe with merge 0d1ecaf...

@rust-log-analyzer

This comment has been minimized.

@bors
Copy link
Collaborator

bors commented Apr 7, 2025

💔 Test failed - checks-actions

jieyouxu added 10 commits April 7, 2025 15:55
The `//@ needs-crate-type: $crate_types...` directive takes a
comma-separated list of crate types that the target platform must
support in order for the test to be run.
…directives

Not all existing tests are converted, I only updated ones that I can
easily find via directive comments.
This was implemented incorrectly during the porting process, where we
relied on std consts. However, `run-make-support` is a host-only
library, which meant that these artifact names were for the *host* and
not the *target*.
- Ignore nvptx that needs target std.
- Ignore targets that don't support cdylib.
@jieyouxu jieyouxu force-pushed the run-make-artifact-names-cross branch from 9fd69fe to db12c1b Compare April 7, 2025 07:55
@jieyouxu
Copy link
Member Author

jieyouxu commented Apr 7, 2025

@bors try

bors added a commit to rust-lang-ci/rust that referenced this pull request Apr 7, 2025
…ss, r=<try>

[WIP] run-make-support: Calculate artifact names for target platform, not host platform

> [!CAUTION]
>
> Stacked on top of rust-lang#139469.

This was implemented incorrectly during the porting process, where we relied on std consts. However, `run-make-support` is a host-only library, which meant that these artifact names were for the *host* and not the *target*.

Helps with rust-lang#138066.

r? `@Kobzol`

try-job: armhf-gnu
try-job: test-various
try-job: x86_64-msvc-1
try-job: i686-msvc-1
try-job: x86_64-mingw-1
try-job: aarch64-apple
try-job: x86_64-apple-1
@bors
Copy link
Collaborator

bors commented Apr 7, 2025

⌛ Trying commit db12c1b with merge cb431fd...

@rust-log-analyzer
Copy link
Collaborator

The job armhf-gnu failed! Check out the build log: (web) (plain)

Click to see the possible cause of the failure (guessed by this bot)
file:.git/config remote.origin.url=https://github.com/rust-lang-ci/rust
file:.git/config remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
file:.git/config gc.auto=0
file:.git/config http.https://github.com/.extraheader=AUTHORIZATION: basic ***
file:.git/config branch.try.remote=origin
file:.git/config branch.try.merge=refs/heads/try
file:.git/config remote.upstream.url=https://github.com/rust-lang/rust
file:.git/config remote.upstream.fetch=+refs/heads/*:refs/remotes/upstream/*
file:.git/config submodule.library/backtrace.active=true
file:.git/config submodule.library/backtrace.url=https://github.com/rust-lang/backtrace-rs.git
file:.git/config submodule.library/stdarch.active=true
---
test [run-make] tests/run-make/proc-macro-three-crates ... ok
test [run-make] tests/run-make/relro-levels ... ok
test [run-make] tests/run-make/remap-path-prefix ... ok
test [run-make] tests/run-make/remove-dir-all-race ... ok
test [run-make] tests/run-make/reproducible-build ... ignored, ignored when cross-compiling ((linker binary needs to run))
test [run-make] tests/run-make/remap-path-prefix-dwarf ... ok
test [run-make] tests/run-make/reset-codegen-1 ... ignored, ignored when cross-compiling
test [run-make] tests/run-make/repr128-dwarf ... ok
test [run-make] tests/run-make/return-non-c-like-enum ... ignored, ignored when cross-compiling
test [run-make] tests/run-make/return-non-c-like-enum-from-c ... ignored, ignored when cross-compiling
---
---- [run-make] tests/run-make/crate-name-priority stdout ----

error: rmake recipe failed to complete
status: exit status: 1
command: cd "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-make/crate-name-priority/rmake_out" && env -u RUSTFLAGS AR="arm-linux-gnueabihf-ar" BUILD_ROOT="/checkout/obj/build/x86_64-unknown-linux-gnu" CARGO="/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-tools-bin/cargo" CC="arm-linux-gnueabihf-gcc" CC_DEFAULT_FLAGS="-ffunction-sections -fdata-sections -fPIC -march=armv6 -marm -mfpu=vfp" CXX="arm-linux-gnueabihf-g++" CXX_DEFAULT_FLAGS="-ffunction-sections -fdata-sections -fPIC -march=armv6 -marm -mfpu=vfp" HOST_RUSTC_DYLIB_PATH="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib" LD_LIBRARY_PATH="/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-bootstrap-tools/x86_64-unknown-linux-gnu/release/deps:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/lib:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib" LD_LIB_PATH_ENVVAR="LD_LIBRARY_PATH" LLVM_BIN_DIR="/checkout/obj/build/x86_64-unknown-linux-gnu/ci-llvm/bin" LLVM_COMPONENTS="aarch64 aarch64asmparser aarch64codegen aarch64desc aarch64disassembler aarch64info aarch64utils aggressiveinstcombine all all-targets amdgpu amdgpuasmparser amdgpucodegen amdgpudesc amdgpudisassembler amdgpuinfo amdgputargetmca amdgpuutils analysis arm armasmparser armcodegen armdesc armdisassembler arminfo armutils asmparser asmprinter avr avrasmparser avrcodegen avrdesc avrdisassembler avrinfo binaryformat bitreader bitstreamreader bitwriter bpf bpfasmparser bpfcodegen bpfdesc bpfdisassembler bpfinfo cfguard cgdata codegen codegentypes core coroutines coverage csky cskyasmparser cskycodegen cskydesc cskydisassembler cskyinfo debuginfobtf debuginfocodeview debuginfodwarf debuginfogsym debuginfologicalview debuginfomsf debuginfopdb demangle dlltooldriver dwarflinker dwarflinkerclassic dwarflinkerparallel dwp engine executionengine extensions filecheck frontendatomic frontenddriver frontendhlsl frontendoffloading frontendopenacc frontendopenmp fuzzercli fuzzmutate globalisel hexagon hexagonasmparser hexagoncodegen hexagondesc hexagondisassembler hexagoninfo hipstdpar instcombine instrumentation interfacestub interpreter ipo irprinter irreader jitlink libdriver lineeditor linker loongarch loongarchasmparser loongarchcodegen loongarchdesc loongarchdisassembler loongarchinfo lto m68k m68kasmparser m68kcodegen m68kdesc m68kdisassembler m68kinfo mc mca mcdisassembler mcjit mcparser mips mipsasmparser mipscodegen mipsdesc mipsdisassembler mipsinfo mirparser msp430 msp430asmparser msp430codegen msp430desc msp430disassembler msp430info native nativecodegen nvptx nvptxcodegen nvptxdesc nvptxinfo objcarcopts objcopy object objectyaml option orcdebugging orcjit orcshared orctargetprocess passes powerpc powerpcasmparser powerpccodegen powerpcdesc powerpcdisassembler powerpcinfo profiledata remarks riscv riscvasmparser riscvcodegen riscvdesc riscvdisassembler riscvinfo riscvtargetmca runtimedyld sandboxir scalaropts selectiondag sparc sparcasmparser sparccodegen sparcdesc sparcdisassembler sparcinfo support symbolize systemz systemzasmparser systemzcodegen systemzdesc systemzdisassembler systemzinfo tablegen target targetparser telemetry textapi textapibinaryreader transformutils vectorize webassembly webassemblyasmparser webassemblycodegen webassemblydesc webassemblydisassembler webassemblyinfo webassemblyutils windowsdriver windowsmanifest x86 x86asmparser x86codegen x86desc x86disassembler x86info x86targetmca xray xtensa xtensaasmparser xtensacodegen xtensadesc xtensadisassembler xtensainfo" LLVM_FILECHECK="/checkout/obj/build/x86_64-unknown-linux-gnu/ci-llvm/bin/FileCheck" PYTHON="/usr/bin/python3" REMOTE_TEST_CLIENT="/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools-bin/remote-test-client" RUSTC="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" RUSTC_LINKER="arm-linux-gnueabihf-gcc" RUSTDOC="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustdoc" SOURCE_ROOT="/checkout" TARGET="arm-unknown-linux-gnueabihf" TARGET_EXE_DYLIB_PATH="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/arm-unknown-linux-gnueabihf/lib" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-make/crate-name-priority/rmake"
stdout: none
--- stderr -------------------------------
command failed at line 12
Command { cmd: LD_LIBRARY_PATH="/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-make/crate-name-priority/rmake_out:/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-bootstrap-tools/x86_64-unknown-linux-gnu/release/deps:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/lib:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-make/crate-name-priority/rmake_out" "--target=arm-unknown-linux-gnueabihf" "foo.rs", stdin_buf: None, stdin: None, stdout: None, stderr: None, drop_bomb: DropBomb { command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc", defused: true, armed_location: Location { file: "/checkout/tests/run-make/crate-name-priority/rmake.rs", line: 12, col: 5 } }, already_executed: true }
output status: `exit status: 1`
=== STDOUT ===



=== STDERR ===
error: linking with `cc` failed: exit status: 1
  |
  = note:  "cc" "/tmp/rustcuk7Lm6/symbols.o" "<2 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "<sysroot>/lib/rustlib/arm-unknown-linux-gnueabihf/lib/{libstd-*,libpanic_unwind-*,libobject-*,libmemchr-*,libaddr2line-*,libgimli-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwind-*,libcfg_if-*,liblibc-*,liballoc-*,librustc_std_workspace_core-*,libcore-*,libcompiler_builtins-*}.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-L" "/tmp/rustcuk7Lm6/raw-dylibs" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-make/crate-name-priority/rmake_out" "-L" "<sysroot>/lib/rustlib/arm-unknown-linux-gnueabihf/lib" "-o" "foo" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs"
  = note: some arguments are omitted. use `--verbose` to show all linker arguments
  = note: /usr/bin/ld: foo.foo.cba44757bc0621b9-cgu.0.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: foo.foo.cba44757bc0621b9-cgu.0.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: foo.foo.cba44757bc0621b9-cgu.0.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: foo.foo.cba44757bc0621b9-cgu.0.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: foo.foo.cba44757bc0621b9-cgu.0.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: foo.foo.cba44757bc0621b9-cgu.0.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: foo.foo.cba44757bc0621b9-cgu.0.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: foo.foo.cba44757bc0621b9-cgu.0.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: foo.foo.cba44757bc0621b9-cgu.0.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: foo.foo.cba44757bc0621b9-cgu.0.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: foo.foo.cba44757bc0621b9-cgu.0.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: foo.foo.cba44757bc0621b9-cgu.0.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: foo.foo.cba44757bc0621b9-cgu.0.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: foo.foo.cba44757bc0621b9-cgu.0.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: foo.foo.cba44757bc0621b9-cgu.0.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: foo.foo.cba44757bc0621b9-cgu.0.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: foo.foo.cba44757bc0621b9-cgu.0.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: foo.foo.cba44757bc0621b9-cgu.0.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: foo.foo.cba44757bc0621b9-cgu.0.rcgu.o: error adding symbols: file in wrong format
          collect2: error: ld returned 1 exit status
          

error: aborting due to 1 previous error
------------------------------------------


---- [run-make] tests/run-make/extra-filename-with-temp-outputs stdout ----

error: rmake recipe failed to complete
status: exit status: 1
command: cd "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-make/extra-filename-with-temp-outputs/rmake_out" && env -u RUSTFLAGS AR="arm-linux-gnueabihf-ar" BUILD_ROOT="/checkout/obj/build/x86_64-unknown-linux-gnu" CARGO="/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-tools-bin/cargo" CC="arm-linux-gnueabihf-gcc" CC_DEFAULT_FLAGS="-ffunction-sections -fdata-sections -fPIC -march=armv6 -marm -mfpu=vfp" CXX="arm-linux-gnueabihf-g++" CXX_DEFAULT_FLAGS="-ffunction-sections -fdata-sections -fPIC -march=armv6 -marm -mfpu=vfp" HOST_RUSTC_DYLIB_PATH="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib" LD_LIBRARY_PATH="/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-bootstrap-tools/x86_64-unknown-linux-gnu/release/deps:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/lib:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib" LD_LIB_PATH_ENVVAR="LD_LIBRARY_PATH" LLVM_BIN_DIR="/checkout/obj/build/x86_64-unknown-linux-gnu/ci-llvm/bin" LLVM_COMPONENTS="aarch64 aarch64asmparser aarch64codegen aarch64desc aarch64disassembler aarch64info aarch64utils aggressiveinstcombine all all-targets amdgpu amdgpuasmparser amdgpucodegen amdgpudesc amdgpudisassembler amdgpuinfo amdgputargetmca amdgpuutils analysis arm armasmparser armcodegen armdesc armdisassembler arminfo armutils asmparser asmprinter avr avrasmparser avrcodegen avrdesc avrdisassembler avrinfo binaryformat bitreader bitstreamreader bitwriter bpf bpfasmparser bpfcodegen bpfdesc bpfdisassembler bpfinfo cfguard cgdata codegen codegentypes core coroutines coverage csky cskyasmparser cskycodegen cskydesc cskydisassembler cskyinfo debuginfobtf debuginfocodeview debuginfodwarf debuginfogsym debuginfologicalview debuginfomsf debuginfopdb demangle dlltooldriver dwarflinker dwarflinkerclassic dwarflinkerparallel dwp engine executionengine extensions filecheck frontendatomic frontenddriver frontendhlsl frontendoffloading frontendopenacc frontendopenmp fuzzercli fuzzmutate globalisel hexagon hexagonasmparser hexagoncodegen hexagondesc hexagondisassembler hexagoninfo hipstdpar instcombine instrumentation interfacestub interpreter ipo irprinter irreader jitlink libdriver lineeditor linker loongarch loongarchasmparser loongarchcodegen loongarchdesc loongarchdisassembler loongarchinfo lto m68k m68kasmparser m68kcodegen m68kdesc m68kdisassembler m68kinfo mc mca mcdisassembler mcjit mcparser mips mipsasmparser mipscodegen mipsdesc mipsdisassembler mipsinfo mirparser msp430 msp430asmparser msp430codegen msp430desc msp430disassembler msp430info native nativecodegen nvptx nvptxcodegen nvptxdesc nvptxinfo objcarcopts objcopy object objectyaml option orcdebugging orcjit orcshared orctargetprocess passes powerpc powerpcasmparser powerpccodegen powerpcdesc powerpcdisassembler powerpcinfo profiledata remarks riscv riscvasmparser riscvcodegen riscvdesc riscvdisassembler riscvinfo riscvtargetmca runtimedyld sandboxir scalaropts selectiondag sparc sparcasmparser sparccodegen sparcdesc sparcdisassembler sparcinfo support symbolize systemz systemzasmparser systemzcodegen systemzdesc systemzdisassembler systemzinfo tablegen target targetparser telemetry textapi textapibinaryreader transformutils vectorize webassembly webassemblyasmparser webassemblycodegen webassemblydesc webassemblydisassembler webassemblyinfo webassemblyutils windowsdriver windowsmanifest x86 x86asmparser x86codegen x86desc x86disassembler x86info x86targetmca xray xtensa xtensaasmparser xtensacodegen xtensadesc xtensadisassembler xtensainfo" LLVM_FILECHECK="/checkout/obj/build/x86_64-unknown-linux-gnu/ci-llvm/bin/FileCheck" PYTHON="/usr/bin/python3" REMOTE_TEST_CLIENT="/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools-bin/remote-test-client" RUSTC="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" RUSTC_LINKER="arm-linux-gnueabihf-gcc" RUSTDOC="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustdoc" SOURCE_ROOT="/checkout" TARGET="arm-unknown-linux-gnueabihf" TARGET_EXE_DYLIB_PATH="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/arm-unknown-linux-gnueabihf/lib" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-make/extra-filename-with-temp-outputs/rmake"
stdout: none
--- stderr -------------------------------
command failed at line 16
Command { cmd: LD_LIBRARY_PATH="/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-make/extra-filename-with-temp-outputs/rmake_out:/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-bootstrap-tools/x86_64-unknown-linux-gnu/release/deps:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/lib:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-make/extra-filename-with-temp-outputs/rmake_out" "--target=arm-unknown-linux-gnueabihf" "-Cextra-filename=bar" "foo.rs" "-Csave-temps", stdin_buf: None, stdin: None, stdout: None, stderr: None, drop_bomb: DropBomb { command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc", defused: true, armed_location: Location { file: "/checkout/tests/run-make/extra-filename-with-temp-outputs/rmake.rs", line: 16, col: 5 } }, already_executed: true }
output status: `exit status: 1`
=== STDOUT ===



=== STDERR ===
error: linking with `cc` failed: exit status: 1
  |
  = note:  "cc" "/tmp/rustcWZ1maD/symbols.o" "<2 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "<sysroot>/lib/rustlib/arm-unknown-linux-gnueabihf/lib/{libstd-*,libpanic_unwind-*,libobject-*,libmemchr-*,libaddr2line-*,libgimli-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwind-*,libcfg_if-*,liblibc-*,liballoc-*,librustc_std_workspace_core-*,libcore-*,libcompiler_builtins-*}.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-L" "/tmp/rustcWZ1maD/raw-dylibs" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-make/extra-filename-with-temp-outputs/rmake_out" "-L" "<sysroot>/lib/rustlib/arm-unknown-linux-gnueabihf/lib" "-o" "foobar" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs"
  = note: some arguments are omitted. use `--verbose` to show all linker arguments
  = note: /usr/bin/ld: foobar.foo.cba44757bc0621b9-cgu.0.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: foobar.foo.cba44757bc0621b9-cgu.0.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: foobar.foo.cba44757bc0621b9-cgu.0.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: foobar.foo.cba44757bc0621b9-cgu.0.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: foobar.foo.cba44757bc0621b9-cgu.0.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: foobar.foo.cba44757bc0621b9-cgu.0.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: foobar.foo.cba44757bc0621b9-cgu.0.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: foobar.foo.cba44757bc0621b9-cgu.0.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: foobar.foo.cba44757bc0621b9-cgu.0.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: foobar.foo.cba44757bc0621b9-cgu.0.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: foobar.foo.cba44757bc0621b9-cgu.0.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: foobar.foo.cba44757bc0621b9-cgu.0.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: foobar.foo.cba44757bc0621b9-cgu.0.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: foobar.foo.cba44757bc0621b9-cgu.0.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: foobar.foo.cba44757bc0621b9-cgu.0.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: foobar.foo.cba44757bc0621b9-cgu.0.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: foobar.foo.cba44757bc0621b9-cgu.0.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: foobar.foo.cba44757bc0621b9-cgu.0.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: foobar.foo.cba44757bc0621b9-cgu.0.rcgu.o: error adding symbols: file in wrong format
          collect2: error: ld returned 1 exit status
          

error: aborting due to 1 previous error
------------------------------------------


---- [run-make] tests/run-make/output-type-permutations stdout ----

error: rmake recipe failed to complete
status: exit status: 1
command: cd "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-make/output-type-permutations/rmake_out" && env -u RUSTFLAGS AR="arm-linux-gnueabihf-ar" BUILD_ROOT="/checkout/obj/build/x86_64-unknown-linux-gnu" CARGO="/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-tools-bin/cargo" CC="arm-linux-gnueabihf-gcc" CC_DEFAULT_FLAGS="-ffunction-sections -fdata-sections -fPIC -march=armv6 -marm -mfpu=vfp" CXX="arm-linux-gnueabihf-g++" CXX_DEFAULT_FLAGS="-ffunction-sections -fdata-sections -fPIC -march=armv6 -marm -mfpu=vfp" HOST_RUSTC_DYLIB_PATH="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib" LD_LIBRARY_PATH="/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-bootstrap-tools/x86_64-unknown-linux-gnu/release/deps:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/lib:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib" LD_LIB_PATH_ENVVAR="LD_LIBRARY_PATH" LLVM_BIN_DIR="/checkout/obj/build/x86_64-unknown-linux-gnu/ci-llvm/bin" LLVM_COMPONENTS="aarch64 aarch64asmparser aarch64codegen aarch64desc aarch64disassembler aarch64info aarch64utils aggressiveinstcombine all all-targets amdgpu amdgpuasmparser amdgpucodegen amdgpudesc amdgpudisassembler amdgpuinfo amdgputargetmca amdgpuutils analysis arm armasmparser armcodegen armdesc armdisassembler arminfo armutils asmparser asmprinter avr avrasmparser avrcodegen avrdesc avrdisassembler avrinfo binaryformat bitreader bitstreamreader bitwriter bpf bpfasmparser bpfcodegen bpfdesc bpfdisassembler bpfinfo cfguard cgdata codegen codegentypes core coroutines coverage csky cskyasmparser cskycodegen cskydesc cskydisassembler cskyinfo debuginfobtf debuginfocodeview debuginfodwarf debuginfogsym debuginfologicalview debuginfomsf debuginfopdb demangle dlltooldriver dwarflinker dwarflinkerclassic dwarflinkerparallel dwp engine executionengine extensions filecheck frontendatomic frontenddriver frontendhlsl frontendoffloading frontendopenacc frontendopenmp fuzzercli fuzzmutate globalisel hexagon hexagonasmparser hexagoncodegen hexagondesc hexagondisassembler hexagoninfo hipstdpar instcombine instrumentation interfacestub interpreter ipo irprinter irreader jitlink libdriver lineeditor linker loongarch loongarchasmparser loongarchcodegen loongarchdesc loongarchdisassembler loongarchinfo lto m68k m68kasmparser m68kcodegen m68kdesc m68kdisassembler m68kinfo mc mca mcdisassembler mcjit mcparser mips mipsasmparser mipscodegen mipsdesc mipsdisassembler mipsinfo mirparser msp430 msp430asmparser msp430codegen msp430desc msp430disassembler msp430info native nativecodegen nvptx nvptxcodegen nvptxdesc nvptxinfo objcarcopts objcopy object objectyaml option orcdebugging orcjit orcshared orctargetprocess passes powerpc powerpcasmparser powerpccodegen powerpcdesc powerpcdisassembler powerpcinfo profiledata remarks riscv riscvasmparser riscvcodegen riscvdesc riscvdisassembler riscvinfo riscvtargetmca runtimedyld sandboxir scalaropts selectiondag sparc sparcasmparser sparccodegen sparcdesc sparcdisassembler sparcinfo support symbolize systemz systemzasmparser systemzcodegen systemzdesc systemzdisassembler systemzinfo tablegen target targetparser telemetry textapi textapibinaryreader transformutils vectorize webassembly webassemblyasmparser webassemblycodegen webassemblydesc webassemblydisassembler webassemblyinfo webassemblyutils windowsdriver windowsmanifest x86 x86asmparser x86codegen x86desc x86disassembler x86info x86targetmca xray xtensa xtensaasmparser xtensacodegen xtensadesc xtensadisassembler xtensainfo" LLVM_FILECHECK="/checkout/obj/build/x86_64-unknown-linux-gnu/ci-llvm/bin/FileCheck" PYTHON="/usr/bin/python3" REMOTE_TEST_CLIENT="/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools-bin/remote-test-client" RUSTC="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" RUSTC_LINKER="arm-linux-gnueabihf-gcc" RUSTDOC="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustdoc" SOURCE_ROOT="/checkout" TARGET="arm-unknown-linux-gnueabihf" TARGET_EXE_DYLIB_PATH="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/arm-unknown-linux-gnueabihf/lib" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-make/output-type-permutations/rmake"
stdout: none
--- stderr -------------------------------
command failed at line 94
Command { cmd: LD_LIBRARY_PATH="/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-make/output-type-permutations/rmake_out:/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-bootstrap-tools/x86_64-unknown-linux-gnu/release/deps:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/lib:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-make/output-type-permutations/rmake_out" "--target=arm-unknown-linux-gnueabihf" "foo.rs" "--out-dir" "three-crates" "--crate-type" "rlib,dylib,staticlib", stdin_buf: None, stdin: None, stdout: None, stderr: None, drop_bomb: DropBomb { command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc", defused: true, armed_location: Location { file: "/checkout/tests/run-make/output-type-permutations/rmake.rs", line: 89, col: 17 } }, already_executed: true }
output status: `exit status: 1`
=== STDOUT ===



=== STDERR ===
warning: function `main` is never used
---
  = note: `#[warn(dead_code)]` on by default

error: linking with `cc` failed: exit status: 1
  |
  = note:  "cc" "-Wl,--version-script=/tmp/rustchKCzDb/list" "-Wl,--no-undefined-version" "/tmp/rustchKCzDb/symbols.o" "<1 object files omitted>" "three-crates/bar.f1urhvtkj9kvbeq9r3zo9xfgy.rcgu.rmeta" "<1 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "<sysroot>/lib/rustlib/arm-unknown-linux-gnueabihf/lib/{libstd-*,libpanic_unwind-*,libobject-*,libmemchr-*,libaddr2line-*,libgimli-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwind-*,libcfg_if-*,liblibc-*,liballoc-*,librustc_std_workspace_core-*,libcore-*,libcompiler_builtins-*}.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-L" "/tmp/rustchKCzDb/raw-dylibs" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-make/output-type-permutations/rmake_out" "-L" "<sysroot>/lib/rustlib/arm-unknown-linux-gnueabihf/lib" "-o" "three-crates/libbar.so" "-shared" "-Wl,-soname=libbar.so" "-Wl,-z,relro,-z,now" "-nodefaultlibs"
  = note: some arguments are omitted. use `--verbose` to show all linker arguments
  = note: /usr/bin/ld: three-crates/bar.8i4dh84qou597n61hes6c7x1s.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: three-crates/bar.8i4dh84qou597n61hes6c7x1s.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: three-crates/bar.8i4dh84qou597n61hes6c7x1s.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: three-crates/bar.8i4dh84qou597n61hes6c7x1s.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: three-crates/bar.8i4dh84qou597n61hes6c7x1s.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: three-crates/bar.8i4dh84qou597n61hes6c7x1s.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: three-crates/bar.8i4dh84qou597n61hes6c7x1s.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: three-crates/bar.8i4dh84qou597n61hes6c7x1s.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: three-crates/bar.8i4dh84qou597n61hes6c7x1s.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: three-crates/bar.8i4dh84qou597n61hes6c7x1s.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: three-crates/bar.8i4dh84qou597n61hes6c7x1s.rcgu.o: error adding symbols: file in wrong format
          collect2: error: ld returned 1 exit status
          

error: aborting due to 1 previous error; 1 warning emitted
------------------------------------------


---- [run-make] tests/run-make/strip stdout ----

error: rmake recipe failed to complete
status: exit status: 1
command: cd "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-make/strip/rmake_out" && env -u RUSTFLAGS AR="arm-linux-gnueabihf-ar" BUILD_ROOT="/checkout/obj/build/x86_64-unknown-linux-gnu" CARGO="/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-tools-bin/cargo" CC="arm-linux-gnueabihf-gcc" CC_DEFAULT_FLAGS="-ffunction-sections -fdata-sections -fPIC -march=armv6 -marm -mfpu=vfp" CXX="arm-linux-gnueabihf-g++" CXX_DEFAULT_FLAGS="-ffunction-sections -fdata-sections -fPIC -march=armv6 -marm -mfpu=vfp" HOST_RUSTC_DYLIB_PATH="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib" LD_LIBRARY_PATH="/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-bootstrap-tools/x86_64-unknown-linux-gnu/release/deps:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/lib:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib" LD_LIB_PATH_ENVVAR="LD_LIBRARY_PATH" LLVM_BIN_DIR="/checkout/obj/build/x86_64-unknown-linux-gnu/ci-llvm/bin" LLVM_COMPONENTS="aarch64 aarch64asmparser aarch64codegen aarch64desc aarch64disassembler aarch64info aarch64utils aggressiveinstcombine all all-targets amdgpu amdgpuasmparser amdgpucodegen amdgpudesc amdgpudisassembler amdgpuinfo amdgputargetmca amdgpuutils analysis arm armasmparser armcodegen armdesc armdisassembler arminfo armutils asmparser asmprinter avr avrasmparser avrcodegen avrdesc avrdisassembler avrinfo binaryformat bitreader bitstreamreader bitwriter bpf bpfasmparser bpfcodegen bpfdesc bpfdisassembler bpfinfo cfguard cgdata codegen codegentypes core coroutines coverage csky cskyasmparser cskycodegen cskydesc cskydisassembler cskyinfo debuginfobtf debuginfocodeview debuginfodwarf debuginfogsym debuginfologicalview debuginfomsf debuginfopdb demangle dlltooldriver dwarflinker dwarflinkerclassic dwarflinkerparallel dwp engine executionengine extensions filecheck frontendatomic frontenddriver frontendhlsl frontendoffloading frontendopenacc frontendopenmp fuzzercli fuzzmutate globalisel hexagon hexagonasmparser hexagoncodegen hexagondesc hexagondisassembler hexagoninfo hipstdpar instcombine instrumentation interfacestub interpreter ipo irprinter irreader jitlink libdriver lineeditor linker loongarch loongarchasmparser loongarchcodegen loongarchdesc loongarchdisassembler loongarchinfo lto m68k m68kasmparser m68kcodegen m68kdesc m68kdisassembler m68kinfo mc mca mcdisassembler mcjit mcparser mips mipsasmparser mipscodegen mipsdesc mipsdisassembler mipsinfo mirparser msp430 msp430asmparser msp430codegen msp430desc msp430disassembler msp430info native nativecodegen nvptx nvptxcodegen nvptxdesc nvptxinfo objcarcopts objcopy object objectyaml option orcdebugging orcjit orcshared orctargetprocess passes powerpc powerpcasmparser powerpccodegen powerpcdesc powerpcdisassembler powerpcinfo profiledata remarks riscv riscvasmparser riscvcodegen riscvdesc riscvdisassembler riscvinfo riscvtargetmca runtimedyld sandboxir scalaropts selectiondag sparc sparcasmparser sparccodegen sparcdesc sparcdisassembler sparcinfo support symbolize systemz systemzasmparser systemzcodegen systemzdesc systemzdisassembler systemzinfo tablegen target targetparser telemetry textapi textapibinaryreader transformutils vectorize webassembly webassemblyasmparser webassemblycodegen webassemblydesc webassemblydisassembler webassemblyinfo webassemblyutils windowsdriver windowsmanifest x86 x86asmparser x86codegen x86desc x86disassembler x86info x86targetmca xray xtensa xtensaasmparser xtensacodegen xtensadesc xtensadisassembler xtensainfo" LLVM_FILECHECK="/checkout/obj/build/x86_64-unknown-linux-gnu/ci-llvm/bin/FileCheck" PYTHON="/usr/bin/python3" REMOTE_TEST_CLIENT="/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools-bin/remote-test-client" RUSTC="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" RUSTC_LINKER="arm-linux-gnueabihf-gcc" RUSTDOC="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustdoc" SOURCE_ROOT="/checkout" TARGET="arm-unknown-linux-gnueabihf" TARGET_EXE_DYLIB_PATH="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/arm-unknown-linux-gnueabihf/lib" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-make/strip/rmake"
stdout: none
--- stderr -------------------------------
command failed at line 24
Command { cmd: LD_LIBRARY_PATH="/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-make/strip/rmake_out:/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-bootstrap-tools/x86_64-unknown-linux-gnu/release/deps:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/lib:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-make/strip/rmake_out" "--target=arm-unknown-linux-gnueabihf" "hello.rs" "-Cdebuginfo=2" "-Cstrip=none", stdin_buf: None, stdin: None, stdout: None, stderr: None, drop_bomb: DropBomb { command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc", defused: true, armed_location: Location { file: "/checkout/tests/run-make/strip/rmake.rs", line: 24, col: 5 } }, already_executed: true }
output status: `exit status: 1`
=== STDOUT ===



=== STDERR ===
error: linking with `cc` failed: exit status: 1
  |
  = note:  "cc" "/tmp/rustcQNtr6r/symbols.o" "<2 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "<sysroot>/lib/rustlib/arm-unknown-linux-gnueabihf/lib/{libstd-*,libpanic_unwind-*,libobject-*,libmemchr-*,libaddr2line-*,libgimli-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwind-*,libcfg_if-*,liblibc-*,liballoc-*,librustc_std_workspace_core-*,libcore-*,libcompiler_builtins-*}.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-L" "/tmp/rustcQNtr6r/raw-dylibs" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-make/strip/rmake_out" "-L" "<sysroot>/lib/rustlib/arm-unknown-linux-gnueabihf/lib" "-o" "hello" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs"
  = note: some arguments are omitted. use `--verbose` to show all linker arguments
  = note: /usr/bin/ld: hello.hello.612ae999a4534164-cgu.0.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: hello.hello.612ae999a4534164-cgu.0.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: hello.hello.612ae999a4534164-cgu.0.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: hello.hello.612ae999a4534164-cgu.0.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: hello.hello.612ae999a4534164-cgu.0.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: hello.hello.612ae999a4534164-cgu.0.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: hello.hello.612ae999a4534164-cgu.0.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: hello.hello.612ae999a4534164-cgu.0.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: hello.hello.612ae999a4534164-cgu.0.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: hello.hello.612ae999a4534164-cgu.0.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: hello.hello.612ae999a4534164-cgu.0.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: hello.hello.612ae999a4534164-cgu.0.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: hello.hello.612ae999a4534164-cgu.0.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: hello.hello.612ae999a4534164-cgu.0.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: hello.hello.612ae999a4534164-cgu.0.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: hello.hello.612ae999a4534164-cgu.0.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: hello.hello.612ae999a4534164-cgu.0.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: hello.hello.612ae999a4534164-cgu.0.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: hello.hello.612ae999a4534164-cgu.0.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: hello.hello.612ae999a4534164-cgu.0.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: hello.hello.612ae999a4534164-cgu.0.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: hello.hello.612ae999a4534164-cgu.0.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: hello.hello.612ae999a4534164-cgu.0.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: hello.hello.612ae999a4534164-cgu.0.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: hello.hello.612ae999a4534164-cgu.0.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: hello.hello.612ae999a4534164-cgu.0.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: hello.hello.612ae999a4534164-cgu.0.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: hello.hello.612ae999a4534164-cgu.0.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: hello.hello.612ae999a4534164-cgu.0.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: hello.hello.612ae999a4534164-cgu.0.rcgu.o: error adding symbols: file in wrong format
          collect2: error: ld returned 1 exit status
          

error: aborting due to 1 previous error
------------------------------------------


---- [run-make] tests/run-make/symbols-all-mangled stdout ----

error: rmake recipe failed to complete
status: exit status: 1
command: cd "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-make/symbols-all-mangled/rmake_out" && env -u RUSTFLAGS AR="arm-linux-gnueabihf-ar" BUILD_ROOT="/checkout/obj/build/x86_64-unknown-linux-gnu" CARGO="/checkout/obj/build/x86_64-unknown-linux-gnu/stage1-tools-bin/cargo" CC="arm-linux-gnueabihf-gcc" CC_DEFAULT_FLAGS="-ffunction-sections -fdata-sections -fPIC -march=armv6 -marm -mfpu=vfp" CXX="arm-linux-gnueabihf-g++" CXX_DEFAULT_FLAGS="-ffunction-sections -fdata-sections -fPIC -march=armv6 -marm -mfpu=vfp" HOST_RUSTC_DYLIB_PATH="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib" LD_LIBRARY_PATH="/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-bootstrap-tools/x86_64-unknown-linux-gnu/release/deps:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/lib:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib" LD_LIB_PATH_ENVVAR="LD_LIBRARY_PATH" LLVM_BIN_DIR="/checkout/obj/build/x86_64-unknown-linux-gnu/ci-llvm/bin" LLVM_COMPONENTS="aarch64 aarch64asmparser aarch64codegen aarch64desc aarch64disassembler aarch64info aarch64utils aggressiveinstcombine all all-targets amdgpu amdgpuasmparser amdgpucodegen amdgpudesc amdgpudisassembler amdgpuinfo amdgputargetmca amdgpuutils analysis arm armasmparser armcodegen armdesc armdisassembler arminfo armutils asmparser asmprinter avr avrasmparser avrcodegen avrdesc avrdisassembler avrinfo binaryformat bitreader bitstreamreader bitwriter bpf bpfasmparser bpfcodegen bpfdesc bpfdisassembler bpfinfo cfguard cgdata codegen codegentypes core coroutines coverage csky cskyasmparser cskycodegen cskydesc cskydisassembler cskyinfo debuginfobtf debuginfocodeview debuginfodwarf debuginfogsym debuginfologicalview debuginfomsf debuginfopdb demangle dlltooldriver dwarflinker dwarflinkerclassic dwarflinkerparallel dwp engine executionengine extensions filecheck frontendatomic frontenddriver frontendhlsl frontendoffloading frontendopenacc frontendopenmp fuzzercli fuzzmutate globalisel hexagon hexagonasmparser hexagoncodegen hexagondesc hexagondisassembler hexagoninfo hipstdpar instcombine instrumentation interfacestub interpreter ipo irprinter irreader jitlink libdriver lineeditor linker loongarch loongarchasmparser loongarchcodegen loongarchdesc loongarchdisassembler loongarchinfo lto m68k m68kasmparser m68kcodegen m68kdesc m68kdisassembler m68kinfo mc mca mcdisassembler mcjit mcparser mips mipsasmparser mipscodegen mipsdesc mipsdisassembler mipsinfo mirparser msp430 msp430asmparser msp430codegen msp430desc msp430disassembler msp430info native nativecodegen nvptx nvptxcodegen nvptxdesc nvptxinfo objcarcopts objcopy object objectyaml option orcdebugging orcjit orcshared orctargetprocess passes powerpc powerpcasmparser powerpccodegen powerpcdesc powerpcdisassembler powerpcinfo profiledata remarks riscv riscvasmparser riscvcodegen riscvdesc riscvdisassembler riscvinfo riscvtargetmca runtimedyld sandboxir scalaropts selectiondag sparc sparcasmparser sparccodegen sparcdesc sparcdisassembler sparcinfo support symbolize systemz systemzasmparser systemzcodegen systemzdesc systemzdisassembler systemzinfo tablegen target targetparser telemetry textapi textapibinaryreader transformutils vectorize webassembly webassemblyasmparser webassemblycodegen webassemblydesc webassemblydisassembler webassemblyinfo webassemblyutils windowsdriver windowsmanifest x86 x86asmparser x86codegen x86desc x86disassembler x86info x86targetmca xray xtensa xtensaasmparser xtensacodegen xtensadesc xtensadisassembler xtensainfo" LLVM_FILECHECK="/checkout/obj/build/x86_64-unknown-linux-gnu/ci-llvm/bin/FileCheck" PYTHON="/usr/bin/python3" REMOTE_TEST_CLIENT="/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools-bin/remote-test-client" RUSTC="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" RUSTC_LINKER="arm-linux-gnueabihf-gcc" RUSTDOC="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustdoc" SOURCE_ROOT="/checkout" TARGET="arm-unknown-linux-gnueabihf" TARGET_EXE_DYLIB_PATH="/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/arm-unknown-linux-gnueabihf/lib" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-make/symbols-all-mangled/rmake"
stdout: none
--- stderr -------------------------------
command failed at line 13
Command { cmd: LD_LIBRARY_PATH="/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-make/symbols-all-mangled/rmake_out:/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-bootstrap-tools/x86_64-unknown-linux-gnu/release/deps:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/lib:/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/lib/rustlib/x86_64-unknown-linux-gnu/lib" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-make/symbols-all-mangled/rmake_out" "--target=arm-unknown-linux-gnueabihf" "--crate-type" "cdylib" "a_lib.rs", stdin_buf: None, stdin: None, stdout: None, stderr: None, drop_bomb: DropBomb { command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc", defused: true, armed_location: Location { file: "/checkout/tests/run-make/symbols-all-mangled/rmake.rs", line: 13, col: 5 } }, already_executed: true }
output status: `exit status: 1`
=== STDOUT ===



=== STDERR ===
error: linking with `cc` failed: exit status: 1
  |
  = note:  "cc" "-Wl,--version-script=/tmp/rustcpPUBXH/list" "-Wl,--no-undefined-version" "/tmp/rustcpPUBXH/symbols.o" "<2 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "<sysroot>/lib/rustlib/arm-unknown-linux-gnueabihf/lib/{libstd-*,libpanic_unwind-*,libobject-*,libmemchr-*,libaddr2line-*,libgimli-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwind-*,libcfg_if-*,liblibc-*,liballoc-*,librustc_std_workspace_core-*,libcore-*,libcompiler_builtins-*}.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-L" "/tmp/rustcpPUBXH/raw-dylibs" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/run-make/symbols-all-mangled/rmake_out" "-L" "<sysroot>/lib/rustlib/arm-unknown-linux-gnueabihf/lib" "-o" "liba_lib.so" "-Wl,--gc-sections" "-shared" "-Wl,-z,relro,-z,now" "-nodefaultlibs"
  = note: some arguments are omitted. use `--verbose` to show all linker arguments
  = note: /usr/bin/ld: a_lib.8hjrgh8l22zw4rfme44h02ujl.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: a_lib.8hjrgh8l22zw4rfme44h02ujl.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: a_lib.8hjrgh8l22zw4rfme44h02ujl.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: a_lib.8hjrgh8l22zw4rfme44h02ujl.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: a_lib.8hjrgh8l22zw4rfme44h02ujl.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: a_lib.8hjrgh8l22zw4rfme44h02ujl.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: a_lib.8hjrgh8l22zw4rfme44h02ujl.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: a_lib.8hjrgh8l22zw4rfme44h02ujl.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: a_lib.8hjrgh8l22zw4rfme44h02ujl.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: a_lib.8hjrgh8l22zw4rfme44h02ujl.rcgu.o: relocations in generic ELF (EM: 40)
          /usr/bin/ld: a_lib.8hjrgh8l22zw4rfme44h02ujl.rcgu.o: error adding symbols: file in wrong format
          collect2: error: ld returned 1 exit status
          

error: aborting due to 1 previous error
------------------------------------------

@bors
Copy link
Collaborator

bors commented Apr 7, 2025

💔 Test failed - checks-actions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-compiletest Area: The compiletest test runner A-run-make Area: port run-make Makefiles to rmake.rs A-rustc-dev-guide Area: rustc-dev-guide A-testsuite Area: The testsuite used to check the correctness of rustc CI-spurious-x86_64-apple-SIGSEGV-SIGILL CI spurious failure: SIGSEGV/SIGILL on x86_64-apple S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants