Can't build GHC any more

Simon Peyton Jones simon.peytonjones at gmail.com
Tue Oct 22 10:34:08 UTC 2024


Friends

On all my builds, using
       ./boot; ./configure; ./hadrian/build
I am getting the crash below. What should I do?  My boot compiler is
ghc-9.6.

I can't build GHC at all right now, so this is somewhat urgent.

Thank you!

Simon


]0;Running for 5m11s [11771/39023], predicted 49s
(86%)(/home/simonpj/code/HEAD) ]0;Running for 5m16s [11771/39023],
predicted 49s (86%)(/home/simonpj/code/HEAD)
ghc/GHCi/UI.hs:1704:5: warning: [GHC-53633] [-Woverlapping-patterns]
    Pattern match is redundant
    In a case alternative: _ -> ...
     |
1704 |     _ -> pure ()
     |     ^^^^^^^^^^^^
| Run Ghc CompileHs (Stage0 InTreeLibs): ghc/Main.hs =>
_build/stage0/ghc/build/Main.o
| Run Ghc LinkHs (Stage0 InTreeLibs): _build/stage0/ghc/build/Main.o (and 6
more) => _build/stage0/bin/ghc
Command line: /home/simonpj/.ghcup/bin/ghc -Wall -Wcompat -hisuf hi -osuf o
-hcsuf hc -static -hide-all-packages -no-user-package-db '-package-env -'
'-package-db _build/stage0/lib/package.conf.d' '-this-unit-id
ghc-bin-9.13.20241015-inplace' '-this-package-name ghc-bin' '-package-id
array-0.5.5.0' '-package-id base-4.18.0.0' '-package-id
bytestring-0.11.4.0' '-package-id containers-0.6.7' '-package-id
deepseq-1.4.8.1' '-package-id directory-1.3.9.0-inplace' '-package-id
exceptions-0.10.7' '-package-id filepath-1.5.2.0-inplace' '-package-id
ghc-9.13-inplace' '-package-id ghc-boot-9.13-inplace' '-package-id
ghc-prim-0.10.0' '-package-id ghci-9.13-inplace' '-package-id
haskeline-0.8.2.1' '-package-id process-1.6.25.0-inplace' '-package-id
time-1.14-inplace' '-package-id transformers-0.6.1.0' '-package-id
unix-2.8.5.1-inplace' -i -i/home/simonpj/code/HEAD/_build/stage0/ghc/build
-i/home/simonpj/code/HEAD/_build/stage0/ghc/build/ghc/autogen
-i/home/simonpj/code/HEAD/ghc -I_build/stage0/ghc/build
-I/home/simonpj/.ghcup/ghc/9.6.2/lib/ghc-9.6.2/lib/x86_64-linux-ghc-9.6.2/process-1.6.17.0/include
-I/home/simonpj/code/HEAD/compiler
-I/home/simonpj/code/HEAD/_build/stage0/compiler/build
-I/home/simonpj/code/HEAD/libraries/process/include
-I/home/simonpj/code/HEAD/_build/stage0/libraries/process/build/include
-I/home/simonpj/code/HEAD/libraries/directory
-I/home/simonpj/code/HEAD/_build/stage0/libraries/directory/build
-I/home/simonpj/code/HEAD/libraries/unix/include
-I/home/simonpj/code/HEAD/_build/stage0/libraries/unix/build/include
-I/home/simonpj/code/HEAD/libraries/time/lib/include
-I/home/simonpj/code/HEAD/_build/stage0/libraries/time/build/lib/include
-I/home/simonpj/.ghcup/ghc/9.6.2/lib/ghc-9.6.2/lib/x86_64-linux-ghc-9.6.2/directory-1.3.8.1/include
-I/home/simonpj/.ghcup/ghc/9.6.2/lib/ghc-9.6.2/lib/x86_64-linux-ghc-9.6.2/unix-2.8.1.0/include
-I/home/simonpj/.ghcup/ghc/9.6.2/lib/ghc-9.6.2/lib/x86_64-linux-ghc-9.6.2/time-1.12.2/include
-I/home/simonpj/.ghcup/ghc/9.6.2/lib/ghc-9.6.2/lib/x86_64-linux-ghc-9.6.2/bytestring-0.11.4.0/include
-I/home/simonpj/.ghcup/ghc/9.6.2/lib/ghc-9.6.2/lib/x86_64-linux-ghc-9.6.2/base-4.18.0.0/include
-I/home/simonpj/.ghcup/ghc/9.6.2/lib/ghc-9.6.2/lib/x86_64-linux-ghc-9.6.2/ghc-bignum-1.3/include
-I/home/simonpj/.ghcup/ghc/9.6.2/lib/ghc-9.6.2/lib/x86_64-linux-ghc-9.6.2/rts-1.0.2/include
-optP-include -optP_build/stage0/ghc/build/ghc/autogen/cabal_macros.h
-optP-DHAVE_INTERNAL_INTERPRETER -outputdir _build/stage0/ghc/build
-fdiagnostics-color=always -Wall -Wnoncanonical-monad-instances
-Wnoncanonical-monoid-instances -rtsopts=all '-with-rtsopts=-K512M -H -I5
-T' -threaded -XGHC2021 -XNoImplicitPrelude -XScopedTypeVariables
-XBangPatterns -no-auto-link-packages -rtsopts -optc-Wno-error=inline
_build/stage0/ghc/build/Main.o _build/stage0/ghc/build/GHCi/Leak.o
_build/stage0/ghc/build/GHCi/UI.o _build/stage0/ghc/build/GHCi/UI/Info.o
_build/stage0/ghc/build/GHCi/UI/Monad.o
_build/stage0/ghc/build/GHCi/UI/Exception.o
_build/stage0/ghc/build/GHCi/Util.o -o _build/stage0/bin/ghc -O -H32m
-dcore-lint -fomit-interface-pragmas -I_build/stage0/compiler/build -DDEBUG
===> Command failed with error code: 1
/usr/bin/ld.gold: error:
_build/stage0/lib/../lib/x86_64-linux-ghc-9.6.2/unix-2.8.5.1-inplace/libHSunix-2.8.5.1-inplace.a(HsUnix.o):
multiple definition of '__hsunix_rtldNext'
/usr/bin/ld.gold:
/home/simonpj/.ghcup/ghc/9.6.2/lib/ghc-9.6.2/lib/../lib/x86_64-linux-ghc-9.6.2/unix-2.8.1.0/libHSunix-2.8.1.0.a(HsUnix.o):
previous definition here
/usr/bin/ld.gold: error:
_build/stage0/lib/../lib/x86_64-linux-ghc-9.6.2/unix-2.8.5.1-inplace/libHSunix-2.8.5.1-inplace.a(HsUnix.o):
multiple definition of '__hsunix_rtldDefault'
/usr/bin/ld.gold:
/home/simonpj/.ghcup/ghc/9.6.2/lib/ghc-9.6.2/lib/../lib/x86_64-linux-ghc-9.6.2/unix-2.8.1.0/libHSunix-2.8.1.0.a(HsUnix.o):
previous definition here
/usr/bin/ld.gold: error:
_build/stage0/lib/../lib/x86_64-linux-ghc-9.6.2/unix-2.8.5.1-inplace/libHSunix-2.8.5.1-inplace.a(HsUnix.o):
multiple definition of '__hsunix_push_module'
/usr/bin/ld.gold:
/home/simonpj/.ghcup/ghc/9.6.2/lib/ghc-9.6.2/lib/../lib/x86_64-linux-ghc-9.6.2/unix-2.8.1.0/libHSunix-2.8.1.0.a(HsUnix.o):
previous definition here
/usr/bin/ld.gold: error:
_build/stage0/lib/../lib/x86_64-linux-ghc-9.6.2/unix-2.8.5.1-inplace/libHSunix-2.8.5.1-inplace.a(HsUnix.o):
multiple definition of '__hsunix_clocks_per_second'
/usr/bin/ld.gold:
/home/simonpj/.ghcup/ghc/9.6.2/lib/ghc-9.6.2/lib/../lib/x86_64-linux-ghc-9.6.2/unix-2.8.1.0/libHSunix-2.8.1.0.a(HsUnix.o):
previous definition here
/usr/bin/ld.gold: error:
_build/stage0/lib/../lib/x86_64-linux-ghc-9.6.2/unix-2.8.5.1-inplace/libHSunix-2.8.5.1-inplace.a(HsUnix.o):
multiple definition of '__hscore_readdir'
/usr/bin/ld.gold:
/home/simonpj/.ghcup/ghc/9.6.2/lib/ghc-9.6.2/lib/../lib/x86_64-linux-ghc-9.6.2/unix-2.8.1.0/libHSunix-2.8.1.0.a(HsUnix.o):
previous definition here
/usr/bin/ld.gold: error:
_build/stage0/lib/../lib/x86_64-linux-ghc-9.6.2/unix-2.8.5.1-inplace/libHSunix-2.8.5.1-inplace.a(HsUnix.o):
multiple definition of '__hscore_d_name'
/usr/bin/ld.gold:
/home/simonpj/.ghcup/ghc/9.6.2/lib/ghc-9.6.2/lib/../lib/x86_64-linux-ghc-9.6.2/unix-2.8.1.0/libHSunix-2.8.1.0.a(HsUnix.o):
previous definition here
/usr/bin/ld.gold: error:
_build/stage0/lib/../lib/x86_64-linux-ghc-9.6.2/unix-2.8.5.1-inplace/libHSunix-2.8.5.1-inplace.a(HsUnix.o):
multiple definition of '__hscore_free_dirent'
/usr/bin/ld.gold:
/home/simonpj/.ghcup/ghc/9.6.2/lib/ghc-9.6.2/lib/../lib/x86_64-linux-ghc-9.6.2/unix-2.8.1.0/libHSunix-2.8.1.0.a(HsUnix.o):
previous definition here
collect2: error: ld returned 1 exit status
`gcc' failed in phase `Linker'. (Exit code: 1)
]0;Finished in 5m19s(/home/simonpj/code/HEAD) Command failed
Build failed.
make: *** [/home/simonpj/code/Makefile-spj:12: all] Error 1
simonpj at LHR-WD-22561:~/code/HEAD$
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-devs/attachments/20241022/b3619bd1/attachment.html>


More information about the ghc-devs mailing list