basicTypes/Literal.lhs:11:3: parse error on input `litSize' <<ghc: 33152056 bytes, 7 GCs, 203416/230632 avg/max bytes residency (2 samples), 17M in use, 0.00 INIT (0.00 elapsed), 0.05 MUT (0.18 elapsed), 0.02 GC (0.03 elapsed) :ghc>> make[2]: *** [depend] Error 1 make[1]: *** [boot] Error 1 make[1]: Leaving directory `/var/tmp/portage/dev-lang/ghc-6.4.2/work/ghc-6.4.2/ghc' make: *** [build] Error 1 * * ERROR: dev-lang/ghc-6.4.2 failed. * Call stack: * ebuild.sh, line 1654: Called dyn_compile * ebuild.sh, line 990: Called qa_call 'src_compile' * ebuild.sh, line 44: Called src_compile * ghc-6.4.2.ebuild, line 239: Called die * * make failed * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/dev-lang/ghc-6.4.2/temp/build.log'. * * Messages for package dev-lang/ghc-6.4.2: * * ERROR: dev-lang/ghc-6.4.2 failed. * Call stack: * ebuild.sh, line 1654: Called dyn_compile * ebuild.sh, line 990: Called qa_call 'src_compile' * ebuild.sh, line 44: Called src_compile * ghc-6.4.2.ebuild, line 239: Called die * * make failed * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/dev-lang/ghc-6.4.2/temp/build.log'. * * GNU info directory index is up-to-date. * IMPORTANT: 169 config files in '/etc' need updating. * IMPORTANT: 1 config files in '/usr/kde/3.5/share/config' need updating. * IMPORTANT: 1 config files in '/usr/kde/3.5/shutdown' need updating. * IMPORTANT: 124 config files in '/usr/share/X11/xkb' need updating. * See the CONFIGURATION FILES section of the emerge * man page to learn how to update config files. zeus boudewijn # df Reproducible: Always Steps to Reproduce: 1. zeus boudewijn # emerge ghc -pv These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] dev-lang/ghc-6.6.1 USE="bash-completion doc* -binary -ghcbootstrap" 0 kB Expected Results: It should install (doh) parser/RdrHsSyn.lhs prelude/ForeignCall.lhs prelude/PrelInfo.lhs prelude/PrelNames.lhs prelude/PrelRules.lhs prelude/PrimOp.lhs prelude/TysPrim.lhs prelude/TysWiredIn.lhs profiling/CostCentre.lhs profiling/SCCfinal.lhs rename/RnBinds.lhs rename/RnEnv.lhs rename/RnExpr.lhs rename/RnHsSyn.lhs rename/RnNames.lhs rename/RnSource.lhs rename/RnTypes.lhs simplCore/CSE.lhs simplCore/FloatIn.lhs simplCore/FloatOut.lhs simplCore/LiberateCase.lhs simplCore/OccurAnal.lhs simplCore/SAT.lhs simplCore/SATMonad.lhs simplCore/SetLevels.lhs simplCore/SimplCore.lhs simplCore/SimplEnv.lhs simplCore/SimplMonad.lhs simplCore/SimplUtils.lhs simplCore/Simplify.lhs simplStg/SRT.lhs simplStg/SimplStg.lhs simplStg/StgStats.lhs specialise/Rules.lhs specialise/SpecConstr.lhs specialise/Specialise.lhs stgSyn/CoreToStg.lhs stgSyn/StgLint.lhs stgSyn/StgSyn.lhs stranal/DmdAnal.lhs stranal/SaAbsInt.lhs stranal/SaLib.lhs stranal/StrictAnal.lhs stranal/WorkWrap.lhs stranal/WwLib.lhs typecheck/Inst.lhs typecheck/TcArrows.lhs typecheck/TcBinds.lhs typecheck/TcClassDcl.lhs typecheck/TcDefaults.lhs typecheck/TcDeriv.lhs typecheck/TcEnv.lhs typecheck/TcExpr.lhs typecheck/TcForeign.lhs typecheck/TcGenDeriv.lhs typecheck/TcHsSyn.lhs typecheck/TcHsType.lhs typecheck/TcInstDcls.lhs typecheck/TcMType.lhs typecheck/TcMatches.lhs typecheck/TcPat.lhs typecheck/TcRnDriver.lhs typecheck/TcRnMonad.lhs typecheck/TcRnTypes.lhs typecheck/TcRules.lhs typecheck/TcSimplify.lhs typecheck/TcTyClsDecls.lhs typecheck/TcTyDecls.lhs typecheck/TcType.lhs typecheck/TcUnify.lhs types/Class.lhs types/FunDeps.lhs types/Generics.lhs types/InstEnv.lhs types/Kind.lhs types/TyCon.lhs types/Type.lhs types/TypeRep.lhs types/Unify.lhs utils/Bag.lhs utils/Binary.hs utils/BitSet.lhs utils/BufWrite.hs utils/Digraph.lhs utils/FastMutInt.lhs utils/FastString.lhs utils/FastTypes.lhs utils/FiniteMap.lhs utils/IOEnv.hs utils/ListSetOps.lhs utils/Maybes.lhs utils/OrdList.lhs utils/Outputable.lhs utils/Panic.lhs utils/Pretty.lhs utils/PrimPacked.lhs utils/StringBuffer.lhs utils/UnicodeUtil.lhs utils/UniqFM.lhs utils/UniqSet.lhs utils/Util.lhs basicTypes/Literal.lhs:11:3: parse error on input `litSize' <<ghc: 33152056 bytes, 7 GCs, 203416/230632 avg/max bytes residency (2 samples), 17M in use, 0.00 INIT (0.00 elapsed), 0.05 MUT (0.18 elapsed), 0.02 GC (0.03 elapsed) :ghc>> make[2]: *** [depend] Error 1 make[1]: *** [boot] Error 1 make[1]: Leaving directory `/var/tmp/portage/dev-lang/ghc-6.4.2/work/ghc-6.4.2/ghc' make: *** [build] Error 1 * * ERROR: dev-lang/ghc-6.4.2 failed. * Call stack: * ebuild.sh, line 1654: Called dyn_compile * ebuild.sh, line 990: Called qa_call 'src_compile' * ebuild.sh, line 44: Called src_compile * ghc-6.4.2.ebuild, line 239: Called die * * make failed * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/tmp/portage/dev-lang/ghc-6.4.2/temp/build.log'. * zeus boudewijn # zeus boudewijn # emerge --info Portage 2.1.3.9 (default-linux/amd64/2006.1, gcc-4.1.2, glibc-2.6.1-r0, 2.6.22 x86_64) ================================================================= System uname: 2.6.22 x86_64 Dual Core AMD Opteron(tm) Processor 270 Timestamp of tree: Thu, 27 Sep 2007 15:30:01 +0000 distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] app-shells/bash: 3.2_p17-r1 dev-java/java-config: 1.3.7, 2.0.33-r1 dev-lang/python: 2.4.4-r4, 2.5.1-r2 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.12.10-r5 sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.18 sys-devel/gcc-config: 1.4.0-r2 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.22-r2 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O3 -pipe -march=opteron -funroll-loops -msse3 " CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-O3 -pipe -march=opteron -funroll-loops -msse3 " DISTDIR="/usr/portage/distfiles" FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox" GENTOO_MIRRORS="http://distfiles.gentoo.org http://ftp.snt.utwente.nl/pub/os/linux/gentoo/distfiles/" LINGUAS="nl_NL" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://dionysos.boudewijnector.nl/gentoo-portage" USE="X a52 aac acpi alsa amd64 apache2 arts artswrappersuid asf audiofile avi bash-completion berkdb bitmap-fonts browserplugin bzip2 caps cdda cddb cdr cli cracklib crypt curl dbus divx dlloader dri dts dv dvb dvd dvdr encode examples exif expat fastcgi fbcon ffmpeg firefox flac fortran ftp gd gdbm gif glep glitz glut gnutls gphoto2 gpm gtk gtk2 hal iconv icq id3 image imlib innodb isdnlog jabber jack javascript jpeg kde kdehiddenvisibility ladcca ladspa lame lcms libwww lm_sensors lua mad maildir matroska mhash midi mime mixer mng mozdevelop mozilla moznocompose moznoirc moznomail mozsvg mp3 mp4 mp4live mpeg mpeg2 msn mudflap musicbrainz ncurses nls no-old-linux nptl nptlonly nsplugin nvidia odbc offensive ogg oggvorbis openal opengl openmp pam pcre pdflib perl pertty pic pie png portaudio posix pppd python qt qt3 quicktime rdesktop readline realmedia reflection samba session simplexml sndfile speex spell spl sse3 ssl subtitles subversion svg tabs tcpd theora threads tidy tiff transcode truetype truetype-fonts type1-fonts unicode usb userlocales utf8 vcd vhosts vorbis wmf wmp x264 xcomposite xgetdefault xine xinerama xml xml2 xmlrpc xorg xpm xsl xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="nl_NL" USERLAND="GNU" VIDEO_CARDS="nvidia vesa fbdev" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS zeus boudewijn #
It looks like you're building ghc-6.4.2 using ghc-6.6.1. That is not supported. ghc can be built with itself or older versions of itself, not with newer versions of itself. We tried to put this requirement into the ebuild but it seems that portage is ignoring us, so we could put an extra check it to make it fail early. We've currently got: DEPEND="${RDEPEND} <virtual/ghc-6.5 !>=virtual/ghc-6.6 But clearly that's not working. Since you've already got ghc-6.6.1 installed I suggest you stick with that rather than downgrading to ghc-6.4.2. If you really need to do that, you'll have to start from ghc-bin-6.4.2 and use that to emerge ghc-6.4.2. Our new unified ghc/ghc-bin ebuilds that we're developing will not have this problem. -- Duncan Coutts, through me
well, I wasn't trying to downgrade at all. I was trying to install wxHaskell, which has this older version of GHC as a dependency.
(In reply to comment #2) > well, I wasn't trying to downgrade at all. > I was trying to install wxHaskell, which has this older version of GHC as a > dependency. Ok fair enough. There's not a lot we can do about it. The released versions of wxHaskell really do not build with recent ghc versions. At the moment we also cannot reliably express the dependency that ghc requires the same or an older version of itself to build, so downgrading does not work smoothly with the older ghc ebuilds. The new unified ghc ebuilds will not have this problem. So the solution if you really want an old ghc to build wxhaskell is to emerge ghc-bin-6.4.2 rather than ghc directly.