The lgcc_s library is missing when attempting to create a relocatable .o file.
Created attachment 424374 [details] emerge --info
Created attachment 424376 [details] error output
please attach: - the full build log of the package that is failing - the full build log for the gcc version you're using - the output of `qlist sys-devel/gcc` - the output of `qcheck sys-devel/gcc`
The package is my own code that I'm developing: g++ -ggdb3 -I ../include -c multiply.cpp -o multiply.o g++ -ggdb3 -I ../include -c oscillator.cpp -o oscillator.o g++ -ggdb3 -I ../include -c noise.cpp -o noise.o g++ -ggdb3 -I ../include -c volume.cpp -o volume.o g++ -ggdb3 -I ../include -c relay.cpp -o relay.o g++ -ggdb3 -I ../include -c component.cpp -o component.o g++ -ggdb3 -I ../include -c generator.cpp -o generator.o g++ -ggdb3 -I ../include -c bias.cpp -o bias.o g++ -ggdb3 -I ../include -c add.cpp -o add.o g++ -ggdb3 multiply.o oscillator.o noise.o volume.o relay.o component.o generator.o bias.o add.o -r -o built-in.o /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lgcc_s /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lgcc_s collect2: error: ld returned 1 exit status Makefile:14: recipe for target 'built-in.o' failed make: *** [built-in.o] Error 1
Created attachment 424872 [details] output of qlist
output of qcheck: Checking sys-devel/gcc-4.9.3 ... MD5-DIGEST: /etc/env.d/gcc/x86_64-pc-linux-gnu-4.9.3 * 1758 out of 1759 files are good Checking sys-devel/gcc-config-1.7.3 ... * 6 out of 6 files are good