Running phase: setupCompilerEnvironmentPhase setupCompilerEnvironmentPhase Build with /nix/store/ic7wdfrif8raic2z6xiq2qv1bfzxi8li-ghc-9.2.4. Running phase: unpackPhase unpacking sources unpacking source archive /nix/store/4629ivi24r0jfzszynwcb6yw2lsz656c-hslua-core-2.2.1.tar.gz source root is hslua-core-2.2.1 setting SOURCE_DATE_EPOCH to timestamp 1000000000 of file hslua-core-2.2.1/test/Test/Tasty/HsLua.hs Running phase: patchPhase patching sources Running phase: compileBuildDriverPhase compileBuildDriverPhase setupCompileFlags: -package-db=/build/tmp.c3OdkGtcWE/setup-package.conf.d -j16 +RTS -A64M -RTS -threaded -rtsopts [1 of 1] Compiling Main ( /nix/store/4mdp8nhyfddh7bllbi7xszz7k9955n79-Setup.hs, /build/tmp.c3OdkGtcWE/Main.o ) Linking Setup ... Running phase: configurePhase configuring configureFlags: --verbose --prefix=/nix/store/lnznrjxvbmdrmikw8kmmwl2x55gn1xci-hslua-core-2.2.1 --libdir=$prefix/lib/$compiler --libsubdir=$abi/$libname --docdir=/nix/store/m562b8pacaimh25ahwfpv4y5a72pr19l-hslua-core-2.2.1-doc/share/doc/hslua-core-2.2.1 --with-gcc=gcc --package-db=/build/tmp.c3OdkGtcWE/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 --ghc-options=-haddock --extra-lib-dirs=/nix/store/qfbw9zmdlllswnx3vqkxgz6dzwhlv985-ncurses-6.3-p20220507/lib --extra-lib-dirs=/nix/store/gsycfmysih14pxphxsk5lvlh5sw6wn02-libffi-3.4.4/lib --extra-lib-dirs=/nix/store/kyxg6j5rirfygdqfqkrm1azg7dqdmhbh-gmp-with-cxx-6.2.1/lib Using Parsec parser Configuring hslua-core-2.2.1... Dependency base >=4.8 && <5: using base-4.16.3.0 Dependency bytestring >=0.10.2 && <0.12: using bytestring-0.11.3.1 Dependency exceptions >=0.8 && <0.11: using exceptions-0.10.4 Dependency lua >=2.2.1 && <2.3: using lua-2.2.1 Dependency mtl >=2.2 && <2.4: using mtl-2.2.2 Dependency text >=1.2 && <2.1: using text-1.2.5.0 Dependency QuickCheck >=2.7: using QuickCheck-2.14.2 Dependency base >=4.8 && <5: using base-4.16.3.0 Dependency bytestring >=0.10.2 && <0.12: using bytestring-0.11.3.1 Dependency exceptions >=0.8 && <0.11: using exceptions-0.10.4 Dependency hslua-core: using hslua-core-2.2.1 Dependency lua >=2.2.1 && <2.3: using lua-2.2.1 Dependency lua-arbitrary >=1.0: using lua-arbitrary-1.0.1 Dependency mtl >=2.2 && <2.4: using mtl-2.2.2 Dependency quickcheck-instances >=0.3: using quickcheck-instances-0.3.28 Dependency tasty >=0.11: using tasty-1.4.3 Dependency tasty-hunit >=0.9: using tasty-hunit-0.10.0.3 Dependency tasty-quickcheck >=0.8: using tasty-quickcheck-0.10.2 Dependency text >=1.2 && <2.1: using text-1.2.5.0 Source component graph: component lib component test:test-hslua-core dependency lib Configured component graph: component hslua-core-2.2.1-Bk0kcaVk6GbGFn2IR0reQv include base-4.16.3.0 include bytestring-0.11.3.1 include exceptions-0.10.4 include lua-2.2.1-IXypNPrwq99T1gaPe7BvD include mtl-2.2.2 include text-1.2.5.0 component hslua-core-2.2.1-3oe4KvQkvUwBG4Oqa7OFb-test-hslua-core include QuickCheck-2.14.2-GmIzHg8jhXyDhZvBXz41zC include base-4.16.3.0 include bytestring-0.11.3.1 include exceptions-0.10.4 include hslua-core-2.2.1-Bk0kcaVk6GbGFn2IR0reQv include lua-2.2.1-IXypNPrwq99T1gaPe7BvD include lua-arbitrary-1.0.1-K6yw1xVFepALIAKFzk7Lqv include mtl-2.2.2 include quickcheck-instances-0.3.28-Fh0MjS4rhNIAUuNG7YiHng include tasty-1.4.3-GWxUmleI5wP5a1FThg9FCC include tasty-hunit-0.10.0.3-J6j1MKmS9LU1bOAnmOLIMX include tasty-quickcheck-0.10.2-5Swo0kq0Lcu2sDnWgsB8x9 include text-1.2.5.0 Linked component graph: unit hslua-core-2.2.1-Bk0kcaVk6GbGFn2IR0reQv include base-4.16.3.0 include bytestring-0.11.3.1 include exceptions-0.10.4 include lua-2.2.1-IXypNPrwq99T1gaPe7BvD include mtl-2.2.2 include text-1.2.5.0 HsLua.Core=hslua-core-2.2.1-Bk0kcaVk6GbGFn2IR0reQv:HsLua.Core,HsLua.Core.Closures=hslua-core-2.2.1-Bk0kcaVk6GbGFn2IR0reQv:HsLua.Core.Closures,HsLua.Core.Error=hslua-core-2.2.1-Bk0kcaVk6GbGFn2IR0reQv:HsLua.Core.Error,HsLua.Core.Package=hslua-core-2.2.1-Bk0kcaVk6GbGFn2IR0reQv:HsLua.Core.Package,HsLua.Core.Run=hslua-core-2.2.1-Bk0kcaVk6GbGFn2IR0reQv:HsLua.Core.Run,HsLua.Core.Trace=hslua-core-2.2.1-Bk0kcaVk6GbGFn2IR0reQv:HsLua.Core.Trace,HsLua.Core.Types=hslua-core-2.2.1-Bk0kcaVk6GbGFn2IR0reQv:HsLua.Core.Types,HsLua.Core.Unsafe=hslua-core-2.2.1-Bk0kcaVk6GbGFn2IR0reQv:HsLua.Core.Unsafe,HsLua.Core.Userdata=hslua-core-2.2.1-Bk0kcaVk6GbGFn2IR0reQv:HsLua.Core.Userdata,HsLua.Core.Utf8=hslua-core-2.2.1-Bk0kcaVk6GbGFn2IR0reQv:HsLua.Core.Utf8,Lua=lua-2.2.1-IXypNPrwq99T1gaPe7BvD:Lua unit hslua-core-2.2.1-3oe4KvQkvUwBG4Oqa7OFb-test-hslua-core include QuickCheck-2.14.2-GmIzHg8jhXyDhZvBXz41zC include base-4.16.3.0 include bytestring-0.11.3.1 include exceptions-0.10.4 include hslua-core-2.2.1-Bk0kcaVk6GbGFn2IR0reQv include lua-2.2.1-IXypNPrwq99T1gaPe7BvD include lua-arbitrary-1.0.1-K6yw1xVFepALIAKFzk7Lqv include mtl-2.2.2 include quickcheck-instances-0.3.28-Fh0MjS4rhNIAUuNG7YiHng include tasty-1.4.3-GWxUmleI5wP5a1FThg9FCC include tasty-hunit-0.10.0.3-J6j1MKmS9LU1bOAnmOLIMX include tasty-quickcheck-0.10.2-5Swo0kq0Lcu2sDnWgsB8x9 include text-1.2.5.0 Ready component graph: definite hslua-core-2.2.1-Bk0kcaVk6GbGFn2IR0reQv depends base-4.16.3.0 depends bytestring-0.11.3.1 depends exceptions-0.10.4 depends lua-2.2.1-IXypNPrwq99T1gaPe7BvD depends mtl-2.2.2 depends text-1.2.5.0 definite hslua-core-2.2.1-3oe4KvQkvUwBG4Oqa7OFb-test-hslua-core depends QuickCheck-2.14.2-GmIzHg8jhXyDhZvBXz41zC depends base-4.16.3.0 depends bytestring-0.11.3.1 depends exceptions-0.10.4 depends hslua-core-2.2.1-Bk0kcaVk6GbGFn2IR0reQv depends lua-2.2.1-IXypNPrwq99T1gaPe7BvD depends lua-arbitrary-1.0.1-K6yw1xVFepALIAKFzk7Lqv depends mtl-2.2.2 depends quickcheck-instances-0.3.28-Fh0MjS4rhNIAUuNG7YiHng depends tasty-1.4.3-GWxUmleI5wP5a1FThg9FCC depends tasty-hunit-0.10.0.3-J6j1MKmS9LU1bOAnmOLIMX depends tasty-quickcheck-0.10.2-5Swo0kq0Lcu2sDnWgsB8x9 depends text-1.2.5.0 Using Cabal-3.6.3.0 compiled by ghc-9.2 Using compiler: ghc-9.2.4 Using install prefix: /nix/store/lnznrjxvbmdrmikw8kmmwl2x55gn1xci-hslua-core-2.2.1 Executables installed in: /nix/store/lnznrjxvbmdrmikw8kmmwl2x55gn1xci-hslua-core-2.2.1/bin Libraries installed in: /nix/store/lnznrjxvbmdrmikw8kmmwl2x55gn1xci-hslua-core-2.2.1/lib/ghc-9.2.4/i386-linux-ghc-9.2.4/hslua-core-2.2.1-Bk0kcaVk6GbGFn2IR0reQv Dynamic Libraries installed in: /nix/store/lnznrjxvbmdrmikw8kmmwl2x55gn1xci-hslua-core-2.2.1/lib/ghc-9.2.4/i386-linux-ghc-9.2.4 Private executables installed in: /nix/store/lnznrjxvbmdrmikw8kmmwl2x55gn1xci-hslua-core-2.2.1/libexec/i386-linux-ghc-9.2.4/hslua-core-2.2.1 Data files installed in: /nix/store/lnznrjxvbmdrmikw8kmmwl2x55gn1xci-hslua-core-2.2.1/share/i386-linux-ghc-9.2.4/hslua-core-2.2.1 Documentation installed in: /nix/store/m562b8pacaimh25ahwfpv4y5a72pr19l-hslua-core-2.2.1-doc/share/doc/hslua-core-2.2.1 Configuration files installed in: /nix/store/lnznrjxvbmdrmikw8kmmwl2x55gn1xci-hslua-core-2.2.1/etc No alex found Using ar found on system at: /nix/store/cz0xzc39p2qj26ml15v9bq5ckrmdmdf4-binutils-2.39/bin/ar No c2hs found No cpphs found No doctest found Using gcc version 11.3.0 given by user at: /nix/store/rkwixq2wda45gxx7zg1qh329zhkbvzzb-gcc-wrapper-11.3.0/bin/gcc Using ghc version 9.2.4 found on system at: /nix/store/ic7wdfrif8raic2z6xiq2qv1bfzxi8li-ghc-9.2.4/bin/ghc Using ghc-pkg version 9.2.4 found on system at: /nix/store/ic7wdfrif8raic2z6xiq2qv1bfzxi8li-ghc-9.2.4/bin/ghc-pkg-9.2.4 No ghcjs found No ghcjs-pkg found No greencard found Using haddock version 2.26.0 found on system at: /nix/store/ic7wdfrif8raic2z6xiq2qv1bfzxi8li-ghc-9.2.4/bin/haddock-ghc-9.2.4 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/ic7wdfrif8raic2z6xiq2qv1bfzxi8li-ghc-9.2.4/bin/hpc Using hsc2hs version 0.68.8 found on system at: /nix/store/ic7wdfrif8raic2z6xiq2qv1bfzxi8li-ghc-9.2.4/bin/hsc2hs Using hscolour version 1.24 found on system at: /nix/store/85d2z1v7cbhi7zr0aj493mh85n4w6p60-hscolour-1.24.4/bin/HsColour No jhc found Using ld found on system at: /nix/store/ssc7jicqr32k3w9gbsczxl0fxxfvm60g-binutils-wrapper-2.39/bin/ld.gold No pkg-config found Using runghc version 9.2.4 found on system at: /nix/store/ic7wdfrif8raic2z6xiq2qv1bfzxi8li-ghc-9.2.4/bin/runghc-9.2.4 Using strip version 2.39 found on system at: /nix/store/rkwixq2wda45gxx7zg1qh329zhkbvzzb-gcc-wrapper-11.3.0/bin/strip Using tar found on system at: /nix/store/5rh47gjf5m2w51g3sxpyfxr1km61vd1f-gnutar-1.34/bin/tar No uhc found Running phase: buildPhase building Preprocessing library for hslua-core-2.2.1.. Building library for hslua-core-2.2.1.. [ 1 of 12] Compiling HsLua.Core.Utf8 [ 2 of 12] Compiling HsLua.Core.Types [ 3 of 12] Compiling HsLua.Core.Userdata [ 4 of 12] Compiling HsLua.Core.Unsafe [ 5 of 12] Compiling HsLua.Core.Error [ 6 of 12] Compiling HsLua.Core.Primary [ 7 of 12] Compiling HsLua.Core.Closures [ 8 of 12] Compiling HsLua.Core.Auxiliary [ 9 of 12] Compiling HsLua.Core.Run [10 of 12] Compiling HsLua.Core.Trace [11 of 12] Compiling HsLua.Core.Package [12 of 12] Compiling HsLua.Core [ 1 of 12] Compiling HsLua.Core.Utf8 [ 2 of 12] Compiling HsLua.Core.Types [ 3 of 12] Compiling HsLua.Core.Userdata [ 4 of 12] Compiling HsLua.Core.Unsafe [ 5 of 12] Compiling HsLua.Core.Error [ 6 of 12] Compiling HsLua.Core.Primary [ 7 of 12] Compiling HsLua.Core.Closures [ 8 of 12] Compiling HsLua.Core.Auxiliary [ 9 of 12] Compiling HsLua.Core.Run [10 of 12] Compiling HsLua.Core.Trace [11 of 12] Compiling HsLua.Core.Package [12 of 12] Compiling HsLua.Core Preprocessing test suite 'test-hslua-core' for hslua-core-2.2.1.. Building test suite 'test-hslua-core' for hslua-core-2.2.1.. [ 1 of 13] Compiling Test.HsLua.Arbitrary [ 2 of 13] Compiling Test.Tasty.HsLua [ 3 of 13] Compiling HsLua.Core.UserdataTests [ 4 of 13] Compiling HsLua.Core.UnsafeTests [ 5 of 13] Compiling HsLua.Core.TraceTests [ 6 of 13] Compiling HsLua.Core.RunTests [ 7 of 13] Compiling HsLua.Core.PrimaryTests [ 8 of 13] Compiling HsLua.Core.PackageTests [ 9 of 13] Compiling HsLua.Core.ErrorTests [10 of 13] Compiling HsLua.Core.ClosuresTests [11 of 13] Compiling HsLua.Core.AuxiliaryTests [12 of 13] Compiling HsLua.CoreTests [13 of 13] Compiling Main Linking dist/build/test-hslua-core/test-hslua-core ... buildPhase completed in 35 seconds Running phase: checkPhase running tests Running 1 test suites... Test suite test-hslua-core: RUNNING... hslua-core Core module Error try catches errors: OK second alternative is used when first fails: OK Applicative.empty implementation throws an exception: OK changeErrorType catches error as different type in argument operation: OK passes value through on success: OK type mismatch got string: OK got unnamed userdata: OK named userdata: OK missing value: OK Auxiliary checkstack' returns unit if stack space can be provided: OK getsubtable gets a subtable from field: OK creates new table at field if necessary: OK returns True if a table exists: OK returns False if field does not contain a table: OK getmetafield' gets field from the object's metatable: OK returns TypeNil if the object doesn't have a metatable: OK getmetatable' gets table created with newmetatable: OK returns nil if there is no such metatable: OK returns TypeTable if metatable exists: OK requiref can load a module: OK returns () on success: OK sets global if flag is set: OK catches errors: OK where' return location in chunk: OK loaded: OK preload: OK copy copies stack elements using positive indices: OK copies stack elements using negative indices: OK insert inserts stack elements using positive indices: OK inserts stack elements using negative indices: OK absindex: OK gettable gets a table value: OK rawlen gives the length of a list: OK Type checking isfunction: OK isnil: OK isnone: OK isnoneornil: OK CFunction handling: OK getting values tointeger tointeger returns numbers verbatim: OK tointeger accepts strings coercible to integers: OK tointeger returns Nothing when given a boolean: OK tonumber tonumber returns numbers verbatim: OK tonumber accepts strings as numbers: OK tonumber returns Nothing when given a boolean: OK tostring get a string: OK get a number as string: OK fail when looking at a boolean: OK setting and getting a global works: OK get functions (Lua to stack) unicode characters in field name are ok: OK setting and getting a global works: OK can push and receive a thread: OK different threads are not equal in Haskell: OK thread status OK is base thread status: OK Yield is the thread status after yielding: OK miscellaneous functions pushglobaltable globals are fields in global table: OK auxiliary functions tostring' integers are converted in base10: OK a nil value is converted into the literal string 'nil': OK strings are returned verbatim: OK string for userdata shows the pointer value: OK string is also pushed to the stack: OK errors during metamethod execution are caught: OK ref and unref store nil value to registry: OK get referenced value from registry: OK references become invalid after unref: OK loading loadstring loading a valid string should succeed: OK loading an invalid string should give a syntax error: OK dostring loading a string which fails should give a run error: OK loading an invalid string should return a syntax error: OK loading a valid program should succeed: OK top of the stack should be result of last computation: OK loadbuffer loading a valid string should succeed: OK loading a string containing NUL should be correct: OK loadfile file error should be returned when file does not exist: OK loading an invalid file should give a syntax error: OK loading a valid program should succeed: OK example fib program should be loaded correctly: OK dofile file error should be returned when file does not exist: OK loading an invalid file should give a syntax error: OK loading a failing program should give an run error: OK loading a valid program should succeed: OK example fib program should be loaded correctly: OK pcall raising an error should lead to an error status: OK raising an error in the error handler should give a 'double error': OK garbage collection: OK compare identifies strictly smaller values: OK +++ OK, passed 100 tests. identifies smaller or equal values: OK +++ OK, passed 100 tests. identifies equal values: OK +++ OK, passed 100 tests. lessthan works: OK +++ OK, passed 100 tests. order of Lua types is consistent: OK +++ OK, passed 100 tests. boolean values are correct: OK functions can throw a table as error message: OK handling table errors won't leak: OK Primary rotate' rotates stack: OK Closures Haskell functions are callable from Lua: OK Haskell functions have the Lua type C function: OK function garbage collection: OK Package requirehs call the given function: OK doesn't call function if module has been loaded: OK pushes module to stack: OK module can be loaded with `require`: OK preloadhs does not modify the stack: OK module can be loaded with `require`: OK Run runEither Lua errors are caught: OK error-less code gives 'Right': OK Trace pcallTrace Calls the function: OK Adds a traceback: OK callTrace Calls the function: OK Adds a traceback: OK Unsafe next get next key from table: OK returns FALSE if table is empty: OK Userdata Name is kept in __name: OK get back pushed value: OK fail on boolean: OK fail on wrong userdata: OK change wrapped value: OK change fails on wrong name: OK All 116 tests passed (0.03s) Test suite test-hslua-core: PASS Test suite logged to: dist/test/hslua-core-2.2.1-test-hslua-core.log 1 of 1 test suites (1 of 1 test cases) passed. Running phase: haddockPhase haddockPhase Preprocessing library for hslua-core-2.2.1.. Running Haddock on library for hslua-core-2.2.1.. Warning: --source-* options are ignored when --hyperlinked-source is enabled. 100% ( 5 / 5) in 'HsLua.Core.Utf8' 100% ( 47 / 47) in 'HsLua.Core.Types' 100% ( 5 / 5) in 'HsLua.Core.Userdata' 100% ( 2 / 2) in 'HsLua.Core.Unsafe' 100% ( 13 / 13) in 'HsLua.Core.Error' Warning: 'ErrGcmm' is out of scope. If you qualify the identifier, haddock can try to link it anyway. 100% ( 3 / 3) in 'HsLua.Core.Closures' Warning: 'requirehs' is out of scope. If you qualify the identifier, haddock can try to link it anyway. 100% ( 9 / 9) in 'HsLua.Core.Run' Warning: 'call' is out of scope. If you qualify the identifier, haddock can try to link it anyway. 80% ( 4 / 5) in 'HsLua.Core.Trace' Missing documentation for: dostringTrace (src/HsLua/Core/Trace.hs:52) 100% ( 3 / 3) in 'HsLua.Core.Package' 99% (192 /193) in 'HsLua.Core' Missing documentation for: dostringTrace (src/HsLua/Core/Trace.hs:52) Documentation created: dist/doc/html/hslua-core/index.html, dist/doc/html/hslua-core/hslua-core.txt Preprocessing test suite 'test-hslua-core' for hslua-core-2.2.1.. Running phase: installPhase installing Installing library in /nix/store/lnznrjxvbmdrmikw8kmmwl2x55gn1xci-hslua-core-2.2.1/lib/ghc-9.2.4/i386-linux-ghc-9.2.4/hslua-core-2.2.1-Bk0kcaVk6GbGFn2IR0reQv Running phase: fixupPhase post-installation fixup shrinking RPATHs of ELF executables and libraries in /nix/store/lnznrjxvbmdrmikw8kmmwl2x55gn1xci-hslua-core-2.2.1 shrinking /nix/store/lnznrjxvbmdrmikw8kmmwl2x55gn1xci-hslua-core-2.2.1/lib/ghc-9.2.4/i386-linux-ghc-9.2.4/libHShslua-core-2.2.1-Bk0kcaVk6GbGFn2IR0reQv-ghc9.2.4.so strip is /nix/store/rkwixq2wda45gxx7zg1qh329zhkbvzzb-gcc-wrapper-11.3.0/bin/strip stripping (with command strip and flags -S) in /nix/store/lnznrjxvbmdrmikw8kmmwl2x55gn1xci-hslua-core-2.2.1/lib patching script interpreter paths in /nix/store/lnznrjxvbmdrmikw8kmmwl2x55gn1xci-hslua-core-2.2.1 checking for references to /build/ in /nix/store/lnznrjxvbmdrmikw8kmmwl2x55gn1xci-hslua-core-2.2.1... shrinking RPATHs of ELF executables and libraries in /nix/store/m562b8pacaimh25ahwfpv4y5a72pr19l-hslua-core-2.2.1-doc strip is /nix/store/rkwixq2wda45gxx7zg1qh329zhkbvzzb-gcc-wrapper-11.3.0/bin/strip patching script interpreter paths in /nix/store/m562b8pacaimh25ahwfpv4y5a72pr19l-hslua-core-2.2.1-doc checking for references to /build/ in /nix/store/m562b8pacaimh25ahwfpv4y5a72pr19l-hslua-core-2.2.1-doc...