Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 841955

Summary: sys-devel/gcc-10.3.1_p20211126: /usr/powerpc64le-unknown-linux-gnu/bin/ld.gold: /var/tmp/portage/sys-devel/gcc-10.3.1_p20211126/work/build/powerpc64le-unknown-linux-gnu/libstdc++-v3/src/.libs/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by
Product: Gentoo Linux Reporter: Luke-Jr <luke-jr+gentoobugs>
Component: Current packagesAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: UNCONFIRMED ---    
Severity: normal CC: jstein
Priority: Normal    
Version: unspecified   
Hardware: PPC64   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=644772
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105688
https://bugs.gentoo.org/show_bug.cgi?id=843119
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build log
emerge --info

Description Luke-Jr 2022-05-01 06:55:38 UTC
Created attachment 775724 [details]
build log

/usr/powerpc64le-unknown-linux-gnu/bin/ld.gold: /var/tmp/portage/sys-devel/gcc-10.3.1_p20211126/work/build/powerpc64le-unknown-linux-gnu/libstdc++-v3/src/.libs/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by /usr/powerpc64le-unknown-linux-gnu/bin/ld.gold)
collect2: error: ld returned 1 exit status
make[4]: *** [Makefile:1381: libgo.la] Error 1
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-05-01 07:05:47 UTC
emerge --info?
Comment 2 Luke-Jr 2022-05-01 16:17:50 UTC
Created attachment 775799 [details]
emerge --info
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-05-02 02:35:36 UTC
It _feels_ like it's:
1. Build binutils[gold] (or any binutils, or any package) using GCC 11 (or N)
2. Select it
3. At some point, change back to GCC N-1
4. Anything trying to use libstdc++ will fail because symbols are missing?

It's a bit more confusing because it's just built one though and it's dying at runtime rather than build time.
Comment 4 Luke-Jr 2022-05-02 02:45:52 UTC
(In reply to Sam James from comment #3)
> It _feels_ like it's:
> 1. Build binutils[gold] (or any binutils, or any package) using GCC 11 (or N)
> 2. Select it
> 3. At some point, change back to GCC N-1
> 4. Anything trying to use libstdc++ will fail because symbols are missing?
> 
> It's a bit more confusing because it's just built one though and it's dying
> at runtime rather than build time.

I didn't change back, though. GCC 11 is still my primary GCC.
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-05-02 02:55:32 UTC
(In reply to Luke-Jr from comment #4)
> I didn't change back, though. GCC 11 is still my primary GCC.

Oh right. And not using ccache or distcc? (I don't see it in the log, but just checking).

Does your ld.gold work otherwise?
Comment 6 Luke-Jr 2022-05-02 03:02:14 UTC
(In reply to Sam James from comment #5)
> (In reply to Luke-Jr from comment #4)
> > I didn't change back, though. GCC 11 is still my primary GCC.
> 
> Oh right. And not using ccache or distcc? (I don't see it in the log, but
> just checking).
> 
> Does your ld.gold work otherwise?

ccache has been disabled since 2017, and no distcc

$ ld.gold
ld.gold: fatal error: no input files
Comment 7 Luke-Jr 2022-08-22 02:54:10 UTC
Also, I am not sure why ld.gold would be being used.