Opened 5 years ago

Closed 4 years ago

Last modified 4 years ago

#7987 closed bug (invalid)

GHC Build Error

Reported by: singpolyma Owned by:
Priority: normal Milestone: 7.10.1
Component: Compiler Version: 7.7
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: x86
Type of failure: Building GHC failed Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:

Description

Trying to build HEAD as a native compiler (not cross-compiler). Build options:

BuildFlavour = quick stage=1 INTEGER_LIBRARY = integer-simple Stage1Only = YES DYNAMIC_BY_DEFAULT = NO

I'm trying to get an integer-simple based build going so that I can test a bug I'm having with that. I'm on Ubuntu 12.10 32bit

"inplace/bin/ghc-cabal" check libraries/haskell2010
"inplace/bin/ghc-cabal" configure libraries/haskell2010 dist-install "" --with-ghc="/home/singpolyma/src/ghc-linux-i486-integer-simple/inplace/bin/ghc-stage1" --with-ghc-pkg="/home/singpolyma/src/ghc-linux-i486-integer-simple/inplace/bin/ghc-pkg"  --disable-library-for-ghci --enable-library-vanilla --disable-library-profiling --enable-shared --with-hscolour="/usr/bin/HsColour" --configure-option=CFLAGS=" -U__i686 -fno-stack-protector   " --configure-option=LDFLAGS=" -Wl,--hash-size=31 -Wl,--reduce-memory-overheads  " --configure-option=CPPFLAGS="   " --with-gcc="/usr/bin/gcc" --with-ld="/usr/bin/ld" --configure-option=--with-cc="/usr/bin/gcc" --with-ar="/usr/bin/ar" --with-ranlib="true" --with-alex="/usr/bin/alex" --with-happy="/usr/bin/happy"
Configuring haskell2010-1.1.1.0...
"/home/singpolyma/src/ghc-linux-i486-integer-simple/inplace/bin/ghc-pkg" update --force  libraries/haskell2010/dist-install/inplace-pkg-config
Reading package info from "libraries/haskell2010/dist-install/inplace-pkg-config" ... done.
haskell2010-1.1.1.0: Warning: haddock-interfaces: /home/singpolyma/src/ghc-linux-i486-integer-simple/libraries/haskell2010/dist-install/doc/html/haskell2010/haskell2010.haddock doesn't exist or isn't a file
haskell2010-1.1.1.0: cannot find any of ["Data/Array.hi","Data/Array.p_hi","Data/Array.dyn_hi"] (ignoring)
haskell2010-1.1.1.0: cannot find any of ["Data/Char.hi","Data/Char.p_hi","Data/Char.dyn_hi"] (ignoring)
haskell2010-1.1.1.0: cannot find any of ["Data/Complex.hi","Data/Complex.p_hi","Data/Complex.dyn_hi"] (ignoring)
haskell2010-1.1.1.0: cannot find any of ["System/IO.hi","System/IO.p_hi","System/IO.dyn_hi"] (ignoring)
haskell2010-1.1.1.0: cannot find any of ["System/IO/Error.hi","System/IO/Error.p_hi","System/IO/Error.dyn_hi"] (ignoring)
haskell2010-1.1.1.0: cannot find any of ["Data/Ix.hi","Data/Ix.p_hi","Data/Ix.dyn_hi"] (ignoring)
haskell2010-1.1.1.0: cannot find any of ["Data/List.hi","Data/List.p_hi","Data/List.dyn_hi"] (ignoring)
haskell2010-1.1.1.0: cannot find any of ["Data/Maybe.hi","Data/Maybe.p_hi","Data/Maybe.dyn_hi"] (ignoring)
haskell2010-1.1.1.0: cannot find any of ["Control/Monad.hi","Control/Monad.p_hi","Control/Monad.dyn_hi"] (ignoring)
haskell2010-1.1.1.0: cannot find any of ["Data/Ratio.hi","Data/Ratio.p_hi","Data/Ratio.dyn_hi"] (ignoring)
haskell2010-1.1.1.0: cannot find any of ["System/Environment.hi","System/Environment.p_hi","System/Environment.dyn_hi"] (ignoring)
haskell2010-1.1.1.0: cannot find any of ["System/Exit.hi","System/Exit.p_hi","System/Exit.dyn_hi"] (ignoring)
haskell2010-1.1.1.0: cannot find any of ["Numeric.hi","Numeric.p_hi","Numeric.dyn_hi"] (ignoring)
haskell2010-1.1.1.0: cannot find any of ["Prelude.hi","Prelude.p_hi","Prelude.dyn_hi"] (ignoring)
haskell2010-1.1.1.0: cannot find any of ["Data/Int.hi","Data/Int.p_hi","Data/Int.dyn_hi"] (ignoring)
haskell2010-1.1.1.0: cannot find any of ["Data/Word.hi","Data/Word.p_hi","Data/Word.dyn_hi"] (ignoring)
haskell2010-1.1.1.0: cannot find any of ["Data/Bits.hi","Data/Bits.p_hi","Data/Bits.dyn_hi"] (ignoring)
haskell2010-1.1.1.0: cannot find any of ["Foreign.hi","Foreign.p_hi","Foreign.dyn_hi"] (ignoring)
haskell2010-1.1.1.0: cannot find any of ["Foreign/Ptr.hi","Foreign/Ptr.p_hi","Foreign/Ptr.dyn_hi"] (ignoring)
haskell2010-1.1.1.0: cannot find any of ["Foreign/ForeignPtr.hi","Foreign/ForeignPtr.p_hi","Foreign/ForeignPtr.dyn_hi"] (ignoring)
haskell2010-1.1.1.0: cannot find any of ["Foreign/StablePtr.hi","Foreign/StablePtr.p_hi","Foreign/StablePtr.dyn_hi"] (ignoring)
haskell2010-1.1.1.0: cannot find any of ["Foreign/Storable.hi","Foreign/Storable.p_hi","Foreign/Storable.dyn_hi"] (ignoring)
haskell2010-1.1.1.0: cannot find any of ["Foreign/C.hi","Foreign/C.p_hi","Foreign/C.dyn_hi"] (ignoring)
haskell2010-1.1.1.0: cannot find any of ["Foreign/C/Error.hi","Foreign/C/Error.p_hi","Foreign/C/Error.dyn_hi"] (ignoring)
haskell2010-1.1.1.0: cannot find any of ["Foreign/C/String.hi","Foreign/C/String.p_hi","Foreign/C/String.dyn_hi"] (ignoring)
haskell2010-1.1.1.0: cannot find any of ["Foreign/C/Types.hi","Foreign/C/Types.p_hi","Foreign/C/Types.dyn_hi"] (ignoring)
haskell2010-1.1.1.0: cannot find any of ["Foreign/Marshal.hi","Foreign/Marshal.p_hi","Foreign/Marshal.dyn_hi"] (ignoring)
haskell2010-1.1.1.0: cannot find any of ["Foreign/Marshal/Alloc.hi","Foreign/Marshal/Alloc.p_hi","Foreign/Marshal/Alloc.dyn_hi"] (ignoring)
haskell2010-1.1.1.0: cannot find any of ["Foreign/Marshal/Array.hi","Foreign/Marshal/Array.p_hi","Foreign/Marshal/Array.dyn_hi"] (ignoring)
haskell2010-1.1.1.0: cannot find any of ["Foreign/Marshal/Error.hi","Foreign/Marshal/Error.p_hi","Foreign/Marshal/Error.dyn_hi"] (ignoring)
haskell2010-1.1.1.0: cannot find any of ["Foreign/Marshal/Utils.hi","Foreign/Marshal/Utils.p_hi","Foreign/Marshal/Utils.dyn_hi"] (ignoring)
haskell2010-1.1.1.0: cannot find any of ["libHShaskell2010-1.1.1.0.a","libHShaskell2010-1.1.1.0.p_a","libHShaskell2010-1.1.1.0-ghc7.7.20130615.so","libHShaskell2010-1.1.1.0-ghc7.7.20130615.dylib","HShaskell2010-1.1.1.0-ghc7.7.20130615.dll"] on library path (ignoring)
"inplace/bin/ghc-cabal" check utils/hsc2hs
"inplace/bin/ghc-cabal" configure utils/hsc2hs dist-install "" --with-ghc="/home/singpolyma/src/ghc-linux-i486-integer-simple/inplace/bin/ghc-stage1" --with-ghc-pkg="/home/singpolyma/src/ghc-linux-i486-integer-simple/inplace/bin/ghc-pkg"  --disable-library-for-ghci --disable-library-vanilla --disable-library-profiling --disable-shared --with-hscolour="/usr/bin/HsColour" --configure-option=CFLAGS=" -U__i686 -fno-stack-protector   " --configure-option=LDFLAGS=" -Wl,--hash-size=31 -Wl,--reduce-memory-overheads  " --configure-option=CPPFLAGS="   " --with-gcc="/usr/bin/gcc" --with-ld="/usr/bin/ld" --configure-option=--with-cc="/usr/bin/gcc" --with-ar="/usr/bin/ar" --with-ranlib="true" --with-alex="/usr/bin/alex" --with-happy="/usr/bin/happy"
Configuring hsc2hs-0.67...
"inplace/bin/ghc-cabal" check utils/ghctags
A 'license-file' is not specified.
"inplace/bin/ghc-cabal" configure utils/ghctags dist-install "" --with-ghc="/home/singpolyma/src/ghc-linux-i486-integer-simple/inplace/bin/ghc-stage1" --with-ghc-pkg="/home/singpolyma/src/ghc-linux-i486-integer-simple/inplace/bin/ghc-pkg"  --disable-library-for-ghci --disable-library-vanilla --disable-library-profiling --disable-shared --with-hscolour="/usr/bin/HsColour" --configure-option=CFLAGS=" -U__i686 -fno-stack-protector   " --configure-option=LDFLAGS=" -Wl,--hash-size=31 -Wl,--reduce-memory-overheads  " --configure-option=CPPFLAGS="   " --with-gcc="/usr/bin/gcc" --with-ld="/usr/bin/ld" --configure-option=--with-cc="/usr/bin/gcc" --with-ar="/usr/bin/ar" --with-ranlib="true" --with-alex="/usr/bin/alex" --with-happy="/usr/bin/happy"
Configuring ghctags-0.1...
ghc-cabal: At least the following dependencies are missing:
ghc -any
make[1]: *** [utils/ghctags/dist-install/package-data.mk] Error 1
make: *** [all] Error 2

Change History (8)

comment:1 Changed 5 years ago by singpolyma

This error does not occur with just BuildFlavour = quick

comment:2 Changed 5 years ago by singpolyma

make disclean, adding INTEGER_LIBRARY = integer-simple, and make again leads to:

checking whether altzone is declared... no
configure: creating ./config.status
config.status: error: cannot find input file: `include/HsTimeConfig.h.in'
make[1]: *** [libraries/time/dist-install/package-data.mk] Error 1
make: *** [all] Error 2

comment:3 Changed 5 years ago by singpolyma

Ok, clean clone with just BuildFlavour? = quick and INTEGER_LIBRARY = integer-simple builds fine. And I can use the stage1 compiler it spits out, even though it goes on to try to build stage2, so I can use that for me testing.

comment:4 Changed 5 years ago by monoidal

difficulty: Unknown

The error with HsTimeConfig.h.in after distclean was fixed in 94c35ddf31aef28de84661860f77a94229f60cb4. Is the original problem still present?

comment:5 Changed 5 years ago by monoidal

Status: newinfoneeded

Is the problem still present?

comment:6 Changed 4 years ago by thoughtpolice

Milestone: 7.10.1

Moving to 7.10.1.

comment:7 Changed 4 years ago by singpolyma

Resolution: invalid
Status: infoneededclosed

Not sure if it's still present, and I worked around it for what I was doing at the time, so this can be closed, I think.

comment:8 Changed 4 years ago by rwbarton

I think this actually is fixed by 5fb72555f7b7ab67a33583f33ad9160761ca434f which I happened to come across today for unrelated reasons.

Note: See TracTickets for help on using tickets.