/usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/crtbegin.o: relocation R_X86_64_32 against hidden symbol `__TMC_END__' can not be used when making a shared object
/usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
make[2]: *** [../Rules:194: /var/tmp/portage/sys-libs/glibc-2.27-r6/work/build-amd64-x86_64-pc-linux-gnu-nptl/iconv/iconv_prog] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [Makefile:216: iconv/others] Error 2
make: *** [Makefile:9: all] Error 2
* ERROR: sys-libs/glibc-2.27-r6::gentoo failed (compile phase):
crtbegin.o относится к пакету
$ qfile /usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/crtbegin.o
sys-devel/base-gcc (/usr/lib/gcc/x86_64-pc-linux-gnu/6.4.0/crtbegin.o)
я ему прописывал
mkdir -p /etc/portage/env/sys-devel
echo 'CFLAGS=«$CFLAGS -fPIC»' >/etc/portage/env/sys-devel/base-gcc-6.4.0-r1
и пересобирал
emerge sys-devel/base-gcc