#3060: impossible internal bug while building darcs
-------------------------+--------------------------------------------------
Reporter: quick | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 6.10.1
Severity: major | Resolution:
Keywords: | Difficulty: Unknown
Testcase: | Os: Linux
Architecture: x86 |
-------------------------+--------------------------------------------------
Comment (by quick):
This is a clean directory using the config/make build.
It appears to be related to optimization:
$ rm src/Exec.o
$ ghc -dcore-lint -I. -I./src -I./src -i./src -c src/Exec.hs
$ rm src/Exec.o
$ ghc -dcore-lint -I. -I./src -I./src -i./src -c -O2 src/Exec.hs
ghc: panic! (the 'impossible' happened)
(GHC version 6.10.1 for i386-unknown-linux):
applyTypeToArgs
unix-2.3.1.0:System.Posix.Signals.a38{v reS} [gid]
(unix-2.3.1.0:System.Posix.Signals.a5{v reR} [gid]
`cast` (ghc-prim:GHC.Prim.sym{(w) tc 34v}
base:Foreign.C.Types.:CoCInt{tc ra3}
:: <pred>base:GHC.Int.Int32{tc 3V}
~
<nt>base:Foreign.C.Types.CInt{tc ra6}))
unix-2.3.1.0:System.Posix.Signals.Ignore{v reQ} [gid]
(base:Data.Maybe.Nothing{v r5F} [gid]
@ <nt>unix-2.3.1.0:System.Posix.Signals.SignalSet{tc reP})
eta{v a1UC} [lid]
(# ghc-prim:GHC.Prim.State#{(w) tc 32q}
ghc-prim:GHC.Prim.RealWorld{(w) tc 31E},
<nt>unix-2.3.1.0:System.Posix.Signals.SignalSet{tc reP} #)
Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
The actual full make-generated line (from $ make VERBOSE=true):
$ ghc -hide-all-packages -package haskell98 -package base-3.0.3.0
-threaded -package regex-compat -package network -package HTTP -package
filepath -package bytestring -package random -package directory -package
old-time -package process -package array -package old-locale -package mtl
-package parsec -package html -package containers -package unix -O2
-funbox-strict-fields -D_REENTRANT -DHAVE_CURL -DCURL_MULTI_TIMEOUT
-DHAVE_CURSES -DPACKAGE_NAME=\"darcs\" -DPACKAGE_TARNAME=\"darcs\"
-DPACKAGE_VERSION=\"2.2.0\" -DPACKAGE_STRING=\"darcs\ 2.2.0\"
-DPACKAGE_BUGREPORT=\"[email protected]\" -DSTDC_HEADERS=1
-DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1
-DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1
-DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_HTTP=1 -DHAVE_SIGNALS=1
-DHAVE_LIBCURL=1 -Wall -I. -I./src -i./src -dcore-lint -c src/Exec.hs
Also note that the -dcore-lint doesn't seem to have any effect.
Let me know if there's anything else I can provide.
-Kevin
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3060#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs