forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 15
Closed
Labels
[ARCH] s390This bug impacts ARCH=s390This bug impacts ARCH=s390[BUG] llvmA bug that should be fixed in upstream LLVMA bug that should be fixed in upstream LLVM[FIXED][LLVM] 19This bug was fixed in LLVM 19This bug was fixed in LLVM 19[TOOL] llvm-objcopyThe issue is relevant to LLVM objcopyThe issue is relevant to LLVM objcopy
Description
This can be a duplicate of #1524. s390 build fails at the final state as
OBJCOPY arch/s390/boot/compressed/info.o
llvm-objcopy: error: invalid output format: 'elf64-s390'
make[2]: *** [arch/s390/boot/compressed/Makefile:55: arch/s390/boot/compressed/info.o] Error 1
OBJCOPY arch/s390/boot/compressed/vmlinux.bin
GZIP arch/s390/boot/compressed/vmlinux.bin.gz
OBJCOPY arch/s390/boot/compressed/piggy.o
llvm-objcopy: error: invalid output format: 'elf64-s390'
make[2]: *** [arch/s390/boot/compressed/Makefile:88: arch/s390/boot/compressed/piggy.o] Error 1
make[2]: Target 'arch/s390/boot/compressed/vmlinux' not remade because of errors.
make[1]: *** [arch/s390/boot/Makefile:69: arch/s390/boot/compressed/vmlinux] Error 2
This can be reproduced by
#!/bin/sh
KVER=5.16-rc3
LANG=C.UTF-8
export LANG
cd /var/tmp/tmp11s390
cat >/tmp/config$$.txt <<EOF
CONFIG_FTRACE_MCOUNT_USE_RECORDMCOUNT=n
CONFIG_KASAN=n
CONFIG_GCOV_KERNEL=n
CONFIG_COMPILE_TEST=n
CONFIG_TRIM_UNUSED_KSYMS=y
CONFIG_SHADOW_CALL_STACK=y
CONFIG_LD_DEAD_CODE_DATA_ELIMINATION=y
CONFIG_INIT_STACK_ALL_ZERO=y
CONFIG_KVM=y
CONFIG_PREEMPT=y
CONFIG_PREEMPT_DYNAMIC=y
CONFIG_WERROR=n
CONFIG_RUNTIME_TESTING_MENU=n
CONFIG_XFS_FS=n
CONFIG_OVERLAY_FS=n
CONFIG_EMBEDDED=n
CONFIG_DEBUG_INFO=y
CONFIG_DEBUG_INFO_DWARF5=y
CONFIG_ACPI=y
CONFIG_EFI_STUB=y
CONFIG_EFI=y
CONFIG_DMI=y
CONFIG_NUMA=y
CONFIG_MEMORY_HOTPLUG=y
CONFIG_HOTPLUG_PCI=y
CONFIG_HOTPLUG_PCI_PCIE=y
CONFIG_HOTPLUG_CPU=y
CONFIG_MARCH_Z15=y
CONFIG_TUNE_Z15=y
CONFIG_SCHED_TOPOLOGY=y
EOF
for a in s390; do
rm -rf /var/tmp/tmp11s390/$a
mkdir /var/tmp/tmp11s390/$a
cd /var/tmp/tmp11s390/$a
exec </dev/null >build-log-${KVER}-${a}.txt 2>&1
set -xe
tar zxf /var/tmp/linux-${KVER}.tar.gz
cd linux-${KVER}
sed -i 's/-O2/-O3/g' Makefile
sed -i 's/-Os/-Oz/g' Makefile
cp /tmp/config$$.txt .config
make LLVM=1 LLVM_IAS=0 CROSS_COMPILE=s390x-linux-gnu- LD=s390x-linux-gnu-ld allmodconfig
cat /tmp/config$$.txt >>.config
yes '' |
chrt --idle 0 nice -19 make --keep-going ARCH=$a LLVM=1 LLVM_IAS=0 CROSS_COMPILE=s390x-linux-gnu- LD=s390x-linux-gnu-ld KCFLAGS="-mllvm -polly-ast-use-context -mllvm -polly-invariant-load-hoisting -mllvm -polly-opt-fusion=max -mllvm -polly-run-inliner -mllvm -polly-vectorizer=stripmine -mllvm -polly-run-dce" all &
exec </dev/null >/dev/null 2>&1
done
wait
Metadata
Metadata
Assignees
Labels
[ARCH] s390This bug impacts ARCH=s390This bug impacts ARCH=s390[BUG] llvmA bug that should be fixed in upstream LLVMA bug that should be fixed in upstream LLVM[FIXED][LLVM] 19This bug was fixed in LLVM 19This bug was fixed in LLVM 19[TOOL] llvm-objcopyThe issue is relevant to LLVM objcopyThe issue is relevant to LLVM objcopy