#2635: ghc panic
-------------------------+--------------------------------------------------
Reporter: jorzo | Owner:
Type: bug | Status: new
Priority: normal | Milestone: 6.10 branch
Component: Compiler | Version: 6.8.3
Severity: normal | Resolution:
Keywords: | Difficulty: Unknown
Testcase: | Os: MacOS X
Architecture: powerpc |
-------------------------+--------------------------------------------------
Comment (by mokeefe):
On Mac OS 10.5.6 using XCode 3.1.2, when trying to compile the GHC 6.10.1
sources, I get the below error. Note that what prompted me to try to
compile the GHC 6.10.1 sources is an error I received when trying to
install cabal-install with the GHC 6.10.1 binaries available as a
community build. I will report that as a separate issue.
ghc-6.10.1 $ make
grep: packages: No such file or directory
make -C libraries boot
rm -f -rf ifBuildable
mkdir ifBuildable
cp ifBuildable.hs ifBuildable/
cd ifBuildable && /usr/local/bin/ghc -Wall --make ifBuildable -o
ifBuildable
[1 of 1] Compiling Main ( ifBuildable.hs, ifBuildable.o )
Linking ifBuildable ...
mkdir bootstrapping
/usr/local/bin/ghc -Wall -DCABAL_VERSION=1,6,0,1 -odir
/Users/michaelokeefe/Downloads/ghc-6.10.1/libraries/bootstrapping -hidir
/Users/michaelokeefe/Downloads/ghc-6.10.1/libraries/bootstrapping
-i/Users/michaelokeefe/Downloads/ghc-6.10.1/libraries/Cabal
-i/Users/michaelokeefe/Downloads/ghc-6.10.1/libraries/filepath
-i/Users/michaelokeefe/Downloads/ghc-6.10.1/libraries/hpc --make cabal-bin
-o cabal-bin
[ 1 of 54] Compiling Distribution.Compat.Permissions (
/Users/michaelokeefe/Downloads/ghc-6.10.1/libraries/Cabal/Distribution/Compat/Permissions.hs,
/Users/michaelokeefe/Downloads/ghc-6.10.1/libraries/bootstrapping/Distribution/Compat/Permissions.o
)
[ 2 of 54] Compiling System.FilePath.Windows (
/Users/michaelokeefe/Downloads/ghc-6.10.1/libraries/filepath/System/FilePath/Windows.hs,
/Users/michaelokeefe/Downloads/ghc-6.10.1/libraries/bootstrapping/System/FilePath/Windows.o
)
[ 3 of 54] Compiling System.FilePath.Posix (
/Users/michaelokeefe/Downloads/ghc-6.10.1/libraries/filepath/System/FilePath/Posix.hs,
/Users/michaelokeefe/Downloads/ghc-6.10.1/libraries/bootstrapping/System/FilePath/Posix.o
)
[ 4 of 54] Compiling Distribution.Compat.Exception (
/Users/michaelokeefe/Downloads/ghc-6.10.1/libraries/Cabal/Distribution/Compat/Exception.hs,
/Users/michaelokeefe/Downloads/ghc-6.10.1/libraries/bootstrapping/Distribution/Compat/Exception.o
)
[ 5 of 54] Compiling Distribution.Compat.TempFile (
/Users/michaelokeefe/Downloads/ghc-6.10.1/libraries/Cabal/Distribution/Compat/TempFile.hs,
/Users/michaelokeefe/Downloads/ghc-6.10.1/libraries/bootstrapping/Distribution/Compat/TempFile.o
)
[ 6 of 54] Compiling Distribution.GetOpt (
/Users/michaelokeefe/Downloads/ghc-6.10.1/libraries/Cabal/Distribution/GetOpt.hs,
/Users/michaelokeefe/Downloads/ghc-6.10.1/libraries/bootstrapping/Distribution/GetOpt.o
)
[ 7 of 54] Compiling Distribution.Compat.ReadP (
/Users/michaelokeefe/Downloads/ghc-6.10.1/libraries/Cabal/Distribution/Compat/ReadP.hs,
/Users/michaelokeefe/Downloads/ghc-6.10.1/libraries/bootstrapping/Distribution/Compat/ReadP.o
)
[ 8 of 54] Compiling Distribution.ReadE (
/Users/michaelokeefe/Downloads/ghc-6.10.1/libraries/Cabal/Distribution/ReadE.hs,
/Users/michaelokeefe/Downloads/ghc-6.10.1/libraries/bootstrapping/Distribution/ReadE.o
)
[ 9 of 54] Compiling Distribution.Simple.PreProcess.Unlit (
/Users/michaelokeefe/Downloads/ghc-6.10.1/libraries/Cabal/Distribution/Simple/PreProcess/Unlit.hs,
/Users/michaelokeefe/Downloads/ghc-6.10.1/libraries/bootstrapping/Distribution/Simple/PreProcess/Unlit.o
)
[10 of 54] Compiling Distribution.Simple.GHC.Makefile (
/Users/michaelokeefe/Downloads/ghc-6.10.1/libraries/Cabal/Distribution/Simple/GHC/Makefile.hs,
/Users/michaelokeefe/Downloads/ghc-6.10.1/libraries/bootstrapping/Distribution/Simple/GHC/Makefile.o
)
[11 of 54] Compiling Distribution.Text (
/Users/michaelokeefe/Downloads/ghc-6.10.1/libraries/Cabal/Distribution/Text.hs,
/Users/michaelokeefe/Downloads/ghc-6.10.1/libraries/bootstrapping/Distribution/Text.o
)
ghc-6.8.3: panic! (the 'impossible' happened)
(GHC version 6.8.3 for powerpc-apple-darwin):
divide by zero
Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2635#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