Created attachment 474740 [details] emerge --info Installing dev-libs/libxml2-2.9.4-r1 with python3.6 as one of the PYTHON_TARGETS fails with this message: /usr/lib/gcc/x86_64-pc-linux-gnu/6.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/local/lib/libpython3.6m.a(frozen.o): warning: relocation in readonly section `.rodata' /usr/lib/gcc/x86_64-pc-linux-gnu/6.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: Nonrepresentable section on output collect2: error: ld returned 1 exit status make[2]: *** [Makefile:596: libxml2mod.la] Error 1 make[2]: Leaving directory '/var/tmp/portage/dev-libs/libxml2-2.9.4-r1/work/libxml2-2.9.4-abi_x86_64.amd64-python3_6/python' make[1]: *** [Makefile:684: all-recursive] Error 1 make[1]: Leaving directory '/var/tmp/portage/dev-libs/libxml2-2.9.4-r1/work/libxml2-2.9.4-abi_x86_64.amd64-python3_6/python' make: *** [Makefile:524: all] Error 2
Created attachment 474742 [details] build log
CCing person who added 3.6 to PYTHON_COMPAT, seemingly without talking to maintainer, for their opinion on what could be wrong here.
(In reply to Mart Raudsepp from comment #2) > CCing person who added 3.6 to PYTHON_COMPAT, seemingly without talking to > maintainer, for their opinion on what could be wrong here. This seems to be an issue with gcc-6. Running it with gcc-5.4.0 * python3_6: running libxml2_py_emake top_builddir=/var/tmp/portage/dev-libs/libxml2-2.9.4-r1/work/libxml2-2.9.4-abi_x86_64.amd64 all [zip] libtool: link: x86_64-pc-linux-gnu-gcc -shared -fPIC -DPIC .libs/libxml.o .libs/libxml2-py.o .libs/types.o -Wl,-rpath -Wl,/var/tmp/portage/dev-libs/libxml2-2.9.4-r1/work/libxml2-2.9.4-abi_x86_64.amd64/.libs /var/tmp/portage/dev-libs/libxml2-2.9.4-r1/work/libxml2-2.9.4-abi_x86_64.amd64/.libs/libxml2.so -lz -L/usr/lib64 -lpython3.6m -lpthread -ldl -lutil -lm -Wl,--as-needed -march=native -O2 -Wl,-export-dynamic -Wl,-O1 -Wl,-soname -Wl,libxml2mod.so -o .libs/libxml2mod.so libtool: link: ( cd ".libs" && rm -f "libxml2mod.la" && ln -s "../libxml2mod.la" "libxml2mod.la" ) >>> Source compiled.
Created attachment 488262 [details] works_for_me_on_gcc_6.4.log This problem does not show up for me with sys-devel/gcc-6.4.0
Does not show up for me either with gcc-6.4 as well. @dashmz, could you please test with gcc-6.4 ?