ERROR:../target/s390x/tcg/cc_helper.c:128:cc_calc_addu: assertion failed: (carry_out <= 1)
Host environment
- Operating system: Fedora 38
- OS/kernel version: 6.4.13-200.fc38.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Aug 30 17:07:31 UTC 2023 x86_64 GNU/Linux
- Architecture: x86 (AMD)
- QEMU flavor: qemu-system-s390x
- QEMU version: 8.1
- QEMU command line:
qemu-system-s390x -M s390-ccw-virtio -smp 1 -m 4G
-nographic -display none -serial mon:stdio
-device virtio-scsi
-drive file=./77os.iso,format=raw,if=none,id=c1
-device scsi-cd,drive=c1
-hda rootfs.qcow2
-kernel kernel.img -initrd initrd.img
-net nic,model=virtio,netdev=net1 -netdev user,id=net1
-D debug.log
Emulated/Virtualized environment
- Operating system: ClefOS 7.7 (CentOS)
- OS/kernel version: Linux 4
- Architecture: s390x
Description of problem
Installation progresses OK, but QEMU asserts during post-installation setup tasks:
Performing post-installation setup tasks ** ERROR:../target/s390x/tcg/cc_helper.c:128:cc_calc_addu: assertion failed: (carry_out <= 1) Bail out! ERROR:../target/s390x/tcg/cc_helper.c:128:cc_calc_addu: assertion failed: (carry_out <= 1) ./install.sh: line 25: 158224 Aborted (core dumped) $QEMU/qemu-system-s390x -M s390-ccw-virtio -smp 1 -m 4G -nographic -display none -serial mon:stdio -device virtio-scsi -drive file=$ISO,format=raw,if=none,id=c1 -device scsi-cd,dri ve=c1 -hda $DISK -kernel $KERNEL -initrd $INITRD -net nic,model=virtio,netdev=net1 -netdev user,id=net1 -D debug.log
Steps to reproduce
- Download ClefOS 7.7 ISO from sinenomine
- Download Fedora 27 ISO and extract kernel.img and initrd.img, for boot purposes
- Boot ClefOS ISO using Fedora kernel/initrd
- Go through a minimal install, observe crash during post-installation setup tasks
Additional information
See script log and install.sh attached. install-and-output.zip
I have tried QEMU 7.2.5 and 8.1 on my Fedora 38 AMD host.
My goal is to create RHEL7, SLES12, Ubuntu20 (or compatible) VMs for s390x software builds. So far only Ubuntu20 has been successful. RHEL7 fails due to kernel issues described in QEMU issue 906, so I'm trying ClefOS (CentOS for z) based on a procedure here