Running phase: setupCompilerEnvironmentPhase setupCompilerEnvironmentPhase Build with /nix/store/ic7wdfrif8raic2z6xiq2qv1bfzxi8li-ghc-9.2.4. Running phase: unpackPhase unpacking sources unpacking source archive /nix/store/mv98787zvgnr6465skv1b0mxxlvnh871-lua-2.2.1.tar.gz source root is lua-2.2.1 setting SOURCE_DATE_EPOCH to timestamp 1000000000 of file lua-2.2.1/test/test-lua.hs Running phase: patchPhase patching sources Running phase: compileBuildDriverPhase compileBuildDriverPhase setupCompileFlags: -package-db=/build/tmp.FowhxbEHgZ/setup-package.conf.d -j16 +RTS -A64M -RTS -threaded -rtsopts [1 of 1] Compiling Main ( /nix/store/4mdp8nhyfddh7bllbi7xszz7k9955n79-Setup.hs, /build/tmp.FowhxbEHgZ/Main.o ) Linking Setup ... Running phase: configurePhase configuring configureFlags: --verbose --prefix=/nix/store/ancdqcjqg7hjis1cnrgnln7wg34dygng-lua-2.2.1 --libdir=$prefix/lib/$compiler --libsubdir=$abi/$libname --docdir=/nix/store/51sav691d616856iqqc43cj60blqxlgw-lua-2.2.1-doc/share/doc/lua-2.2.1 --with-gcc=gcc --package-db=/build/tmp.FowhxbEHgZ/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 -fsystem-lua -f-use-pkgconfig --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 --extra-include-dirs=/nix/store/7ybkqdvchdmn54mdlgvk7w9nj8sca973-lua-5.4.4/include --extra-lib-dirs=/nix/store/7ybkqdvchdmn54mdlgvk7w9nj8sca973-lua-5.4.4/lib Using Parsec parser Configuring lua-2.2.1... Flags chosen: allow-unsafe-gc=True, apicheck=False, export-dynamic=True, lua_32bits=False, pkg-config=False, system-lua=True Dependency base >=4.8 && <5: using base-4.16.3.0 Dependency base >=4.8 && <5: using base-4.16.3.0 Dependency lua: using lua-2.2.1 Dependency tasty >=0.11: using tasty-1.4.3 Dependency tasty-hunit >=0.9: using tasty-hunit-0.10.0.3 Source component graph: component lib component test:test-lua dependency lib Configured component graph: component lua-2.2.1-IXypNPrwq99T1gaPe7BvD include base-4.16.3.0 component lua-2.2.1-zvKUBzBubiILSkxr8PrAN-test-lua include base-4.16.3.0 include lua-2.2.1-IXypNPrwq99T1gaPe7BvD include tasty-1.4.3-GWxUmleI5wP5a1FThg9FCC include tasty-hunit-0.10.0.3-J6j1MKmS9LU1bOAnmOLIMX Linked component graph: unit lua-2.2.1-IXypNPrwq99T1gaPe7BvD include base-4.16.3.0 Lua=lua-2.2.1-IXypNPrwq99T1gaPe7BvD:Lua,Lua.Auxiliary=lua-2.2.1-IXypNPrwq99T1gaPe7BvD:Lua.Auxiliary,Lua.Call=lua-2.2.1-IXypNPrwq99T1gaPe7BvD:Lua.Call,Lua.Constants=lua-2.2.1-IXypNPrwq99T1gaPe7BvD:Lua.Constants,Lua.Ersatz=lua-2.2.1-IXypNPrwq99T1gaPe7BvD:Lua.Ersatz,Lua.Ersatz.Auxiliary=lua-2.2.1-IXypNPrwq99T1gaPe7BvD:Lua.Ersatz.Auxiliary,Lua.Ersatz.Functions=lua-2.2.1-IXypNPrwq99T1gaPe7BvD:Lua.Ersatz.Functions,Lua.Lib=lua-2.2.1-IXypNPrwq99T1gaPe7BvD:Lua.Lib,Lua.Primary=lua-2.2.1-IXypNPrwq99T1gaPe7BvD:Lua.Primary,Lua.Types=lua-2.2.1-IXypNPrwq99T1gaPe7BvD:Lua.Types,Lua.Userdata=lua-2.2.1-IXypNPrwq99T1gaPe7BvD:Lua.Userdata unit lua-2.2.1-zvKUBzBubiILSkxr8PrAN-test-lua include base-4.16.3.0 include lua-2.2.1-IXypNPrwq99T1gaPe7BvD include tasty-1.4.3-GWxUmleI5wP5a1FThg9FCC include tasty-hunit-0.10.0.3-J6j1MKmS9LU1bOAnmOLIMX Ready component graph: definite lua-2.2.1-IXypNPrwq99T1gaPe7BvD depends base-4.16.3.0 definite lua-2.2.1-zvKUBzBubiILSkxr8PrAN-test-lua depends base-4.16.3.0 depends lua-2.2.1-IXypNPrwq99T1gaPe7BvD depends tasty-1.4.3-GWxUmleI5wP5a1FThg9FCC depends tasty-hunit-0.10.0.3-J6j1MKmS9LU1bOAnmOLIMX Using Cabal-3.6.3.0 compiled by ghc-9.2 Using compiler: ghc-9.2.4 Using install prefix: /nix/store/ancdqcjqg7hjis1cnrgnln7wg34dygng-lua-2.2.1 Executables installed in: /nix/store/ancdqcjqg7hjis1cnrgnln7wg34dygng-lua-2.2.1/bin Libraries installed in: /nix/store/ancdqcjqg7hjis1cnrgnln7wg34dygng-lua-2.2.1/lib/ghc-9.2.4/i386-linux-ghc-9.2.4/lua-2.2.1-IXypNPrwq99T1gaPe7BvD Dynamic Libraries installed in: /nix/store/ancdqcjqg7hjis1cnrgnln7wg34dygng-lua-2.2.1/lib/ghc-9.2.4/i386-linux-ghc-9.2.4 Private executables installed in: /nix/store/ancdqcjqg7hjis1cnrgnln7wg34dygng-lua-2.2.1/libexec/i386-linux-ghc-9.2.4/lua-2.2.1 Data files installed in: /nix/store/ancdqcjqg7hjis1cnrgnln7wg34dygng-lua-2.2.1/share/i386-linux-ghc-9.2.4/lua-2.2.1 Documentation installed in: /nix/store/51sav691d616856iqqc43cj60blqxlgw-lua-2.2.1-doc/share/doc/lua-2.2.1 Configuration files installed in: /nix/store/ancdqcjqg7hjis1cnrgnln7wg34dygng-lua-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 lua-2.2.1.. Building library for lua-2.2.1.. [ 1 of 11] Compiling Lua.Types [ 2 of 11] Compiling Lua.Lib [ 3 of 11] Compiling Lua.Ersatz.Functions [ 4 of 11] Compiling Lua.Ersatz.Auxiliary [ 5 of 11] Compiling Lua.Primary [ 6 of 11] Compiling Lua.Ersatz [ 7 of 11] Compiling Lua.Constants [ 8 of 11] Compiling Lua.Call [ 9 of 11] Compiling Lua.Auxiliary [10 of 11] Compiling Lua [11 of 11] Compiling Lua.Userdata [ 1 of 11] Compiling Lua.Types [ 2 of 11] Compiling Lua.Lib [ 3 of 11] Compiling Lua.Ersatz.Functions [ 4 of 11] Compiling Lua.Ersatz.Auxiliary [ 5 of 11] Compiling Lua.Primary [ 6 of 11] Compiling Lua.Ersatz [ 7 of 11] Compiling Lua.Constants [ 8 of 11] Compiling Lua.Call [ 9 of 11] Compiling Lua.Auxiliary [10 of 11] Compiling Lua [11 of 11] Compiling Lua.Userdata Preprocessing test suite 'test-lua' for lua-2.2.1.. Building test suite 'test-lua' for lua-2.2.1.. [1 of 4] Compiling Lua.ErsatzTests [2 of 4] Compiling Lua.PrimaryTests [3 of 4] Compiling Lua.UnsafeTests [4 of 4] Compiling Main Linking dist/build/test-lua/test-lua ... Running phase: checkPhase running tests Running 1 test suites... Test suite test-lua: RUNNING... lua thread create and close: OK newthread: OK type check: OK thread type is LUA_TTHREAD: OK pushing: OK booleans push and retrieve: OK check: OK type: OK numbers push and retrieve integer: OK push and retrieve float: OK check for integer: OK check for number: OK type: OK show Integer: OK read Integer: OK show Number: OK read Number: OK nil push and type check: OK type is LUA_TNIL: OK none invalid index is 'none': OK valid index is not none: OK invalid index has type LUA_TNONE: OK strings push and retrieve: OK type: OK tables check type: OK has type LUA_TTABLE: OK set and get integer field: OK constants loadedTableRegistryField: OK preloadTableRegistryField: OK compare equality: OK less then: OK not less then: OK less then or equal: OK function calling call `type(true)`: OK call type: OK ersatz functions globals get global from base library: OK set global: OK table get metamethod field via ersatz function: OK set metamethod field: OK Haskell functions call Haskell function: OK Primary C functions can push and call luaopen_math: OK garbage-collection stop, restart GC: OK switch to generational GC: OK switch to generational and back to incremental GC: OK memory consumption should be between 0 and 10 kB: OK lua_stringtonumber converts a string to a number: OK returns length (incl NULL) of the string on success: OK returns zero on failure: OK warnings collect warnings: OK Unsafe tables set and get integer field: OK get metamethod field: OK set metamethod field: OK globals get global from base library: OK set global: OK next get next key from table: OK returns FALSE if table is empty: OK arith multiplies two numbers: OK divides number: OK pops its arguments from the stack: OK pops a single argument for unary negation: OK ersatz arith adds two numbers: OK negates number: OK pops its arguments from the stack: OK pops a single argument for unary negation: OK sets status to LUA_OK on success: OK sets error status on error: OK runs metamethod: OK catches runtime error in metamethod: OK global set and get global field: OK get value from table: OK Auxiliary hslua_requiref can load a module: OK returns LUA_OK on success: OK sets global if flag is set: OK catches errors: OK All 74 tests passed (0.01s) Test suite test-lua: PASS Test suite logged to: dist/test/lua-2.2.1-test-lua.log 1 of 1 test suites (1 of 1 test cases) passed. Running phase: haddockPhase haddockPhase Preprocessing library for lua-2.2.1.. Running Haddock on library for lua-2.2.1.. Warning: --source-* options are ignored when --hyperlinked-source is enabled. Warning: 'lua_setwarnf' is out of scope. If you qualify the identifier, haddock can try to link it anyway. 100% ( 18 / 18) in 'Lua.Types' 100% ( 9 / 9) in 'Lua.Lib' 100% ( 13 / 13) in 'Lua.Ersatz.Functions' 100% ( 5 / 5) in 'Lua.Ersatz.Auxiliary' Warning: 'LUA_TNONE' is out of scope. If you qualify the identifier, haddock can try to link it anyway. 100% ( 78 / 78) in 'Lua.Primary' 100% ( 15 / 15) in 'Lua.Ersatz' 100% ( 61 / 61) in 'Lua.Constants' 100% ( 2 / 2) in 'Lua.Call' 100% ( 21 / 21) in 'Lua.Auxiliary' 100% (215 /215) in 'Lua' 100% ( 5 / 5) in 'Lua.Userdata' Documentation created: dist/doc/html/lua/index.html, dist/doc/html/lua/lua.txt Preprocessing test suite 'test-lua' for lua-2.2.1.. Running phase: installPhase installing Installing library in /nix/store/ancdqcjqg7hjis1cnrgnln7wg34dygng-lua-2.2.1/lib/ghc-9.2.4/i386-linux-ghc-9.2.4/lua-2.2.1-IXypNPrwq99T1gaPe7BvD Running phase: fixupPhase post-installation fixup shrinking RPATHs of ELF executables and libraries in /nix/store/ancdqcjqg7hjis1cnrgnln7wg34dygng-lua-2.2.1 shrinking /nix/store/ancdqcjqg7hjis1cnrgnln7wg34dygng-lua-2.2.1/lib/ghc-9.2.4/i386-linux-ghc-9.2.4/libHSlua-2.2.1-IXypNPrwq99T1gaPe7BvD-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/ancdqcjqg7hjis1cnrgnln7wg34dygng-lua-2.2.1/lib patching script interpreter paths in /nix/store/ancdqcjqg7hjis1cnrgnln7wg34dygng-lua-2.2.1 checking for references to /build/ in /nix/store/ancdqcjqg7hjis1cnrgnln7wg34dygng-lua-2.2.1... shrinking RPATHs of ELF executables and libraries in /nix/store/51sav691d616856iqqc43cj60blqxlgw-lua-2.2.1-doc strip is /nix/store/rkwixq2wda45gxx7zg1qh329zhkbvzzb-gcc-wrapper-11.3.0/bin/strip patching script interpreter paths in /nix/store/51sav691d616856iqqc43cj60blqxlgw-lua-2.2.1-doc checking for references to /build/ in /nix/store/51sav691d616856iqqc43cj60blqxlgw-lua-2.2.1-doc...