Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 18579 - Can not emerge app-editors/gedit-2.2.1, because it looks for wrong GCC lib directory
Summary: Can not emerge app-editors/gedit-2.2.1, because it looks for wrong GCC lib di...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Martin Schlemmer (RETIRED)
URL: http://forums.gentoo.org/viewtopic.ph...
Whiteboard:
Keywords:
: 23146 24783 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-04-01 05:01 UTC by steveb
Modified: 2008-05-03 19:46 UTC (History)
4 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 steveb 2003-04-01 05:01:12 UTC
while i try to emerge gedit-2.2.1, I get errors because it searches for /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/libstdc++.la and I have only /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/libstdc++.la.

/bin/sh ../../libtool --mode=link gcc  -march=athlon-tbird -O3 -pipe -mmmx -m3dnow -fforce-addr -funroll-loops -falign-functions=4 -maccumulate-outgoing-args  -o libspell.la -rpath /usr/lib/gedit-2/plugins -module -avoid-version  spell.lo gedit-spell-checker.lo gedit-spell-checker-dialog.lo gedit-spell-language-dialog.lo gedit-automatic-spell-checker.lo gedit-spell-checker-dialog-marshal.lo preload.lo -lpspell -lpopt 
mkdir .libs
grep: /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/libstdc++.la: No such file or directory
/bin/sed: can't read /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/libstdc++.la: No such file or directory
libtool: link: `/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/libstdc++.la' is not a valid libtool archive
make[3]: *** [libspell.la] Error 1
make[3]: Leaving directory `/var/tmp/portage/gedit-2.2.1/work/gedit-2.2.1/plugins/spell'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/gedit-2.2.1/work/gedit-2.2.1/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gedit-2.2.1/work/gedit-2.2.1'
make: *** [all-recursive-am] Error 2

!!! ERROR: app-editors/gedit-2.2.1 failed.
!!! Function gnome2_src_compile, Line 41, Exitcode 2
!!! compile failure



# emerge info
Portage 2.0.47-r10 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4)
=================================================================
System uname: 2.4.20-xfs-r2 i686 AMD Athlon (TM)
GENTOO_MIRRORS="ftp://sunsite.cnlab-switch.ch/mirror/gentoo/ "
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY="/usr/local/portage"
USE="x86 3dnow apm avi crypt cups encode gif jpeg libg++ mikmod mmx mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib gtkhtml gdbm berkdb slang readline arts tetex aalib nas svga tcltk java guile X sdl gpm tcpd pam libwww ssl python esd imlib oggvorbis gnome gtk qt kde motif opengl acl acpi alsa bonobo cdr dga directfb dvd evo fbcon gb gd ggi gphoto2 icc icc-pgo imap ipv6 jikes junit kerberos lcms ldap mozilla oav -oss pda perl pic samba scanner slp snmp socks5 tiff usb wmf xface"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=athlon-tbird -O3 -pipe -mmmx -m3dnow -fforce-addr -funroll-loops -falign-functions=4 -maccumulate-outgoing-args"
CXXFLAGS="-march=athlon-tbird -O3 -pipe -mmmx -m3dnow -fforce-addr -funroll-loops -falign-functions=4 -maccumulate-outgoing-args"
ACCEPT_KEYWORDS="x86"
MAKEOPTS="-j16"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache buildpkg distcc userpriv"


# ls -lah /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/libstdc++.la
ls: /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/libstdc++.la: No such file or directory


# ls -lah /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/libstdc++.la
-rwxr-xr-x    1 root     root          917 Feb 24 05:11 /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/libstdc++.la


# for i in $(echo get-current-profile list-profiles print-environ get-bin-path get-lib-path get-stdcxx-incdir);do echo -ne "\n${i}:\n";gcc-config --${i};done 

get-current-profile:
i686-pc-linux-gnu-3.2.2

list-profiles:
i686-pc-linux-gnu-3.2.2

print-environ:
export PATH="/usr/i686-pc-linux-gnu/gcc-bin/3.2:/bin:/sbin:/usr/lib/distcc/bin:/usr/bin:/usr/sbin:/usr/local/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.2:/opt/Acrobat5:/opt/rar/bin:/usr/X11R6/bin:/opt/blackdown-jdk-1.4.1_beta/bin:/opt/blackdown-jdk-1.4.1_beta/jre/bin:/usr/qt/3/bin:/usr/kde/3.1/sbin:/usr/kde/3.1/bin:/opt/vmware/bin"
export CC="gcc"
export CXX="g++"

get-bin-path:
/usr/i686-pc-linux-gnu/gcc-bin/3.2

get-lib-path:
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.2

get-stdcxx-incdir:
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/include/g++-v3

Reproducible: Always
Steps to Reproduce:
1. emerge app-editors/gedit


Actual Results:  
/bin/sh ../../libtool --mode=link gcc  -march=athlon-tbird -O3 -pipe -mmmx -m3dnow -fforce-addr -funroll-loops -falign-functions=4 -maccumulate-outgoing-args  -o libspell.la -rpath /usr/lib/gedit-2/plugins -module -avoid-version  spell.lo gedit-spell-checker.lo gedit-spell-checker-dialog.lo gedit-spell-language-dialog.lo gedit-automatic-spell-checker.lo gedit-spell-checker-dialog-marshal.lo preload.lo -lpspell -lpopt 
mkdir .libs
grep: /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/libstdc++.la: No such file or directory
/bin/sed: can't read /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/libstdc++.la: No such file or directory
libtool: link: `/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/libstdc++.la' is not a valid libtool archive
make[3]: *** [libspell.la] Error 1
make[3]: Leaving directory `/var/tmp/portage/gedit-2.2.1/work/gedit-2.2.1/plugins/spell'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/gedit-2.2.1/work/gedit-2.2.1/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gedit-2.2.1/work/gedit-2.2.1'
make: *** [all-recursive-am] Error 2

!!! ERROR: app-editors/gedit-2.2.1 failed.
!!! Function gnome2_src_compile, Line 41, Exitcode 2
!!! compile failure

Expected Results:  
emerged gedit
Comment 1 Chris Russell (RETIRED) gentoo-dev 2003-04-01 08:22:16 UTC
I have discovered this exact problem too, adding cc. then going to sleep. :)
Comment 2 steveb 2003-04-01 15:04:39 UTC
to solve this problem, you have to do:
emerge unmerge aspell
emerge aspell
emerge gedit


thx to this post: http://forums.gentoo.org/viewtopic.php?p=264710#264710

i don't know how to close this bug. can the responsable gentoo bug-hunter close this issue?

cheers

SteveB
Comment 3 Spider (RETIRED) gentoo-dev 2003-04-02 08:12:31 UTC
reassigning to bug-wranglers, may they give this to one who is aspell/Gcc guru'ed
Comment 4 Seemant Kulleen (RETIRED) gentoo-dev 2003-04-02 16:23:52 UTC
there's a script in /usr/portage/sys-devel/gcc/files called fixlibtool or some such.  Just run that, and all will be well.
Comment 5 Chris Russell (RETIRED) gentoo-dev 2003-04-03 08:40:40 UTC
great; /usr/portage/sys-devel/gcc/files/fix_libtool_files.sh does indeed exist. :)

only one problem, it wants /lib/rcscripts/awk/fixlafiles.awk which does not exist, is it in a newer baselayout than 1.8.5.8 (current stable) ?
Comment 6 Martin Schlemmer (RETIRED) gentoo-dev 2003-04-03 13:09:15 UTC
Just cp /usr/portage/sys-devel/gcc/files/awk/fixlafiles.awk to /lib/rcscripts/awk.
Comment 7 Chris Russell (RETIRED) gentoo-dev 2003-04-04 06:53:42 UTC
yes, sorry, should have noticed that - I've heard that sleeping instead of working  in the wee hours of the morning makes for less mistakes in bugzilla. :)
Comment 8 foser (RETIRED) gentoo-dev 2003-06-20 05:04:22 UTC
*** Bug 23146 has been marked as a duplicate of this bug. ***
Comment 9 Paul de Vrieze (RETIRED) gentoo-dev 2003-07-19 05:33:54 UTC
*** Bug 24783 has been marked as a duplicate of this bug. ***
Comment 10 Chris Wilson 2008-05-03 19:46:24 UTC
Sorry, but how is this resolved fixed?

Surely /usr/portage/sys-devel/gcc/files/awk/fixlafiles.awk should be installed in
/lib/rcscripts/awk automatically, otherwise the instructions for upgrading gcc at http://www.gentoo.org/doc/en/gcc-upgrading.xml#upgrade-3.3-to-3.4-emerge-e simply don't work, and you have to google to find this bug report?