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

nightly rust-analyzer fails to build in latest master #145

Closed
mmarx opened this issue Nov 15, 2023 · 0 comments
Closed

nightly rust-analyzer fails to build in latest master #145

mmarx opened this issue Nov 15, 2023 · 0 comments

Comments

@mmarx
Copy link

mmarx commented Nov 15, 2023

This flake works fine until e485313.

{
  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs";
    rust-overlay.url = "github:oxalica/rust-overlay";
  };
  outputs = {
    nixpkgs,
    rust-overlay,
    ...
  }: {
    devShells.x86_64-linux.default = let
      pkgs = import nixpkgs {
        system = "x86_64-linux";
        overlays = [rust-overlay.overlays.default];
      };
    in
      pkgs.mkShell {buildInputs = [(pkgs.rust-bin.selectLatestNightlyWith (tc: tc.default.override {extensions = ["rust-analyzer"];}))];};
  };
}

With ed9fd98, it fails to build rust-analyzer:

❯ nix develop --override-input rust-overlay github:oxalica/rust-overlay/ed9fd98b28da90b1b28340f3230d35b2061b9752
error: builder for '/nix/store/6wnfmhqnj1js2sjv9x9n3l76yrj07jsq-rust-analyzer-preview-1.76.0-nightly-2023-11-15-x86_64-unknown-linux-gnu.drv' failed with exit code 1;
       last 25 log lines:
       >           PosixPath('/nix/store/pag6l61paj1dc9sv15l7bm5c17xn5kyk-move-systemd-user-units.sh/lib'),
       >           PosixPath('/nix/store/jivxp510zxakaaic7qkrb7v1dd2rdbw9-multiple-outputs.sh/lib'),
       >           PosixPath('/nix/store/wzdsbnv2ba3nj91aql8jjdddfmkkdh7h-patch-shebangs.sh/lib'),
       >           PosixPath('/nix/store/cickvswrvann041nqxb0rxilc46svw1n-prune-libtool-files.sh/lib'),
       >           PosixPath('/nix/store/xyff06pkhki3qy1ls77w10s0v79c9il0-reproducible-builds.sh/lib'),
       >           PosixPath('/nix/store/ngg1cv31c8c7bcm2n8ww4g06nq7s4zhm-set-source-date-epoch-to-latest.sh/lib'),
       >           PosixPath('/nix/store/wmknncrif06fqxa16hpdldhixk95nds0-strip.sh/lib'),
       >           PosixPath('/nix/store/9fy9zzhf613xp0c3jsjxbjq6yp8afrsv-gcc-12.3.0-lib/lib')],
       >  'paths': [PosixPath('/nix/store/4lrbx0qrlfvnnb6j0sqjsmrd4pd331nw-rust-analyzer-preview-1.76.0-nightly-2023-11-15-x86_64-unknown-linux-gnu')],
       >  'recursive': True,
       >  'runtime_dependencies': []}
       > setting interpreter of /nix/store/4lrbx0qrlfvnnb6j0sqjsmrd4pd331nw-rust-analyzer-preview-1.76.0-nightly-2023-11-15-x86_64-unknown-linux-gnu/bin/rust-analyzer
       > searching for dependencies of /nix/store/4lrbx0qrlfvnnb6j0sqjsmrd4pd331nw-rust-analyzer-preview-1.76.0-nightly-2023-11-15-x86_64-unknown-linux-gnu/bin/rust-analyzer
       >     librustc_driver-a2929300a34289e9.so -> not found!
       >     libstd-eb8a07e9874efeeb.so -> not found!
       >     libgcc_s.so.1 -> found: /nix/store/1q6qwq8csbhyy0pv54sab00jxlmb3rw2-gcc-12.3.0-libgcc/lib
       > setting RPATH to: /nix/store/1q6qwq8csbhyy0pv54sab00jxlmb3rw2-gcc-12.3.0-libgcc/lib
       > auto-patchelf: 2 dependencies could not be satisfied
       > error: auto-patchelf could not satisfy dependency librustc_driver-a2929300a34289e9.so wanted by /nix/store/4lrbx0qrlfvnnb6j0sqjsmrd4pd331nw-rust-analyzer-preview-1.76.0-nightly-2023-11-15-x86_64-unknown-linux-gnu/bin/rust-analyzer
       > error: auto-patchelf could not satisfy dependency libstd-eb8a07e9874efeeb.so wanted by /nix/store/4lrbx0qrlfvnnb6j0sqjsmrd4pd331nw-rust-analyzer-preview-1.76.0-nightly-2023-11-15-x86_64-unknown-linux-gnu/bin/rust-analyzer
       > 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/vi65yndd33pp1d5l7k83sjl6zpdjcxfl-stdenv-linux/setup: line 87: pop_var_context: head of shell_variables not a function context
       > /nix/store/vi65yndd33pp1d5l7k83sjl6zpdjcxfl-stdenv-linux/setup: line 1459: pop_var_context: head of shell_variables not a function context
       > /nix/store/vi65yndd33pp1d5l7k83sjl6zpdjcxfl-stdenv-linux/setup: line 1596: pop_var_context: head of shell_variables not a function context
       For full logs, run 'nix log /nix/store/6wnfmhqnj1js2sjv9x9n3l76yrj07jsq-rust-analyzer-preview-1.76.0-nightly-2023-11-15-x86_64-unknown-linux-gnu.drv'.

rust-analyzer-preview-1.76.0-nightly-2023-11-15-x86_64-unknown-linux-gnu.log

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

No branches or pull requests

1 participant