[Nix-dev] Rust: "error: failed to load source for a dependency on ..."
stewart mackenzie
setori88 at gmail.com
Sat Oct 8 10:46:46 CEST 2016
Hi,
I've `sudo nixos-rebuild --upgrade switch` 'ed and things stopped working.
steps to reproduce:
$ nix-build --argstr debug true --argstr cache
$(./support/buildCache.sh) -A components.nucleus_find_contract
(this command currently won't work on HEAD as
Please note there is no mention git repositories in the Cargo.toml
file, which seems to be the common source of this error on nix.
Does someone know what's going on with this error?
--------------------
CARGO.TOML
--------------------
[package]
name = "component"
version = "0.1.0"
authors = ["test <test at test.com>"]
[lib]
name = "component"
crate-type = ["dylib"]
[dependencies]
capnp = "*"
rustfbp = "*"
--------------------
CARGO.LOCK
--------------------
[root]
name = "nucleus_find_contract"
version = "0.1.0"
dependencies = [
"capnp 0.7.4 (registry+file:///dev/null)",
"rustfbp 0.3.18 (registry+file:///dev/null)",
]
[[package]]
name = "byteorder"
version = "0.4.2"
source = "registry+file:///dev/null"
[[package]]
name = "capnp"
version = "0.7.4"
source = "registry+file:///dev/null"
dependencies = [
"byteorder 0.4.2 (registry+file:///dev/null)",
]
[[package]]
name = "dtoa"
version = "0.2.2"
source = "registry+file:///dev/null"
[[package]]
name = "itoa"
version = "0.1.1"
source = "registry+file:///dev/null"
[[package]]
name = "kernel32-sys"
version = "0.2.2"
source = "registry+file:///dev/null"
dependencies = [
"winapi 0.2.8 (registry+file:///dev/null)",
"winapi-build 0.1.1 (registry+file:///dev/null)",
]
[[package]]
name = "lazy_static"
version = "0.2.1"
source = "registry+file:///dev/null"
[[package]]
name = "libloading"
version = "0.2.4"
source = "registry+file:///dev/null"
dependencies = [
"kernel32-sys 0.2.2 (registry+file:///dev/null)",
"lazy_static 0.2.1 (registry+file:///dev/null)",
"target_build_utils 0.1.1 (registry+file:///dev/null)",
"winapi 0.2.8 (registry+file:///dev/null)",
]
[[package]]
name = "num-traits"
version = "0.1.36"
source = "registry+file:///dev/null"
[[package]]
name = "rustfbp"
version = "0.3.18"
source = "registry+file:///dev/null"
dependencies = [
"capnp 0.7.4 (registry+file:///dev/null)",
"libloading 0.2.4 (registry+file:///dev/null)",
"threadpool 1.3.2 (registry+file:///dev/null)",
]
[[package]]
name = "serde"
version = "0.8.11"
source = "registry+file:///dev/null"
[[package]]
name = "serde_json"
version = "0.8.2"
source = "registry+file:///dev/null"
dependencies = [
"dtoa 0.2.2 (registry+file:///dev/null)",
"itoa 0.1.1 (registry+file:///dev/null)",
"num-traits 0.1.36 (registry+file:///dev/null)",
"serde 0.8.11 (registry+file:///dev/null)",
]
[[package]]
name = "target_build_utils"
version = "0.1.1"
source = "registry+file:///dev/null"
dependencies = [
"serde_json 0.8.2 (registry+file:///dev/null)",
]
[[package]]
name = "threadpool"
version = "1.3.2"
source = "registry+file:///dev/null"
[[package]]
name = "winapi"
version = "0.2.8"
source = "registry+file:///dev/null"
[[package]]
name = "winapi-build"
version = "0.1.1"
source = "registry+file:///dev/null"
[metadata]
"checksum byteorder 0.4.2 (registry+file:///dev/null)" =
"96c8b41881888cc08af32d47ac4edd52bc7fa27fef774be47a92443756451304"
"checksum capnp 0.7.4 (registry+file:///dev/null)" =
"476c6a1bba39763a198092e54dec50113c48478dbe031385acfecbae70bac1bd"
"checksum dtoa 0.2.2 (registry+file:///dev/null)" =
"0dd841b58510c9618291ffa448da2e4e0f699d984d436122372f446dae62263d"
"checksum itoa 0.1.1 (registry+file:///dev/null)" =
"ae3088ea4baeceb0284ee9eea42f591226e6beaecf65373e41b38d95a1b8e7a1"
"checksum kernel32-sys 0.2.2 (registry+file:///dev/null)" =
"7507624b29483431c0ba2d82aece8ca6cdba9382bff4ddd0f7490560c056098d"
"checksum lazy_static 0.2.1 (registry+file:///dev/null)" =
"49247ec2a285bb3dcb23cbd9c35193c025e7251bfce77c1d5da97e6362dffe7f"
"checksum libloading 0.2.4 (registry+file:///dev/null)" =
"eceb2637ee9a27c7f19764048a9f377e40e3a70a322722f348e6bc7704d565f2"
"checksum num-traits 0.1.36 (registry+file:///dev/null)" =
"a16a42856a256b39c6d3484f097f6713e14feacd9bfb02290917904fae46c81c"
"checksum rustfbp 0.3.18 (registry+file:///dev/null)" =
"fbb4e3c922b153ace2c8094b9fb0d03cbbd9f751886e3669fb0e46350bac0c84"
"checksum serde 0.8.11 (registry+file:///dev/null)" =
"15db662ce4b837aac5731c52fe732d84a00f909763236289587cb7ca6985f6d8"
"checksum serde_json 0.8.2 (registry+file:///dev/null)" =
"e5b3bb42fa42265df8a1822b3db2090bc8f9e17e8142599c76a5b854bc4e7b5b"
"checksum target_build_utils 0.1.1 (registry+file:///dev/null)" =
"7a1be18d4d908e4e5697908de04fdd5099505463fc8eaf1ceb8133ae486936aa"
"checksum threadpool 1.3.2 (registry+file:///dev/null)" =
"59f6d3eff89920113dac9db44dde461d71d01e88a5b57b258a0466c32b5d7fe1"
"checksum winapi 0.2.8 (registry+file:///dev/null)" =
"167dc9d6949a9b857f3451275e911c3f44255842c1f7a76f33c55103a909087a"
"checksum winapi-build 0.1.1 (registry+file:///dev/null)" =
"2d315eee3b34aca4797b2da6b13ed88266e6d612562a0c46390af8299fc699bc"
---------------------------
ERROR MESSAGE:
---------------------------
warning: custom registry support via the `registry.index`
configuration is being removed, this functionality will not work in
the future
error: failed to load source for a dependency on `rustfbp`
Caused by:
Unable to update registry file:///dev/null
Caused by:
failed to open:
/tmp/nix-build-nucleus_find_contract.drv-0/deps/registry/index/-ba82b75dd6681d6f/.cargo-index-lock
To learn more, run the command again with --verbose.
builder for ‘/nix/store/ai4r16qjr570ysgwapbzyjfp6jn7b3k4-nucleus_find_contract.drv’
failed with exit code 101
error: build of
‘/nix/store/ai4r16qjr570ysgwapbzyjfp6jn7b3k4-nucleus_find_contract.drv’
failed
kr/sjm
More information about the nix-dev
mailing list