Cannot seem to be able to use engine as dependency because ktx-codec is broken?
Hello there!
I'm trying to get a simple project going and I'm getting failed tests related to ktx-codec. I don't know if this is because of an interaction between the engine and its dependency on ktx-codec, or whether this issue is isolated to ktx-codec itself.
The ktx-codec package is marked as broken on nixpkgs which is another barrier to people wanting to use the engine. Even when allowing broken though, things refuse to finish compiling because of tests failing
@nix { "action": "setPhase", "phase": "setupCompilerEnvironmentPhase" }
setupCompilerEnvironmentPhase
Build with /nix/store/x4zfzcl0188si8wf0c2xlgx3mb21ljwh-ghc-8.10.7.
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/mqklsg5dzmm2xrv5amf8rrd63p1cjz2d-ktx-codec-0.0.1.3.tar.gz
source root is ktx-codec-0.0.1.3
setting SOURCE_DATE_EPOCH to timestamp 1617560102 of file ktx-codec-0.0.1.3/ChangeLog.md
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
@nix { "action": "setPhase", "phase": "compileBuildDriverPhase" }
compileBuildDriverPhase
setupCompileFlags: -package-db=/build/setup-package.conf.d -j16 +RTS -A64M -RTS -threaded -rtsopts
[1 of 1] Compiling Main ( Setup.hs, /build/Main.o )
Linking Setup ...
@nix { "action": "setPhase", "phase": "configurePhase" }
configuring
configureFlags: --verbose --prefix=/nix/store/shvrw92va14y9x80l5dcgkl8aps8afi8-ktx-codec-0.0.1.3 --libdir=$prefix/lib/$compiler --libsubdir=$abi/$libname --docdir=/nix/store/w9mbw7jykv9b921xi8kaawpiz0j8g1z0-ktx-codec-0.0.1.3-doc/share/doc/ktx-codec-0.0.1.3 --with-gcc=gcc --package-db=/build/package.conf.d --ghc-options=-j16 +RTS -A64M -RTS --disable-split-objs --enable-library-profiling --profiling-detail=exported-functions --disable-profiling --enable-shared --disable-coverage --enable-static --disable-executable-dynamic --enable-tests --disable-benchmarks --enable-library-vanilla --disable-library-for-ghci --ghc-option=-split-sections --extra-lib-dirs=/nix/store/02hgizi6v46z0a1giis0q93wq6g22d77-ncurses-6.2/lib --extra-lib-dirs=/nix/store/cfyzv2lgw2h00fc8b66a7lfcr00xyhll-libffi-3.4.2/lib --extra-lib-dirs=/nix/store/23wbh47iv1w6wz9pdwdq8wyl85n6jb4x-gmp-6.2.1/lib
Using Parsec parser
Configuring ktx-codec-0.0.1.3...
Dependency base >=4.7 && <5: using base-4.14.3.0
Dependency binary >=0.8.7 && <1: using binary-0.8.8.0
Dependency bytestring >=0.10 && <0.12: using bytestring-0.10.12.0
Dependency containers ==0.6.*: using containers-0.6.5.1
Dependency text ==1.2.*: using text-1.2.4.1
Dependency vector ==0.12.*: using vector-0.12.3.1
Dependency base >=4.7 && <5: using base-4.14.3.0
Dependency binary >=0.8.7 && <1: using binary-0.8.8.0
Dependency bytestring >=0.10 && <0.12: using bytestring-0.10.12.0
Dependency containers ==0.6.*: using containers-0.6.5.1
Dependency directory ==1.3.*: using directory-1.3.6.0
Dependency filepath ==1.4.*: using filepath-1.4.2.1
Dependency ktx-codec -any: using ktx-codec-0.0.1.3
Dependency shower ==0.2.*: using shower-0.2.0.2
Dependency text ==1.2.*: using text-1.2.4.1
Dependency vector ==0.12.*: using vector-0.12.3.1
Source component graph:
component lib
component test:ktx-codec-test dependency lib
Configured component graph:
component ktx-codec-0.0.1.3-Agd2dTEeWat1i5NfPjVHKF
include base-4.14.3.0
include binary-0.8.8.0
include bytestring-0.10.12.0
include containers-0.6.5.1
include text-1.2.4.1
include vector-0.12.3.1-8Hw1CqyuX2mJCDU9tUeRT3
component ktx-codec-0.0.1.3-ImQKZfz3ecIEsVXh9JTYBe-ktx-codec-test
include base-4.14.3.0
include binary-0.8.8.0
include bytestring-0.10.12.0
include containers-0.6.5.1
include directory-1.3.6.0
include filepath-1.4.2.1
include ktx-codec-0.0.1.3-Agd2dTEeWat1i5NfPjVHKF
include shower-0.2.0.2-CnC5bAoftpR2vqhLrZI9Hs
include text-1.2.4.1
include vector-0.12.3.1-8Hw1CqyuX2mJCDU9tUeRT3
Linked component graph:
unit ktx-codec-0.0.1.3-Agd2dTEeWat1i5NfPjVHKF
include base-4.14.3.0
include binary-0.8.8.0
include bytestring-0.10.12.0
include containers-0.6.5.1
include text-1.2.4.1
include vector-0.12.3.1-8Hw1CqyuX2mJCDU9tUeRT3
Codec.Ktx=ktx-codec-0.0.1.3-Agd2dTEeWat1i5NfPjVHKF:Codec.Ktx
unit ktx-codec-0.0.1.3-ImQKZfz3ecIEsVXh9JTYBe-ktx-codec-test
include base-4.14.3.0
include binary-0.8.8.0
include bytestring-0.10.12.0
include containers-0.6.5.1
include directory-1.3.6.0
include filepath-1.4.2.1
include ktx-codec-0.0.1.3-Agd2dTEeWat1i5NfPjVHKF
include shower-0.2.0.2-CnC5bAoftpR2vqhLrZI9Hs
include text-1.2.4.1
include vector-0.12.3.1-8Hw1CqyuX2mJCDU9tUeRT3
Ready component graph:
definite ktx-codec-0.0.1.3-Agd2dTEeWat1i5NfPjVHKF
depends base-4.14.3.0
depends binary-0.8.8.0
depends bytestring-0.10.12.0
depends containers-0.6.5.1
depends text-1.2.4.1
depends vector-0.12.3.1-8Hw1CqyuX2mJCDU9tUeRT3
definite ktx-codec-0.0.1.3-ImQKZfz3ecIEsVXh9JTYBe-ktx-codec-test
depends base-4.14.3.0
depends binary-0.8.8.0
depends bytestring-0.10.12.0
depends containers-0.6.5.1
depends directory-1.3.6.0
depends filepath-1.4.2.1
depends ktx-codec-0.0.1.3-Agd2dTEeWat1i5NfPjVHKF
depends shower-0.2.0.2-CnC5bAoftpR2vqhLrZI9Hs
depends text-1.2.4.1
depends vector-0.12.3.1-8Hw1CqyuX2mJCDU9tUeRT3
Using Cabal-3.2.1.0 compiled by ghc-8.10
Using compiler: ghc-8.10.7
Using install prefix:
/nix/store/shvrw92va14y9x80l5dcgkl8aps8afi8-ktx-codec-0.0.1.3
Executables installed in:
/nix/store/shvrw92va14y9x80l5dcgkl8aps8afi8-ktx-codec-0.0.1.3/bin
Libraries installed in:
/nix/store/shvrw92va14y9x80l5dcgkl8aps8afi8-ktx-codec-0.0.1.3/lib/ghc-8.10.7/x86_64-linux-ghc-8.10.7/ktx-codec-0.0.1.3-Agd2dTEeWat1i5NfPjVHKF
Dynamic Libraries installed in:
/nix/store/shvrw92va14y9x80l5dcgkl8aps8afi8-ktx-codec-0.0.1.3/lib/ghc-8.10.7/x86_64-linux-ghc-8.10.7
Private executables installed in:
/nix/store/shvrw92va14y9x80l5dcgkl8aps8afi8-ktx-codec-0.0.1.3/libexec/x86_64-linux-ghc-8.10.7/ktx-codec-0.0.1.3
Data files installed in:
/nix/store/shvrw92va14y9x80l5dcgkl8aps8afi8-ktx-codec-0.0.1.3/share/x86_64-linux-ghc-8.10.7/ktx-codec-0.0.1.3
Documentation installed in:
/nix/store/w9mbw7jykv9b921xi8kaawpiz0j8g1z0-ktx-codec-0.0.1.3-doc/share/doc/ktx-codec-0.0.1.3
Configuration files installed in:
/nix/store/shvrw92va14y9x80l5dcgkl8aps8afi8-ktx-codec-0.0.1.3/etc
No alex found
Using ar found on system at:
/nix/store/cdm6zywd51mbabxhklsixwcskv4n70s3-binutils-2.35.2/bin/ar
No c2hs found
No cpphs found
No doctest found
Using gcc version 10.3.0 given by user at:
/nix/store/npm4g1zsj5yzygf6bq46pbi9fqhxisha-gcc-wrapper-10.3.0/bin/gcc
Using ghc version 8.10.7 found on system at:
/nix/store/x4zfzcl0188si8wf0c2xlgx3mb21ljwh-ghc-8.10.7/bin/ghc
Using ghc-pkg version 8.10.7 found on system at:
/nix/store/x4zfzcl0188si8wf0c2xlgx3mb21ljwh-ghc-8.10.7/bin/ghc-pkg
No ghcjs found
No ghcjs-pkg found
No greencard found
Using haddock version 2.24.2 found on system at:
/nix/store/x4zfzcl0188si8wf0c2xlgx3mb21ljwh-ghc-8.10.7/bin/haddock
No happy found
Using haskell-suite found on system at: haskell-suite-dummy-location
Using haskell-suite-pkg found on system at: haskell-suite-pkg-dummy-location
No hmake found
Using hpc version 0.68 found on system at:
/nix/store/x4zfzcl0188si8wf0c2xlgx3mb21ljwh-ghc-8.10.7/bin/hpc
Using hsc2hs version 0.68.7 found on system at:
/nix/store/x4zfzcl0188si8wf0c2xlgx3mb21ljwh-ghc-8.10.7/bin/hsc2hs
Using hscolour version 1.24 found on system at:
/nix/store/zncpbccgxs1wlvy6s8k5936kxfl050vr-hscolour-1.24.4/bin/HsColour
No jhc found
Using ld found on system at:
/nix/store/w327j7z9wlv7hym4spjzagax7c5hqvrf-binutils-wrapper-2.35.2/bin/ld.gold
No pkg-config found
Using runghc version 8.10.7 found on system at:
/nix/store/x4zfzcl0188si8wf0c2xlgx3mb21ljwh-ghc-8.10.7/bin/runghc
Using strip version 2.35 found on system at:
/nix/store/npm4g1zsj5yzygf6bq46pbi9fqhxisha-gcc-wrapper-10.3.0/bin/strip
Using tar found on system at:
/nix/store/sdpqvnmahizaxbs3nnzmgfgyqsdxb1bw-gnutar-1.34/bin/tar
No uhc found
@nix { "action": "setPhase", "phase": "buildPhase" }
building
Preprocessing library for ktx-codec-0.0.1.3..
Building library for ktx-codec-0.0.1.3..
[1 of 2] Compiling Codec.Ktx ( src/Codec/Ktx.hs, dist/build/Codec/Ktx.o, dist/build/Codec/Ktx.dyn_o )
[2 of 2] Compiling Paths_ktx_codec ( dist/build/autogen/Paths_ktx_codec.hs, dist/build/Paths_ktx_codec.o, dist/build/Paths_ktx_codec.dyn_o )
[1 of 2] Compiling Codec.Ktx ( src/Codec/Ktx.hs, dist/build/Codec/Ktx.p_o )
[2 of 2] Compiling Paths_ktx_codec ( dist/build/autogen/Paths_ktx_codec.hs, dist/build/Paths_ktx_codec.p_o )
Preprocessing test suite 'ktx-codec-test' for ktx-codec-0.0.1.3..
Building test suite 'ktx-codec-test' for ktx-codec-0.0.1.3..
[1 of 2] Compiling Main ( test/Spec.hs, dist/build/ktx-codec-test/ktx-codec-test-tmp/Main.o )
[2 of 2] Compiling Paths_ktx_codec ( dist/build/ktx-codec-test/autogen/Paths_ktx_codec.hs, dist/build/ktx-codec-test/ktx-codec-test-tmp/Paths_ktx_codec.o )
Linking dist/build/ktx-codec-test/ktx-codec-test ...
@nix { "action": "setPhase", "phase": "checkPhase" }
running tests
Running 1 test suites...
Test suite ktx-codec-test: RUNNING...
ktx-codec-test: ../assets: getDirectoryContents:openDirStream: does not exist (No such file or directory)
Test suite ktx-codec-test: FAIL
Test suite logged to: dist/test/ktx-codec-0.0.1.3-ktx-codec-test.log
0 of 1 test suites (0 of 1 test cases) passed.