Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 85318 - gcc-3.3.5-r1 can't find .libs/*.o (with static flag?)
Summary: gcc-3.3.5-r1 can't find .libs/*.o (with static flag?)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
: 102706 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-03-15 01:39 UTC by Denis Kot
Modified: 2006-01-14 20:27 UTC (History)
2 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 Denis Kot 2005-03-15 01:39:19 UTC
/bin/sh ../libtool  --mode=install /bin/sh /var/tmp/portage/gcc-3.3.5-r1/work/gcc-3.3.5/install-sh -c libstdc++.la /var/tmp/portage/gcc-3.3.5-r1/image//usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/libstdc++.la
/bin/sh /var/tmp/portage/gcc-3.3.5-r1/work/gcc-3.3.5/install-sh -c .libs/libstdc++.lai /var/tmp/portage/gcc-3.3.5-r1/image//usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/libstdc++.la
/bin/sh /var/tmp/portage/gcc-3.3.5-r1/work/gcc-3.3.5/install-sh -c .libs/libstdc++.a /var/tmp/portage/gcc-3.3.5-r1/image//usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/libstdc++.a
ranlib /var/tmp/portage/gcc-3.3.5-r1/image//usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/libstdc++.a
chmod 644 /var/tmp/portage/gcc-3.3.5-r1/image//usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/libstdc++.a
libtool: install: warning: remember to run `libtool --finish /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5'
ar cru libstdc++_pic.a .libs/*.o ../libsupc++/*.o
ar: .libs/*.o: No such file or directory
make[3]: *** [install-exec-local] Ошибка 1
make[3]: Leaving directory `/var/tmp/portage/gcc-3.3.5-r1/work/build/i686-pc-linux-gnu/libstdc++-v3/src'
make[2]: *** [install-am] Ошибка 2
make[2]: Leaving directory `/var/tmp/portage/gcc-3.3.5-r1/work/build/i686-pc-linux-gnu/libstdc++-v3/src'
make[1]: *** [install-recursive] Ошибка 1
make[1]: Leaving directory `/var/tmp/portage/gcc-3.3.5-r1/work/build/i686-pc-linux-gnu/libstdc++-v3'
make: *** [install-target-libstdc++-v3] Ошибка 2

!!! ERROR: sys-devel/gcc-3.3.5-r1 failed.
!!! Function gcc-compiler_src_install, Line 1326, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.


Reproducible: Always
Steps to Reproduce:
1.emerge -uDvp --newuse world

Actual Results:  
/bin/sh ../libtool  --mode=install /bin/sh
/var/tmp/portage/gcc-3.3.5-r1/work/gcc-3.3.5/install-sh -c libstdc++.la
/var/tmp/portage/gcc-3.3.5-r1/image//usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/libstdc++.la
/bin/sh /var/tmp/portage/gcc-3.3.5-r1/work/gcc-3.3.5/install-sh -c
.libs/libstdc++.lai
/var/tmp/portage/gcc-3.3.5-r1/image//usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/libstdc++.la
/bin/sh /var/tmp/portage/gcc-3.3.5-r1/work/gcc-3.3.5/install-sh -c
.libs/libstdc++.a
/var/tmp/portage/gcc-3.3.5-r1/image//usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/libstdc++.a
ranlib
/var/tmp/portage/gcc-3.3.5-r1/image//usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/libstdc++.a
chmod 644
/var/tmp/portage/gcc-3.3.5-r1/image//usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5/libstdc++.a
libtool: install: warning: remember to run `libtool --finish
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5'
ar cru libstdc++_pic.a .libs/*.o ../libsupc++/*.o
ar: .libs/*.o: No such file or directory
make[3]: *** [install-exec-local] Ошибка 1
make[3]: Leaving directory
`/var/tmp/portage/gcc-3.3.5-r1/work/build/i686-pc-linux-gnu/libstdc++-v3/src'
make[2]: *** [install-am] Ошибка 2
make[2]: Leaving directory
`/var/tmp/portage/gcc-3.3.5-r1/work/build/i686-pc-linux-gnu/libstdc++-v3/src'
make[1]: *** [install-recursive] Ошибка 1
make[1]: Leaving directory
`/var/tmp/portage/gcc-3.3.5-r1/work/build/i686-pc-linux-gnu/libstdc++-v3'
make: *** [install-target-libstdc++-v3] Ошибка 2

!!! ERROR: sys-devel/gcc-3.3.5-r1 failed.
!!! Function gcc-compiler_src_install, Line 1326, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.


Expected Results:  
sys-devel/gcc-3.3.5-r1 merged

# emerge info
Portage 2.0.51.19 (default-linux/x86/2004.0, gcc-3.3.5, glibc-2.3.4.20040808-r1,
2.6.10-gentoo-r6 i686)
=================================================================
System uname: 2.6.10-gentoo-r6 i686 Intel(R) Pentium(R) 4 CPU 1.60GHz
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb  7 2005, 18:58:02)]
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium4 -pipe -mfpmath=sse -mmmx -msse2 
-fomit-frame-pointer -ffast-math -fforce-addr"
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/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium4 -pipe -mfpmath=sse -mmmx -msse2 
-fomit-frame-pointer -ffast-math -fforce-addr"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig buildpkg ccache distcc distlocks fixpackages
sandbox sfperms"
GENTOO_MIRRORS="http://gentoo.inode.at/ ftp://gentoo.inode.at/source/
http://mirror.datapipe.net/gentoo ftp://ftp.easynet.nl/mirror/gentoo/
http://gentoo.mirror.icd.hu/ http://gentoo.inode.at/"
LANG="ru_RU.KOI8-R"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apm arts avi berkdb bitmap-fonts cdr crypt cups curl divx4linux
dmx dvd emboss encode fam flac foomaticdb fortran gdbm gif gphoto2 gpm gtk gtk2
i8x0 icq imagemagick imlib jabber java javascript jpeg junit kde kdeenablefinal
libg++ libwww mad mikmod motif mozilla moznocompose moznoirc mp3 mpeg ncurses
network nlsnptl oggvorbis opengl pam pdflib perl png python qt quicktime
readline real samba sdl slang spell sse sse2 ssl static svga tcltk tcpd tiff tk
truetype truetype-fonts type1-fonts unicode usb xine xml xml2 xosd xprint xv
xvid zlib linguas_ru"
Unset:  ASFLAGS, CBUILD, CTARGET, LC_ALL, LDFLAGS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-08-16 06:01:34 UTC
*** Bug 102706 has been marked as a duplicate of this bug. ***
Comment 2 jmdorfman 2005-09-11 09:17:19 UTC
hello, i get the same thing. actually, i was originally trying this on gcc-3.4.4-r1 where i got this.  after i read this bug report, i also tried gcc-3.3.5-r1 where i also got this same error.  gcc-3.4.3-r1 compiles successfully for me though. here is my emerge info:  Gentoo Base System version 1.12.0_pre8 Portage 2.0.51.52-r2 (default-linux/x86/2005.0, gcc 3.4.3, glibc 2.3.5-r1, 2.6.12-rc6 i686) =============================================================== System uname: 2.6.12-r6 i686 AMD Athlon(tm) MP 2800+ distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] dev-lang/python:     2.3.5, 2.4.1-r1 sys-apps/sandbox:    1.2.12 sys-devel/autoconf:  2.13, 2.59-r7 sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6 sys-devel/binutils:  2.15.92.0.2-r1, 2.16.1 sys-devel/libtool:   1.5.20 virtual/os-headers:  2.4.19-r1, 2.6.11-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=athlon-mp -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.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/prep /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=athlon-mp -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="ftp://mirrors.tds.net/gentoo ftp://cudlug.cudenver.edu/pub/mirrors/distributions/gentoo/ http://mirror.clarkson.edu/pub/distributions/gentoo/" MAKEOPTS="-j8" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow X a52 acpi alsa apm arts avi berkdb bitmap-fonts bonobo cdr crypt cups curl divx4linux dv dvd dvdread eds emboss encode esd fam fame flac foomaticb foomaticdb fortran gdbm gif gimpprint gnome gpm gstreamer gtk gtk2 gtkhtml guile imagemagick imlib ipv6 java joystick jpeg kde libg++ libwww lzo mad mikmod mjpeg mmx motif mozilla mp3 mpeg ncurses nls ogg oggvorbis opengl oss pam pdflib perl png ppds python qt quicktime readline samba scanner sdl slang speex spell ssl static svga tcltk tcpd theora tiff truetype truetype-fonts type1-fonts unicode usb v4l videos vorbis x86 xine xml xml2 xmms xv xvid zlib video_cards_radeon userland_GNU kernel_linux elibc_glibc" Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 3 jmdorfman 2005-09-11 15:49:15 UTC
Hello, it appears that the line:

i686-pc-linux-gnu-ar cru libstdc++_pic.a .libs/*.o ../libsupc++/*.o

causes compilation to stop with error:

i686-pc-linux-gnu-ar: .libs/*.o: No such file or directory

I see this line and error when I try to compile gcc-3.4.4-r1 and it fails to
compile.  You can see from the person that started this bug that compiling
gcc-3.3.5-r1 does something similar.

HOWEVER, when I compile gcc-3.4.3-r1 which successfully compiles, I do NOT see
the above line.  Everything else in that area appears to be the same, but the
above line is not there.

So the question is, what controls the exist of that line?
Comment 4 jmdorfman 2005-09-17 14:16:05 UTC
Found solution at gentoo forum for solution,
http://forums.gentoo.org/viewtopic-t-349416-highlight-gcc+3+4+4+libstdc.html

Executed "/usr/portage/scripts/bootstrap.sh" which fixed problem for
gcc-3.4.4-r1, so I believe it should work for gcc-3.3.5-r1 since I had the same
problem with that.

So, this should probably be changed to resolved.
Comment 5 Andy Kissner 2005-10-22 09:28:35 UTC
I've gotten the same error with gcc-3.3.6, and I have run
/usr/portage/scripts/bootstrap.sh
Comment 6 Ian R Worden 2005-10-26 07:29:09 UTC
I have had this problem on the last several versions of gcc.  The problem seems
to be in a hand-made make target from a patch.

The lines are in gcc-3.3.6/libstdc++-v3/src/Makefile.am:
install-exec-local:
        $(AR) cru libstdc++_pic.a .libs/*.o $(top_builddir)/libsupc++/*.o
        $(INSTALL_DATA) libstdc++_pic.a $(DESTDIR)$(toolexeclibdir)

The gcc-g++-3.3.6 I downloaded from GNU didn't have this target, so I searched
for it in the Gentoo patches and found it in 25_all_gcc33-libstdc++-pic.patch

I haven't tried excluding this patch yet (I'm not sure how to do that at the
moment and it takes a couple of days for my poor little computer to build gcc).
Comment 7 SpanKY gentoo-dev 2005-11-05 14:57:50 UTC
if you remove 'static' from your USE, does that fix things ?
Comment 8 Andy Kissner 2005-11-05 15:03:31 UTC
Yes, it does. I forgot to report back :/
Sorry about that.
Interestingly enough, I still wasn't able to compile it statically even after
emerge -e system with static enabled...oh well.
Comment 9 SpanKY gentoo-dev 2005-11-05 15:14:52 UTC
yeah, the static USE flag should be punted from toolchain.eclass since it doesnt
do what USE=static actually means (producing static binaries)

removed from toolchain.eclass
Comment 10 Andy Kissner 2005-11-05 15:16:34 UTC
Thanks man.
Comment 11 SpanKY gentoo-dev 2006-01-14 20:27:24 UTC
actually i thought about this some and realized that it may make sense to produce only static libs (cross-compiler for an embedded target which doesnt support shared libs)

so i'll fix the patch to work properly so that no _pic.a will be generated if no .so was generated