Can't build HEAD with the old build system

Ömer Sinan Ağacan omeragacan at gmail.com
Sun Mar 31 12:44:22 UTC 2019


I just updated a few-days-old repo and `make` no longer works:

    $ make
    ===--- building phase 0
    make --no-print-directory -f ghc.mk phase=0 phase_0_builds
    make[1]: Nothing to be done for 'phase_0_builds'.
    ===--- building phase 1
    make --no-print-directory -f ghc.mk phase=1 phase_1_builds
    libraries/ghc-heap/ghc.mk:3:
libraries/ghc-heap/dist-boot/build/.depend-v.haskell: No such file or
directory
    libraries/ghci/ghc.mk:3:
libraries/ghci/dist-boot/build/.depend-v.haskell: No such file or
directory
    compiler/ghc.mk:437: compiler/stage1/build/.depend-v.haskell: No
such file or directory
    "/home/omer/ghc_bins/ghc-8.6.4-bin/bin/ghc" -o
utils/hsc2hs/dist/build/tmp/hsc2hs -hisuf hi -osuf  o -hcsuf hc
-static  -H32m -O -Wall   -package-db libraries/bootstrapping.conf
-hide-all-packages -i -iutils/hsc2hs/. -iutils/hsc2hs/dist/build
-Iutils/hsc2hs/dist/build -iutils/hsc2hs/dist/build/hsc2hs/autogen
-Iutils/hsc2hs/dist/build/hsc2hs/autogen     -optP-include
-optPutils/hsc2hs/dist/build/hsc2hs/autogen/cabal_macros.h -package-id
base-4.12.0.0 -package-id containers-0.6.0.1 -package-id
directory-1.3.3.0 -package-id filepath-1.4.2.1 -package-id
process-1.6.5.0 -Wall -XHaskell2010  -no-user-package-db -rtsopts
  -outputdir utils/hsc2hs/dist/build    -static  -H32m -O -Wall
-package-db libraries/bootstrapping.conf  -hide-all-packages -i
-iutils/hsc2hs/. -iutils/hsc2hs/dist/build -Iutils/hsc2hs/dist/build
-iutils/hsc2hs/dist/build/hsc2hs/autogen
-Iutils/hsc2hs/dist/build/hsc2hs/autogen     -optP-include
-optPutils/hsc2hs/dist/build/hsc2hs/autogen/cabal_macros.h -package-id
base-4.12.0.0 -package-id containers-0.6.0.1 -package-id
directory-1.3.3.0 -package-id filepath-1.4.2.1 -package-id
process-1.6.5.0 -Wall -XHaskell2010  -no-user-package-db -rtsopts
  utils/hsc2hs/dist/build/Main.o utils/hsc2hs/dist/build/C.o
utils/hsc2hs/dist/build/Common.o
utils/hsc2hs/dist/build/CrossCodegen.o
utils/hsc2hs/dist/build/DirectCodegen.o
utils/hsc2hs/dist/build/Flags.o utils/hsc2hs/dist/build/HSCParser.o
utils/hsc2hs/dist/build/ATTParser.o
utils/hsc2hs/dist/build/UtilsCodegen.o
utils/hsc2hs/dist/build/Compat/ResponseFile.o
utils/hsc2hs/dist/build/Paths_hsc2hs.o
    /usr/bin/ld.gold: internal error in find_view, at ../../gold/fileread.cc:336
    collect2: error: ld returned 1 exit status
    `gcc' failed in phase `Linker'. (Exit code: 1)
    utils/hsc2hs/ghc.mk:21: recipe for target
'utils/hsc2hs/dist/build/tmp/hsc2hs' failed
    make[1]: *** [utils/hsc2hs/dist/build/tmp/hsc2hs] Error 1
    Makefile:123: recipe for target 'all' failed
    make: *** [all] Error 2

I tried a custom build.mk and with no build.mk, got the same error either way.

I also tried to build with hadrian and it worked.

Is anyone here able to build with the old build system? If this is about my
system, any ideas what might be the problem?

Ömer


More information about the ghc-devs mailing list