Created attachment 272115 [details] crossdev -t s390x-ibm-linux-gnu s390 works. s390x not. Attached relevant stuff. Thanks!
r2/work/build-default-s390x-ibm-linux-gnu-nptl/iconvdata/utf8-utf32-z9.os ../iconv/loop.c: Assembler messages: ../iconv/loop.c:332: Error: Unrecognized opcode: `cu42' ../iconv/loop.c:433: Error: Unrecognized opcode: `cu42' ../iconv/loop.c:332: Error: Unrecognized opcode: `cu42' make[2]: *** [/var/tmp/portage/cross-s390x-ibm-linux-gnu/glibc-2.13-r2/work/build-default-s390x-ibm-linux-gnu-nptl/iconvdata/utf16-utf32-z9.os] Error 1 make[2]: *** Waiting for unfinished jobs.... ../iconv/loop.c: Assembler messages: ../iconv/loop.c:332: Error: Unrecognized opcode: `cu12' ../iconv/loop.c:332: Error: Unrecognized opcode: `cu12' ../iconv/loop.c:433: Error: Unrecognized opcode: `cu12' make[2]: *** [/var/tmp/portage/cross-s390x-ibm-linux-gnu/glibc-2.13-r2/work/build-default-s390x-ibm-linux-gnu-nptl/iconvdata/utf8-utf16-z9.os] Error 1 ../iconv/loop.c: Assembler messages: ../iconv/loop.c:332: Error: Unrecognized opcode: `cu41' ../iconv/loop.c:332: Error: Unrecognized opcode: `cu14' ../iconv/loop.c:433: Error: Unrecognized opcode: `cu41' ../iconv/loop.c:433: Error: Unrecognized opcode: `cu14' ../iconv/loop.c:332: Error: Unrecognized opcode: `cu41' ../iconv/loop.c:332: Error: Unrecognized opcode: `cu14'
Created attachment 272117 [details] cross-s390x-ibm-linux-gnu-glibc.log.gz Also happens with USE="-nls"
glibc is using opcodes that arent supported in latest binutils release (2.21) further, gcc invokes as with -mzarch -march=z900 which causes gas to flag those as invalid for the requested target ...
As you promised, working with latest binutils!
*** Bug 403713 has been marked as a duplicate of this bug. ***
Armin posted a patch to upstream which includes a patch to make it build with older binutils ...
added the patch to the tree. no revbump since this is a build fix. lemme know how it goes ;). http://sources.gentoo.org/sys-libs/glibc/glibc-2.11.3.ebuild?r1=1.11&r2=1.12 http://sources.gentoo.org/sys-libs/glibc/glibc-2.12.2.ebuild?r1=1.14&r2=1.15 http://sources.gentoo.org/sys-libs/glibc/glibc-2.13-r4.ebuild?r1=1.12&r2=1.13 http://sources.gentoo.org/sys-libs/glibc/glibc-2.14.1-r2.ebuild?r1=1.3&r2=1.4 http://sources.gentoo.org/sys-libs/glibc/glibc-2.15.ebuild?r1=1.6&r2=1.7
(In reply to comment #7) > added the patch to the tree. no revbump since this is a build fix. lemme know > how it goes ;). > > http://sources.gentoo.org/sys-libs/glibc/glibc-2.11.3.ebuild?r1=1.11&r2=1.12 > http://sources.gentoo.org/sys-libs/glibc/glibc-2.12.2.ebuild?r1=1.14&r2=1.15 > http://sources.gentoo.org/sys-libs/glibc/glibc-2.13-r4.ebuild?r1=1.12&r2=1.13 > http://sources.gentoo.org/sys-libs/glibc/glibc-2.14.1-r2.ebuild?r1=1.3&r2=1.4 > http://sources.gentoo.org/sys-libs/glibc/glibc-2.15.ebuild?r1=1.6&r2=1.7 It works, thanks
they ended up fixing it in a different way: http://sourceware.org/ml/libc-alpha/2011-04/msg00021.html (this fix is still fine though)