Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Getting rid of gcc-4.7.3...how?
Date: Fri, 19 Dec 2014 11:18:54
Message-Id: 201412191118.43464.michaelkintzios@gmail.com
In Reply to: Re: [gentoo-user] Getting rid of gcc-4.7.3...how? by meino.cramer@gmx.de
1 On Friday 19 Dec 2014 07:22:30 meino.cramer@×××.de wrote:
2 > Bill Kenworthy <billk@×××××××××.au> [14-12-19 08:00]:
3 > > On 19/12/14 13:39, meino.cramer@×××.de wrote:
4 > > > Hi,
5 > > >
6 > > > (this happens on a embedded system)
7 > > >
8 > > > I ran into a problem I think...
9 > > >
10 > > > As adviced I run
11 > > >
12 > > > emerge --depclean -v -p
13 > > >
14 > > > after a greater update to world.
15 > > > (by the way: Updateing the world is generally to a bad idea...;)
16 > > >
17 > > > Beside other things, gcc-4.7.3 was slated for removal. As
18 > > > gcc-4.8.3 was already installed and gcc-config shows that it
19 > > > is active, I started the above command without "-p"....
20 > > > And it screws up the whole thing badly:
21 > > > There were many, many applications (the shell for example...)
22 > > > which were directly linked to
23 > > > /usr/lib/gcc/armv7a-hardfloat-linux-gnueabi/4.7.3/libgcc_s.so.1
24 > > > and/or
25 > > > /usr/lib/gcc/armv7a-hardfloat-linux-gnueabi/4.7.3/libstdc++.so.6
26 > > >
27 > > > After clearing the sdcard and reinstalling the backup I started
28 > > > to emerge all affected ebuilds by hand...only to find, that they
29 > > > were again linked against the old libs.
30 > > >
31 > > > I checked again with gcc-config and found:
32 > > >
33 > > > beagleboneblack:/root>gcc-config -L
34 > > > /usr/lib/gcc/armv7a-hardfloat-linux-gnueabi/4.8.3
35 > > > beagleboneblack:/root>gcc-config -c
36 > > > armv7a-hardfloat-linux-gnueabi-4.8.3
37 > > > beagleboneblack:/root>gcc-config -E
38 > > > export
39 > > > PATH="/usr/armv7a-hardfloat-linux-gnueabi/gcc-bin/4.8.3:/lib/rc/bin:/b
40 > > > in:/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/bin:/usr/sbin:/usr/local/bi
41 > > > n:/usr/local/sbin:/bin/:/opt/bin:/usr/armv7a-hardfloat-linux-gnueabi/gc
42 > > > c-bin/4.8.3:/usr/games/bin:/root/bin" export GCC_SPECS=""
43 > > >
44 > > >
45 > > > What is going on here? Why still the old compiler and its libraries
46 > > > are used? How can I convince Gentoo to finally switch ti gcc-4.8.3?
47 > > >
48 > > > What do you think?
49 > > >
50 > > > Best regards,
51 > > > Meino
52 > >
53 > > Did you run fix_libtool_files.sh? - you have to do it manually after
54 > > switching gcc to a bew version.
55 > >
56 > > BillK
57 >
58 > Hi Bill,
59 >
60 > Thanks for your help and hint! :)
61 >
62 > In the meanwhile I found a trace of a bad install of version 4.8.3:
63 > /etc/env.d/*gcc* was not updated.
64 >
65 > Currently I am reinstalling the whole gcc-4.8.3. - suit and after
66 > that I will call fix_libtool_files.sh.
67 >
68 > Hope it will fix it!
69 > Best regards,
70 > Meino
71
72 This caught me out once too. I run fix_libtool_files.sh after a new gcc is
73 installed, BEFORE I remove the old version. I made a bit of a habit of this,
74 but I don't know if modern ebuilds of gcc actually run the same script post
75 install.
76
77 --
78 Regards,
79 Mick

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] Getting rid of gcc-4.7.3...how? meino.cramer@×××.de
Re: [gentoo-user] Getting rid of gcc-4.7.3...how? Peter Humphrey <peter@××××××××××××.uk>