Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved]dev-haskell/mtl-2.1.2-r1 won't compile
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
maverick6664
Guru
Guru


Joined: 13 May 2005
Posts: 409
Location: Tokyo / Japan

PostPosted: Fri Apr 05, 2013 12:20 am    Post subject: [solved]dev-haskell/mtl-2.1.2-r1 won't compile Reply with quote

Hi,
Title says it all. When upgrading to 2.1.2-r1, mtl says
Code:
 * Messages for package dev-haskell/mtl-2.1.2-r1:

 * ERROR: dev-haskell/mtl-2.1.2-r1 failed (configure phase):
 *   setup configure failed
 *
 * Call stack:
 *     ebuild.sh, line   93:  Called src_configure
 *   environment, line 2707:  Called haskell-cabal_src_configure
 *   environment, line 2028:  Called cabal-configure
 *   environment, line  481:  Called die
 * The specific snippet of code:
 *       ./setup "$@" || die "setup configure failed"
 *
 * If you need support, post the output of `emerge --info '=dev-haskell/mtl-2.1.2-r1'`,
 * the complete build log and the output of `emerge -pqv '=dev-haskell/mtl-2.1.2-r1'`.
 * The complete build log is located at '/var/tmp/portage/dev-haskell/mtl-2.1.2-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-haskell/mtl-2.1.2-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-haskell/mtl-2.1.2-r1/work/mtl-2.1.2'
 * S: '/var/tmp/portage/dev-haskell/mtl-2.1.2-r1/work/mtl-2.1.2'

I changed some files under /etc/portage so that some package are ahead of time. But I don't know what causes this. Now "emerge --info '=del-haskell/mtl-2.1.2-r1'" is
Code:
$ emerge --info '=dev-haskell/mtl-2.1.2-r1'
Portage 2.1.11.55 (default/linux/x86/13.0, gcc-4.6.3, glibc-2.15-r3, 3.8.4-maverick i686)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.8.4-maverick-i686-Intel-R-_Core-TM-2_Duo_CPU_E7400_@_2.80GHz-with-gentoo-2.1
KiB Mem:     2071640 total,     62876 free
KiB Swap:    4808416 total,   4759060 free
Timestamp of tree: Thu, 04 Apr 2013 23:00:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.6.8-r1, 2.7.3-r3, 3.1.4-r3, 3.2.3-r2
dev-util/cmake:           2.8.9
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -pipe -fomit-frame-pointer -mfpmath=sse -mssse3 -march=core2"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="${EPREFIX}/etc/gconf /etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -fomit-frame-pointer -mfpmath=sse -mssse3 -march=core2"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://gentoo.gg3.net/ http://distfiles.gentoo.org/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/var/tmp/portage-pkg"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl alsa apache2 apng berkdb bzip2 cairo cdda cjk cli consolekit cracklib crypt cuda cups cxx dbus device-mapper dri dts dvd dvdread encode extras fftw flac fontconfig fortran gd gdbm gdu gnome gnutls gpm gsm gtk gtk2 gudev html hwdb iconv icu imap imlib ipv6 jack java joystick jpeg jpeg2k libmpeg2 libnotify minizip mjpeg mmx modules mp3 mp4 mpg123 mudflap mysql nautilus ncurses nls nptl nsplugin nspluginwrapper ogg opengl openmp opus pam pcre pdf php png pnm policykit pulseaudio python qt3support readline realtime rtmp sdk sdl session smbclient smpeg smtp sndfile sqlite sse sse2 sse3 ssl ssse3 swat szip tcpd tiff tordns truetype twolame udev unicode v4l vcd video vorbis x264 x86 xml xv xvid zlib" ABI_X86="32" 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 mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_US ja" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="nvidia intel fbdev vga" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

dev-haskell/mtl-2.1.2-r1 was built with the following:
USE="-doc -hscolour -profile"


I'm at a loss....older mtl are also unable to comple......sigh.

Any help I can get would be appreciated.

TIA!!
_________________
Tetsuji Rai
a.k.a. Lukiest in the world


Last edited by maverick6664 on Fri Apr 05, 2013 4:47 am; edited 1 time in total
Back to top
View user's profile Send private message
gienah
Developer
Developer


Joined: 24 Nov 2010
Posts: 99
Location: AU

PostPosted: Fri Apr 05, 2013 1:06 am    Post subject: Reply with quote

There is no useful error message, so I can only guess.

Please try running:

Code:
haskell-updater
Back to top
View user's profile Send private message
maverick6664
Guru
Guru


Joined: 13 May 2005
Posts: 409
Location: Tokyo / Japan

PostPosted: Fri Apr 05, 2013 2:12 am    Post subject: Reply with quote

Thanks gienah,

I tried haskell-updater. It detected about 10 packages which weren't compiled my current ghc compiler (I upgraded it recently), began compiling them, and it stopped with another error message.
Code:
(inside gtk-0.12.0)
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-haskell/gtk-0.12.0/work/gtk-0.12.0 ...
./setup build
Building gtk-0.12.0...
Preprocessing library gtk-0.12.0...
Structs.hsc: In function 'main':
Structs.hsc:934:5: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
Structs.hsc:934:5: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
Structs.hsc:939:5: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
Structs.hsc:939:5: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
Structs.hsc:943:5: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
Structs.hsc:943:5: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
Structs.hsc:947:5: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
Structs.hsc:947:5: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
Structs.hsc:951:5: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
Structs.hsc:951:5: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
Structs.hsc:956:5: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
Structs.hsc:956:5: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
Structs.hsc:960:5: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
Structs.hsc:960:5: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
Structs.hsc:965:5: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
Structs.hsc:965:5: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]

Graphics/UI/Gtk/Gdk/GC.chs:82:8:
    Could not find module `Control.OldException'
    Perhaps you meant Control.Exception (from base)
    Use -v to see a list of the files searched for.
 * ERROR: dev-haskell/gtk-0.12.0 failed (compile phase):
 *   setup build failed
 *
 * Call stack:
 *     ebuild.sh, line   93:  Called src_compile
 *   environment, line 2831:  Called haskell-cabal_src_compile
 *   environment, line 2142:  Called cabal_src_compile
 *   environment, line  730:  Called cabal-build
 *   environment, line  553:  Called die
 * The specific snippet of code:
 *       ./setup "$@" || die "setup build failed"
 *
 * If you need support, post the output of `emerge --info '=dev-haskell/gtk-0.12.0'`,
 * the complete build log and the output of `emerge -pqv '=dev-haskell/gtk-0.12.0'`.
 * The complete build log is located at '/var/tmp/portage/dev-haskell/gtk-0.12.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-haskell/gtk-0.12.0/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-haskell/gtk-0.12.0/work/gtk-0.12.0'
 * S: '/var/tmp/portage/dev-haskell/gtk-0.12.0/work/gtk-0.12.0'

>>> Failed to emerge dev-haskell/gtk-0.12.0, Log file:

>>>  '/var/tmp/portage/dev-haskell/gtk-0.12.0/temp/build.log'

 * Messages for package dev-haskell/quickcheck-2.4.2-r1:

 * ERROR: dev-haskell/quickcheck-2.4.2-r1 failed (configure phase):
 *   setup configure failed
 *
 * Call stack:
 *     ebuild.sh, line   93:  Called src_configure
 *   environment, line 2710:  Called cabal_src_configure '--flags=templateHaskell'
 *   environment, line  626:  Called haskell-cabal_src_configure '--flags=templateHaskell'
 *   environment, line 2031:  Called cabal-configure '--flags=templateHaskell'
 *   environment, line  484:  Called die
 * The specific snippet of code:
 *       ./setup "$@" || die "setup configure failed"
 *
 * If you need support, post the output of `emerge --info '=dev-haskell/quickcheck-2.4.2-r1'`,
 * the complete build log and the output of `emerge -pqv '=dev-haskell/quickcheck-2.4.2-r1'`.
 * The complete build log is located at '/var/tmp/portage/dev-haskell/quickcheck-2.4.2-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-haskell/quickcheck-2.4.2-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-haskell/quickcheck-2.4.2-r1/work/QuickCheck-2.4.2'
 * S: '/var/tmp/portage/dev-haskell/quickcheck-2.4.2-r1/work/QuickCheck-2.4.2'

 * Messages for package dev-haskell/alex-3.0.2:

 * ERROR: dev-haskell/alex-3.0.2 failed (configure phase):
 *   setup configure failed
 *
 * Call stack:
 *     ebuild.sh, line   93:  Called src_configure
 *   environment, line 3523:  Called cabal_src_configure
 *   environment, line  913:  Called haskell-cabal_src_configure
 *   environment, line 2750:  Called cabal-configure
 *   environment, line  771:  Called die
 * The specific snippet of code:
 *       ./setup "$@" || die "setup configure failed"
 *
 * If you need support, post the output of `emerge --info '=dev-haskell/alex-3.0.2'`,
 * the complete build log and the output of `emerge -pqv '=dev-haskell/alex-3.0.2'`.
 * The complete build log is located at '/var/tmp/portage/dev-haskell/alex-3.0.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-haskell/alex-3.0.2/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-haskell/alex-3.0.2/work/alex-3.0.2'
 * S: '/var/tmp/portage/dev-haskell/alex-3.0.2/work/alex-3.0.2'

 * Messages for package dev-haskell/gtk-0.12.0:

 * ERROR: dev-haskell/gtk-0.12.0 failed (compile phase):
 *   setup build failed
 *
 * Call stack:
 *     ebuild.sh, line   93:  Called src_compile
 *   environment, line 2831:  Called haskell-cabal_src_compile
 *   environment, line 2142:  Called cabal_src_compile
 *   environment, line  730:  Called cabal-build
 *   environment, line  553:  Called die
 * The specific snippet of code:
 *       ./setup "$@" || die "setup build failed"
 *
 * If you need support, post the output of `emerge --info '=dev-haskell/gtk-0.12.0'`,
 * the complete build log and the output of `emerge -pqv '=dev-haskell/gtk-0.12.0'`.
 * The complete build log is located at '/var/tmp/portage/dev-haskell/gtk-0.12.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-haskell/gtk-0.12.0/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-haskell/gtk-0.12.0/work/gtk-0.12.0'
 * S: '/var/tmp/portage/dev-haskell/gtk-0.12.0/work/gtk-0.12.0'
 *
 * The following 3 packages have failed to build or install:
 *
 *  (dev-haskell/quickcheck-2.4.2-r1::gentoo, ebuild scheduled for merge), Log file:
 *   '/var/tmp/portage/dev-haskell/quickcheck-2.4.2-r1/temp/build.log'
 *  (dev-haskell/alex-3.0.2::gentoo, ebuild scheduled for merge), Log file:
 *   '/var/tmp/portage/dev-haskell/alex-3.0.2/temp/build.log'
 *  (dev-haskell/gtk-0.12.0::gentoo, ebuild scheduled for merge), Log file:
 *   '/var/tmp/portage/dev-haskell/gtk-0.12.0/temp/build.log'
 *

 * GNU info directory index is up-to-date.


I don't know this haskell thing, so am worried... :(

Thanks!
_________________
Tetsuji Rai
a.k.a. Lukiest in the world
Back to top
View user's profile Send private message
maverick6664
Guru
Guru


Joined: 13 May 2005
Posts: 409
Location: Tokyo / Japan

PostPosted: Fri Apr 05, 2013 2:52 am    Post subject: Reply with quote

Now I am going back to ghc 7.4.2 (I've been in 7.6.2) and trying haskell-updater.

regards,
_________________
Tetsuji Rai
a.k.a. Lukiest in the world
Back to top
View user's profile Send private message
gienah
Developer
Developer


Joined: 24 Nov 2010
Posts: 99
Location: AU

PostPosted: Fri Apr 05, 2013 2:54 am    Post subject: Reply with quote

I patched dev-haskell/gtk-0.12.0 a few days ago, and updated lots of haskell packages in portage, have you synced lately?

Can you please let me know which ghc version you are using:

Code:
ghc -V


There is no need to be worried, there i often someone around on irc freenode channel #gentoo-haskell or if not if
you wait around someone should wake up/notice eventually.
Back to top
View user's profile Send private message
maverick6664
Guru
Guru


Joined: 13 May 2005
Posts: 409
Location: Tokyo / Japan

PostPosted: Fri Apr 05, 2013 3:09 am    Post subject: Reply with quote

I've been using ghc-7.6.2, but now going back to 7.4.2, because 7.6.2 was keyword-masked by default.
_________________
Tetsuji Rai
a.k.a. Lukiest in the world
Back to top
View user's profile Send private message
gienah
Developer
Developer


Joined: 24 Nov 2010
Posts: 99
Location: AU

PostPosted: Fri Apr 05, 2013 3:47 am    Post subject: Reply with quote

If you still have problems, please try:

Code:
emerge --sync
emerge -av dev-haskell/cairo dev-haskell/gio dev-haskell/gtk2hs-buildtools dev-haskell/gtk dev-haskell/glade dev-haskell/pango dev-haskell/glib
Back to top
View user's profile Send private message
maverick6664
Guru
Guru


Joined: 13 May 2005
Posts: 409
Location: Tokyo / Japan

PostPosted: Fri Apr 05, 2013 4:46 am    Post subject: Reply with quote

Thank you gienah!

I could successfully compile all of these packages with ghc-7.4.2. I shouldn't have removed the keyword tag ~x86 from ghc package.

Thank you very much!

-Tetsuji
_________________
Tetsuji Rai
a.k.a. Lukiest in the world
Back to top
View user's profile Send private message
maverick6664
Guru
Guru


Joined: 13 May 2005
Posts: 409
Location: Tokyo / Japan

PostPosted: Sat Apr 06, 2013 11:36 pm    Post subject: Reply with quote

btw I "emerge --sync" everyday. :)
_________________
Tetsuji Rai
a.k.a. Lukiest in the world
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum