Comments (6)
@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.
Are you on NixOS?
It looks like the install.sh script needs to be patched to correct the bash path.
from nixpkgs-mozilla.
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.
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.
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.
@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)
- Derivations created using this repository are not reproducible HOT 2
- Firefox-nightly 96.0a1 fail to start on NixOS 21.05 HOT 7
- Should git-cinnabar be included into firefox development overlay? HOT 2
- Undefined variable 'phlay' HOT 1
- Firefox fails to compile because -fPIC is passed to `as` HOT 1
- firefox-nightly fails to use vaapi with mesa's radeon driver on NixOS HOT 1
- example in README.md doesn't work with rust-toolchain.toml file HOT 1
- `couldn't find remote ref refs/heads/master` when building `/nix/store/<hash>-channel-rust-1.55.0.toml.drv` HOT 2
- Suddenly can't rebuild anymore because "wrapper called with unexpected argument 'browserName'" HOT 2
- firefox-overlay, impurity, and a missing link in GPG verification? HOT 3
- How to get aarch64 Firefox Nightly builds?
- Install different versions of Firefox side by side. HOT 2
- rustChannelOf doesn't error on argument name typos
- rr fails to build when using this overlay with newer nixpkgs HOT 5
- Building `rustChannelOf({...}).rust-src` from `rust-overlay.nix` errors. HOT 6
- What to do about stdarch, being submodule, not being in source tarball? HOT 1
- Firefox started to crash in some situations HOT 1
- Deprecation warning: "rustPlatform.rust.cargo is deprecated. Use cargo instead." May be easy fix, but... HOT 2
- archive.mozilla.org is returning a bad SSL cert
- Firefox Nightly is segfaulting (SIGSEGV) after most recent update; installing firefox-beta fixes it HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nixpkgs-mozilla.