Gentoo Archives: gentoo-user

From: "Mickaël Bucas" <mbucas@×××××.com>
To: Gentoo <gentoo-user@l.g.o>
Subject: Re: [gentoo-user] unexpected problems when switching c compilers
Date: Tue, 25 Oct 2016 20:45:38
Message-Id: CAG1=SYSn_k0ja=FX0tGvshc5MCFZ=d=tWpg4DxzcwPo=Pkd1rw@mail.gmail.com
In Reply to: Re: [gentoo-user] unexpected problems when switching c compilers by Miroslav Rovis
1 2016-10-25 20:02 GMT+02:00 Miroslav Rovis <miro.rovis@××××××××××××××.hr>:
2
3 > On 161025-12:02-0400, John Covici wrote:
4 > > Hi. I finally decided to switch the c compiler from 4.9.3 to 5.3.0
5 > > and ran into some strange problems. Although the kernel compiled
6 > > successfully, several packages in my last update of world got
7 > > undefined references, one of which was mktoolnix and also mpv. Now I
8 > > did solve them by re-emerging the packages containing the references
9 > > and that fix things, although I had to do it in stages, getting past
10 > > one and finding another one.
11 > >
12 > > So, my question is, is there away to fix this throuought /usr/lib
13 > > without having to re-emerge world or something, or do I just wait and
14 > > take them one at a time during future updates?
15 > >
16 > > Thanks in advance for any suggestions.
17 >
18 > I've been using the 5.x since long months, since I'm on ~amd64. I
19 > remember vaguely there was an item in the eselect news about it, and
20 > links there and things. It should still be in your news list.
21 >
22
23 There was probably an Application Binary Interface change between the 2
24 compilers, for example [1]
25 The news from portage [2] explain how to use revdep-rebuild
26
27 All I know about these problems, I've learn from Diego Petteno's blog [3]
28 and the articles about Application Binary Interface
29 I've myself encountered this kind of problem even between minor versions of
30 GCC when the C++11 ABI was not stable.
31
32 I think you have some happy compiling ahead !
33
34 Best regards
35 Mickaël Bucas
36
37 [1] https://gcc.gnu.org/onlinedocs/libstdc%2B%2B/manual/using_dual_abi.html
38 [2]
39 https://www.gentoo.org/support/news-items/2015-10-22-gcc-5-new-c++11-abi.html
40 [3] https://blog.flameeyes.eu/2010/09/your-worst-enemy-undefined-symbols/

Replies

Subject Author
Re: [gentoo-user] unexpected problems when switching c compilers John Covici <covici@××××××××××.com>