Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 620252 - dev-libs/libxml2-2.9.4-r1 final link failed: Nonrepresentable section on output (python-3.6)
Summary: dev-libs/libxml2-2.9.4-r1 final link failed: Nonrepresentable section on outp...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sam James
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-31 11:39 UTC by dashmz
Modified: 2022-01-20 15:08 UTC (History)
5 users (show)

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


Attachments
emerge --info (info.txt,5.58 KB, text/plain)
2017-05-31 11:39 UTC, dashmz
Details
build log (build.log,164.84 KB, text/x-log)
2017-05-31 11:40 UTC, dashmz
Details
works_for_me_on_gcc_6.4.log (buildgcc6.4.log,372.84 KB, text/x-log)
2017-08-07 22:34 UTC, Nick
Details

Note You need to log in before you can comment on or make changes to this bug.
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 ?