Skip to content

Instantly share code, notes, and snippets.

@hamishmack
Created April 26, 2020 12:58
Show Gist options
  • Save hamishmack/94cf538f16afda3151af26bc078525f8 to your computer and use it in GitHub Desktop.
Save hamishmack/94cf538f16afda3151af26bc078525f8 to your computer and use it in GitHub Desktop.
file-embed cross compile error
querying info about '/nix/store/cj7gf1734a7xgywhnj6ry7aq6s72ar9p-git-ls-files' on 'https://cache.nixos.org'...
downloading 'https://cache.nixos.org/cj7gf1734a7xgywhnj6ry7aq6s72ar9p.narinfo'...
querying info about '/nix/store/cj7gf1734a7xgywhnj6ry7aq6s72ar9p-git-ls-files' on 'https://hydra.iohk.io'...
downloading 'https://hydra.iohk.io/cj7gf1734a7xgywhnj6ry7aq6s72ar9p.narinfo'...
building '/nix/store/x5cik0hi1br3amh2ni8wb4hnify0i1ry-git-ls-files.drv'...
trace: Get `stack-sha256` with `nix-hash --base32 --type sha256 /nix/store/1ckdby0dv7rmwzgcvqrqniwngnxzka3w-file-embed-stack-to-nix-pkgs/`
querying info about '/nix/store/1ckdby0dv7rmwzgcvqrqniwngnxzka3w-file-embed-stack-to-nix-pkgs' on 'https://cache.nixos.org'...
downloading 'https://cache.nixos.org/1ckdby0dv7rmwzgcvqrqniwngnxzka3w.narinfo'...
querying info about '/nix/store/1ckdby0dv7rmwzgcvqrqniwngnxzka3w-file-embed-stack-to-nix-pkgs' on 'https://hydra.iohk.io'...
downloading 'https://hydra.iohk.io/1ckdby0dv7rmwzgcvqrqniwngnxzka3w.narinfo'...
connecting to 'ssh://root@nix-docker'...
building '/nix/store/0i752p560xyhs1hjdy0ik1020vr6inc7-file-embed-stack-to-nix-pkgs.drv' on 'ssh://root@nix-docker'...
waiting for the upload lock to 'ssh://root@nix-docker'...
copying dependencies to 'ssh://root@nix-docker'...
copying 1 paths...
copying path '/nix/store/rkhcqfrsyalxv2zs6cpvjcahvcmpsbq2-file-embed' to 'ssh://root@nix-docker'...
substituteStream(): WARNING: pattern '/nix/store/rkhcqfrsyalxv2zs6cpvjcahvcmpsbq2-file-embed' doesn't match anything in file '/nix/store/1ckdby0dv7rmwzgcvqrqniwngnxzka3w-file-embed-stack-to-nix-pkgs/pkgs.nix'
substituteStream(): WARNING: pattern '/nix/store/rkhcqfrsyalxv2zs6cpvjcahvcmpsbq2-file-embed' doesn't match anything in file '/nix/store/1ckdby0dv7rmwzgcvqrqniwngnxzka3w-file-embed-stack-to-nix-pkgs/default.nix'
copying outputs from 'ssh://root@nix-docker'...
copying 1 paths...
copying path '/nix/store/1ckdby0dv7rmwzgcvqrqniwngnxzka3w-file-embed-stack-to-nix-pkgs' from 'ssh://root@nix-docker'...
querying info about '/nix/store/59isqbvcyd66ffsp2w5v3kxybyniwy90-x86_64-w64-mingw32-file-embed-0.0.11.2-test-test-x86_64-w64-mingw32-check-x86_64-w64-mingw32' on 'https://cache.nixos.org'...
downloading 'https://cache.nixos.org/59isqbvcyd66ffsp2w5v3kxybyniwy90.narinfo'...
querying info about '/nix/store/59isqbvcyd66ffsp2w5v3kxybyniwy90-x86_64-w64-mingw32-file-embed-0.0.11.2-test-test-x86_64-w64-mingw32-check-x86_64-w64-mingw32' on 'https://hydra.iohk.io'...
downloading 'https://hydra.iohk.io/59isqbvcyd66ffsp2w5v3kxybyniwy90.narinfo'...
querying info about '/nix/store/7i7p86vbv5spbkgf0jz5fvcylhxs449i-x86_64-w64-mingw32-file-embed-0.0.11.2-test-test-x86_64-w64-mingw32' on 'https://cache.nixos.org'...
downloading 'https://cache.nixos.org/7i7p86vbv5spbkgf0jz5fvcylhxs449i.narinfo'...
querying info about '/nix/store/611cy74pszngm09hj4ibhf13h3kwdg80-file-embed-0.0.11.2-test-test-x86_64-w64-mingw32-ghc-8.6.5-env' on 'https://cache.nixos.org'...
downloading 'https://cache.nixos.org/611cy74pszngm09hj4ibhf13h3kwdg80.narinfo'...
querying info about '/nix/store/611cy74pszngm09hj4ibhf13h3kwdg80-file-embed-0.0.11.2-test-test-x86_64-w64-mingw32-ghc-8.6.5-env' on 'https://hydra.iohk.io'...
downloading 'https://hydra.iohk.io/611cy74pszngm09hj4ibhf13h3kwdg80.narinfo'...
querying info about '/nix/store/7i7p86vbv5spbkgf0jz5fvcylhxs449i-x86_64-w64-mingw32-file-embed-0.0.11.2-test-test-x86_64-w64-mingw32' on 'https://hydra.iohk.io'...
downloading 'https://hydra.iohk.io/7i7p86vbv5spbkgf0jz5fvcylhxs449i.narinfo'...
querying info about '/nix/store/y7q608pimq2j9ivpyl0b8c1vgj1l4zss-x86_64-w64-mingw32-file-embed-0.0.11.2-test-test-config' on 'https://cache.nixos.org'...
downloading 'https://cache.nixos.org/y7q608pimq2j9ivpyl0b8c1vgj1l4zss.narinfo'...
querying info about '/nix/store/y7q608pimq2j9ivpyl0b8c1vgj1l4zss-x86_64-w64-mingw32-file-embed-0.0.11.2-test-test-config' on 'https://hydra.iohk.io'...
downloading 'https://hydra.iohk.io/y7q608pimq2j9ivpyl0b8c1vgj1l4zss.narinfo'...
querying info about '/nix/store/k8m0vlzlczx4mys2mkgka2k8l2wbgzf7-x86_64-w64-mingw32-file-embed-0.0.11.2-lib-file-embed-x86_64-w64-mingw32' on 'https://cache.nixos.org'...
downloading 'https://cache.nixos.org/k8m0vlzlczx4mys2mkgka2k8l2wbgzf7.narinfo'...
querying info about '/nix/store/k8m0vlzlczx4mys2mkgka2k8l2wbgzf7-x86_64-w64-mingw32-file-embed-0.0.11.2-lib-file-embed-x86_64-w64-mingw32' on 'https://hydra.iohk.io'...
downloading 'https://hydra.iohk.io/k8m0vlzlczx4mys2mkgka2k8l2wbgzf7.narinfo'...
these derivations will be built:
/nix/store/wbqr119mpk3hkv97xvwq28hcj4jlksam-x86_64-w64-mingw32-file-embed-0.0.11.2-lib-file-embed-x86_64-w64-mingw32.drv
/nix/store/724pn35vac1s1c8wsawr820dc0hwjdf8-x86_64-w64-mingw32-file-embed-0.0.11.2-test-test-config.drv
/nix/store/12npy7xnr7hxqbpa0bkmmhb5vm22j0nf-file-embed-0.0.11.2-test-test-x86_64-w64-mingw32-ghc-8.6.5-env.drv
/nix/store/h3cy1v7fpz5c377296kh3s1rkiwfnxs1-x86_64-w64-mingw32-file-embed-0.0.11.2-test-test-x86_64-w64-mingw32.drv
/nix/store/jphh68f2ff63kr71annbxjsd3jav39xd-x86_64-w64-mingw32-file-embed-0.0.11.2-test-test-x86_64-w64-mingw32-check-x86_64-w64-mingw32.drv
connecting to 'ssh://root@nix-docker'...
building '/nix/store/wbqr119mpk3hkv97xvwq28hcj4jlksam-x86_64-w64-mingw32-file-embed-0.0.11.2-lib-file-embed-x86_64-w64-mingw32.drv' on 'ssh://root@nix-docker'...
waiting for the upload lock to 'ssh://root@nix-docker'...
copying dependencies to 'ssh://root@nix-docker'...
unpacking sources
unpacking source archive /nix/store/rkhcqfrsyalxv2zs6cpvjcahvcmpsbq2-file-embed
source root is file-embed
patching sources
configuring
Configure flags:
--prefix=/nix/store/k8m0vlzlczx4mys2mkgka2k8l2wbgzf7-x86_64-w64-mingw32-file-embed-0.0.11.2-lib-file-embed-x86_64-w64-mingw32 lib:file-embed --package-db=clear --package-db=/nix/store/lkvz45msb99n4bp9sfir453n6l0w2dvg-x86_64-w64-mingw32-file-embed-0.0.11.2-lib-file-embed-config/lib/x86_64-w64-mingw32-ghc-8.6.5/package.conf.d --exact-configuration --dependency=rts=rts --dependency=ghc-heap=ghc-heap-8.6.5 --dependency=ghc-prim=ghc-prim-0.5.3 --dependency=integer-gmp=integer-gmp-1.0.2.0 --dependency=base=base-4.12.0.0 --dependency=deepseq=deepseq-1.4.4.0 --dependency=array=array-0.5.3.0 --dependency=ghc-boot-th=ghc-boot-th-8.6.5 --dependency=pretty=pretty-1.1.3.6 --dependency=template-haskell=template-haskell-2.14.0.0 --dependency=ghc-boot=ghc-boot-8.6.5 --dependency=Cabal=Cabal-2.4.0.1 --dependency=Win32=Win32-2.6.1.0 --dependency=array=array-0.5.3.0 --dependency=binary=binary-0.8.6.0 --dependency=bytestring=bytestring-0.10.8.2 --dependency=containers=containers-0.6.0.1 --dependency=directory=directory-1.3.3.0 --dependency=filepath=filepath-1.4.2.1 --dependency=ghc-boot=ghc-boot-8.6.5 --dependency=ghc-compact=ghc-compact-0.1.0.0 --dependency=ghc-prim=ghc-prim-0.5.3 --dependency=hpc=hpc-0.6.0.3 --dependency=mtl=mtl-2.2.2 --dependency=parsec=parsec-3.1.13.0 --dependency=process=process-1.6.5.0 --dependency=text=text-1.2.3.1 --dependency=time=time-1.8.0.2 --dependency=transformers=transformers-0.5.6.2 --with-ghc=x86_64-w64-mingw32-ghc --with-ghc-pkg=x86_64-w64-mingw32-ghc-pkg --with-hsc2hs=x86_64-w64-mingw32-hsc2hs --with-gcc=x86_64-w64-mingw32-cc --with-ld=x86_64-w64-mingw32-ld --with-ar=x86_64-w64-mingw32-ar --with-strip=x86_64-w64-mingw32-strip --disable-executable-stripping --disable-library-stripping --disable-library-profiling --disable-executable-profiling --enable-static --disable-shared --hsc2hs-option=--cross-compile --hsc2hs-option=--via-asm
Configuring library for file-embed-0.0.11.2..
Warning: The flag --disable-executable-profiling is deprecated. Please use
--disable-profiling instead.
building
Preprocessing library for file-embed-0.0.11.2..
Building library for file-embed-0.0.11.2..
[1 of 1] Compiling Data.FileEmbed ( Data/FileEmbed.hs, dist/build/Data/FileEmbed.o )
installing
Installing library in /nix/store/k8m0vlzlczx4mys2mkgka2k8l2wbgzf7-x86_64-w64-mingw32-file-embed-0.0.11.2-lib-file-embed-x86_64-w64-mingw32/lib/x86_64-windows-ghc-8.6.5/file-embed-0.0.11.2-3jOmZboyLwT9kkrPWOtBO7
post-installation fixup
patching script interpreter paths in /nix/store/k8m0vlzlczx4mys2mkgka2k8l2wbgzf7-x86_64-w64-mingw32-file-embed-0.0.11.2-lib-file-embed-x86_64-w64-mingw32
copying outputs from 'ssh://root@nix-docker'...
copying 1 paths...
copying path '/nix/store/k8m0vlzlczx4mys2mkgka2k8l2wbgzf7-x86_64-w64-mingw32-file-embed-0.0.11.2-lib-file-embed-x86_64-w64-mingw32' from 'ssh://root@nix-docker'...
connecting to 'ssh://root@nix-docker'...
building '/nix/store/724pn35vac1s1c8wsawr820dc0hwjdf8-x86_64-w64-mingw32-file-embed-0.0.11.2-test-test-config.drv' on 'ssh://root@nix-docker'...
waiting for the upload lock to 'ssh://root@nix-docker'...
copying dependencies to 'ssh://root@nix-docker'...
copying outputs from 'ssh://root@nix-docker'...
copying 1 paths...
copying path '/nix/store/y7q608pimq2j9ivpyl0b8c1vgj1l4zss-x86_64-w64-mingw32-file-embed-0.0.11.2-test-test-config' from 'ssh://root@nix-docker'...
connecting to 'ssh://root@nix-docker'...
building '/nix/store/12npy7xnr7hxqbpa0bkmmhb5vm22j0nf-file-embed-0.0.11.2-test-test-x86_64-w64-mingw32-ghc-8.6.5-env.drv' on 'ssh://root@nix-docker'...
waiting for the upload lock to 'ssh://root@nix-docker'...
copying dependencies to 'ssh://root@nix-docker'...
copying outputs from 'ssh://root@nix-docker'...
copying 1 paths...
copying path '/nix/store/611cy74pszngm09hj4ibhf13h3kwdg80-file-embed-0.0.11.2-test-test-x86_64-w64-mingw32-ghc-8.6.5-env' from 'ssh://root@nix-docker'...
connecting to 'ssh://root@nix-docker'...
building '/nix/store/h3cy1v7fpz5c377296kh3s1rkiwfnxs1-x86_64-w64-mingw32-file-embed-0.0.11.2-test-test-x86_64-w64-mingw32.drv' on 'ssh://root@nix-docker'...
waiting for the upload lock to 'ssh://root@nix-docker'...
copying dependencies to 'ssh://root@nix-docker'...
unpacking sources
unpacking source archive /nix/store/nk1jhfi133x4cm3ffpkf8nb561nbh417-file-embed
source root is file-embed
patching sources
configuring
Configure flags:
--prefix=/nix/store/7i7p86vbv5spbkgf0jz5fvcylhxs449i-x86_64-w64-mingw32-file-embed-0.0.11.2-test-test-x86_64-w64-mingw32 test:test --package-db=clear --package-db=/nix/store/y7q608pimq2j9ivpyl0b8c1vgj1l4zss-x86_64-w64-mingw32-file-embed-0.0.11.2-test-test-config/lib/x86_64-w64-mingw32-ghc-8.6.5/package.conf.d --exact-configuration --dependency=file-embed=file-embed-0.0.11.2-3jOmZboyLwT9kkrPWOtBO7 --dependency=rts=rts --dependency=ghc-heap=ghc-heap-8.6.5 --dependency=ghc-prim=ghc-prim-0.5.3 --dependency=integer-gmp=integer-gmp-1.0.2.0 --dependency=base=base-4.12.0.0 --dependency=deepseq=deepseq-1.4.4.0 --dependency=array=array-0.5.3.0 --dependency=ghc-boot-th=ghc-boot-th-8.6.5 --dependency=pretty=pretty-1.1.3.6 --dependency=template-haskell=template-haskell-2.14.0.0 --dependency=ghc-boot=ghc-boot-8.6.5 --dependency=Cabal=Cabal-2.4.0.1 --dependency=Win32=Win32-2.6.1.0 --dependency=array=array-0.5.3.0 --dependency=binary=binary-0.8.6.0 --dependency=bytestring=bytestring-0.10.8.2 --dependency=containers=containers-0.6.0.1 --dependency=directory=directory-1.3.3.0 --dependency=filepath=filepath-1.4.2.1 --dependency=ghc-boot=ghc-boot-8.6.5 --dependency=ghc-compact=ghc-compact-0.1.0.0 --dependency=ghc-prim=ghc-prim-0.5.3 --dependency=hpc=hpc-0.6.0.3 --dependency=mtl=mtl-2.2.2 --dependency=parsec=parsec-3.1.13.0 --dependency=process=process-1.6.5.0 --dependency=text=text-1.2.3.1 --dependency=time=time-1.8.0.2 --dependency=transformers=transformers-0.5.6.2 --with-ghc=x86_64-w64-mingw32-ghc --with-ghc-pkg=x86_64-w64-mingw32-ghc-pkg --with-hsc2hs=x86_64-w64-mingw32-hsc2hs --with-gcc=x86_64-w64-mingw32-cc --with-ld=x86_64-w64-mingw32-ld --with-ar=x86_64-w64-mingw32-ar --with-strip=x86_64-w64-mingw32-strip --disable-executable-stripping --disable-library-stripping --disable-library-profiling --disable-executable-profiling --enable-static --disable-shared --hsc2hs-option=--cross-compile --hsc2hs-option=--via-asm
Configuring test suite 'test' for file-embed-0.0.11.2..
Warning: The flag --disable-executable-profiling is deprecated. Please use
--disable-profiling instead.
building
Preprocessing test suite 'test' for file-embed-0.0.11.2..
Building test suite 'test' for file-embed-0.0.11.2..
[1 of 1] Compiling Main ( test/main.hs, dist/build/test/test-tmp/Main.o )
---> Starting remote-iserv on port 6345
---| remote-iserv should have started on 6345
wine: configuration in '/tmp/nix-build-x86_64-w64-mingw32-file-embed-0.0.11.2-test-test-x86_64-w64-mingw32.drv-0' has been updated.
Listening on port 6345
ghc: setNumCapabilities: not supported in the non-threaded RTS
ghc: setNumCapabilities: not supported in the non-threaded RTS
<no location info>: error:
test/sample/bar\baz: openBinaryFile: does not exist (No such file or directory)
---> killing remote-iserv...
builder for '/nix/store/h3cy1v7fpz5c377296kh3s1rkiwfnxs1-x86_64-w64-mingw32-file-embed-0.0.11.2-test-test-x86_64-w64-mingw32.drv' failed with exit code 1
error: build of '/nix/store/h3cy1v7fpz5c377296kh3s1rkiwfnxs1-x86_64-w64-mingw32-file-embed-0.0.11.2-test-test-x86_64-w64-mingw32.drv' on 'ssh://root@nix-docker' failed: builder for '/nix/store/h3cy1v7fpz5c377296kh3s1rkiwfnxs1-x86_64-w64-mingw32-file-embed-0.0.11.2-test-test-x86_64-w64-mingw32.drv' failed with exit code 1
builder for '/nix/store/h3cy1v7fpz5c377296kh3s1rkiwfnxs1-x86_64-w64-mingw32-file-embed-0.0.11.2-test-test-x86_64-w64-mingw32.drv' failed with exit code 1
cannot build derivation '/nix/store/jphh68f2ff63kr71annbxjsd3jav39xd-x86_64-w64-mingw32-file-embed-0.0.11.2-test-test-x86_64-w64-mingw32-check-x86_64-w64-mingw32.drv': 1 dependencies couldn't be built
error: build of '/nix/store/jphh68f2ff63kr71annbxjsd3jav39xd-x86_64-w64-mingw32-file-embed-0.0.11.2-test-test-x86_64-w64-mingw32-check-x86_64-w64-mingw32.drv' failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment