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

#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: -----------------------------+---------------------------------------------- a standard bootstrap with {{{ perl boot ./configure make INTEGER_LIBRARY=integer-simple }}} causes some problems: 1. there is a panic (at least when `-j4`) "fromJust..." (which strangely disappears on the second attempt) 2. `__word_encode{Float|Double}` is not found by the linker. There are `__int_encode{Float|Double}` symbols available, though, and changing the source helps for linking, but not for correctness, obviously. I'll add specific details (if not trivially reproducible) as soon as I am back at my dev machine. The bottom line is that since GHC HEAD now builds the 'dyn' way by default, this kind of bootstrap always fails. Normally not a problem on desktop linux, but in combination with a gmp-less embedded linux and cross-compiling it becomes annoying. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7834 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#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

#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: -----------------------------+---------------------------------------------- Changes (by PHO): * cc: pho@… (added) -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7834#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7834: dyn way and INTEGER_LIBRARY=integer-simple ---------------------------------+------------------------------------------ Reporter: heisenbug | Owner: igloo Type: bug | Status: new Priority: high | Milestone: 7.8.1 Component: Compiler | Version: 7.7 Keywords: | Os: Unknown/Multiple Architecture: Unknown/Multiple | Failure: None/Unknown Difficulty: Unknown | Testcase: Blockedby: | Blocking: Related: | ---------------------------------+------------------------------------------ Changes (by igloo): * owner: => igloo * difficulty: => Unknown * priority: normal => high * milestone: => 7.8.1 -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7834#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7834: dyn way and INTEGER_LIBRARY=integer-simple -------------------------------+-------------------------------------------- Reporter: heisenbug | Owner: igloo Type: bug | Status: closed Priority: high | Milestone: 7.8.1 Component: Compiler | Version: 7.7 Resolution: fixed | Keywords: Os: Unknown/Multiple | Architecture: Unknown/Multiple Failure: None/Unknown | Difficulty: Unknown Testcase: | Blockedby: Blocking: | Related: -------------------------------+-------------------------------------------- Changes (by igloo): * status: new => closed * resolution: => fixed Comment: Thanks for the report. Now fixed. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7834#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC