Unable to build simple things with GHC on 32-bit Linux
Summary
Unable to build anything with on 32-bit Ubuntu Linux
Steps to reproduce
Please provide a set of concrete steps to reproduce the issue.
$ docker run -ti quay.io/haskell_works/ghc-8.8.3:i386-ubuntu-18.04 bash
$ git clone https://github.com/phadej/lukko.git
$ cabal v2-update
$ cd lukko
$ cabal v2-build lukko
Warning: The package list for 'hackage.haskell.org' does not exist. Run 'cabal
update' to download it.
Resolving dependencies...
Build profile: -w ghc-8.8.2 -O1
In order, the following will be built (use -v for more details):
- lukko-0.1.1.1 (lib) (first run)
Configuring library for lukko-0.1.1.1..
Preprocessing library for lukko-0.1.1.1..
/usr/bin/ld.gold: fatal error: /root/wrk/lukko/dist-newstyle/build/i386-linux/ghc-8.8.2/lukko-0.1.1.1/build/Lukko/OFD_hsc_make: Value too large for defined data type
collect2: error: ld returned 1 exit status
linking /root/wrk/lukko/dist-newstyle/build/i386-linux/ghc-8.8.2/lukko-0.1.1.1/build/Lukko/OFD_hsc_make.o failed (exit code 1)
command was: /usr/bin/gcc /root/wrk/lukko/dist-newstyle/build/i386-linux/ghc-8.8.2/lukko-0.1.1.1/build/Lukko/OFD_hsc_make.o /root/wrk/lukko/dist-newstyle/build/i386-linux/ghc-8.8.2/lukko-0.1.1.1/build/Lukko/OFD_hsc_utils.o -o /root/wrk/lukko/dist-newstyle/build/i386-linux/ghc-8.8.2/lukko-0.1.1.1/build/Lukko/OFD_hsc_make -fuse-ld=gold -U__i686 -fuse-ld=gold -L/opt/ghc/8.8.2/lib/ghc-8.8.2/base-4.13.0.0 -Wl,-R,/opt/ghc/8.8.2/lib/ghc-8.8.2/base-4.13.0.0 -L/opt/ghc/8.8.2/lib/ghc-8.8.2/integer-gmp-1.0.2.0 -Wl,-R,/opt/ghc/8.8.2/lib/ghc-8.8.2/integer-gmp-1.0.2.0 -lgmp -L/opt/ghc/8.8.2/lib/ghc-8.8.2/ghc-prim-0.5.3 -Wl,-R,/opt/ghc/8.8.2/lib/ghc-8.8.2/ghc-prim-0.5.3 -L/opt/ghc/8.8.2/lib/ghc-8.8.2/rts -Wl,-R,/opt/ghc/8.8.2/lib/ghc-8.8.2/rts -lm -lrt -ldl -lpthread
Expected behavior
What do you expect the reproducer described above to do?
The build should succeed.
Environment
- GHC version used:
$ cabal --version
cabal-install version 3.0.1.0
compiled using version 3.0.2.0 of the Cabal library
$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 8.8.2