Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 338982 - dev-haskell/network-2.2.1 fails to build with ghc-6.12.3
Summary: dev-haskell/network-2.2.1 fails to build with ghc-6.12.3
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo's Haskell Language team
URL:
Whiteboard:
Keywords:
Depends on: 339153
Blocks:
  Show dependency tree
 
Reported: 2010-09-28 02:51 UTC by Myckel Habets
Modified: 2011-02-25 21:32 UTC (History)
2 users (show)

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


Attachments
Build.log (network-2.2.1_build.log,7.41 KB, text/plain)
2010-09-28 02:52 UTC, Myckel Habets
Details
dev-haskell-2.2.1.7 build.log (build.log,3.10 KB, text/plain)
2010-10-17 12:18 UTC, Stefano Priore
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Myckel Habets 2010-09-28 02:51:39 UTC
While doing bug 338652 I noticed that dev-haskell/network-2.2.1 fails to build.


Reproducible: Always

Steps to Reproduce:
1. emerge dev-haskell/network-2.2.1 (current stable) with ghc-6.12.3

Actual Results:  
See attachment. Build failure.



Expected Results:  
Package installed without any failures.


emerge --info
Portage 2.1.8.3 (default/linux/x86/10.0, gcc-4.4.3, glibc-2.11.2-r0, 2.6.35
i686)
=================================================================
System uname:
Linux-2.6.35-i686-Mobile_AMD_Sempron-tm-_Processor_2800+-with-gentoo-1.12.13
Timestamp of tree: Fri, 24 Sep 2010 20:00:01 +0000
distcc 3.1 i686-pc-linux-gnu [enabled]
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.4_p6-r1, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /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/sandbox.d /etc/terminfo /etc/texmf/language.dat.d
/etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=athlon-xp -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests collision-protect distcc distlocks fixpackages news
nostrip parallel-fetch protect-owned sandbox sfperms strict test unmerge-logs
unmerge-orphans userfetch userpriv"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="nl_NL.UTF-8"
LDFLAGS="-Wl,-O1,--as-needed"
LINGUAS="nl en uk"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="7zip X acl acpi alsa autoipd avahi bash-completion berkdb bzip2 cairo cli
cracklib crypt cxx dbus dri encode fam ffmpeg flac fortran fts3 gdbm gif gmp
gnutls gpm gtk hal iconv icu imap ipv6 ithreads java5 jpeg libnotify mikmod mmx
modules mp3 mudflap ncurses networking nls nptl nptlonly ogg openexr opengl
openmp openssl pam pcre perl pic player png pppd python qt3support rdesktop
readline reflection sdl session smime sockets spell sqlite sqlite3 sse sse2 ssl
startup-notification svg sysfs tcpd theora threads thunar timidity truetype
unicode vnc vorbis x86 xcb xcomposite xft xorg 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 mmap_emul 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 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" ELIBC="glibc"
INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz
cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="nl en uk"
RUBY_TARGETS="jruby ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="radeonhd radeon"
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, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL,
PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Myckel Habets 2010-09-28 02:52:01 UTC
Created attachment 248871 [details]
Build.log
Comment 2 Stefano Priore 2010-10-17 12:16:31 UTC
The package dev-vcs/darcs-2.4.4-r1 pulls in dev-haskell/network-2.2.1.7 which fails to compile on amd64.
Comment 3 Stefano Priore 2010-10-17 12:18:13 UTC
Created attachment 251001 [details]
dev-haskell-2.2.1.7 build.log
Comment 4 Lennart Kolmodin (RETIRED) gentoo-dev 2010-10-17 12:25:25 UTC
Stefano, thanks for your interest in gentoo haskell, and for reporting this issue.
In the future, please open a new bug for bugs about different package versions.

Your build fails due to missing package parsec on your system. You have likely upgraded from an older ghc version and as a result ended up with a broken haskell environment.

Please run haskell-updater to fix your environment. Then try to emerge again, it should succeed.
Comment 5 Stefano Priore 2010-10-17 22:01:02 UTC
Thanks for your advice... now everything works fine!
Comment 6 Arne Babenhauserheide 2010-10-22 21:21:37 UTC
Shouldn’t dev-haskell/network DEPEND on parsec instead of RDEPEND? 

It’s a build dependency after all. 
Comment 7 Ivan 2010-10-22 21:55:40 UTC
(In reply to comment #6)
> Shouldn’t dev-haskell/network DEPEND on parsec instead of RDEPEND? 
> 
> It’s a build dependency after all. 
> 

It does... note the "${RDEPEND}" part of DEPEND="...": http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/dev-haskell/network/network-2.2.1.7.ebuild?view=markup
Comment 8 Arne Babenhauserheide 2010-10-22 23:32:39 UTC
*ouch* yes - sorry for not looking close enough. 

Does it already inform the user to run the haskell updater if the build doesn’t work?
Comment 9 Ivan 2010-10-22 23:43:14 UTC
No, there's nothing explicitly saying so.
Comment 10 Arne Babenhauserheide 2010-10-22 23:50:05 UTC
Would it be possible to add a note like “If dev-haskell/network failed to build, you might have to run haskell-updater to clean up your haskell environment. If dev-haskell/network still fails to build after running haskell-updater, please file a bug.”

Is there some way to run haskell updater on emerge -auDN world or similar? 
Comment 11 Ivan 2010-10-23 01:06:30 UTC
Well, this applies to _all_ Haskell libraries, not just network.

Does every C library tell you to run revdep-rebuild in case its ABI has changed and packages that depend upon it need to be rebuilt?  That's the same situation here, except that the ABI of Haskell libaries built with GHC are even more fragile.
Comment 12 Jason Miller 2010-12-08 21:36:28 UTC
(In reply to comment #11)
> Well, this applies to _all_ Haskell libraries, not just network.
> 
> Does every C library tell you to run revdep-rebuild in case its ABI has changed
> and packages that depend upon it need to be rebuilt?  That's the same situation
> here, except that the ABI of Haskell libaries built with GHC are even more
> fragile.
> 
Actually many C libraries do tell you exactly this.  It might be a good idea with any dependencies on darcs, since for many people, darcs is the only thing in their world set that pulls in anything haskell related.
Comment 13 Sergei Trofimovich (RETIRED) gentoo-dev 2011-02-25 21:32:30 UTC
Closed as WONTFIX as there is stable 2.2.1.7 (bug #339153)