Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 46212

Summary: ebuild for ghc-5.04.3-r1 crashes after some lines
Product: Gentoo Linux Reporter: Johannes Priebsch <johannes.priebsch>
Component: [OLD] DevelopmentAssignee: Gentoo's Haskell Language team <haskell>
Status: RESOLVED FIXED    
Severity: normal CC: johannes.priebsch
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Johannes Priebsch 2004-03-30 00:31:57 UTC
make: *** [all] Error 1

!!! ERROR: dev-lang/ghc-5.04.3-r1 failed.
!!! Function src_compile, Line 171, Exitcode 2
!!! intermediate stage make failed

Reproducible: Always
Steps to Reproduce:
1. emerge ghc
2.
3.
Comment 1 Jens Teubner 2004-03-30 06:40:12 UTC
Same here.

codeGen/SMRep.lhs:225: warning: extra tokens at end of #endif directive
main/DriverPipeline.hs:777: warning: extra tokens at end of #endif directive
nativeGen/MachCode.lhs:344: warning: extra tokens at end of #endif directive
...loads of similar lines...
nativeGen/MachCode.lhs:3617: warning: extra tokens at end of #endif directive
nativeGen/MachCode.lhs:3673: warning: extra tokens at end of #endif directive
nativeGen/MachMisc.lhs:75: unterminated argument list invoking macro "IF_ARCH_alpha"
<<ghc: 434435028 bytes, 72 GCs, 129456/129456 avg/max bytes residency (1 samples), 16M in use, 0.00 INIT (0.00 elapsed), 1.54 MUT (5.80 elapsed), 0.07 GC (0.08 elapsed) :ghc>>
make[2]: *** [depend] Error 1
make[1]: *** [boot] Error 1
make[1]: Leaving directory `/var/tmp/portage/ghc-5.04.3-r1/work/stage1-build/ghc'
make: *** [all] Error 1

!!! ERROR: dev-lang/ghc-5.04.3-r1 failed.
!!! Function src_compile, Line 171, Exitcode 2
!!! intermediate stage make failed


My `emerge info':
Portage 2.0.50-r1 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.6.3-gentoo-r1)
=================================================================
System uname: 2.6.3-gentoo-r1 i686 Intel(R) Pentium(R) M processor 1600MHz
Gentoo Base System version 1.4.3.13
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.7.7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aalib acpi alsa apm avi berkdb cdr crypt cups doc dvd dvdr encode esd foomaticdb gdbm gif gnome gphoto2 gpm gtk gtk2 hardened imap imlib informix ipv6 java jpeg ldap libg++ libwww mad mbox mcal mikmod mmx motif mozilla mpeg ncurses nls oggvorbis opengl oss pam pcmcia pda pdflib perl plotutils png pnp ppds python quicktime readline sdl slang spell sse ssl svga tcpd tetex tiff truetype trusted unicode usb x86 xinerama xml xml2 xmms xv zlib"
Comment 2 Andres Loeh (RETIRED) gentoo-dev 2004-03-31 01:42:36 UTC
I'm afraid that ghc-5.04.X cannot be compiled with gcc-3.3. Unfortunately, I do not have the ressources at the moment to find an elegant fix. Therefore I worked around this problem by removing ghc-5.04 from portage and marking ghc-6.2 stable in turn.

Please emerge sync and emerge ghc again. I would appreciate feedback if this solution is okay for you, or if you specifically needed ghc-5.04.3 ...

ks
Comment 3 Seemant Kulleen (RETIRED) gentoo-dev 2004-10-23 10:27:13 UTC
Johannes, well?
Comment 4 Andres Loeh (RETIRED) gentoo-dev 2004-10-25 01:52:09 UTC
Closing the bug.