Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 88558

Summary: Darcs-1.0.2 fails to build
Product: Gentoo Linux Reporter: Christian Heim (RETIRED) <phreak>
Component: Current packagesAssignee: Gentoo's Haskell Language team <haskell>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: config.log of darcs-1.0.2

Description Christian Heim (RETIRED) gentoo-dev 2005-04-10 03:00:51 UTC
Well i stumbled upon darcs and wanted to try it out. So i typed emerge darcs, which brought up darcs and it's dependencies.

Curl and the other two installed fine, but darcs himself gets me troubles. It fails during the src_compile().

--
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
Setting config.command to 'sh ./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib
checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether i686-pc-linux-gnu-gcc accepts -g... yes
checking for i686-pc-linux-gnu-gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... i686-pc-linux-gnu-gcc -E
checking for a BSD-compatible install... /bin/install -c
checking for ghc... ghc
configure: error: Compile failed.
--

Gentoo Base System version 1.6.10
Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.4.3-20050110, glibc-2.3.4.20050125-r1, 2.6.11.4-gentoo i686)
=================================================================
System uname: 2.6.11.4-gentoo i686 Intel(R) Pentium(R) M processor 1300MHz
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Mar 29 2005, 20:51:34)]
dev-lang/python:     2.3.5
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.5, 1.9.5, 1.7.9-r1, 1.6.3, 1.4_p6, 1.8.5-r3
sys-devel/binutils:  2.15.92.0.2-r7
sys-devel/libtool:   1.5.14
virtual/os-headers:  2.6.8.1-r4
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium-m -O2 -pipe -mfpmath=sse -msse2 -mmmx"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=pentium-m -O2 -pipe -mfpmath=sse -msse2 -mmmx"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig buildpkg ccache collision-protect distlocks noinfo sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.devnull.de/pub/linux/gentoo/gentoo/ http://pandemonium.tiscali.de/pub/gentoo/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://gentoo.inode.at/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="x86 alsa arts ipv6 nptl opengl pam ssl truetype unicode"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS

Find attached the config.log
Comment 1 Christian Heim (RETIRED) gentoo-dev 2005-04-10 03:01:41 UTC
Created attachment 55843 [details]
config.log of darcs-1.0.2
Comment 2 Christian Heim (RETIRED) gentoo-dev 2005-04-10 03:06:17 UTC
Taking a closer look to the config, i see the problem now. ghc is possibly linked against readline4 (/opt/ghc/lib/ghc-6.2.2/ghc-6.2.2: error while loading shared libraries: libreadline.so.4: cannot open shared object file: No such file or directory) but on my system is only readline-5.0-r2 installed. That might be the show stopper.

# qpkg -I -v -nc readline
sys-libs/readline-5.0-r2
Comment 3 Andres Loeh (RETIRED) gentoo-dev 2005-04-10 03:31:58 UTC
This is a bug in ghc-bin that's already known, and even for a long time,
I'm afraid. I'm sorry I've never got around to fixing it, which is mainly
because the whole ghc-bin ebuild is ugly currently, and I want to move
to another scheme based on Gentoo-built binary ebuilds.

I'm making this a duplicate of an older bug which mentions the readline
problem. You can work around the problem on your machine by symlinking
readline-5 to readline-4. This is enough to compile both a proper ghc and/or
darcs on your machine.

I'm sorry that you experienced this problem, the Haskell team will try to
fix this properly soon ...

ks
Comment 4 Andres Loeh (RETIRED) gentoo-dev 2005-04-10 03:33:21 UTC

*** This bug has been marked as a duplicate of 70617 ***