Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 73920 - dev-util/guile-1.6.6 compile error
Summary: dev-util/guile-1.6.6 compile error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Alastair Tse (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-09 09:36 UTC by Daniel Webert
Modified: 2005-07-25 21:13 UTC (History)
10 users (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 Daniel Webert 2004-12-09 09:36:25 UTC
dev-util/guile-1.6.6 compile error

<snip>
creating libguile.la
(cd .libs && rm -f libguile.la && ln -s ../libguile.la libguile.la)
/bin/sh ../libtool --tag=CC --mode=link i686-pc-linux-gnu-gcc  -march=pentium4 -O2 -pipe -fomit-frame-pointer -fforce-mem -fforce-addr -falign-functions=4 -fprefetch-loop-arrays -ffast-math -Wall -Wmissing-prototypes -fno-strict-aliasing  -Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -s -o guile -dlpreopen force guile.o libguile.la -lpthread -lcrypt -lm 
rm -f .libs/guile.nm .libs/guile.nmS .libs/guile.nmT
creating .libs/guileS.c
(cd .libs && i686-pc-linux-gnu-gcc -c -fno-builtin "guileS.c")
rm -f .libs/guileS.c .libs/guile.nm .libs/guile.nmS .libs/guile.nmT
i686-pc-linux-gnu-gcc -march=pentium4 -O2 -pipe -fomit-frame-pointer -fforce-mem -fforce-addr -falign-functions=4 -fprefetch-loop-arrays -ffast-math -Wall -Wmissing-prototypes -fno-strict-aliasing -Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -s -o .libs/guile .libs/guileS.o guile.o -Wl,--export-dynamic  ./.libs/libguile.so -lpthread -lcrypt -lm
creating guile
cat alist.doc arbiters.doc async.doc backtrace.doc boolean.doc chars.doc continuations.doc debug.doc dynl.doc dynwind.doc environments.doc eq.doc error.doc eval.doc evalext.doc extensions.doc feature.doc fluids.doc fports.doc gc.doc goops.doc gsubr.doc guardians.doc hash.doc hashtab.doc hooks.doc init.doc ioext.doc iselect.doc keywords.doc lang.doc list.doc load.doc macros.doc mallocs.doc modules.doc numbers.doc objects.doc objprop.doc options.doc pairs.doc ports.doc print.doc procprop.doc procs.doc properties.doc random.doc rdelim.doc read.doc root.doc rw.doc scmsigs.doc script.doc simpos.doc smob.doc sort.doc srcprop.doc stackchk.doc stacks.doc stime.doc strings.doc strop.doc strorder.doc strports.doc struct.doc symbols.doc throw.doc values.doc variable.doc vectors.doc version.doc vports.doc weaks.doc symbols-deprecated.doc ramap.doc unif.doc filesys.doc posix.doc net_db.doc socket.doc regex-posix.doc threads.doc | GUILE="/var/tmp/portage/guile-1.6.6/work/guile-1.6.6/pre-inst-guile" ../scripts/snarf-check-and-output-texi --manual > guile.texi || { rm guile.texi; false; }
/var/tmp/portage/guile-1.6.6/work/guile-1.6.6/libguile/.libs/lt-guile: error while loading shared libraries: libguile-ltdl.so.1: cannot open shared object file: No such file or directory
cat: write error: Broken pipe
make[2]: *** [guile.texi] Error 1
make[2]: Leaving directory `/var/tmp/portage/guile-1.6.6/work/guile-1.6.6/libguile'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/guile-1.6.6/work/guile-1.6.6'
make: *** [all] Error 2

!!! ERROR: dev-util/guile-1.6.6 failed.
!!! Function src_compile, Line 50, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.

porkoo ~ # 
</snip>

<snip>
Portage 2.0.51-r8 (default-linux/x86/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.9-cko3 i686)
=================================================================
System uname: 2.6.9-cko3 i686 Intel(R) Pentium(R) 4 CPU 1.60GHz
Gentoo Base System version 1.6.7
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Nov 27 2004, 09:03:13)]
distcc 2.18.2 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.9.3, 1.8.5-r2, 1.4_p6, 1.5, 1.6.3, 1.7.9
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.2-r7
virtual/os-headers:  2.6.8.1-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer -fforce-mem -fforce-addr -falign-functions=4 -fprefetch-loop-arrays -ffast-math"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer -fforce-mem -fforce-addr -falign-functions=4 -fprefetch-loop-arrays -ffast-math"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig candy ccache distlocks loadpolicy sandbox sfperms userpriv usersandbox"
GENTOO_MIRRORS="ftp://cs.ubishops.ca/pub/gentoo/ http://gentoo.tiscali.nl/gentoo/ http://sunsite.cnlab-switch.ch/ftp/mirror/gentoo/"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.samerica.gentoo.org/gentoo-portage"
USE="GAPING_SECURITY_HOLE X X509 Xaw3d aac aalib acl adns aim aliaschain alsa amd apache2 apm arts artswrappersuid async audiofile avi bash-completion bcmath berkdb bidi bitmap-fonts bmp bonobo bzlib calendar cddb cdparanoia cdr cdrom chroot clamav clanJavaScript clanVoice client cnamefix codecs cpdflib crypt css ctype cups curl curlwrappers dba dedicated devmap dillo dio disablekernelsupport distcache distribution divx4linux dnd dts dv dvd dvdr dvdread edl encode erandom escreen esd estraier ethereal etwin evms2 exif f77 faac faad fam fbcon ffmpeg flac flash flatfile flood fmod font-server foomaticdb fortran fpx freetype fs ftp ftruncate fusion fwdzone gb gd gdbm geoip ggi gif gimp gkrellm glut gmail gmp gphoto2 gpm gps gs gtk gtk2 gtkhtml hardenedphp hbci hub iconv icq ieee1394 imagemagick imap imlib imlib2 immqt-bc inifile innodb intl ipv6 ipv6arpa ithreads jabber java javascript jbig jce jikes jp2 jpeg jpeg2k junit jython kadu-modules kadu-voice lcd lcms ldap libcaca libg++ libsamplerate libwww live lm_sensors ltsp lua lufsusermount lzo lzw lzw-tiff mad maildir maildrop mailwrapper matroska mbox mcal md5sum memlimit mhash mikmod mime ming mixer mmx mmx2 mng motif moznocompose moznoirc moznomail mozp3p mozsvg mozxmlterm mp3 mpeg mpeg4 mplayer msn multipleip mysql nas ncurses net network neural nis nls nntp nowin nptl ntlm nvidia nviz oav offensive ofx oggvorbis openal opengl oscar oss pam passfile pcap pcre pdflib perl php physfs pic pie png postgres prelude procmail python qt quicktime quotes readline real rplay rtc sdl semanticfix server session sftplogging silc silverxp skey slang smartcard smime sndfile snmp soap sockets socks5 softmmu speex spell sse sse2 ssl stats streamzap stroke subject-rewrite svg svga szip tcltk tcpd tga theora threads thumbnail tidy tiff timidity tokenizer transcode transparent-proxy truetype truetype-fonts type1-fonts uml unicode uptimed usb userlocales uudeview v4l v4l2 vda vhosts vim-with-x virus-scan wmf wsconvert x86 xanim xchatdccserver xchattext xface xfs xgetdefault xine xinerama xml xml2 xmlrpc xmms xosd xpm xrandr xsl xv xvid xvmc yahoo yv12 zlib linguas_en linguas_de linguas_es"
</snip>
Comment 1 Mike Gardiner (RETIRED) gentoo-dev 2004-12-09 18:05:10 UTC
CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer -fforce-mem -fforce-addr -falign-functions=4 -fprefetch-loop-arrays -ffast-math"

right, try it with something like CFLAGS="-marach=i686 -O2 -pipe"
Comment 2 Lee Packham 2004-12-11 02:16:42 UTC
I'm having the exact same error/problem. And I have the very simple CFLAGS! :)

Portage 2.0.51-r8 (default-linux/amd64/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.9-ac12 x86_64)
=================================================================
System uname: 2.6.9-ac12 x86_64 AMD Athlon(tm) 64 Processor 3500+
Gentoo Base System version 1.6.7
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Nov 30 2004, 23:24:49)]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.9.3, 1.8.5-r2, 1.5, 1.6.3, 1.7.9, 1.4_p6
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10
virtual/os-headers:  2.6.8.1-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-march=x86-64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=x86-64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X acpi alsa apache2 arts avi berkdb bitmap-fonts bzlib cdr crypt cups dba dvd dvdr esd f77 fam ffmpeg flac fortran gd gdbm gif gnome gpm gstreamer gtk gtk2 gtkhtml imagemagick imlib ipv6 java jp2 jpeg junit kde lzw lzw-tiff mad mozilla multilib mysql ncurses nls nptl nvidia offensive ofx oggvorbis opengl oss pam perl png python qt quicktime quotes readline samba sdl socks5 ssl svg tcltk tcpd tiff truetype usb userlocales xine xml xml2 xmms xpm xrandr xv xvid zlib"
Comment 3 George Kraev 2004-12-11 16:29:40 UTC
There is a problem with guile-1.6.6 or maybe the ebuild is bad. Well in any case the way I got this straightened out is I emerged guile-1.6.4 and then emerged the new guile. Before I tried emerging guile 1.6.6 (and got the same error message about the broken pipe) i had guile 1.4.1 installed. I guess the config of the new guile somehow picks up a library that does not exist or older versions of guile create a system link that is empty. 

Well anyways you have the solution and the maintainer of the ebuild should probably add guile-1.6.4 as a requirement for 1.6.6 as a fast and dirty fix. 
Comment 4 Roman Dilken 2004-12-16 01:24:19 UTC
I can't see that your solution works generally... Here it's the same problem with version 1.6.4. installed...

emerge info:

Portage 2.0.51-r8 (default-macos/ppc/10.3, gcc-3.3, libsystem-7.1-r0, 7.7.0 Power Macintosh)
=================================================================
System uname: 7.7.0 Power Macintosh powerpc
macos-20041118
Python:              dev-lang/python-2.3.3 [2.3 (#1, Sep 13 2003, 00:49:11)]
distcc 2.0.1-zeroconf powerpc-apple-darwin7.0 (protocol 1) (default port 3632) [disabled]
dev-lang/python:     2.3.3
sys-devel/autoconf:  2.57, 2.59-r5
sys-devel/automake:  1.6.3, 1.8.5-r1
sys-devel/binutils:  [Not Present]
sys-devel/libtool:   [Not Present]
virtual/os-headers:  [Not Present]
ACCEPT_KEYWORDS="ppc-macos ~ppc-macos"
AUTOCLEAN="yes"
CFLAGS="-O3 -pipe  -mcpu=G5 -mtune=G5 -mpowerpc64 -funroll-loops -flat_namespace -mpowerpc-gpopt"
CHOST="powerpc-apple-darwin"
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="-O3 -pipe  -mcpu=G5 -mtune=G5 -mpowerpc64 -funroll-loops -flat_namespace -mpowerpc-gpopt"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache collision-protect cvs distlocks keepwork"
GENTOO_MIRRORS="http://gentoo.osuosl.org/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="ppc X altivec berkdb debug dts dvd encode faac faad ggi gif hbci jpeg justify makecheck matroska multilib ncurses nls nptl odbc ofx oggvorbis opengl png ppc-macos quotes recode ssl threads tiff truetype unicode usb zlib"
Comment 5 Alex Turbov 2004-12-23 17:02:39 UTC
I have the same problem on my amd64... After emerge fail I do the following:

/ # cd /var/tmp/portage/guile-1.6.6/work/guile-1.6.6/libguile/.libs
.libs # ldd lt-guile
        libguile.so.12 => /var/tmp/portage/guile-1.6.6/work/guile-1.6.6/libguile/.libs/libguile.so.12 (0x0000002a9566e000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0x0000002a9583a000)
        libm.so.6 => /lib/tls/libm.so.6 (0x0000002a9596f000)
        libc.so.6 => /lib/tls/libc.so.6 (0x0000002a95af5000)
        libguile-ltdl.so.1 => not found
        libguile-ltdl.so.1 => /var/tmp/portage/guile-1.6.6/work/guile-1.6.6/libguile-ltdl/.libs/libguile-ltdl.so.1 (0x0000002a95d2d000)
        /lib64/ld-linux-x86-64.so.2 (0x0000002a95556000)
        libdl.so.2 => /lib/libdl.so.2 (0x0000002a95e32000)

... but if I set LD_LIBRARY_PATH ldd output will be OK

.libs # LD_LIBRARY_PATH=../../libguile-ltdl/.libs ldd lt-guile
        libguile.so.12 => /var/tmp/portage/guile-1.6.6/work/guile-1.6.6/libguile/.libs/libguile.so.12 (0x0000002a9566e000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0x0000002a9583b000)
        libm.so.6 => /lib/tls/libm.so.6 (0x0000002a9596f000)
        libc.so.6 => /lib/tls/libc.so.6 (0x0000002a95af5000)
        libguile-ltdl.so.1 => ../../libguile-ltdl/.libs/libguile-ltdl.so.1 (0x0000002a95d2d000)
        /lib64/ld-linux-x86-64.so.2 (0x0000002a95556000)
        libdl.so.2 => /lib/libdl.so.2 (0x0000002a95e32000)

---
so I suspect two possible reasons for that behaviour:
1) libtool bug
2) guile build system bug (i.e. smth wrong in automake/autoconf configuration of guile itself)
Comment 6 Yuri Vasilevski (RETIRED) gentoo-dev 2004-12-29 16:34:40 UTC
The method from Comment #3 worked for me.

Yuri.
Comment 7 Kenyon Ralph 2005-01-03 19:04:35 UTC
This is fixed in guile-1.6.7 (released 20041221).  From the home page:
-----
A build problem has been fixed. Previously, on some systems, the build would fail when libguile-ltdl couldn't be found during the build.
-----

I just renamed the 1.6.6 ebuild to 1.6.7, put it in my overlay, and the emerge worked fine.  I reckon you're supposed to change the slot or something though.  Hmmm...
Comment 8 alex f 2005-01-06 06:52:28 UTC
I also renamed the 1.6.6 ebuild and it compiled fine.
Comment 9 foser (RETIRED) gentoo-dev 2005-01-17 09:31:59 UTC
lqx solve it or find a maintainer for it. This is not gnome.
Comment 10 M. Edward Borasky 2005-01-19 06:54:09 UTC
I'm building a fully-~x86 system from stage1 on an Athlon XP. I hit this too, attempting to build texmacs. Can't you just grab 1.6.7 from upstream, put it in Portage as unstable and let bleeding edgers like myself test it. That's why we do this. :)
Comment 11 Scott Taylor (RETIRED) gentoo-dev 2005-01-28 00:53:28 UTC
admittedly kinda hackish, but changing the emake -j1 line to the following
forces it to compile:

emake -j1 || cp libguile-ltdl/.libs/libguile-ltdl.so.1 libguile/.libs/ ; emake -j1 || die

this is not necessarily good voodoo, but apparently the regular build process
expects the shared library to already be on the system, which seems messy.
probably the correct fix is to change a makefile in the libguile directory
to include not just ../libtool-ltdl but ../libtool-ltdl/.libs as well.  Aside
from just saying this appears to make it successfully compile, I don't actually
use guile and am not familiar enough with it to say any of this actually works
or more importantly works right, or the merits of a version bump. Only saying
that on my ~x86 system that I just today started compiling from scratch, this
change let this package finish building.
Comment 12 Martin von Gagern 2005-01-28 01:03:13 UTC
I agree with comment 10. I'm building a complete ~x86 system from stage 3. Copied 1.6.6 ebuild to 1.6.7 and emerged successfully. So please someone do this!
Comment 13 Alastair Tse (RETIRED) gentoo-dev 2005-01-28 03:05:28 UTC
1.6.7 is now in portage, also with some cleanup regarding parallel builds. can people test to see whether it solves the prob?
Comment 14 Roman Dilken 2005-01-28 06:13:14 UTC
I've the same problem as above with 1.6.7...
Comment 15 alex f 2005-01-28 06:51:43 UTC
1.6.7 ebuild in the tree works for me
Comment 16 jboehm 2005-05-19 04:39:03 UTC
I got the same error with 1.6.6 but 1.6.7 works for me.
Comment 17 Alastair Tse (RETIRED) gentoo-dev 2005-06-24 06:31:44 UTC
closing bug as new version fixes this