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
building some cross-compiled packages and inspecting their run-time closures:
nix build -f . pkgsCross.aarch64-multiplatform.glibc
nix-store -q --tree result
will show that result depends on /nix/store/b9iyqcsd1gmlfagpi4xqqlswcpx079r1-aarch64-unknown-linux-gnu-stage-final-gcc-debug-7.4.0 (on master d46bf20).
this is because the package isn't spliced correctly:
The cross compiled packages depend on the aarch64-unknown-linux-gnu/lib folder, but this path also contains x86 binaries in it! (like aarch64-unknown-linux-gnu-gcc).
This causes a bunch of other run-time x86 dependencies to be packaged with the cross-compiled binaries.
Trying to move the ARM libs into the lib output caused a cyclic dependency between the lib output and the normal output :( so I'm stuck & posting this issue.
Steps to reproduce
build a cross-compiled binary with a cross gcc, notice that it has x86 binaries in it's run-time closure (assuming the build system is x86):
Issue description
building some cross-compiled packages and inspecting their run-time closures:
will show that
result
depends on/nix/store/b9iyqcsd1gmlfagpi4xqqlswcpx079r1-aarch64-unknown-linux-gnu-stage-final-gcc-debug-7.4.0
(on master d46bf20).this is because the package isn't spliced correctly:
The cross compiled packages depend on the
aarch64-unknown-linux-gnu/lib
folder, but this path also contains x86 binaries in it! (likeaarch64-unknown-linux-gnu-gcc
).This causes a bunch of other run-time x86 dependencies to be packaged with the cross-compiled binaries.
@matthewbauer pointed me here: https://github.com/matthewbauer/nixpkgs/blob/static-nix/pkgs/development/compilers/gcc/builder.sh#L203-L287, which is possibly broken.
Trying to move the ARM libs into the
lib
output caused a cyclic dependency between the lib output and the normal output :( so I'm stuck & posting this issue.Steps to reproduce
build a cross-compiled binary with a cross
gcc
, notice that it has x86 binaries in it's run-time closure (assuming the build system is x86):Technical details
"x86_64-linux"
Linux 4.20.6-arch1-1-ARCH, Antergos Linux, noversion
yes
yes
nix-env (Nix) 2.2.1
"nixpkgs-19.09pre171945.b36dc66bfea"
/nix/var/nix/profiles/per-user/root/channels/nixpkgs
The text was updated successfully, but these errors were encountered: