GithubHelp home page GithubHelp logo

Comments (6)

rushmorem avatar rushmorem commented on May 28, 2024 1

@sjmackenzie I will, thanks. Also, according to NixOS/nixpkgs#29278 (comment) that should work so feel free to close.

EDIT: Just to clarify, I was already this repo's latest rev (7e54fb3). What I needed to update was my NixOS version.

from nixpkgs-mozilla.

zimbatm avatar zimbatm commented on May 28, 2024

Are you on NixOS?

It looks like the install.sh script needs to be patched to correct the bash path.

from nixpkgs-mozilla.

sjmackenzie avatar sjmackenzie commented on May 28, 2024

Yes I'm on NixOS.

Has an upstream path changed to break the build, I'm pretty certain it's not me.

from nixpkgs-mozilla.

rushmorem avatar rushmorem commented on May 28, 2024

I'm running into this issue as well. For me, on NixOS 17.09.git.b50193f, the derivation continues to build just fine but the interpreter is not patched.

#  Cargo and other Rust binaries are available in my PATH
$ which cargo
/run/current-system/sw/bin/cargo

# But they can't be executed
$ cargo --version
bash: /run/current-system/sw/bin/cargo: No such file or directory

# Because the interpreter isn't patched
$ readelf -l $(which cargo) | grep interpreter
      [Requesting program interpreter: /lib64/ld-linux-x86-64.so.2]

EDIT: Actually, the problem I'm running into on is different from this one. For me, install.sh is being patched just fine. When building, I'm getting the following warning instead:-

setting interpreter of /nix/store/1lmb3xdl6bj47v31j2livjyqib21ci0a-rust-1.22.0-nightly-2017-09-09-ddd123ed9/lib/libstd-85c630e4370fa944.
so
cat: /nix/store/zgzak0grvimifrxr3yww1xbyix0qyrv8-gcc-wrapper-6.4.0/nix-support/dynamic-linker: No such file or directory

This is because dynamic-linker no longer exists:-

$ ls /nix/store/zgzak0grvimifrxr3yww1xbyix0qyrv8-gcc-wrapper-6.4.0/nix-support/
add-flags.sh      cc-cflags   libc-cflags  orig-libc      propagated-native-build-inputs  utils.sh
add-hardening.sh  cc-ldflags  orig-cc      orig-libc-dev  setup-hook

from nixpkgs-mozilla.

zimbatm avatar zimbatm commented on May 28, 2024

I don't have time to look deeply into it so here are some pointers:

There is already an attempt to patch the install script at https://github.com/mozilla/nixpkgs-mozilla/blob/master/rust-overlay.nix#L173, maybe the location of the script has changed?

I would also recommend submitting the change to rust-lang to always use #!/usr/bin/env bash for the shebang so we don't have to patch it in the first place.

from nixpkgs-mozilla.

sjmackenzie avatar sjmackenzie commented on May 28, 2024

@rushmorem try updating your rev to 7e54fb37cd177e6d83e4e2b7d3e3b03bd6de0e0f (current master head). It worked for me. If it works for you I'll close the issue.

from nixpkgs-mozilla.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.