can't build with release settings

Ömer Sinan Ağacan omeragacan at gmail.com
Sat May 28 18:56:08 UTC 2016


Is anyone else having this problem when building with default settings
(no build.mk):

    "inplace/bin/ghc-stage2" -hisuf dyn_hi -osuf  dyn_o -hcsuf dyn_hc
-fPIC -dynamic  -H32m -O -Wall      -hide-all-packages -i
-iutils/haddock/driver -iutils/haddock/haddock-api/src
-iutils/haddock/haddock-library/vendor/attoparsec-0.12.1.1
-iutils/haddock/haddock-library/src -iutils/haddock/dist/build
-iutils/haddock/dist/build/autogen -Iutils/haddock/dist/build
-Iutils/haddock/dist/build/autogen    -optP-DIN_GHC_TREE -optP-include
-optPutils/haddock/dist/build/autogen/cabal_macros.h -package-id
Cabal-1.25.0.0 -package-id array-0.5.1.1 -package-id base-4.9.0.0
-package-id bytestring-0.10.8.1 -package-id containers-0.5.7.1
-package-id deepseq-1.4.2.0 -package-id directory-1.2.6.2 -package-id
filepath-1.4.1.0 -package-id ghc-8.1 -package-id ghc-boot-8.1
-package-id transformers-0.5.2.0 -package-id xhtml-3000.2.1
-funbox-strict-fields -Wall -fwarn-tabs -O2 -threaded -XHaskell2010
-no-user-package-db -rtsopts -Wno-unused-imports -Wno-deprecations
-Wnoncanonical-monad-instances  -odir utils/haddock/dist/build -hidir
utils/haddock/dist/build -stubdir utils/haddock/dist/build    -c
utils/haddock/haddock-library/src/Documentation/Haddock/Types.hs -o
utils/haddock/dist/build/Documentation/Haddock/Types.dyn_o

    utils/haddock/haddock-library/src/Documentation/Haddock/Types.hs:15:8:
error:
        Failed to load interface for ‘Prelude’
        It is a member of the hidden package ‘base-4.9.0.0’.
        Use -v to see a list of the files searched for.

    utils/haddock/haddock-library/src/Documentation/Haddock/Types.hs:17:1:
error:
        Failed to load interface for ‘Data.Foldable’
        It is a member of the hidden package ‘base-4.9.0.0’.
        Use -v to see a list of the files searched for.

    utils/haddock/haddock-library/src/Documentation/Haddock/Types.hs:18:1:
error:
        Failed to load interface for ‘Data.Traversable’
        It is a member of the hidden package ‘base-4.9.0.0’.
        Use -v to see a list of the files searched for.

    utils/haddock/driver/ResponseFile.hs:2:8: error:
        Failed to load interface for ‘Prelude’
        It is a member of the hidden package ‘base-4.9.0.0’.
        Use -v to see a list of the files searched for.

    utils/haddock/driver/ResponseFile.hs:8:1: error:
        Failed to load interface for ‘Control.Exception’
        It is a member of the hidden package ‘base-4.9.0.0’.
        Use -v to see a list of the files searched for.

    utils/haddock/driver/ResponseFile.hs:9:1: error:
        Failed to load interface for ‘Data.Char’
        It is a member of the hidden package ‘base-4.9.0.0’.
        Use -v to see a list of the files searched for.

    utils/haddock/driver/ResponseFile.hs:10:1: error:
        Failed to load interface for ‘Data.Foldable’
        It is a member of the hidden package ‘base-4.9.0.0’.
        Use -v to see a list of the files searched for.

    utils/haddock/driver/ResponseFile.hs:11:1: error:
        Failed to load interface for ‘System.Exit’
        It is a member of the hidden package ‘base-4.9.0.0’.
        Use -v to see a list of the files searched for.

    utils/haddock/driver/ResponseFile.hs:12:1: error:
        Failed to load interface for ‘System.IO’
        It is a member of the hidden package ‘base-4.9.0.0’.
        Use -v to see a list of the files searched for.


    utils/haddock/haddock-api/src/Haddock/GhcUtils.hs:16:8:
error:utils/haddock/haddock-api/src/Haddock/Backends/Hyperlinker/Types.hs:1:8:
error:
        Failed to load interface for ‘Prelude’

        It is a member of the hidden package    Failed to load
interface for ‘base-4.9.0.0’.
        Use -v to see a list of the files searched for.
     ‘Prelude’

        It is a member of the hidden package ‘base-4.9.0.0’.
        Use -v to see a list of the files searched for.

    utils/haddock/haddock-api/src/Haddock/GhcUtils.hs:19:1: error:
        Failed to load interface for ‘Control.Arrow’
        It is a member of the hidden package ‘base-4.9.0.0’.
        Use -v to see a list of the files searched for.

    utils/haddock/haddock-api/src/Haddock/Backends/Hyperlinker/Types.hs:4:1:
error:utils/haddock/haddock-api/src/Haddock/GhcUtils.hs:20:1: error:
        Failed to load interface for
        Failed to load interface for ‘GHC’
     ‘Data.Function’
        It is a member of the hidden package    It is a member of the
hidden package ‘base-4.9.0.0’.
     ‘ghc-8.1’.
        Use -v to see a list of the files searched for.
        Use -v to see a list of the files searched for.

    utils/haddock/haddock-api/src/Haddock/GhcUtils.hs:22:1: error:
        Failed to load interface for ‘Exception’
        It is a member of the hidden package ‘ghc-8.1’.
        Use -v to see a list of the files searched for.

    utils/haddock/haddock-api/src/Haddock/GhcUtils.hs:23:1: error:
        Failed to load interface for ‘Outputable’
        It is a member of the hidden package ‘ghc-8.1’.
        Use -v to see a list of the files searched for.

    utils/haddock/haddock-api/src/Haddock/GhcUtils.hs:24:1: error:
        Failed to load interface for ‘Name’
        It is a member of the hidden package ‘ghc-8.1’.
        Use -v to see a list of the files searched for.

    utils/haddock/haddock-api/src/Haddock/GhcUtils.hs:25:1: error:
        Failed to load interface for ‘Lexeme’
        It is a member of the hidden package ‘ghc-8.1’.
        Use -v to see a list of the files searched for.

    utils/haddock/haddock-api/src/Haddock/GhcUtils.hs:26:1: error:
        Failed to load interface for ‘Module’
        It is a member of the hidden package ‘ghc-8.1’.
        Use -v to see a list of the files searched for.

    utils/haddock/haddock-api/src/Haddock/GhcUtils.hs:27:1: error:
        Failed to load interface for ‘RdrName’
        It is a member of the hidden package ‘ghc-8.1’.
        Use -v to see a list of the files searched for.

    utils/haddock/haddock-api/src/Haddock/GhcUtils.hs:28:1: error:
        Failed to load interface for ‘GhcMonad’
        It is a member of the hidden package ‘ghc-8.1’.
        Use -v to see a list of the files searched for.

    utils/haddock/haddock-api/src/Haddock/GhcUtils.hs:29:1: error:
        Failed to load interface for ‘HscTypes’
        It is a member of the hidden package ‘ghc-8.1’.
        Use -v to see a list of the files searched for.

    utils/haddock/haddock-api/src/Haddock/GhcUtils.hs:30:1: error:
        Failed to load interface for ‘UniqFM’
        It is a member of the hidden package ‘ghc-8.1’.
        Use -v to see a list of the files searched for.

    utils/haddock/haddock-api/src/Haddock/GhcUtils.hs:31:1: error:
        Failed to load interface for ‘GHC’
        It is a member of the hidden package ‘ghc-8.1’.
        Use -v to see a list of the files searched for.

    utils/haddock/haddock-api/src/Haddock/GhcUtils.hs:32:1: error:
        Failed to load interface for ‘Class’
        It is a member of the hidden package ‘ghc-8.1’.
        Use -v to see a list of the files searched for.
    utils/haddock/ghc.mk:21: recipe for target
'utils/haddock/dist/build/ResponseFile.dyn_o' failed
    make[1]: *** [utils/haddock/dist/build/ResponseFile.dyn_o] Error 1
    make[1]: *** Waiting for unfinished jobs....
    utils/haddock/ghc.mk:21: recipe for target
'utils/haddock/dist/build/Documentation/Haddock/Types.dyn_o' failed
    make[1]: ***
[utils/haddock/dist/build/Documentation/Haddock/Types.dyn_o] Error 1
    utils/haddock/ghc.mk:21: recipe for target
'utils/haddock/dist/build/Haddock/Backends/Hyperlinker/Types.dyn_o'
failed
    make[1]: ***
[utils/haddock/dist/build/Haddock/Backends/Hyperlinker/Types.dyn_o]
Error 1
    utils/haddock/ghc.mk:21: recipe for target
'utils/haddock/dist/build/Haddock/GhcUtils.dyn_o' failed
    make[1]: *** [utils/haddock/dist/build/Haddock/GhcUtils.dyn_o] Error 1
    Makefile:129: recipe for target 'all' failed
    make: *** [all] Error 2
    ( make distclean && ./boot && ./configure && make -j4; ) 2>&1
6382.95s user 1069.99s system 336% cpu 36:57.03 total
    tee build_output  0.04s user 0.60s system 0% cpu 36:57.03 total

This is d40682e + one commit that I'm sure wouldn't break the build this way. I
can't compile anything with stage2 compiler becuase of this:

    ➜  strict_cmm ghc-stage2 Main.hs
    [1 of 1] Compiling Lib              ( Main.hs, Main.o ) [Prelude changed]

    Main.hs:4:1: error:
        Failed to load interface for ‘Prelude’
        It is a member of the hidden package ‘base-4.9.0.0’.
        Use -v to see a list of the files searched for.

-v output:

    ➜  strict_cmm ghc-stage2 Main.hs -v
    Glasgow Haskell Compiler, Version 8.1.20160528, stage 2 booted by
GHC version 8.0.1
    Using binary package database:
/home/omer/haskell/ghc_3/inplace/lib/package.conf.d/package.cache
    loading package database /home/omer/haskell/ghc_3/inplace/lib/package.conf.d
    wired-in package ghc-prim mapped to ghc-prim-0.5.0.0
    wired-in package integer-gmp mapped to integer-gmp-1.0.0.1
    wired-in package base mapped to base-4.9.0.0
    wired-in package rts mapped to rts
    wired-in package template-haskell mapped to template-haskell-2.11.0.0
    wired-in package ghc mapped to ghc-8.1
    wired-in package dph-seq not found.
    wired-in package dph-par not found.
    Hsc static flags:
    loading package database /home/omer/haskell/ghc_3/inplace/lib/package.conf.d
    wired-in package ghc-prim mapped to ghc-prim-0.5.0.0
    wired-in package integer-gmp mapped to integer-gmp-1.0.0.1
    wired-in package base mapped to base-4.9.0.0
    wired-in package rts mapped to rts-1.0
    wired-in package template-haskell mapped to template-haskell-2.11.0.0
    wired-in package ghc mapped to ghc-8.1
    wired-in package dph-seq not found.
    wired-in package dph-par not found.
    *** Chasing dependencies:
    Chasing modules from: *Main.hs
    !!! Chasing dependencies: finished in 0.44 milliseconds, allocated
0.417 megabytes
    Stable obj: [Lib]
    Stable BCO: []
    Ready for upsweep
      [NONREC
          ModSummary {
             ms_hs_date = 2016-05-28 13:53:06.703533428 UTC
             ms_mod = Lib,
             ms_textual_imps = [(Nothing, Prelude)]
             ms_srcimps = []
          }]
    *** Deleting temp files:
    Deleting:
    compile: input file Main.hs
    *** Checking old interface for Lib:
    [1 of 1] Compiling Lib              ( Main.hs, Main.o ) [Prelude changed]
    *** Parser [Lib]:
    !!! Parser [Lib]: finished in 0.42 milliseconds, allocated 0.466 megabytes
    *** Renamer/typechecker [Lib]:
    !!! Renamer/typechecker [Lib]: finished in 0.05 milliseconds,
allocated 0.004 megabytes

    Main.hs:4:1: error:
        Failed to load interface for ‘Prelude’
        It is a member of the hidden package ‘base-4.9.0.0’.
        Locations searched:
          Prelude.hs
          Prelude.lhs
          Prelude.hsig
          Prelude.lhsig
    Upsweep partially successful.
    *** Deleting temp files:
    Deleting:
    link(batch): upsweep (partially) failed OR
       Main.main not exported; not linking.
    *** Deleting temp files:
    Deleting:
    *** Deleting temp dirs:
    Deleting:

Any ideas?


More information about the ghc-devs mailing list