On 09.02.24 10:41, Dirk Stöcker wrote:
Hello,
I'm trying to build packages for Ubuntu 22.04 AArch64 and ARMv7 architecture on a x86_64 system. The same approach works fine for openSUSE_15.5:
I'm building locally with osc in home:dstoecker:base repository.
I'm calling osc: "osc build --local-package -j 4 --vm-type=qemu --no-verify openSUSE_Leap_15.5 aarch64 package.spec". This fires up qemu and builds the package. Similar for ARM7 with "osc build --local-package -j 4 --vm-type=qemu --no-verify openSUSE_Leap_15.5_ARM armv7l package.spec"
For Ubuntu I do: "osc build --local-package -j 4 --vm-type=qemu --no-verify Ubuntu_22.04 aarch64 package.dsc" and it fails with
--- [ 5s] booting qemu... [ 5s] Using UART console [ 5s] ERROR: No kernel image for the target architecture available! [ 5s] You may want to use vmtype=kvm instead if you do not want to emulate a foreign architecture. ---
I tried using --vmtype=kvm instead of --vmtype=qemu, but that doesn't fix the issue. Same issue when called with armv7l.
Is this the same if you try to build for x86_64 (with kvm/qemu)? In that case you'll probably need to provide a kernel-obs-build for your debian style distribution (and configure prjconf that it is acutally used). https://github.com/seife/kernel-obs-build gives a hint how this can be done (the package build), but I only ever tried this on RHEL/CentOS builds. Good luck. -- Stefan Seyfried "For a successful technology, reality must take precedence over public relations, for nature cannot be fooled." -- Richard Feynman