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

lanzaboote-stub-deps build failure with the new ld-wrapper #173

Closed
linyinfeng opened this issue May 30, 2024 · 1 comment · Fixed by #174
Closed

lanzaboote-stub-deps build failure with the new ld-wrapper #173

linyinfeng opened this issue May 30, 2024 · 1 comment · Fixed by #174

Comments

@linyinfeng
Copy link

Steps to reproduce:

  1. clone https://github.com/nix-community/lanzaboote
  2. nix flake lock --override-input rust-overlay github:oxalica/rust-overlay/0bf05d8534406776a0fbc9ed8d4ef5bd925b056a (0bf05d8).
  3. nix build .#packages.x86_64-linux.stub (failure)
  4. nix flake lock --override-input rust-overlay github:oxalica/rust-overlay/2e7ccf572ce0f0547d4cf4426de4482936882d0e (2e7ccf5, parent of 0bf05d8).
  5. nix build .#packages.x86_64-linux.stub (success)

Build logs:

lanzaboote-stub-deps>    Compiling sha2 v0.10.8
lanzaboote-stub-deps>    Compiling uefi-services v0.24.0
lanzaboote-stub-deps>    Compiling linux-bootloader v0.3.0 (/build/source/linux-bootloader)
lanzaboote-stub-deps>    Compiling lanzaboote_stub v0.3.0 (/build/source/stub)
lanzaboote-stub-deps> error: linking with `rust-lld` failed: exit status: 1
lanzaboote-stub-deps>   |
lanzaboote-stub-deps>   = note: LC_ALL="C" PATH="/nix/store/wzclzrsghg5axiq2m5lwnhyfkcx0pr0d-rust-default-1.75.0/lib/rustlib/x86_64-unknown-linux-gnu/bin:/nix/store/9bv7dcvmfcjnmg5mnqwqlq2wxfn8d7yi-gcc-wrapper-13.2.0/bin:/nix/store/14c6s4xzhy14i2b05s00rjns2j93gzz4-gcc-13.2.0/bin:/nix/store/c2i631h8i5vcs1sqifwxfsazhwrg6wr5-glibc-2.39-52-bin/bin:/nix/store/php4qidg2bxzmm79vpri025bqi0fa889-coreutils-9.5/bin:/nix/store/kln7kinji3b7sz8r50h4gn9yy6k1js9a-binutils-wrapper-2.41/bin:/nix/store/bgcaxhhxswzvmxjbbgvvaximm5hwghz1-binutils-2.41/bin:/nix/store/wzclzrsghg5axiq2m5lwnhyfkcx0pr0d-rust-default-1.75.0/bin:/nix/store/mccr31lihzfldyxxifdbj56chadlrhs3-rsync-3.3.0/bin:/nix/store/hxhdhc0zddbhmqvv99nldq2gfmy9983x-zstd-1.5.6-bin/bin:/nix/store/by853zqacqy647v0z7l70xm77xl9ifal-zstd-1.5.6/bin:/nix/store/nbad47q0m0m9c5xid7zh05hiknwircbp-patchelf-0.15.0/bin:/nix/store/php4qidg2bxzmm79vpri025bqi0fa889-coreutils-9.5/bin:/nix/store/jjcsr5gs4qanf7ln5c6wgcq4sn75a978-findutils-4.9.0/bin:/nix/store/i34mknsjgrfyy71k2h79gda0bvagzc2j-diffutils-3.10/bin:/nix/store/5zjms21vpxlkbc0qyl5pmj2sidfmzmd7-gnused-4.9/bin:/nix/store/28gpmx3z6ss3znd7fhmrzmvk3x5lnfbk-gnugrep-3.11/bin:/nix/store/8vvkbgmnin1x2jkp7wcb2zg1p0vc4ks9-gawk-5.2.2/bin:/nix/store/rik7p68cq7yzlj5pmfpf4yv6jnrpvlgf-gnutar-1.35/bin:/nix/store/j5chw7v1x3vlmf3wmdpdb5gwh9hl0b80-gzip-1.13/bin:/nix/store/mxcq77rlan82dzpv3cgj0fh6qvv8ncil-bzip2-1.0.8-bin/bin:/nix/store/cdzpn0rdq810aknww3w9fy3wmw9ixr66-gnumake-4.4.1/bin:/nix/store/306znyj77fv49kwnkpxmb0j2znqpa8bj-bash-5.2p26/bin:/nix/store/0lfxbmchigx9vs9qmrlbahcy6nxwfnj1-patch-2.7.6/bin:/nix/store/6i4xxaa812vsbli9jkq4mksdddrk27lw-xz-5.4.6-bin/bin:/nix/store/xx7x1dwybpssfhq8yikvzz38bh3yrq97-file-5.45/bin" VSLANG="1033" "rust-lld" "-flavor" "link" "/NOLOGO" "/entry:efi_main" "/subsystem:efi_application" "/build/rustcg5aZ9o/symbols.o" "/build/source/target/x86_64-unknown-uefi/release/deps/crane_dummy_lanzaboote_stub-93770d7f205280f0.crane_dummy_lanzaboote_stub.975c0cfa14e3d72f-cgu.0.rcgu.o" "/LIBPATH:/build/source/target/x86_64-unknown-uefi/release/deps" "/LIBPATH:/build/source/target/release/deps" "/LIBPATH:/nix/store/wzclzrsghg5axiq2m5lwnhyfkcx0pr0d-rust-default-1.75.0/lib/rustlib/x86_64-unknown-uefi/lib" "/nix/store/s6i3svcwvgqm5zbjbgsl4ldgb75wzj5k-rust-std-1.75.0-x86_64-unknown-uefi/lib/rustlib/x86_64-unknown-uefi/lib/libcompiler_builtins-91d18530a45ce676.rlib" "/NXCOMPAT" "/LIBPATH:/nix/store/wzclzrsghg5axiq2m5lwnhyfkcx0pr0d-rust-default-1.75.0/lib/rustlib/x86_64-unknown-uefi/lib" "/OUT:/build/source/target/x86_64-unknown-uefi/release/deps/crane_dummy_lanzaboote_stub-93770d7f205280f0.efi" "/OPT:REF,ICF" "/DEBUG" "/NODEFAULTLIB" "/Brepro"
lanzaboote-stub-deps>   = note: .rust-lld-unwrapped: warning: ignoring unknown argument '-z'
lanzaboote-stub-deps>           .rust-lld-unwrapped: warning: ignoring unknown argument '-z'
lanzaboote-stub-deps>           .rust-lld-unwrapped: warning: ignoring unknown argument '-L/nix/store/wzclzrsghg5axiq2m5lwnhyfkcx0pr0d-rust-default-1.75.0/lib'
lanzaboote-stub-deps>           .rust-lld-unwrapped: warning: ignoring unknown argument '-L/nix/store/by853zqacqy647v0z7l70xm77xl9ifal-zstd-1.5.6/lib'
lanzaboote-stub-deps>           .rust-lld-unwrapped: warning: ignoring unknown argument '-L/nix/store/wzclzrsghg5axiq2m5lwnhyfkcx0pr0d-rust-default-1.75.0/lib'
lanzaboote-stub-deps>           .rust-lld-unwrapped: warning: ignoring unknown argument '-L/nix/store/by853zqacqy647v0z7l70xm77xl9ifal-zstd-1.5.6/lib'
lanzaboote-stub-deps>           .rust-lld-unwrapped: warning: ignoring unknown argument '-L/nix/store/wzclzrsghg5axiq2m5lwnhyfkcx0pr0d-rust-default-1.75.0/lib'
lanzaboote-stub-deps>           .rust-lld-unwrapped: warning: ignoring unknown argument '-L/nix/store/by853zqacqy647v0z7l70xm77xl9ifal-zstd-1.5.6/lib'
lanzaboote-stub-deps>           .rust-lld-unwrapped: warning: ignoring unknown argument '-rpath'
lanzaboote-stub-deps>           .rust-lld-unwrapped: warning: ignoring unknown argument '-L/nix/store/wzclzrsghg5axiq2m5lwnhyfkcx0pr0d-rust-default-1.75.0/lib'
lanzaboote-stub-deps>           .rust-lld-unwrapped: warning: ignoring unknown argument '-L/nix/store/by853zqacqy647v0z7l70xm77xl9ifal-zstd-1.5.6/lib'
lanzaboote-stub-deps>           .rust-lld-unwrapped: warning: ignoring unknown argument '-L/nix/store/wzclzrsghg5axiq2m5lwnhyfkcx0pr0d-rust-default-1.75.0/lib'
lanzaboote-stub-deps>           .rust-lld-unwrapped: warning: ignoring unknown argument '-L/nix/store/by853zqacqy647v0z7l70xm77xl9ifal-zstd-1.5.6/lib'
lanzaboote-stub-deps>           .rust-lld-unwrapped: error: could not open 'relro': No such file or directory
lanzaboote-stub-deps>           .rust-lld-unwrapped: error: could not open 'now': No such file or directory
lanzaboote-stub-deps>           .rust-lld-unwrapped: error: could not open '/nix/store/qq2dk4q08ia2vpczyxamyj8rfr5gpr5j-lanzaboote-stub-deps-0.3.0/lib': No such file or directory
lanzaboote-stub-deps>           
lanzaboote-stub-deps> error: could not compile `lanzaboote_stub` (bin "crane-dummy-lanzaboote_stub") due to previous error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants