[GHC] #7834: dyn way and INTEGER_LIBRARY=integer-simple

GHC cvs-ghc at haskell.org
Mon Apr 15 12:37:19 CEST 2013


#7834: dyn way and INTEGER_LIBRARY=integer-simple
-----------------------------+----------------------------------------------
Reporter:  heisenbug         |          Owner:                  
    Type:  bug               |         Status:  new             
Priority:  normal            |      Component:  Compiler        
 Version:  7.7               |       Keywords:                  
      Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple
 Failure:  None/Unknown      |      Blockedby:                  
Blocking:                    |        Related:                  
-----------------------------+----------------------------------------------

Comment(by heisenbug):

 This is the panic:
 {{{
 ghc-stage1: panic! (the 'impossible' happened)
   (GHC version 7.7.20130412 for powerpc-montavista-linux):
         expectJust initTcInteractive
 }}}
 It happens (presumably) just after the `.hi` file is written:
 {{{
 $ rm libraries/integer-simple/dist-install/build/GHC/Integer/Type.hi
 $ rm libraries/integer-simple/dist-install/build/GHC/Integer/Type.o
 $ make libraries/integer-simple/dist-install/build/GHC/Integer/Type.o
 stage=1 V=0
 }}}
 --->
 {{{
 ===--- building final phase
 make -r --no-print-directory -f ghc.mk phase=final libraries/integer-
 simple/dist-install/build/GHC/Integer/Type.o
 utils/ghc-pkg/ghc.mk:46: warning: overriding commands for target
 `install_utils/ghc-pkg_dist_wrapper'
 utils/ghc-pkg/ghc.mk:37: warning: ignoring old commands for target
 `install_utils/ghc-pkg_dist_wrapper'
   HC [stage 1] libraries/integer-simple/dist-
 install/build/GHC/Integer/Type.o
 ghc-stage1: panic! (the 'impossible' happened)
   (GHC version 7.7.20130412 for powerpc-montavista-linux):
         expectJust initTcInteractive

 Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug

 make[1]: *** [libraries/integer-simple/dist-
 install/build/GHC/Integer/Type.o] Error 1
 make: *** [libraries/integer-simple/dist-install/build/GHC/Integer/Type.o]
 Error 2
 }}}
 Looking at the build products, only one of them is present:
 {{{
 $ ls -l libraries/integer-simple/dist-install/build/GHC/Integer/Type.o
 libraries/integer-simple/dist-install/build/GHC/Integer/Type.hi
 ls: libraries/integer-simple/dist-install/build/GHC/Integer/Type.o: No
 such file or directory
 -rw-r--r-- 1 ggreif rts 16699 Apr 15 12:27 libraries/integer-simple/dist-
 install/build/GHC/Integer/Type.hi
 }}}
 Second attempt is successful:
 {{{
 $ make libraries/integer-simple/dist-install/build/GHC/Integer/Type.o
 stage=1 V=0
 }}}
 --->
 {{{
 ===--- building final phase
 make -r --no-print-directory -f ghc.mk phase=final libraries/integer-
 simple/dist-install/build/GHC/Integer/Type.o
 utils/ghc-pkg/ghc.mk:46: warning: overriding commands for target
 `install_utils/ghc-pkg_dist_wrapper'
 utils/ghc-pkg/ghc.mk:37: warning: ignoring old commands for target
 `install_utils/ghc-pkg_dist_wrapper'
 "inplace/bin/ghc-stage1" -hisuf hi -osuf  o -hcsuf hc -static  -H64m -O0
 -fasm    -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 -O1
 -fasm  -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  -dynamic-too -c
 libraries/integer-simple/./GHC/Integer/Type.hs -o libraries/integer-simple
 /dist-install/build/GHC/Integer/Type.o -dyno libraries/integer-simple
 /dist-install/build/GHC/Integer/Type.dyn_o
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7834#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler



More information about the ghc-tickets mailing list