Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 222539 - dev-haskell/mtl-1.0.1 fails to compile
Summary: dev-haskell/mtl-1.0.1 fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-17 17:37 UTC by Aniruddha
Modified: 2008-05-17 19:40 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aniruddha 2008-05-17 17:37:06 UTC
dev-haskell/mtl-1.0.1 fails to compile with the following error message:

Using pkg-config version 0.22 found on system at: /usr/bin/pkg-config
Using ranlib found on system at: /usr/bin/ranlib
Using tar found on system at: /bin/tar
Preprocessing library mtl-1.0.1...
Building mtl-1.0.1...
[ 1 of 21] Compiling Control.Monad.Writer.Class ( Control/Monad/Writer/Class.hs, dist/build/Control/Monad/Writer/Class.o )
[ 2 of 21] Compiling Control.Monad.Trans ( Control/Monad/Trans.hs, dist/build/Control/Monad/Trans.o )
[ 3 of 21] Compiling Control.Monad.State.Class ( Control/Monad/State/Class.hs, dist/build/Control/Monad/State/Class.o )
[ 4 of 21] Compiling Control.Monad.Reader.Class ( Control/Monad/Reader/Class.hs, dist/build/Control/Monad/Reader/Class.o )
[ 5 of 21] Compiling Control.Monad.RWS.Class ( Control/Monad/RWS/Class.hs, dist/build/Control/Monad/RWS/Class.o )
[ 6 of 21] Compiling Control.Monad.Identity ( Control/Monad/Identity.hs, dist/build/Control/Monad/Identity.o )
[ 7 of 21] Compiling Control.Monad.Error.Class ( Control/Monad/Error/Class.hs, dist/build/Control/Monad/Error/Class.o )

Control/Monad/Error/Class.hs:56:0:
    Illegal instance declaration for `Error String'
        (All instance types must be of the form (T t1 ... tn)
         where T is not a synonym.
         Use -XTypeSynonymInstances if you want to disable this.)
    In the instance declaration for `Error String'

Control/Monad/Error/Class.hs:60:0:
    Illegal instance declaration for `Error IOError'
        (All instance types must be of the form (T t1 ... tn)
         where T is not a synonym.
         Use -XTypeSynonymInstances if you want to disable this.)
    In the instance declaration for `Error IOError'
 *
 * ERROR: dev-haskell/mtl-1.0.1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 1379:  Called haskell-cabal_src_compile
 *             environment, line 1165:  Called cabal_src_compile
 *             environment, line  370:  Called cabal-build
 *             environment, line  283:  Called die
 * The specific snippet of code:
 *       ./setup build || die "setup build failed"
 *  The die message:
 *   setup build 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-haskell/mtl-1.0.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-haskell/mtl-1.0.1/temp/environment'.


# emerge --info
Portage 2.1.4.4 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo-r4 i686)
=================================================================
System uname: 2.6.24-gentoo-r4 i686 Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz
Timestamp of tree: Fri, 16 May 2008 10:30:02 +0000
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python:     2.4.4-r9, 2.5.2-r3
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=i686 -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=i686 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="buildpkg distlocks fixpackages getbinpkg metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.tiscali.nl/ "
LANG="C"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/ftd4linux /usr/portage/local/layman/sunrise /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="7zip X Xaw3d a52 aac acl acpi addbookmarks additions administrator aim alias alsa amr apache2 arj arts asm atm autoreplace avahi bash-completion berkdb bluetooth bonusscripts branding cairo caps cdda cddb cdinstall cdparanoia cdr cisco cli connectionstatus contactnotes cpudetection cracklib crypt css cups dbus dga dhcp dialup divx djvu doc dri dv dvd dvdr dvdread eds emboss encode esd evo exif fam fat fbcon fbcondecor ffmpeg firefox flac foomaticdb fortran freeimage gadu gdbm gif gimp gimpprint gmedia gnome gphoto2 gpm gs gstreamer gtk gtk2 hal hfs history hou httpd icon iconv ieee1394 imagemagick imap imlib ipod ipv6 irc isdnlog jabber java jikes jingle joystick jpeg jpeg2k kde kerberos kqemu ldap lha libburn libnotify live logitech-mouse mad madwifi maildir maps matroska mdnsresponder-compat midi mikmod mmx mmxex modkit mono mp3 mp4 mpeg mpeg2 mplayer msn mtp mudflap musepack music musicbrainz mysql ncurses net netmeeting nfs njb nls nocd nowin nowlistening nptl nptlonly nsplugin ntfs nvidia offensive ofx ogg openal openexr opengl openmp opensslcrypt openvpn oss pam pcmcia pcre pda pdf perl php plugins png postgres pppd profile python qt3 qt3support qt4 query-browser quicktime quotes rar rdesktop readline real realmedia reflection roe rogue rt2400pci rt2500pci rt2500usb rt61pci rt73usb rtc samba sametime scanner sdl sensord server session slang slp smp sms sou sound sounds speex spell spl sqlite ssl statistics stream subtitles svg svga tcpd texteffect themes theora threadsafe thumbnail tiff tk transcode translator trayicon truetype unicode usb utempter v4l v4l2 vcd videos visualization vorbis wavpack webpresence wifi win32codecs winpopup wma wmf wmp workbench wxwindows x264 x86 xatrix xface xfs xine xinerama xml xorg xprint xv xvid yahoo zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev joystick keyboard mouse acecad aiptek digitaledge elographics fpit hyperpen jamstudio magellan mutouch palmax spaceorb summa synaptics tek4957 ur98 vmmouse void wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nv vesa apm ark chips cirrus cyrix dummy epson fbdev glint i128 i740 i810 imstt mach64 mga neomagic nsc r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS



Reproducible: Always
Comment 1 Aniruddha 2008-05-17 19:40:02 UTC
Solved this by adding mtl to package.keywords:

echo "dev-haskell/mtl ~x86" >> /etc/portage/package.keywords