configure:2732: ghc -o conftest conftest.hs Warning: retaining unknown function `.L.__stginit_ZCMain' in output from C compiler Warning: retaining unknown function `.L.__stginit_Main' in output from C compiler Warning: retaining unknown function `.L.__stginit_Main_' in output from C compiler Warning: retaining unknown function `.L.ZCMain_main_entry' in output from C compiler Warning: retaining unknown function `.L.Main_main_entry' in output from C compiler Warning: retaining unknown function `.L.s1qx_entry' in output from C compiler conftest.o:(.text+0x0): undefined reference to `__DISCARD__' conftest.o:(.text+0x28): undefined reference to `__DISCARD__' conftest.o:(.text+0x50): undefined reference to `__DISCARD__' conftest.o:(.text+0xc8): undefined reference to `__DISCARD__' conftest.o:(.text+0x178): undefined reference to `__DISCARD__' conftest.o:(.text+0x228): more undefined references to `__DISCARD__' follow collect2: ld returned 1 exit status configure:2735: $? = 1 emerge --info is as follows: Portage 2.1.2.2 (default-linux/ppc/ppc64/2006.1/64bit-userland-gcc4/970/pmac, gcc-4.1.1, glibc-2.5-r0, 2.6.19-gentoo-r5.omega ppc64) ================================================================= System uname: 2.6.19-gentoo-r5.omega ppc64 PPC970MP, altivec supported Gentoo Base System release 1.12.9 Timestamp of tree: Mon, 12 Mar 2007 09:00:01 +0000 distcc 2.18.3 powerpc64-unknown-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [enabled] dev-java/java-config: 1.3.7, 2.0.31 dev-lang/python: 2.4.3-r4 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.4-r6 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.61 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.17 sys-devel/gcc-config: 1.3.14 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r2 ACCEPT_KEYWORDS="ppc64" AUTOCLEAN="yes" CBUILD="powerpc64-unknown-linux-gnu" CFLAGS="-O1 -mtune=970 -mcpu=970 -mabi=altivec -pipe -ggdb" CHOST="powerpc64-unknown-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/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-O1 -mtune=970 -mcpu=970 -mabi=altivec -pipe -ggdb" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms splitdebug strict" GENTOO_MIRRORS="http://gentoo.blueyonder.co.uk ftp://mirrors.blueyonder.co.uk/mirrors/gentoo http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ ftp://ftp.mirrorservice.org/sites/www.ibiblio.org/gentoo/ " LINGUAS="en_GB" MAKEOPTS="-j5" 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://rsync.gentoo.org/gentoo-portage" USE="X a52 aac alsa altivec apache2 apm asf bash-completion berkdb bitmap-fonts bzip2 cairo cdparanoia cdr cli cpudetection cracklib crypt cups daap dbus doc dri dts dv dvd dvdread eds emacs emboss encode ffmpeg flac foomaticdb gdbm gif gpm gstreamer gtk hal iconv ieee1394 imlib ipod ipv6 isdnlog jpeg kde lcms ldap libg++ libwww mad midi mikmod mng motif mp3 mpeg ncurses nls nptl nptlonly nsplugin ogg openal opengl oss pam pcre pdf perl png ppc64 ppds pppd python qt qt3 qt4 quicktime readline reflection rtc samba sdl session speex spell spl sqlite ssl tcpd tetex tga theora threads tiff truetype truetype-fonts type1-fonts unicode vorbis wmf x264 xchattext xine xinerama xml xorg xscreensaver xv xvid zlib" 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="en_GB" USERLAND="GNU" VIDEO_CARDS="nv fbdev" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS Reproducible: Always Steps to Reproduce: 1. use ghc-bin-6.4.2 (pulled in by darcs initially) 2. emerge -v darcs 3. configure will fail Actual Results: configure fails testing ghc Expected Results: configure runs successfully Problem seems to stem from ghc's interaction with gcc (4.1.1 in this case)
Which darcs version is this? It'd be interesting to see if ghc-6.6 can handle it, or if it's still a problem. We're about to adding ghc-6.6 to the portage tree.
this is a known problem. and I've a new ghc-bin around, which solves this problem. I'll add a new revision of ghc-bin in the next few days. *** This bug has been marked as a duplicate of bug 145466 ***