Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 648410 - sys-devel/gcc fails to build older gcc versions with sys-devel/llvmgold installed
Summary: sys-devel/gcc fails to build older gcc versions with sys-devel/llvmgold insta...
Status: RESOLVED DUPLICATE of bug 644772
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
: 669044 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-02-21 17:31 UTC by Mike Gilbert
Modified: 2019-08-11 17:04 UTC (History)
10 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 Mike Gilbert gentoo-dev 2018-02-21 17:31:03 UTC
I attempted to build sys-devel/gcc-5.4.0-r4 using sys-devel/gcc-6.4.0-r1, and got the following error:

libtool: link: /usr/x86_64-pc-linux-gnu/bin/ar rc .libs/libstdc++.a compatibility.o compatibility-debug_list.o ...

/usr/x86_64-pc-linux-gnu/bin/ar: /x/portage/sys-devel/gcc-5.4.0-r4/work/build/x86_64-pc-linux-gnu/libstdc++-v3/src/.libs/libstdc++.so.6: version `GLIBCXX_3.4.22' not found (required by /usr/lib/llvm/5/lib64/../lib64/libLLVMSupport.so.5)

I think something like this might be happening:

1. ar loads the libLLVMSupport.so.5 plugin.

2. libLLVMSupport.so.5 loads libstdc++.so.6 from the build directory for some unknown reason.

4. libstdc++.so.6 is missing symbols that libLLVMSupport.so.5 requires.

To reproduce the issue:

1. Select gcc-6.4.0 as the system compiler.
2. Install sys-devel/llvmgold.
3. Attempt to build gcc-5.4.0.
Comment 1 Guilherme Amadio gentoo-dev 2018-08-23 14:29:01 UTC
I also hit this bug with gcc-7.3.0 as system compiler and attempting to build gcc-6.4.0.
Comment 2 Sergey 'L29Ah' Alirzaev 2018-10-20 13:07:34 UTC
*** Bug 669044 has been marked as a duplicate of this bug. ***
Comment 3 Sergei Trofimovich (RETIRED) gentoo-dev 2019-08-11 16:41:50 UTC
Yeah, we'll need a way to ignore foreign injected bfd-plugins to make gcc survive the bootstrap.
Comment 4 Sergei Trofimovich (RETIRED) gentoo-dev 2019-08-11 17:04:03 UTC

*** This bug has been marked as a duplicate of bug 644772 ***