Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 338687 - dev-lang/ghc-6.12.3 unbuildable on uclibc
Summary: dev-lang/ghc-6.12.3 unbuildable on uclibc
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo's Haskell Language team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-25 17:50 UTC by Gianluigi Tiesi
Modified: 2012-01-20 20:21 UTC (History)
1 user (show)

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 Gianluigi Tiesi 2010-09-25 17:50:05 UTC
I need iconv to emerge git (that perhaps is not even in deps on uclibc)
iconv needs ghc does not builds because it bootstraps using a glibc binary?

FEATURES variable contains unknown value(s): autoconfig
Portage 2.1.9.10 (uclibc/x86, gcc-4.4.4, uclibc-0.9.30.1-r1, 2.6.26-2-xen-amd64 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.26-2-xen-amd64-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_5600+-with-gentoo-2.0.1
Timestamp of tree: Sat, 25 Sep 2010 17:00:23 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.1_p7
dev-lang/python:     2.5.4-r2, 2.6.2-r1
dev-util/ccache:     2.4-r8
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.3
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.67
sys-devel/automake:  1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.4-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.35 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i586-gentoo-linux-uclibc"
CFLAGS="-Os -O3 -mtune=geode -march=geode -pipe -mmmx -m3dnow"
CHOST="i586-gentoo-linux-uclibc"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-Os -O3 -mtune=geode -march=geode -pipe -mmmx -m3dnow"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests autoconfig buildpkg ccache distlocks fixlafiles fixpackages news nodoc noinfo noman parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/pkgs"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow cli crypt cscope cxx dri ipv6 lzma mmx modules ncurses nptlonly offensive pcre perl posix python readline reflection session ssl tcpd uclibc vim-syntax x86 xorg zlib" 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="uclibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="dummy fbdev v4l" 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, LANG, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
----------


./configure --prefix=/usr --build=i586-gentoo-linux-uclibc --host=i586-gentoo-linux-uclibc --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib
checking for gfind... no
checking for find... /usr/bin/find
checking for sort... /usr/bin/sort
checking for ghc... /var/tmp/portage/dev-lang/ghc-6.12.3/work/usr/bin/ghc
checking version of ghc... unknown
configure: error: Cannot determine the version of /var/tmp/portage/dev-lang/ghc-6.12.3/work/usr/bin/ghc.  Is it really GHC?

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/dev-lang/ghc-6.12.3/work/ghc-6.12.3/config.log
 * ERROR: dev-lang/ghc-6.12.3 failed:
 *   econf failed
 *
 * Call stack:
 *     ebuild.sh, line   56:  Called src_compile
 *   environment, line 3991:  Called econf
 *     ebuild.sh, line  558:  Called die
 * The specific snippet of code:
 *                      die "econf failed"
 *
 * If you need support, post the output of 'emerge --info =dev-lang/ghc-6.12.3',
 * the complete build log and the output of 'emerge -pqv =dev-lang/ghc-6.12.3'.
 * The complete build log is located at '/var/tmp/portage/dev-lang/ghc-6.12.3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-lang/ghc-6.12.3/temp/environment'.
 * S: '/var/tmp/portage/dev-lang/ghc-6.12.3/work/ghc-6.12.3'


----
ldd /var/tmp/portage/dev-lang/ghc-6.12.3/work/usr/lib/ghc-6.12.3/ghc
checking sub-depends for 'not found'
checking sub-depends for 'not found'
checking sub-depends for 'not found'
checking sub-depends for 'not found'
checking sub-depends for '/usr/lib/libgmp.so.3'
checking sub-depends for 'not found'
checking sub-depends for '/lib/libpthread.so.0'
        libc.so.0 => /lib/libc.so.0 (0xf7734000)
        ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0xf7785000)
checking sub-depends for 'not found'
checking sub-depends for '/lib/libc.so.0'
        ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0xf7763000)
        libncursesw.so.5 => not found (0x00000000)
        librt.so.1 => not found (0x00000000)
        libutil.so.1 => not found (0x00000000)
        libdl.so.2 => not found (0x00000000)
        libgmp.so.3 => /usr/lib/libgmp.so.3 (0x00000000)
        libm.so.6 => not found (0x00000000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x00000000)
        libc.so.6 => not found (0x00000000)
        libc.so.0 => /lib/libc.so.0 (0x00000000)
        /lib/ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0x00000000)



Reproducible: Always
Comment 1 Sergei Trofimovich (RETIRED) gentoo-dev 2010-10-05 18:29:13 UTC
We use binary ghc installation to bootstrap new ghc (so we effectively depend on glibc and gmp). You could try to use USE=ghcbootstrap if you already have working ghc in your system.
Comment 2 Gianluigi Tiesi 2010-10-06 18:09:31 UTC
no, unfortunately I needed iconv (that needs ghc) for git, so finally this makes git unmergeable on uclibc :(
Comment 3 Sergei Trofimovich (RETIRED) gentoo-dev 2010-10-06 19:10:20 UTC
(In reply to comment #2)
> no, unfortunately I needed iconv (that needs ghc) for git, so finally this
> makes git unmergeable on uclibc :(
> 


iconv does not need ghc (until you install dev-haskell/iconv, which is not what you want, it's a haskell bindings to dev-libs/libiconv).

Try to install dev-libs/libiconv instead.
Comment 4 Gianluigi Tiesi 2010-10-06 19:19:02 UTC
yes your are right, I pick dev-haskell/iconv-0.4.0.2 by emerging iconv
I think because dev-libs/libiconv is masked on uclibc
# breaks gcc and such (so I'm still without git :D)

anyway ghc is still unmergeable :)
Comment 5 Sergei Trofimovich (RETIRED) gentoo-dev 2010-10-06 21:06:53 UTC
> anyway ghc is still unmergeable :)
> 

ghc also requires libiconv! :]