Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 34168 - gcc-3.2.3-r2: File '/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/libg2c.la' has incorrect path in it -- also affects 3.3.3
Summary: gcc-3.2.3-r2: File '/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/libg2c.la' has i...
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-23 02:20 UTC by Chad Schmutzer
Modified: 2004-08-26 16:05 UTC (History)
3 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 Chad Schmutzer 2003-11-23 02:20:11 UTC
With our installation of gcc-3.2.3-r2, we've noticed that the file
'/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/libg2c.la' has an incorrect path in
it, as follows:

# Directory that this library needs to be installed in:
libdir='/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/gcc-lib/i686-pc-linux-gnu/'

It should just be:
libdir='/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3'

This results in failed compilations when using this portion of libtool.
I see the mention of .la file generation in the ebuild, but that's about all
I've investigated. Hoping the experts can snag this one.

thanks,
chad

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Donnie Berkholz (RETIRED) gentoo-dev 2004-02-28 18:03:15 UTC
donnie@supernova 3.3.3 $ qpkg -f /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/libg2c.la -v
sys-devel/gcc-3.3.3 *
donnie@supernova 3.3.3 $ grep libdir libg2c.la libdir='/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/gcc-lib/i686-pc-linux-gnu/'
donnie@supernova 3.3.3 $ pwd
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3

Problem's still present in new gcc.
Comment 2 Martin Holzer (RETIRED) gentoo-dev 2004-03-19 02:53:15 UTC
any news on this ?
Comment 3 Thomas Witzel 2004-04-30 08:21:48 UTC
I guess this is connected to gcc-3.3.3 and gcc-3.4.0 not building the library either (nor g77). This is problematic for me. gcc-3.2.3-r4 works for me.
Comment 4 Chad Schmutzer 2004-04-30 23:52:10 UTC
Hello,

I reported this bug originally back in November of 2003. It seems to still exist in recent versions of gcc as I've seen and as reported by others.

It is a simple fix after the installation so its not like it is stopping me from being able to do work, but it would be nice to have it fixed at some point.

So I guess my question is, is this the right place to report the bug, and if so, should I check things out in more detail and submit a patch?

thanks for your help,
chad
Comment 5 solar (RETIRED) gentoo-dev 2004-05-01 00:15:29 UTC
Chad
Would you mind testing this with >=sys-devel/gcc-3.3.3-r3 and telling us if it's still a problem?
Note there is a change in the IUSE flags so check your and make sure you get the functionality your looking for.
Current USE flags for gcc are
"X bootstrap build f77 gcj hardened java multilib nls objc static uclibc debug"

I just merged 3.3.3-r4 and my layout looks like so.
solar@simple gcc $ ls /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/
cc1       crtbegin.o   crtend.o   install-tools  libgcc_s.so    libstdc++.a   libstdc++.so.5      libsupc++.a
cc1plus   crtbeginS.o  crtendS.o  libgcc.a       libgcc_s.so.1  libstdc++.la  libstdc++.so.5.0.5  libsupc++.la
collect2  crtbeginT.o  include    libgcc_eh.a    libiberty.a    libstdc++.so  libstdc++_pic.a     specs
Comment 6 Thomas Witzel 2004-05-03 09:11:07 UTC
I tested 3.3.3-r4 as well as 3.4.0 and its missing in both. Even in your layout libg2c.a is missing.

                                                             Thomas
Comment 7 Thomas Witzel 2004-05-10 08:27:01 UTC
To come back to this, has at least anyone a bugfix I can apply by myself ? The problem is that I can use gcc-3.2.3-r4, but then every other update wants to overwrite this with the gcc-3.3.3 releases, which then takes my libg2c away.

                                                              Thank you,
                                                                   Thomas
Comment 8 Peter Bienstman (RETIRED) gentoo-dev 2004-08-10 08:20:44 UTC
I used to have a similar problem, but adding 'f77' to my use flags solved it. (gcc-3.3.3-r6).

Thomas, are you sure you have f77 in your use flags?
Comment 9 solar (RETIRED) gentoo-dev 2004-08-26 16:05:08 UTC
comment #8 seems to be the fix your looking for.