QEMU cross build with osc
Hello, in a package in home:dstoecker:base I do on an x86_64 system osc build --local-package -j 4 --vm-type=qemu --no-verify openSUSE_Leap_15.0_ARM armv7l package.spec that worked in the past, but now I get this: [ 1s] setting hostarch to armv7l [ 1s] booting qemu... [ 1s] Using UART console [ 1s] -nodefaults -no-reboot -nographic -vga none -runas qemu -net none -kernel /var/tmp/build-root/openSUSE_Leap_15.0_ARM-armv7l/.mount/boot/kernel -initrd /var/tmp/build-root/openSUSE_Leap_15.0_ARM-armv7l/.mount/boot/initrd -append root=/dev/sda rootfstype=ext3 rootflags=data=writeback,nobarrier,commit=150,noatime ext4.allow_unsupported=1 mitigations=off panic=1 quiet no-kvmclock elevator=noop nmi_watchdog=0 rw rd.driver.pre=binfmt_misc console= init=/.build/build -m 512 -drive file=/var/tmp/build-root/openSUSE_Leap_15.0_ARM-armv7l/img,format=raw,if=none,id=disk,cache=unsafe -device ,drive=disk,serial=0 -drive file=/var/tmp/build-root/openSUSE_Leap_15.0_ARM-armv7l/swap,format=raw,if=none,id=swap,cache=unsafe -device ,drive=swap,serial=1 -serial stdio -chardev socket,id=monitor,server,nowait,path=/var/tmp/build-root/openSUSE_Leap_15.0_ARM-armv7l/img.qemu/monitor -mon chardev=monitor,mode=readline -smp 4 [ 1s] /usr/lib/build/build-vm-qemu: line 210: -nodefaults: command not found [ 1s] No buildstatus set, either the base system is broken (kernel/initrd/udev/glibc/bash/perl) [ 1s] or the build host has a kernel or hardware problem... It seems there is a command name missing in 4th line. Does anybody know what goes wrong here? Using openSUSE Tumbleweed with following packages installed osc-0.176.0-1.1.noarch qemu-6.2.0-41.1.x86_64 qemu-arm-6.2.0-807.4.x86_64 rpm-build-4.17.0-1.1.x86_64 Freedom in Peace -- https://www.dstoecker.eu/ (PGP key available)
Hi, Line 210 in my /usr/lib/build/build-vm-qemu is ' vm_kill_kvm' and is different to yours. That makes me thing that you might be using an older version of package 'build'. The latest in Tumbleweed is build-20220307-1.1.noarch Could you upgrade it (or run zypper dup) and retry? I was unable to reproduce it, because home:dstoecker:base doesn't contain any package.spec. On 17. 03. 22 10:25, Dirk Stöcker wrote:
Hello,
in a package in home:dstoecker:base I do on an x86_64 system
osc build --local-package -j 4 --vm-type=qemu --no-verify openSUSE_Leap_15.0_ARM armv7l package.spec
that worked in the past, but now I get this:
[ 1s] setting hostarch to armv7l [ 1s] booting qemu... [ 1s] Using UART console [ 1s] -nodefaults -no-reboot -nographic -vga none -runas qemu -net none -kernel /var/tmp/build-root/openSUSE_Leap_15.0_ARM-armv7l/.mount/boot/kernel -initrd /var/tmp/build-root/openSUSE_Leap_15.0_ARM-armv7l/.mount/boot/initrd -append root=/dev/sda rootfstype=ext3 rootflags=data=writeback,nobarrier,commit=150,noatime ext4.allow_unsupported=1 mitigations=off panic=1 quiet no-kvmclock elevator=noop nmi_watchdog=0 rw rd.driver.pre=binfmt_misc console= init=/.build/build -m 512 -drive file=/var/tmp/build-root/openSUSE_Leap_15.0_ARM-armv7l/img,format=raw,if=none,id=disk,cache=unsafe -device ,drive=disk,serial=0 -drive file=/var/tmp/build-root/openSUSE_Leap_15.0_ARM-armv7l/swap,format=raw,if=none,id=swap,cache=unsafe -device ,drive=swap,serial=1 -serial stdio -chardev socket,id=monitor,server,nowait,path=/var/tmp/build-root/openSUSE_Leap_15.0_ARM-armv7l/img.qemu/monitor -mon chardev=monitor,mode=readline -smp 4 [ 1s] /usr/lib/build/build-vm-qemu: line 210: -nodefaults: command not found [ 1s] No buildstatus set, either the base system is broken (kernel/initrd/udev/glibc/bash/perl) [ 1s] or the build host has a kernel or hardware problem...
It seems there is a command name missing in 4th line. Does anybody know what goes wrong here?
Using openSUSE Tumbleweed with following packages installed osc-0.176.0-1.1.noarch qemu-6.2.0-41.1.x86_64 qemu-arm-6.2.0-807.4.x86_64 rpm-build-4.17.0-1.1.x86_64
Freedom in Peace
Hello,
Line 210 in my /usr/lib/build/build-vm-qemu is ' vm_kill_kvm' and is different to yours. That makes me thing that you might be using an older version of package 'build'. The latest in Tumbleweed is build-20220307-1.1.noarch
Could you upgrade it (or run zypper dup) and retry?
I was unable to reproduce it, because home:dstoecker:base doesn't contain any package.spec.
Yeah. That's a repo for local builds. Simply do: osc co home:dstoecker:base/empty and copy any other spec file in the resulting directory. Happens for all. Your comment above gave me a hint. In /usr/lib/build/build-vm-qemu there is only an entry for armv7l, whereas when I call the software the $BUILD_HOST_ARCH variable is armv7hl (although everywhere I specify ony armv7l). When I add this in the two relevant lines it builds. Seems build script has a bug here. All packages in 15.0 are with name armv7hl, so I assume that's correct. Didn't verify the results yet, but at least it starts. Freedom in Peace -- https://www.dstoecker.eu/ (PGP key available)
participants (2)
-
Daniel Mach
-
Dirk Stöcker