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

Bug 839660

Summary: sys-apps/s390-tools-2.12.0 fails to build: ld: unrecognised emulation mode: elf64_s390
Product: Gentoo Linux Reporter: Andreas K. Hüttel <dilfridge>
Component: Current packagesAssignee: s390 team <s390>
Status: RESOLVED FIXED    
Severity: normal CC: releng
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Andreas K. Hüttel archtester gentoo-dev 2022-04-20 10:00:13 UTC
Found during s390 stage3 build


s390-ibm-linux-gnu-gcc -fno-pie -Os -g -I ../..//zipl/include -I ../..//include -DS390_TOOLS_RELEASE=2.12.0-build-20220420 -fno-builtin -ffreestanding -fno-asynchronous-unwind-tables -fno-delete-null-p
ointer-checks -fexec-charset=IBM1047 -m64 -mpacked-stack -mstack-size=4096 -mstack-guard=128 -msoft-float -W -Wall -Wformat-security -c -o eckd2dump_mv.o eckd2dump_mv.c
s390-ibm-linux-gnu-gcc -fno-pie -Os -g -I ../..//zipl/include -I ../..//include -DS390_TOOLS_RELEASE=2.12.0-build-20220420 -fno-builtin -ffreestanding -fno-asynchronous-unwind-tables -fno-delete-null-p
ointer-checks -fexec-charset=IBM1047 -m64 -mpacked-stack -mstack-size=4096 -mstack-guard=128 -msoft-float -W -Wall -Wformat-security -c -o stage3.o stage3.c
s390-ibm-linux-gnu-gcc -I ../include -D_GNU_SOURCE -DS390_TOOLS_RELEASE=2.12.0-build-20220420 -DS390_TOOLS_LIBDIR=/lib/s390-tools -DS390_TOOLS_DATADIR=/usr/share/s390-tools -DS390_TOOLS_SYSCONFDIR=/etc
 -DS390_TOOLS_BINDIR=/sbin -O2 -pipe -DHAVE_FUSE=0 -D_FILE_OFFSET_BITS=64 -c dfi_vmcoreinfo.c -o dfi_vmcoreinfo.o
s390-ibm-linux-gnu-gcc -fno-pie -Os -g -I ../..//zipl/include -I ../..//include -DS390_TOOLS_RELEASE=2.12.0-build-20220420 -fno-builtin -ffreestanding -fno-asynchronous-unwind-tables -fno-delete-null-p
ointer-checks -fexec-charset=IBM1047 -m64 -mpacked-stack -mstack-size=4096 -mstack-guard=128 -msoft-float -W -Wall -Wformat-security -c -o kdump3.o kdump3.c
s390-ibm-linux-gnu-gcc -fno-pie -Os -g -I ../..//zipl/include -I ../..//include -DS390_TOOLS_RELEASE=2.12.0-build-20220420 -fno-builtin -ffreestanding -fno-asynchronous-unwind-tables -fno-delete-null-p
ointer-checks -fexec-charset=IBM1047 -m64 -mpacked-stack -mstack-size=4096 -mstack-guard=128 -msoft-float -W -Wall -Wformat-security -c -o sclp_stage3.o sclp_stage3.c
s390-ibm-linux-gnu-gcc -I ../include -D_GNU_SOURCE -DS390_TOOLS_RELEASE=2.12.0-build-20220420 -DS390_TOOLS_LIBDIR=/lib/s390-tools -DS390_TOOLS_DATADIR=/usr/share/s390-tools -DS390_TOOLS_SYSCONFDIR=/etc
 -DS390_TOOLS_BINDIR=/sbin -O2 -pipe -DHAVE_FUSE=0 -D_FILE_OFFSET_BITS=64 -c dfi_lkcd.c -o dfi_lkcd.o
s390-ibm-linux-gnu-gcc -I ../include -D_GNU_SOURCE -DS390_TOOLS_RELEASE=2.12.0-build-20220420 -DS390_TOOLS_LIBDIR=/lib/s390-tools -DS390_TOOLS_DATADIR=/usr/share/s390-tools -DS390_TOOLS_SYSCONFDIR=/etc
 -DS390_TOOLS_BINDIR=/sbin -O2 -pipe -DHAVE_FUSE=0 -D_FILE_OFFSET_BITS=64 -c dfi_elf.c -o dfi_elf.o
STAGE=$( echo fba0.exec | awk ' match($0,/[0-9]+b*/){ print substr($0,RSTART,RLENGTH) }' ); \
case $STAGE in \
        0) SFLAGS="-no-pie -nostdlib -Wl,-Ttext,0";; \
        1) SFLAGS="-no-pie -nostdlib -Wl,-Ttext,0x18";; \
        1b) SFLAGS="-no-pie -nostdlib -Wl,-Ttext,0xE000";; \
        2) SFLAGS="-no-pie -nostdlib -Wl,-T,stage2.lds";; \
        3) SFLAGS="-no-pie -nostdlib -Wl,-T,stage3.lds";; \
esac; \
s390-ibm-linux-gnu-gcc $SFLAGS -m64 fba0.o -o fba0.exec
s390-ibm-linux-gnu-gcc -I ../include -D_GNU_SOURCE -DS390_TOOLS_RELEASE=2.12.0-build-20220420 -DS390_TOOLS_LIBDIR=/lib/s390-tools -DS390_TOOLS_DATADIR=/usr/share/s390-tools -DS390_TOOLS_SYSCONFDIR=/etc
 -DS390_TOOLS_BINDIR=/sbin -O2 -pipe -DHAVE_FUSE=0 -D_FILE_OFFSET_BITS=64 -c dfi_s390.c -o dfi_s390.o
/usr/lib/gcc/s390-ibm-linux-gnu/11.2.1/../../../../s390-ibm-linux-gnu/bin/ld: unrecognised emulation mode: elf64_s390
Supported emulations: elf_s390
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:49: fba0.exec] Error 1
Comment 1 Larry the Git Cow gentoo-dev 2022-04-20 12:15:10 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cf78c8b2ba15d716d9c1174a752f129fc57952ce

commit cf78c8b2ba15d716d9c1174a752f129fc57952ce
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: 2022-04-20 12:13:50 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: 2022-04-20 12:14:59 +0000

    profiles/arch/s390: force binutils multitarget support on
    
    Closes: https://bugs.gentoo.org/show_bug.cgi?id=839660
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 profiles/arch/s390/package.use.force | 4 ++++
 1 file changed, 4 insertions(+)