public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] unexpected problems when switching c compilers
@ 2016-10-25 16:02 John Covici
  2016-10-25 18:02 ` Miroslav Rovis
  0 siblings, 1 reply; 4+ messages in thread
From: John Covici @ 2016-10-25 16:02 UTC (permalink / raw
  To: gentoo-user

Hi.  I finally decided to switch the c compiler from 4.9.3 to 5.3.0
and ran into some strange problems.  Although the kernel compiled
successfully, several packages in my last update of world got
undefined references, one of which was mktoolnix and also mpv.  Now I
did solve them by re-emerging the packages containing the references
and that fix things, although I had to do it in stages, getting past
one and finding another one.

So, my question is, is there away to fix this throuought /usr/lib
without having to re-emerge world or something, or do I just wait and
take them one at a time during future updates?

Thanks in advance for any suggestions.

-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

         John Covici
         covici@ccs.covici.com


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] unexpected problems when switching c compilers
  2016-10-25 16:02 [gentoo-user] unexpected problems when switching c compilers John Covici
@ 2016-10-25 18:02 ` Miroslav Rovis
  2016-10-25 20:45   ` Mickaël Bucas
  0 siblings, 1 reply; 4+ messages in thread
From: Miroslav Rovis @ 2016-10-25 18:02 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1020 bytes --]

On 161025-12:02-0400, John Covici wrote:
> Hi.  I finally decided to switch the c compiler from 4.9.3 to 5.3.0
> and ran into some strange problems.  Although the kernel compiled
> successfully, several packages in my last update of world got
> undefined references, one of which was mktoolnix and also mpv.  Now I
> did solve them by re-emerging the packages containing the references
> and that fix things, although I had to do it in stages, getting past
> one and finding another one.
> 
> So, my question is, is there away to fix this throuought /usr/lib
> without having to re-emerge world or something, or do I just wait and
> take them one at a time during future updates?
> 
> Thanks in advance for any suggestions.

I've been using the 5.x since long months, since I'm on ~amd64. I
remember vaguely there was an item in the eselect news about it, and
links there and things. It should still be in your news list.

Regards!
-- 
Miroslav Rovis
Zagreb, Croatia
http://www.CroatiaFidelis.hr

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 801 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] unexpected problems when switching c compilers
  2016-10-25 18:02 ` Miroslav Rovis
@ 2016-10-25 20:45   ` Mickaël Bucas
  2016-10-25 22:21     ` John Covici
  0 siblings, 1 reply; 4+ messages in thread
From: Mickaël Bucas @ 2016-10-25 20:45 UTC (permalink / raw
  To: Gentoo

[-- Attachment #1: Type: text/plain, Size: 1783 bytes --]

2016-10-25 20:02 GMT+02:00 Miroslav Rovis <miro.rovis@croatiafidelis.hr>:

> On 161025-12:02-0400, John Covici wrote:
> > Hi.  I finally decided to switch the c compiler from 4.9.3 to 5.3.0
> > and ran into some strange problems.  Although the kernel compiled
> > successfully, several packages in my last update of world got
> > undefined references, one of which was mktoolnix and also mpv.  Now I
> > did solve them by re-emerging the packages containing the references
> > and that fix things, although I had to do it in stages, getting past
> > one and finding another one.
> >
> > So, my question is, is there away to fix this throuought /usr/lib
> > without having to re-emerge world or something, or do I just wait and
> > take them one at a time during future updates?
> >
> > Thanks in advance for any suggestions.
>
> I've been using the 5.x since long months, since I'm on ~amd64. I
> remember vaguely there was an item in the eselect news about it, and
> links there and things. It should still be in your news list.
>

There was probably an Application Binary Interface change between the 2
compilers, for example [1]
The news from portage [2] explain how to use revdep-rebuild

All I know about these problems, I've learn from Diego Petteno's blog [3]
and the articles about Application Binary Interface
I've myself encountered this kind of problem even between minor versions of
GCC when the C++11 ABI was not stable.

I think you have some happy compiling ahead !

Best regards
Mickaël Bucas

[1] https://gcc.gnu.org/onlinedocs/libstdc%2B%2B/manual/using_dual_abi.html
[2]
https://www.gentoo.org/support/news-items/2015-10-22-gcc-5-new-c++11-abi.html
[3] https://blog.flameeyes.eu/2010/09/your-worst-enemy-undefined-symbols/

[-- Attachment #2: Type: text/html, Size: 2704 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] unexpected problems when switching c compilers
  2016-10-25 20:45   ` Mickaël Bucas
@ 2016-10-25 22:21     ` John Covici
  0 siblings, 0 replies; 4+ messages in thread
From: John Covici @ 2016-10-25 22:21 UTC (permalink / raw
  To: gentoo-user

On Tue, 25 Oct 2016 16:45:22 -0400,
Mickaël Bucas wrote:
> 
> [1  <text/plain; UTF-8 (quoted-printable)>]
> [2  <text/html; UTF-8 (quoted-printable)>]
> 2016-10-25 20:02 GMT+02:00 Miroslav Rovis <miro.rovis@croatiafidelis.hr>:
> 
>  On 161025-12:02-0400, John Covici wrote:
>  > Hi.  I finally decided to switch the c compiler from 4.9.3 to 5.3.0
>  > and ran into some strange problems.  Although the kernel compiled
>  > successfully, several packages in my last update of world got
>  > undefined references, one of which was mktoolnix and also mpv.  Now I
>  > did solve them by re-emerging the packages containing the references
>  > and that fix things, although I had to do it in stages, getting past
>  > one and finding another one.
>  >
>  > So, my question is, is there away to fix this throuought /usr/lib
>  > without having to re-emerge world or something, or do I just wait and
>  > take them one at a time during future updates?
>  >
>  > Thanks in advance for any suggestions.
> 
>  I've been using the 5.x since long months, since I'm on ~amd64. I
>  remember vaguely there was an item in the eselect news about it, and
>  links there and things. It should still be in your news list.
> 
> There was probably an Application Binary Interface change between the 2 compilers, for example [1]
> The news from portage [2] explain how to use revdep-rebuild
> 
> All I know about these problems, I've learn from Diego Petteno's blog [3] and the articles about Application Binary Interface
> I've myself encountered this kind of problem even between minor versions of GCC when the C++11 ABI was not stable.
> 
> I think you have some happy compiling ahead !
> 
> Best regards
> Mickaël Bucas

Thanks, I will check the news item and see what happens.

-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

         John Covici
         covici@ccs.covici.com


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-10-25 22:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-25 16:02 [gentoo-user] unexpected problems when switching c compilers John Covici
2016-10-25 18:02 ` Miroslav Rovis
2016-10-25 20:45   ` Mickaël Bucas
2016-10-25 22:21     ` John Covici

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox