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

Breaking changes due to Nix driven GCC bootstrap #121

Closed
RaitoBezarius opened this issue Apr 12, 2023 · 9 comments
Closed

Breaking changes due to Nix driven GCC bootstrap #121

RaitoBezarius opened this issue Apr 12, 2023 · 9 comments

Comments

@RaitoBezarius
Copy link

Following NixOS/nixpkgs#209870 it seems like rust-overlay is broken on nixos-unstable-small with a following type of error: https://clbin.com/XIFM2

cc @amjoseph

@RaitoBezarius
Copy link
Author

Reproducer: go on https://github.com/nix-community/lanzaboote ; nix flake update and see the errors.

@ghost
Copy link

ghost commented Apr 13, 2023

cc @amjoseph

I want that username. But it is taken ☹️

@ghost

This comment was marked as resolved.

@ghost

This comment was marked as resolved.

@ghost

This comment was marked as resolved.

@andersk
Copy link

andersk commented Apr 13, 2023

Simple reproduction:

git clone https://github.com/oxalica/rust-overlay.git
cd rust-overlay
nix flake lock --override-input nixpkgs github:NixOS/nixpkgs
nix build -L '.#rust'
Output
warning: Git tree '/home/anders/nix/rust-overlay' is dirty
cargo> unpacking sources
cargo> unpacking source archive /nix/store/3pgl16r7ihxs5mhjlmp4ffhi4lhzr45f-cargo-1.68.2-x86_64-unknown-linux-gnu.tar.xz
rust-docs> unpacking sources
rust-docs> unpacking source archive /nix/store/4c699hyaxnf37n0hjj97ynr7xlk5q8wx-rust-docs-1.68.2-x86_64-unknown-linux-gnu.tar.xz
rust-std> unpacking sources
rust-std> unpacking source archive /nix/store/nj2i92abd3kn1ayxgc9ml0pwqshfb80k-rust-std-1.68.2-x86_64-unknown-linux-gnu.tar.xz
rustc> unpacking sources
rustc> unpacking source archive /nix/store/d07lsw6xfzbwyx8kqhwa5z3ir05bfzks-rustc-1.68.2-x86_64-unknown-linux-gnu.tar.xz
cargo> source root is cargo-1.68.2-x86_64-unknown-linux-gnu
cargo> setting SOURCE_DATE_EPOCH to timestamp 1679910114 of file cargo-1.68.2-x86_64-unknown-linux-gnu/version
cargo> patching sources
cargo> installing
cargo> Installing component cargo
cargo> post-installation fixup
cargo> shrinking RPATHs of ELF executables and libraries in /nix/store/4cphbbnm7rwm490vp2jvyzh7q3wgyi8q-cargo-1.68.2-x86_64-unknown-linux-gnu
cargo> shrinking /nix/store/4cphbbnm7rwm490vp2jvyzh7q3wgyi8q-cargo-1.68.2-x86_64-unknown-linux-gnu/bin/cargo
cargo> shrinking /nix/store/4cphbbnm7rwm490vp2jvyzh7q3wgyi8q-cargo-1.68.2-x86_64-unknown-linux-gnu/libexec/cargo-credential-1password
cargo> checking for references to /build/ in /nix/store/4cphbbnm7rwm490vp2jvyzh7q3wgyi8q-cargo-1.68.2-x86_64-unknown-linux-gnu...
cargo> gzipping man pages under /nix/store/4cphbbnm7rwm490vp2jvyzh7q3wgyi8q-cargo-1.68.2-x86_64-unknown-linux-gnu/share/man/
cargo> patching script interpreter paths in /nix/store/4cphbbnm7rwm490vp2jvyzh7q3wgyi8q-cargo-1.68.2-x86_64-unknown-linux-gnu
cargo> automatically fixing dependencies for ELF files
cargo> {'ignore_missing': [],
cargo>  'libs': [PosixPath('/nix/store/lcfhnr6wrj9ssd3dxs39sprvz6qrxlj5-gnutar-1.34/lib'),
cargo>           PosixPath('/nix/store/vs77f36ak1rbwnpy4kxxpwagpyxqxjvl-auto-patchelf-hook/lib'),
cargo>           PosixPath('/nix/store/qpxdvk9a5nvgvm0vvmfikgf4cdmfjxcn-binutils-wrapper-2.40/lib'),
cargo>           PosixPath('/nix/store/2y0q33dmn7846bpqcnfch4a0q2q6dmya-patchelf-0.15.0/lib'),
cargo>           PosixPath('/nix/store/h9lc1dpi14z7is86ffhl3ld569138595-audit-tmpdir.sh/lib'),
cargo>           PosixPath('/nix/store/m54bmrhj6fqz8nds5zcj97w9s9bckc9v-compress-man-pages.sh/lib'),
cargo>           PosixPath('/nix/store/wgrbkkaldkrlrni33ccvm3b6vbxzb656-make-symlinks-relative.sh/lib'),
cargo>           PosixPath('/nix/store/5yzw0vhkyszf2d179m0qfkgxmp5wjjx4-move-docs.sh/lib'),
cargo>           PosixPath('/nix/store/fyaryjvghbkpfnsyw97hb3lyb37s1pd6-move-lib64.sh/lib'),
cargo>           PosixPath('/nix/store/kd4xwxjpjxi71jkm6ka0np72if9rm3y0-move-sbin.sh/lib'),
cargo>           PosixPath('/nix/store/pag6l61paj1dc9sv15l7bm5c17xn5kyk-move-systemd-user-units.sh/lib'),
cargo>           PosixPath('/nix/store/bxsly8a56yb8kyrq03s82a3vyc8fqrb3-multiple-outputs.sh/lib'),
cargo>           PosixPath('/nix/store/nf1lkdrhapsx5lr6diyxyjr7pb7r20gr-patch-shebangs.sh/lib'),
cargo>           PosixPath('/nix/store/cickvswrvann041nqxb0rxilc46svw1n-prune-libtool-files.sh/lib'),
cargo>           PosixPath('/nix/store/xyff06pkhki3qy1ls77w10s0v79c9il0-reproducible-builds.sh/lib'),
cargo>           PosixPath('/nix/store/ngg1cv31c8c7bcm2n8ww4g06nq7s4zhm-set-source-date-epoch-to-latest.sh/lib'),
cargo>           PosixPath('/nix/store/d275wzmimzi3xp4j3vbkvxscmc79q088-strip.sh/lib'),
cargo>           PosixPath('/nix/store/lf6arf2qj94qs6bkzfl2y75chb7awmx9-zlib-1.2.13-dev/lib'),
cargo>           PosixPath('/nix/store/2ldgh1qis9p4zf8bgsdm7897gw8vv36g-zlib-1.2.13/lib'),
cargo>           PosixPath('/nix/store/lcfhnr6wrj9ssd3dxs39sprvz6qrxlj5-gnutar-1.34/lib'),
cargo>           PosixPath('/nix/store/vs77f36ak1rbwnpy4kxxpwagpyxqxjvl-auto-patchelf-hook/lib'),
cargo>           PosixPath('/nix/store/qpxdvk9a5nvgvm0vvmfikgf4cdmfjxcn-binutils-wrapper-2.40/lib'),
cargo>           PosixPath('/nix/store/2y0q33dmn7846bpqcnfch4a0q2q6dmya-patchelf-0.15.0/lib'),
cargo>           PosixPath('/nix/store/h9lc1dpi14z7is86ffhl3ld569138595-audit-tmpdir.sh/lib'),
cargo>           PosixPath('/nix/store/m54bmrhj6fqz8nds5zcj97w9s9bckc9v-compress-man-pages.sh/lib'),
cargo>           PosixPath('/nix/store/wgrbkkaldkrlrni33ccvm3b6vbxzb656-make-symlinks-relative.sh/lib'),
cargo>           PosixPath('/nix/store/5yzw0vhkyszf2d179m0qfkgxmp5wjjx4-move-docs.sh/lib'),
cargo>           PosixPath('/nix/store/fyaryjvghbkpfnsyw97hb3lyb37s1pd6-move-lib64.sh/lib'),
cargo>           PosixPath('/nix/store/kd4xwxjpjxi71jkm6ka0np72if9rm3y0-move-sbin.sh/lib'),
cargo>           PosixPath('/nix/store/pag6l61paj1dc9sv15l7bm5c17xn5kyk-move-systemd-user-units.sh/lib'),
cargo>           PosixPath('/nix/store/bxsly8a56yb8kyrq03s82a3vyc8fqrb3-multiple-outputs.sh/lib'),
cargo>           PosixPath('/nix/store/nf1lkdrhapsx5lr6diyxyjr7pb7r20gr-patch-shebangs.sh/lib'),
cargo>           PosixPath('/nix/store/cickvswrvann041nqxb0rxilc46svw1n-prune-libtool-files.sh/lib'),
cargo>           PosixPath('/nix/store/xyff06pkhki3qy1ls77w10s0v79c9il0-reproducible-builds.sh/lib'),
cargo>           PosixPath('/nix/store/ngg1cv31c8c7bcm2n8ww4g06nq7s4zhm-set-source-date-epoch-to-latest.sh/lib'),
cargo>           PosixPath('/nix/store/d275wzmimzi3xp4j3vbkvxscmc79q088-strip.sh/lib'),
cargo>           PosixPath('/nix/store/lf6arf2qj94qs6bkzfl2y75chb7awmx9-zlib-1.2.13-dev/lib'),
cargo>           PosixPath('/nix/store/2ldgh1qis9p4zf8bgsdm7897gw8vv36g-zlib-1.2.13/lib')],
cargo>  'paths': [PosixPath('/nix/store/4cphbbnm7rwm490vp2jvyzh7q3wgyi8q-cargo-1.68.2-x86_64-unknown-linux-gnu')],
cargo>  'recursive': True,
cargo>  'runtime_dependencies': []}
cargo> setting interpreter of /nix/store/4cphbbnm7rwm490vp2jvyzh7q3wgyi8q-cargo-1.68.2-x86_64-unknown-linux-gnu/bin/cargo
cargo> searching for dependencies of /nix/store/4cphbbnm7rwm490vp2jvyzh7q3wgyi8q-cargo-1.68.2-x86_64-unknown-linux-gnu/bin/cargo
cargo>     libgcc_s.so.1 -> not found!
cargo> setting interpreter of /nix/store/4cphbbnm7rwm490vp2jvyzh7q3wgyi8q-cargo-1.68.2-x86_64-unknown-linux-gnu/libexec/cargo-credential-1password
cargo> searching for dependencies of /nix/store/4cphbbnm7rwm490vp2jvyzh7q3wgyi8q-cargo-1.68.2-x86_64-unknown-linux-gnu/libexec/cargo-credential-1password
cargo>     libgcc_s.so.1 -> not found!
cargo> auto-patchelf: 2 dependencies could not be satisfied
cargo> error: auto-patchelf could not satisfy dependency libgcc_s.so.1 wanted by /nix/store/4cphbbnm7rwm490vp2jvyzh7q3wgyi8q-cargo-1.68.2-x86_64-unknown-linux-gnu/bin/cargo
cargo> error: auto-patchelf could not satisfy dependency libgcc_s.so.1 wanted by /nix/store/4cphbbnm7rwm490vp2jvyzh7q3wgyi8q-cargo-1.68.2-x86_64-unknown-linux-gnu/libexec/cargo-credential-1password
cargo> auto-patchelf failed to find all the required dependencies.
cargo> Add the missing dependencies to --libs or use `--ignore-missing="foo.so.1 bar.so etc.so"`.
cargo> /nix/store/aa283g93zqf3111m66kawl6d5z3wlawd-stdenv-linux/setup: line 79: pop_var_context: head of shell_variables not a function context
cargo> /nix/store/aa283g93zqf3111m66kawl6d5z3wlawd-stdenv-linux/setup: line 1457: pop_var_context: head of shell_variables not a function context
cargo> /nix/store/aa283g93zqf3111m66kawl6d5z3wlawd-stdenv-linux/setup: line 1594: pop_var_context: head of shell_variables not a function context
error: builder for '/nix/store/nm9zpk22770b94w8f5bmz60yp3azjql5-cargo-1.68.2-x86_64-unknown-linux-gnu.drv' failed with exit code 1;
       last 10 log lines:
       > searching for dependencies of /nix/store/4cphbbnm7rwm490vp2jvyzh7q3wgyi8q-cargo-1.68.2-x86_64-unknown-linux-gnu/libexec/cargo-credential-1password
       >     libgcc_s.so.1 -> not found!
       > auto-patchelf: 2 dependencies could not be satisfied
       > error: auto-patchelf could not satisfy dependency libgcc_s.so.1 wanted by /nix/store/4cphbbnm7rwm490vp2jvyzh7q3wgyi8q-cargo-1.68.2-x86_64-unknown-linux-gnu/bin/cargo
       > error: auto-patchelf could not satisfy dependency libgcc_s.so.1 wanted by /nix/store/4cphbbnm7rwm490vp2jvyzh7q3wgyi8q-cargo-1.68.2-x86_64-unknown-linux-gnu/libexec/cargo-credential-1password
       > auto-patchelf failed to find all the required dependencies.
       > Add the missing dependencies to --libs or use `--ignore-missing="foo.so.1 bar.so etc.so"`.
       > /nix/store/aa283g93zqf3111m66kawl6d5z3wlawd-stdenv-linux/setup: line 79: pop_var_context: head of shell_variables not a function context
       > /nix/store/aa283g93zqf3111m66kawl6d5z3wlawd-stdenv-linux/setup: line 1457: pop_var_context: head of shell_variables not a function context
       > /nix/store/aa283g93zqf3111m66kawl6d5z3wlawd-stdenv-linux/setup: line 1594: pop_var_context: head of shell_variables not a function context
       For full logs, run 'nix log /nix/store/nm9zpk22770b94w8f5bmz60yp3azjql5-cargo-1.68.2-x86_64-unknown-linux-gnu.drv'.
error (ignored): error: cannot unlink '/var/tmp/nix-build-rust-docs-1.68.2-x86_64-unknown-linux-gnu.drv-3/rust-docs-1.68.2-x86_64-unknown-linux-gnu/rust-docs/share/doc/rust/html/std/ptr': Directory not empty
error: 1 dependencies of derivation '/nix/store/k9ysinhz7x3w8i8ybv9im47n02zvgj7j-rust-default-1.68.2.drv' failed to build

@ghost

This comment was marked as outdated.

@ghost

This comment was marked as resolved.

@ghost
Copy link

ghost commented Apr 13, 2023

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