javascript-unknown-ghcjs-ghc: "uncaught exception in Haskell main thread: RangeError: Offset is outside the bounds of the DataView" while building pretty-simple
An error for the javascript folks:
$ git rev-parse HEAD
e826cdb213e9b900dfc8f604220d8f3538b98763
$ cabal install --lib \
-w $PWD/_build/stage1/bin/javascript-unknown-ghcjs-ghc \
--with-hc-pkg=$PWD/_build/stage1/bin/javascript-unknown-ghcjs-ghc-pkg \
--allow-newer \
pretty-simple
Warning: The package list for 'hackage.haskell.org' is 41 days old.
Run 'cabal update' to get the latest list of available packages.
Warning: Unknown/unsupported 'ghc' version detected (Cabal 3.8.1.0 supports
'ghc' version < 9.6):
/home/b/Projects/usort/usort-web/ghc/_build/stage1/bin/javascript-unknown-ghcjs-ghc
is version 9.7.20230421
Warning: Unknown/unsupported 'ghc' version detected (Cabal 3.8.1.0 supports
'ghc' version < 9.6):
/home/b/Projects/usort/usort-web/ghc/_build/stage1/bin/javascript-unknown-ghcjs-ghc
is version 9.7.20230421
Warning: The package list for 'hackage.haskell.org' is 41 days old.
Run 'cabal update' to get the latest list of available packages.
Resolving dependencies...
Build profile: -w ghc-9.7.20230421 -O1
In order, the following will be built (use -v for more details):
- pretty-simple-4.1.2.0 (lib:pretty-simple) (requires build)
Starting pretty-simple-4.1.2.0 (all, legacy fallback)
Failed to build pretty-simple-4.1.2.0. The failure occurred during the
configure step.
Build log (
/home/b/.cabal/logs/ghc-9.7.20230421/pretty-simple-4.1.2.0-a7b831c840888af38edee3514d6973d24ba8a21f6690aea6d717393ca55fe2e5.log
):
[1 of 2] Compiling Main ( /run/user/1000/cabal-install.-2067823/dist-newstyle/tmp/src-2067823/pretty-simple-4.1.2.0/dist/setup/setup.hs, /run/user/1000/cabal-install.-2067823/dist-newstyle/tmp/src-2067823/pretty-simple-4.1.2.0/dist/setup/Main.o )
[2 of 2] Linking /run/user/1000/cabal-install.-2067823/dist-newstyle/tmp/src-2067823/pretty-simple-4.1.2.0/dist/setup/setup.jsexe
uncaught exception in Haskell main thread: RangeError: Offset is outside the bounds of the DataView
RangeError: Offset is outside the bounds of the DataView
at DataView.getInt16 (<anonymous>)
at h$$9a085042 (/run/user/1000/cabal-install.-2067823/dist-newstyle/tmp/src-2067823/pretty-simple-4.1.2.0/dist/setup/setup:1090228:94)
at h$runThreadSlice (/run/user/1000/cabal-install.-2067823/dist-newstyle/tmp/src-2067823/pretty-simple-4.1.2.0/dist/setup/setup:17523:11)
at h$runThreadSliceCatch (/run/user/1000/cabal-install.-2067823/dist-newstyle/tmp/src-2067823/pretty-simple-4.1.2.0/dist/setup/setup:17496:12)
at h$mainLoop (/run/user/1000/cabal-install.-2067823/dist-newstyle/tmp/src-2067823/pretty-simple-4.1.2.0/dist/setup/setup:17491:9)
at /run/user/1000/cabal-install.-2067823/dist-newstyle/tmp/src-2067823/pretty-simple-4.1.2.0/dist/setup/setup:17952:13
at h$handleErrnoC (/run/user/1000/cabal-install.-2067823/dist-newstyle/tmp/src-2067823/pretty-simple-4.1.2.0/dist/setup/setup:11796:9)
at /run/user/1000/cabal-install.-2067823/dist-newstyle/tmp/src-2067823/pretty-simple-4.1.2.0/dist/setup/setup:11536:13
at FSReqCallback.oncomplete (node:fs:197:23)
Error: cabal: Failed to build pretty-simple-4.1.2.0. See the build log above