Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 620252

Summary: dev-libs/libxml2-2.9.4-r1 final link failed: Nonrepresentable section on output (python-3.6)
Product: Gentoo Linux Reporter: dashmz
Component: Current packagesAssignee: Sam James <sam>
Status: RESOLVED OBSOLETE    
Severity: normal CC: base-system, bug, jstein, mrueg, nickAristocrates
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info
build log
works_for_me_on_gcc_6.4.log

Description dashmz 2017-05-31 11:39:41 UTC
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
Comment 1 dashmz 2017-05-31 11:40:07 UTC
Created attachment 474742 [details]
build log
Comment 2 Mart Raudsepp gentoo-dev 2017-08-06 22:04:26 UTC
CCing person who added 3.6 to PYTHON_COMPAT, seemingly without talking to maintainer, for their opinion on what could be wrong here.
Comment 3 Manuel RĂ¼ger (RETIRED) gentoo-dev 2017-08-07 11:39:19 UTC
(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.
Comment 4 Nick 2017-08-07 22:34:38 UTC
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
Comment 5 Gilles Dartiguelongue (RETIRED) gentoo-dev 2017-09-12 06:56:00 UTC
Does not show up for me either with gcc-6.4 as well.
@dashmz, could you please test with gcc-6.4 ?