To reproduce the NAR hash mismatch, I need to completely reinstall nix
(just deleting the user's cache is not enough). Then without the extra-*
parameters in the nix.conf
, it fails again. When using nix
with the -vvvv
flag, I find a couple of warnings, which might be the issue of why I cannot build it without m-labs' binary cache:
checking substituter 'https://cache.nixos.org' for path '/nix/store/zsqdizhqglanihnzrnidljcznvdnbbh0-source'
entered goal loop
substitution of '/nix/store/zsqdizhqglanihnzrnidljcznvdnbbh0-source': init
substitution of '/nix/store/zsqdizhqglanihnzrnidljcznvdnbbh0-source': trying next substituter
substitution of '/nix/store/zsqdizhqglanihnzrnidljcznvdnbbh0-source': trying next substituter
path '/nix/store/zsqdizhqglanihnzrnidljcznvdnbbh0-source' is required, but there is no substituter that can build it
substitution of '/nix/store/zsqdizhqglanihnzrnidljcznvdnbbh0-source': done
substitution of '/nix/store/zsqdizhqglanihnzrnidljcznvdnbbh0-source': goal destroyed
substitution of input 'git+https://github.com/m-labs/misoc.git?ref=refs/heads/master&rev=fea9de558c730bc394a5936094ae95bb9d6fa726&submodules=1' failed: error: path '/nix/store/zsqdizhqglanihnzrnidljcznvdnbbh0-source' does not exist and cannot be created
locking path '/scratch-local/gitlab-runner/cache/nix/gitv3/0rsc3jc6f6j7icbxp6zlx02pmb6c4lihjhz2x4jj76vhrywa2l5p'
lock acquired on '/scratch-local/gitlab-runner/cache/nix/gitv3/0rsc3jc6f6j7icbxp6zlx02pmb6c4lihjhz2x4jj76vhrywa2l5p.lock'
fetching Git repository 'https://github.com/m-labs/misoc.git'...
warning: could not update mtime for file '/scratch-local/gitlab-runner/cache/nix/gitv3/0rsc3jc6f6j7icbxp6zlx02pmb6c4lihjhz2x4jj76vhrywa2l5p/refs/heads/master': No such file or directory
lock released on '/scratch-local/gitlab-runner/cache/nix/gitv3/0rsc3jc6f6j7icbxp6zlx02pmb6c4lihjhz2x4jj76vhrywa2l5p.lock'
did not find cache entry for '{"_what":"gitLastModified","rev":"fea9de558c730bc394a5936094ae95bb9d6fa726"}'
did not find cache entry for '{"_what":"gitRevCount","rev":"fea9de558c730bc394a5936094ae95bb9d6fa726"}'
getting Git revision count of 'https://github.com/m-labs/misoc.git'...
using revision fea9de558c730bc394a5936094ae95bb9d6fa726 of repo 'https://github.com/m-labs/misoc.git'
Git submodule /misoc/cores/lm32/verilog/submodule: https://github.com/m-labs/lm32.git 84b3e3ca0ad9535acaef201c1482342871358b08 -> https://github.com/m-labs/lm32.git
resolved HEAD ref 'refs/heads/master' for repo 'https://github.com/m-labs/lm32.git'
locking path '/scratch-local/gitlab-runner/cache/nix/gitv3/0svzd3jrh8qj3fp5y213nri82a4jxn3jpacnygvy6gijri6rb6g1'
lock acquired on '/scratch-local/gitlab-runner/cache/nix/gitv3/0svzd3jrh8qj3fp5y213nri82a4jxn3jpacnygvy6gijri6rb6g1.lock'
fetching Git repository 'https://github.com/m-labs/lm32.git'...
warning: could not update mtime for file '/scratch-local/gitlab-runner/cache/nix/gitv3/0svzd3jrh8qj3fp5y213nri82a4jxn3jpacnygvy6gijri6rb6g1/refs/heads/master': No such file or directory
lock released on '/scratch-local/gitlab-runner/cache/nix/gitv3/0svzd3jrh8qj3fp5y213nri82a4jxn3jpacnygvy6gijri6rb6g1.lock'
did not find cache entry for '{"_what":"gitLastModified","rev":"84b3e3ca0ad9535acaef201c1482342871358b08"}'
did not find cache entry for '{"_what":"gitRevCount","rev":"84b3e3ca0ad9535acaef201c1482342871358b08"}'
getting Git revision count of 'https://github.com/m-labs/lm32.git'...
using revision 84b3e3ca0ad9535acaef201c1482342871358b08 of repo 'https://github.com/m-labs/lm32.git'
Git submodule /misoc/cores/mor1kx/verilog: https://github.com/m-labs/mor1kx.git b9e1cd6ee49940eec246605938a5d905d7e999d3 -> https://github.com/m-labs/mor1kx.git
resolved HEAD ref 'refs/heads/master' for repo 'https://github.com/m-labs/mor1kx.git'
locking path '/scratch-local/gitlab-runner/cache/nix/gitv3/1y9nczl9xxd5aq58bl59lnjylcgx7mx5f3zfczfgf64mpn08ssnk'
lock acquired on '/scratch-local/gitlab-runner/cache/nix/gitv3/1y9nczl9xxd5aq58bl59lnjylcgx7mx5f3zfczfgf64mpn08ssnk.lock'
fetching Git repository 'https://github.com/m-labs/mor1kx.git'...
warning: could not update mtime for file '/scratch-local/gitlab-runner/cache/nix/gitv3/1y9nczl9xxd5aq58bl59lnjylcgx7mx5f3zfczfgf64mpn08ssnk/refs/heads/master': No such file or directory
lock released on '/scratch-local/gitlab-runner/cache/nix/gitv3/1y9nczl9xxd5aq58bl59lnjylcgx7mx5f3zfczfgf64mpn08ssnk.lock'
did not find cache entry for '{"_what":"gitLastModified","rev":"b9e1cd6ee49940eec246605938a5d905d7e999d3"}'
did not find cache entry for '{"_what":"gitRevCount","rev":"b9e1cd6ee49940eec246605938a5d905d7e999d3"}'
getting Git revision count of 'https://github.com/m-labs/mor1kx.git'...
using revision b9e1cd6ee49940eec246605938a5d905d7e999d3 of repo 'https://github.com/m-labs/mor1kx.git'
Git submodule /misoc/cores/vexriscv/verilog: https://github.com/m-labs/VexRiscv-verilog.git 2e4f43d72404a986c9d7251d9d543cf7aef077bc -> https://github.com/m-labs/VexRiscv-verilog.git
resolved HEAD ref 'refs/heads/master' for repo 'https://github.com/m-labs/VexRiscv-verilog.git'
locking path '/scratch-local/gitlab-runner/cache/nix/gitv3/06fsdx4afhvaqkn57m8fj0767wh5bmfg9hwjp7i4733hcgkwkcf0'
lock acquired on '/scratch-local/gitlab-runner/cache/nix/gitv3/06fsdx4afhvaqkn57m8fj0767wh5bmfg9hwjp7i4733hcgkwkcf0.lock'
fetching Git repository 'https://github.com/m-labs/VexRiscv-verilog.git'...
warning: could not update mtime for file '/scratch-local/gitlab-runner/cache/nix/gitv3/06fsdx4afhvaqkn57m8fj0767wh5bmfg9hwjp7i4733hcgkwkcf0/refs/heads/master': No such file or directory
lock released on '/scratch-local/gitlab-runner/cache/nix/gitv3/06fsdx4afhvaqkn57m8fj0767wh5bmfg9hwjp7i4733hcgkwkcf0.lock'
did not find cache entry for '{"_what":"gitLastModified","rev":"2e4f43d72404a986c9d7251d9d543cf7aef077bc"}'
did not find cache entry for '{"_what":"gitRevCount","rev":"2e4f43d72404a986c9d7251d9d543cf7aef077bc"}'
getting Git revision count of 'https://github.com/m-labs/VexRiscv-verilog.git'...
using revision 2e4f43d72404a986c9d7251d9d543cf7aef077bc of repo 'https://github.com/m-labs/VexRiscv-verilog.git'
Git submodule /misoc/software/compiler_rt: https://github.com/llvm-mirror/compiler-rt.git 7f1c97c76620a6ee795792e6120d98a7edf81e65 -> https://github.com/llvm-mirror/compiler-rt.git
resolved HEAD ref 'refs/heads/master' for repo 'https://github.com/llvm-mirror/compiler-rt.git'
locking path '/scratch-local/gitlab-runner/cache/nix/gitv3/0padfbwz9xbpg55gdfiqvk5k5sp3n5kifr47h3jmqa5y10n170pd'
lock acquired on '/scratch-local/gitlab-runner/cache/nix/gitv3/0padfbwz9xbpg55gdfiqvk5k5sp3n5kifr47h3jmqa5y10n170pd.lock'
fetching Git repository 'https://github.com/llvm-mirror/compiler-rt.git'...
warning: could not update mtime for file '/scratch-local/gitlab-runner/cache/nix/gitv3/0padfbwz9xbpg55gdfiqvk5k5sp3n5kifr47h3jmqa5y10n170pd/refs/heads/master': No such file or directory
lock released on '/scratch-local/gitlab-runner/cache/nix/gitv3/0padfbwz9xbpg55gdfiqvk5k5sp3n5kifr47h3jmqa5y10n170pd.lock'
did not find cache entry for '{"_what":"gitLastModified","rev":"7f1c97c76620a6ee795792e6120d98a7edf81e65"}'
did not find cache entry for '{"_what":"gitRevCount","rev":"7f1c97c76620a6ee795792e6120d98a7edf81e65"}'
getting Git revision count of 'https://github.com/llvm-mirror/compiler-rt.git'...
using revision 7f1c97c76620a6ee795792e6120d98a7edf81e65 of repo 'https://github.com/llvm-mirror/compiler-rt.git'
did not find cache entry for '{"_what":"fetchToStore","fingerprint":"fea9de558c730bc394a5936094ae95bb9d6fa726;s","method":"nar","name":"source","path":"/","store":"/nix/store"}'
copying '«git+https://github.com/m-labs/misoc.git?ref=refs/heads/master&rev=fea9de558c730bc394a5936094ae95bb9d6fa726&submodules=1»/' to the store...
So maybe git+https://github.com/m-labs/misoc.git
is our troublemaker dependency? Maybe also this nix issue on GitHub is related?
Also, I haven't had any problems with the single-user nix install on WSL2, which I use for development.