Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 798792 - sys-devel/gcc-8.5.0: [Makefile:501: findcomp.lo] Error 1
Summary: sys-devel/gcc-8.5.0: [Makefile:501: findcomp.lo] Error 1
Status: RESOLVED DUPLICATE of bug 761220
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:
Depends on:
Blocks:
 
Reported: 2021-06-26 14:53 UTC by Samuel Bernardo
Modified: 2022-06-18 04:51 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build log (build.log.gz,797.21 KB, application/gzip)
2021-06-26 14:53 UTC, Samuel Bernardo
Details
emerge info (emerge.info,9.00 KB, text/plain)
2021-06-26 14:54 UTC, Samuel Bernardo
Details
emerge -pqv (emerge.pqv,485 bytes, text/plain)
2021-06-26 14:54 UTC, Samuel Bernardo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Samuel Bernardo 2021-06-26 14:53:55 UTC
Created attachment 719424 [details]
build log

make[2]: Entering directory '/var/tmp/portage/sys-devel/gcc-8.5.0/work/build/libcc1'
/bin/bash ./libtool --tag=CXX   --mode=compile x86_64-pc-linux-gnu-g++ -std=gnu++98 -DHAVE_CONFIG_H -I. -I/var/tmp/portage/sys-devel/gcc-8.5.0/work/gcc-8.5.0/libcc1  -I /var/tmp/portage/sys-devel/gcc-8.5.0/work/gcc-8.5.0/libcc1/../include -I /var/tmp/portage/sys-devel/gcc-8.5.0/work/gcc-8.5.0/libcc1/../libgcc -I ../gcc -I/var/tmp/portage/sys-devel/gcc-8.5.0/work/gcc-8.5.0/libcc1/../gcc    -W -Wall  -fvisibility=hidden -pipe -march=native -O2 -MT findcomp.lo -MD -MP -MF .deps/findcomp.Tpo -c -o findcomp.lo /var/tmp/portage/sys-devel/gcc-8.5.0/work/gcc-8.5.0/libcc1/findcomp.cc
libtool: compile:  x86_64-pc-linux-gnu-g++ -std=gnu++98 -DHAVE_CONFIG_H -I. -I/var/tmp/portage/sys-devel/gcc-8.5.0/work/gcc-8.5.0/libcc1 -I /var/tmp/portage/sys-devel/gcc-8.5.0/work/gcc-8.5.0/libcc1/../include -I /var/tmp/portage/sys-devel/gcc-8.5.0/work/gcc-8.5.0/libcc1/../libgcc -I ../gcc -I/var/tmp/portage/sys-devel/gcc-8.5.0/work/gcc-8.5.0/libcc1/../gcc -W -Wall -fvisibility=hidden -pipe -march=native -O2 -MT findcomp.lo -MD -MP -MF .deps/findcomp.Tpo -c /var/tmp/portage/sys-devel/gcc-8.5.0/work/gcc-8.5.0/libcc1/findcomp.cc  -fPIC -DPIC -o .libs/findcomp.o
x86_64-pc-linux-gnu-g++: /var/tmp/portage/sys-devel/gcc-8.5.0/work/build/x86_64-pc-linux-gnu/libstdc++-v3/src/.libs/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by x86_64-pc-linux-gnu-g++)
make[2]: *** [Makefile:501: findcomp.lo] Error 1
make[2]: Leaving directory '/var/tmp/portage/sys-devel/gcc-8.5.0/work/build/libcc1'
make[1]: *** [Makefile:14162: install-libcc1] Error 2
make[1]: Leaving directory '/var/tmp/portage/sys-devel/gcc-8.5.0/work/build'
make: *** [Makefile:2324: install] Error 2
 * ERROR: sys-devel/gcc-8.5.0::gentoo failed (install phase):
 *   emake failed
Comment 1 Samuel Bernardo 2021-06-26 14:54:13 UTC
Created attachment 719427 [details]
emerge info
Comment 2 Samuel Bernardo 2021-06-26 14:54:24 UTC
Created attachment 719430 [details]
emerge -pqv
Comment 3 Sergei Trofimovich (RETIRED) gentoo-dev 2021-06-26 22:34:10 UTC
> ccache version 4.3 [enabled]
...
> libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by x86_64-pc-linux-gnu-g++)

This one is bug #761220. The workarounds are:
- using FEATURES=-ccache for gcc
- using USE=static-c++ for ccache

Any of two should work.

*** This bug has been marked as a duplicate of bug 761220 ***
Comment 4 Edgar 2022-06-18 04:16:16 UTC
I experience the same problem when building gcc 8.5 on Fedora 34 with gcc 11.3 but no ccache, could you advise me how to solve the issue if I use the following procedure?
tar xvf gcc-8.5.0.tar.xz 
cd gcc-8.5.0/
./contrib/download_prerequisites
cd ../
mkdir build-gcc85
cd build-gcc85/
../gcc-8.5.0/configure --prefix=/usr/local/gcc85 --program-suffix=85 --enable-languages=c,c++,fortran --disable-multilib --disable-libstdcxx-pch --with-system-zlib
make