Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test for embedFile from the file-embed package #2191

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Merge remote-tracking branch 'origin/master' into hkm/embed-file

8db37b7
Select commit
Loading
Failed to load commit list.
Open

Add test for embedFile from the file-embed package #2191

Merge remote-tracking branch 'origin/master' into hkm/embed-file
8db37b7
Select commit
Loading
Failed to load commit list.
zw3rk Hydra / ci/hydra-build:x86_64-linux.unstable.ghc983.mingwW64.tests.embed-file.build failed Nov 11, 2024 in 5s

Build failed

1 failed steps

Details

Failed Steps

Step 1

Derivation

/nix/store/n22yw6kkj4srbv53s0b1w1nlpj0mmqnh-embed-file-exe-embed-file-x86_64-w64-mingw32-0.1.0.0.drv

Log

Running phase: unpackPhase
unpacking source archive /nix/store/h0b2r1gyi70i6vpg2hi2bc67vc59jhls-source-test-embed-file-exe-embed-file-root
source root is source-test-embed-file-exe-embed-file-root
Running phase: patchPhase
Running phase: updateAutotoolsGnuConfigScriptsPhase
Running phase: configurePhase
Configure flags:
--prefix=/nix/store/hyp6w5iq2q3ix62fpfj3i4vs0bsn4r6a-embed-file-exe-embed-file-x86_64-w64-mingw32-0.1.0.0 exe:embed-file --package-db=clear --package-db=/build/tmp.oVzmIY2F7u/lib/package.conf.d --exact-configuration --dependency=file-embed=file-embed-0.0.16.0-9bwXzgAEP8JLcbdTixb43B --dependency=directory=directory-1.3.9.0-6K7YpZuvSkNIOcQWO4IiZJ --dependency=Win32=Win32-2.14.0.0-BxivPZZPPzHE3ZYZyZO8Xn --dependency=filepath=filepath-1.5.3.0-BNL4vsmcgS1AacGGaBIxcI --dependency=os-string=os-string-2.0.6-ETmawyQtdQU57HIYNyn5ca --dependency=os-string=os-string-2.0.6-ETmawyQtdQU57HIYNyn5ca --dependency=file-io=file-io-0.1.4-6yUShaW5Rgr9hGRDHYTJyL --dependency=time=time-1.14-Cyrd7AQepD8CphIGwyAy0Q --dependency=array=array-0.5.8.0-inplace --dependency=base=base-4.19.2.0-inplace --dependency=binary=binary-0.8.9.1-inplace --dependency=bytestring=bytestring-0.12.1.0-inplace --dependency=containers=containers-0.6.8-inplace --dependency=deepseq=deepseq-1.5.1.0-inplace --dependency=exceptions=exceptions-0.10.7-inplace --dependency=ghc-bignum=ghc-bignum-1.3-inplace --dependency=ghc-boot-th=ghc-boot-th-9.8.3-inplace --dependency=ghc-prim=ghc-prim-0.11.0-inplace --dependency=integer-gmp=integer-gmp-1.1-inplace --dependency=mtl=mtl-2.3.1-inplace --dependency=pretty=pretty-1.1.3.6-inplace --dependency=rts=rts-1.0.2 --dependency=stm=stm-2.5.3.1-inplace --dependency=system-cxx-std-lib=system-cxx-std-lib-1.0 --dependency=template-haskell=template-haskell-2.21.0.0-inplace --dependency=text=text-2.1.1-inplace --dependency=transformers=transformers-0.6.1.0-inplace --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-ar=x86_64-w64-mingw32-ar --with-strip=x86_64-w64-mingw32-strip --with-ld=x86_64-w64-mingw32-ld --disable-executable-stripping --disable-library-stripping --disable-library-profiling --disable-profiling --enable-static --disable-shared --disable-executable-dynamic --disable-coverage --enable-library-for-ghci --datadir=/nix/store/81cpaipp5i2wr27z4j931822ly4jg0vr-embed-file-exe-embed-file-x86_64-w64-mingw32-0.1.0.0-data/share/x86_64-w64-mingw32-ghc-9.8.3 --hsc2hs-option=--cross-compile --hsc2hs-option=--via-asm --disable-split-sections 
Configuring executable 'embed-file' for embed-file-0.1.0.0..
Running phase: buildPhase
Preprocessing executable 'embed-file' for embed-file-0.1.0.0..
Building executable 'embed-file' for embed-file-0.1.0.0..
[1 of 1] Compiling Main             ( app/Main.hs, dist/build/embed-file/embed-file-tmp/Main.o )
---> Starting iserv-proxy-interpreter.exe on port 9813
To re-use the same wine-prefix and remote-iserv, set the following environment variables:
export WINEPREFIX=/build/tmp.efzpj75E5w
export REMOTE_ISERV=/build/tmp.AOpmjarq6L
---| iserv-proxy-interpreter.exe should have started on 9813
004c:err:systray:initialize_systray Could not create tray window
0090:err:setupapi:SetupDefaultQueueCallbackW copy error 1812 L"@C:\\windows\\system32\\drivers\\wineusb.sys,-1" -> L"C:\\windows\\inf\\wineusb.inf"
wine: failed to open L"C:\\windows\\syswow64\\rundll32.exe": c0000135
wine: configuration in L"/build" has been updated.
Listening on port 9813

app/Main.hs:12:14: error: [GHC-87897]
    • Exception when trying to run compile-time code:
        Z:\build\source-test-embed-file-exe-embed-file-root\test\embed-file\app/test.txt: withBinaryFile: invalid argument (Bad file descriptor)
      Code: (makeRelativeToProject "app/test.txt" >>= embedFile)
    • In the untyped splice:
        $(makeRelativeToProject "app/test.txt" >>= embedFile)
   |
12 |   let test = $(makeRelativeToProject "app/test.txt" >>= embedFile)
   |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
---> killing iserv-proxy-interpreter.exe...