Created attachment 293431 [details] build.log Relevant part: gcc -O2 -pipe -W -Wall -Wno-unused-parameter -W -Wall -Wno-unused-parameter -W -Wall -Wno-unused-parameter -DS390_TOOLS_RELEASE=1.13.0-build-20111121 -DS390_TOOLS_LIBDIR=/lib/s390-tools -DS390_TOOLS_SYSCONFDIR=/etc -DS390_TOOLS_RELEASE=1.13.0-build-20111121 -DS390_TOOLS_LIBDIR=/lib/s390-tools -DS390_TOOLS_SYSCONFDIR=/etc -DS390_TOOLS_RELEASE=1.13.0-build-20111121 -DS390_TOOLS_LIBDIR=/lib/s390-tools -DS390_TOOLS_SYSCONFDIR=/etc -I../include -D__ASSEMBLY__ -DS390_TOOLS_VERSION_EBCDIC=0xf1,0x4b,0xf1,0xf3,0x4b,0xf0,0x60,0x82,0xa4,0x89,0x93,0x84,0x60,0xf2,0xf0,0xf1,0xf1,0xf1,0xf1,0xf2,0xf1 -c -o eckd2dump.o eckd2dump.S eckd2dump.S: Assembler messages: eckd2dump.S:708: Error: Unrecognized opcode: `larl' eckd2dump.S:708: Error: Unrecognized opcode: `larl' make[2]: *** [eckd2dump.o] Error 1 rm fba0.exec eckd1a.exec eckd1b.exec eckd2.exec fba2.exec eckd0.o fba0.o eckd1a.o eckd0.exec eckd1b.o make[2]: Leaving directory `/var/tmp/portage/sys-apps/s390-tools-1.13.0/work/s390-tools-1.13.0/zipl/boot' make[1]: *** [all] Error 2 make[1]: Leaving directory `/var/tmp/portage/sys-apps/s390-tools-1.13.0/work/s390-tools-1.13.0/zipl' make: *** [subdirs_all_zipl] Error 2
pretty sure it's the same issue as Bug 365999 latest toolchain and current s390-tools stable fails to build in same way, so it's likely not s390-tools ...
Yeah, downgrading to binutils-2.20 works.
Also fails with binutils-2.22, so, yeah, not s390-tools...
I've looked at what debian does: * Build zipl boot block with -m64 to support the new assembler instructions Adding CFLAGS += -m64 and LDFLAGS= -O2 -m64 in the Makefile in zipl/boot works. Maybe <binutils-2.21 did something wrong?
should be all set now in the tree; thanks for the report! Commit message: Add fix from upstream for building on s390 with newer binutils http://sources.gentoo.org/sys-apps/s390-tools/files/s390-tools-1.13.0-larl.patch?rev=1.1 http://sources.gentoo.org/sys-apps/s390-tools/s390-tools-1.13.0.ebuild?r1=1.2&r2=1.3 http://sources.gentoo.org/sys-apps/s390-tools/s390-tools-1.15.0.ebuild?r1=1.1&r2=1.2