[GHC] #7490: ghc-stage1 panic when building a cross-compiler or cross-building a compiler
GHC
cvs-ghc at haskell.org
Thu Jan 17 13:03:54 CET 2013
#7490: ghc-stage1 panic when building a cross-compiler or cross-building a
compiler
----------------------------------+-----------------------------------------
Reporter: singpolyma | Owner:
Type: bug | Status: new
Priority: high | Milestone: 7.8.1
Component: Compiler | Version: 7.7
Keywords: cross-compilation | Os: Unknown/Multiple
Architecture: Unknown/Multiple | Failure: Building GHC failed
Difficulty: Unknown | Testcase:
Blockedby: | Blocking:
Related: |
----------------------------------+-----------------------------------------
Comment(by simonmar):
A bit more info, after I elaborated the panic:
{{{
"inplace/bin/ghc-stage1" -static -H64m -O0 -package-name integer-
simple-0.1.1.0 -hide-all-packages -i -ilibraries/integer-simple/.
-ilibraries/integer-simple/dist-install/build -ilibraries/integer-simple
/dist-install/build/autogen -Ilibraries/integer-simple/dist-install/build
-Ilibraries/integer-simple/dist-install/build/autogen -Ilibraries/integer-
simple/. -optP-include -optPlibraries/integer-simple/dist-
install/build/autogen/cabal_macros.h -package ghc-prim-0.3.1.0 -package-
name integer-simple -Wall -XHaskell98 -XCPP -XMagicHash -XBangPatterns
-XUnboxedTuples -XForeignFunctionInterface -XUnliftedFFITypes
-XNoImplicitPrelude -O -no-user-package-db -rtsopts -odir libraries
/integer-simple/dist-install/build -hidir libraries/integer-simple/dist-
install/build -stubdir libraries/integer-simple/dist-install/build -hisuf
hi -osuf o -hcsuf hc -c libraries/integer-simple/./GHC/Integer/Type.hs -o
libraries/integer-simple/dist-install/build/GHC/Integer/Type.o
Top level:
Bad interface file: libraries/integer-simple/dist-
install/build/GHC/Integer/Type.hi
libraries/integer-simple/dist-install/build/GHC/Integer/Type.hi:
openBinaryFile: does not exist (No such file or directory)
ghc-stage1: panic! (the 'impossible' happened)
(GHC version 7.7.20130116 for arm-unknown-linux):
initTcForLookup
}}}
So we're trying to read `Type.hi` while compiling the same module. This
explains why it works the second time, after `Type.hi` has already been
generated.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7490#comment:6>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list