Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 82601 - libtool: link: warning: cannot determine absolute directory name of `usr/lib'
Summary: libtool: link: warning: cannot determine absolute directory name of `usr/lib'
Status: RESOLVED DUPLICATE of bug 83081
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-19 10:42 UTC by Christopher Rude
Modified: 2005-07-17 13:06 UTC (History)
0 users

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


Attachments
Requested output (output.txt,887 bytes, text/plain)
2005-02-20 20:52 UTC, Christopher Rude
Details
output of emerge popt >& log (log,49.29 KB, text/plain)
2005-02-20 21:30 UTC, Christopher Rude
Details
Requested libtool-log adding 'set -x' (libtool-log,119.29 KB, text/plain)
2005-02-20 21:57 UTC, Christopher Rude
Details
requested output of: make install DESTDIR=/var/tmp/portage/popt-1.7-r1/image/ >& install-log (install-log,22.60 KB, text/plain)
2005-02-20 22:37 UTC, Christopher Rude
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christopher Rude 2005-02-19 10:42:35 UTC
I am having trouble emerging many packages that have worked before. 

A common example of what the error is tho the I have also seen it bomb on libexpat.la as well as libpopt.la

../libtool: line 3115: cd: usr/lib: No such file or directory
libtool: link: warning: cannot determine absolute directory name of `usr/lib'
grep: usr/lib/libpopt.la: No such file or directory
/bin/sed: can't read usr/lib/libpopt.la: No such file or directory
libtool: link: `usr/lib/libpopt.la' is not a valid libtool archive

3 pacakages I can confirm libbonobo-2.8.1, kdebase-3.4_beta2, gal-2.2.4, eel-2.8.2. there are 80 or so more that I have not yet confirmed the liking error.

full error from libbonobo-2.8.1:
make  all-am
make[3]: Entering directory `/var/tmp/portage/libbonobo-2.8.1/work/libbonobo-2.8.1/idl'
if /bin/sh ../libtool --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -DORBIT2=1 -pthread -I/usr/include/orbit-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include      -march=athlon-xp -Os -fomit-frame-pointer -pipe -falign-functions=64 -mfpmath=sse -m3dnow -msse -mmmx -ffast-math -MT Bonobo-imodule.lo -MD -MP -MF ".deps/Bonobo-imodule.Tpo" \
  -c -o Bonobo-imodule.lo `test -f 'Bonobo-imodule.c' || echo './'`Bonobo-imodule.c; \
then mv -f ".deps/Bonobo-imodule.Tpo" ".deps/Bonobo-imodule.Plo"; \
else rm -f ".deps/Bonobo-imodule.Tpo"; exit 1; \
fi
mkdir .libs
 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -DORBIT2=1 -pthread -I/usr/include/orbit-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -march=athlon-xp -Os -fomit-frame-pointer -pipe -falign-functions=64 -mfpmath=sse -m3dnow -msse -mmmx -ffast-math -MT Bonobo-imodule.lo -MD -MP -MF .deps/Bonobo-imodule.Tpo -c Bonobo-imodule.c  -fPIC -DPIC -o .libs/Bonobo-imodule.o
 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -DORBIT2=1 -pthread -I/usr/include/orbit-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -march=athlon-xp -Os -fomit-frame-pointer -pipe -falign-functions=64 -mfpmath=sse -m3dnow -msse -mmmx -ffast-math -MT Bonobo-imodule.lo -MD -MP -MF .deps/Bonobo-imodule.Tpo -c Bonobo-imodule.c -o Bonobo-imodule.o >/dev/null 2>&1
/bin/sh ../libtool --mode=link i686-pc-linux-gnu-gcc  -march=athlon-xp -Os -fomit-frame-pointer -pipe -falign-functions=64 -mfpmath=sse -m3dnow -msse -mmmx -ffast-math   -o Bonobo_module.la -rpath /usr/lib/orbit-2.0 -export-dynamic -module -avoid-version -no-undefined Bonobo-imodule.lo -Wl,--export-dynamic -pthread -lORBitCosNaming-2 -lORBit-2 -lm -lgmodule-2.0 -ldl -lgobject-2.0 -lgthread-2.0 -lglib-2.0
../libtool: line 3115: cd: usr/lib: No such file or directory
libtool: link: warning: cannot determine absolute directory name of `usr/lib'
grep: usr/lib/libpopt.la: No such file or directory
/bin/sed: can't read usr/lib/libpopt.la: No such file or directory
libtool: link: `usr/lib/libpopt.la' is not a valid libtool archive
make[3]: *** [Bonobo_module.la] Error 1
make[3]: Leaving directory `/var/tmp/portage/libbonobo-2.8.1/work/libbonobo-2.8.1/idl'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/libbonobo-2.8.1/work/libbonobo-2.8.1/idl'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/libbonobo-2.8.1/work/libbonobo-2.8.1'
make: *** [all] Error 2

!!! ERROR: gnome-base/libbonobo-2.8.1 failed.
!!! Function gnome2_src_compile, Line 40, Exitcode 2
!!! compile failure
!!! If you need support, post the topmost build error, NOT this status message.
 
I have run fix_libtool_files.sh passing 3.4.3, 3.3.4, and 3.4, none of which help, I have tried gcc-3.4.3-r1, gcc-3.4.3.20050110, I also switched to my older compiler gcc-3.3.4 with the same result.

Reproducible: Always
Steps to Reproduce:
1.emerge libbonobo
2.emerge kdebase-3.4_beta2
3.emerge gal

Actual Results:  
linker error 

Expected Results:  
rebuilt packages 

Portage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.4.3, 
glibc-2.3.4.20050125-r0, 2.6.10-mm2 i686) 
================================================================= 
System uname: 2.6.10-mm2 i686 AMD Athlon(tm) MP 1900+ 
Gentoo Base System version 1.6.9 
Python:              dev-lang/python-2.2.3-r5,dev-lang/python-2.3.5 [2.3.5 (#2, 
Feb 19 2005, 05:51:27)] 
ccache version 2.3 [enabled] 
dev-lang/python:     2.2.3-r5, 2.3.5 
sys-devel/autoconf:  2.13, 2.59-r6 
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.4 
sys-devel/binutils:  2.15.92.0.2-r2 
sys-devel/libtool:   1.5.10-r4 
virtual/os-headers:  2.6.8.1-r2 
ACCEPT_KEYWORDS="x86 ~x86" 
AUTOCLEAN="yes" 
CFLAGS="-march=athlon-xp -Os -fomit-frame-pointer -pipe -falign-functions=64 
-mfpmath=sse -m3dnow -msse -mmmx -ffast-math" 
CHOST="i686-pc-linux-gnu" 
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="-march=athlon-xp -Os -fomit-frame-pointer -pipe -falign-functions=64 
-mfpmath=sse -m3dnow -msse -mmmx -ffast-math" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs autoconfig buildpkg candy ccache distlocks sfperms" 
GENTOO_MIRRORS="http://128.213.5.34/gentoo/ ftp://gentoo.noved.org/ 
http://gentoo.noved.org/ http://gentoo.mirrors.pair.com/ 
http://mirrors.tds.net/gentoo" 
MAKEOPTS="-j3" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/local/portage1" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="3dnow X aalib alsa apm applypatches arts audiofile avi berkdb bindist 
bitmap-fonts bonobo cdparanoia cdr crypt cups curl dga doc dvd dvdr emboss 
encode esd evo f77 fam fastcgi fbcon flac flash font-server foomaticdb fortran 
gb gif glx gpm gstreamer gtk gtk2 gtkhtml hal ieee1394 imagemagick imlib ipv6 
ithreads jack java jikes joystick jpeg junit kde kdeenablefinal kerberos lcms 
ldap libclamav libg++ libwww lm_sensors logitech-mouse mad mikmod mmx motif 
mozilla mpeg mpi mysql nas ncurses nls nptl objc oggvorbis opengl oss pam pda 
pdflib perl pic png ppds python qt quicktime rdesktop readline samba scanner 
sdl slang speex spell sse ssl svga tcltk tcpd tetex theora tiff truetype 
truetype-fonts type1-fonts usb videos winbind wmf x86 xine xinerama xml xml2 
xmms xosd xprint xscreensaver xv zlib" 
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 1 SpanKY gentoo-dev 2005-02-20 20:46:38 UTC
please run this and post the output as an attachment:
grep '[^/]usr/lib' /usr/lib/*.la
Comment 2 Christopher Rude 2005-02-20 20:52:25 UTC
Created attachment 51749 [details]
Requested output

output of running:
grep '[^/]usr/lib' /usr/lib/*.la
Comment 3 SpanKY gentoo-dev 2005-02-20 21:00:53 UTC
and if you re-emerge popt, what does libpopt.la have for libdir= in it ?
Comment 4 Christopher Rude 2005-02-20 21:08:35 UTC
I just re-emerged, but the output is still the same.

/usr/lib/libpopt.la:libdir='usr/lib'
Comment 5 SpanKY gentoo-dev 2005-02-20 21:18:43 UTC
please run `emerge popt >& log` and post the log file as an attachment
Comment 6 Christopher Rude 2005-02-20 21:30:11 UTC
Created attachment 51751 [details]
output of emerge popt >& log
Comment 7 SpanKY gentoo-dev 2005-02-20 21:39:42 UTC
ok, here's another fun thing to try:

ebuild popt-1.7-r1.ebuild clean unpack compile
cd /var/tmp/portage/popt-1.7-r1/work/popt-1.7
# edit libtool and add 'set -x' to the second line
rm -f libpopt.la
make >& libtool-log

then post libtool-log as an attachment
Comment 8 Christopher Rude 2005-02-20 21:57:58 UTC
Created attachment 51752 [details]
Requested libtool-log adding 'set -x'
Comment 9 SpanKY gentoo-dev 2005-02-20 22:10:21 UTC
hrm, can you post the install-log from this then (make sure libtool still has the 'set -x' in it):
cd /var/tmp/portage/popt-1.7-r1/work/popt-1.7
make install DESTDIR=/var/tmp/portage/popt-1.7-r1/image/ >& install-log
Comment 10 Christopher Rude 2005-02-20 22:37:08 UTC
Created attachment 51754 [details]
requested output of:  make install DESTDIR=/var/tmp/portage/popt-1.7-r1/image/ >& install-log
Comment 11 SpanKY gentoo-dev 2005-02-21 08:13:07 UTC
well i'm out of ideas ... the attached debug output all looks sane ...

only thing i can think of is that your CFLAGS are a little out there ... -march + -Os has been known to cause issues before ... perhaps try this:
CFLAGS="-pipe" emerge coreutils sed libtool popt
and see if it works ...
Comment 12 Christopher Rude 2005-02-21 19:36:24 UTC
I tried: CFLAGS="-pipe" emerge coreutils sed libtool popt

Still a no go.
Comment 13 nq 2005-02-22 02:27:38 UTC
I had the same problem with xorg-x11 (never had any problems with popt though). I had to change libdir='usr/lib' in libGLU.la and correct some dependent .la files. the xorg-x11-6.8.2 ebuild now seems to contain a fix (the fix_libtool_libdir_paths function) for this.
Comment 14 Martin Schwier 2005-02-22 05:28:06 UTC
I have the sameproblem (missing heading slash) for librsvg and atk. See Bug b82935
Comment 15 Pawel Golik 2005-02-22 05:33:36 UTC
Same problem here for pyorbit (looking for libIDL-2) and celestia (looking for qt-mt). Other apps compile fine. 
Comment 16 Christopher Rude 2005-02-22 15:40:00 UTC
I Changed 
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -ftracer -fprefetch-loop-arrays -pipe"

and rebuilt the toolchain, then rebuilt system. Hoping that it was an issue with my CFLAGS. I swiped my new cflags from a post by the developer who is responsible for porting gcc (I am going from memory and cant track the post at the moment... sorry) im pretty sure he goes by the handle ciaranm on the forums.

still a no go :(

Thanks again for your help
Comment 17 SpanKY gentoo-dev 2005-02-22 19:30:39 UTC
you guys are confusing bugs here

the libGLU.la bug was something in xorg-x11 that's been fixed already and has NOTHING to do with this bug

really all it takes is one broken .la and others will be broken too because of it, but those packages arent broken
Comment 18 Christopher Rude 2005-02-22 19:32:03 UTC
I edited the *.la files that depended upon `usr/lib/libpopt.la` and added the leading /

Things appear to be building now, I will report after my system finishes rebuilding due to the new CFLAGS :)
Comment 19 Martin Schlemmer (RETIRED) gentoo-dev 2005-02-23 10:49:50 UTC

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