Can't build GHC any more
Sebastian Graf
sgraf1337 at gmail.com
Tue Oct 22 13:38:04 UTC 2024
It is likely that anyone who cannot reproduce the issue is using a boot
compiler > 9.6.2.
I think Simon has the exact same issue I was having, so !13469 is a cure.
Am Di., 22. Okt. 2024 um 13:33 Uhr schrieb Hécate via ghc-devs <
ghc-devs at haskell.org>:
> I can confirm that using my good old update() function in the
> repository, I don't encounter the problem (but also I clean the tree all
> the time):
>
> update () {
> git pull upstream master
> git submodule update --recursive
> }
>
> Le 22/10/2024 à 12:54, Mikolaj Konarski a écrit :
> > Maybe
> >
> > git submodule update --init --recursive
> >
> > would help, as said in
> > https://gitlab.haskell.org/ghc/ghc/-/wikis/building/getting-the-sources?
> >
> > If not that, a "hadrian/build distclean" maybe?
> >
> > On Tue, Oct 22, 2024 at 12:34 PM Simon Peyton Jones
> > <simon.peytonjones at gmail.com> wrote:
> >> 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$
> >> _______________________________________________
> >> ghc-devs mailing list
> >> ghc-devs at haskell.org
> >> http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
> > _______________________________________________
> > ghc-devs mailing list
> > ghc-devs at haskell.org
> > http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
>
> --
> Hécate ✨
> 🐦: @TechnoEmpress
> IRC: Hecate
> WWW: https://glitchbra.in
> RUN: BSD
>
> _______________________________________________
> ghc-devs mailing list
> ghc-devs at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-devs/attachments/20241022/0d9e45ad/attachment.html>
More information about the ghc-devs
mailing list