On Montag, 2. Dezember 2019, 08:36:20 CET Adrian Schröter wrote:
On Freitag, 29. November 2019, 23:30:50 CET Jan
On Friday 2019-11-29 14:25, Adrian Schröter wrote:
2) Building for foreign architectures using qemu
osc is offering now to use any hardware architecture. (Thanks a lot Guillaume
for the initial implementation of that code!). For example
osc build --vm-type=qemu openSUSE_Factory_ARM aarch64
will build for aarch64 on your x86_64 workstation for example.
But it should work for any architecture.
The downside (compared to our former qemu user land emulation)
is that it works way slower due to emulation overhead and it
works currently only in projects where a kernel-obs-build is defined.
logging output to /var/tmp/build-root/standard-riscv64/.build.log...
[ 0s] Using BUILD_ROOT=/var/tmp/build-root/standard-riscv64/.mount
[ 0s] Using BUILD_ARCH=riscv64
[ 0s] Doing qemu build in /var/tmp/build-root/standard-riscv64/img
[ 0s] fj.lh started "build libHX.spec" at Fri Nov 29 22:20:25 UTC 2019.
[ 0s] processing recipe /tmp/openSUSE:Factory:RISCV/libHX/libHX.spec ...
[ 0s] running changelog2spec --target rpm --file
[ 0s] init_buildsystem --configdir /usr/lib/build/configs --cachedir /var/cache/build
--prepare --rpmlist /tmp/rpmlist.cxvdea89 /tmp/openSUSE:Factory:RISCV/libHX/libHX.sp.
[ 0s] copying packages...
[ 1s] reordering...done
[ 1s] Warning: cross compile not possible due to missing static binaries. please
install build-initvm package for that purpose.
[ 1s] check that the right architecture is available for your build host, you
need initvm.x86_64 for this one.
[ 1s] booting qemu...
[ 1s] -nodefaults -no-reboot -nographic -vga none -runas qemu -net none -kernel
[ 1s] /usr/lib/build/build-vm-qemu: line 187: -nodefaults: command not found
[ 1s] No buildstatus set, either the base system is broken
[ 1s] or the build host has a kernel or hardware problem...
The "standard" repository of openSUSE:Factory:RISCV is setup for user land qemu
This is conflicting, so you need to use "native" repository.
However, I noticed there are also some pieces still missing for RISCV in osc & build.
And we need to have riscv enabled in our qemu package. Will check with Andreas Schwab
later today hopefully about this.
okay, I needed two more fixes in build and osc for riscv64
Andreas, I also created an aggregate in openSUSE:Factory:RISCV to get a riscv64
to be able to boot at all.
The build process is starting now with some kernel output, but our kernel-obs-build waits
for the root device. Maybe virtio support is not working/compiled in our riscv64 kernel?
Nevertheless, I leave it like that for now and wait for Andreas coming out of vacation for
Jan, thanks a lot for testing!
Adrian Schroeter <adrian(a)suse.de>
Build Infrastructure Project Manager
SUSE Software Solutions Germany GmbH, Maxfeldstr. 5, 90409 Nuernberg, Germany
(HRB 247165, AG München), Geschäftsführer: Felix Imendörffer
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe(a)opensuse.org
To contact the owner, e-mail: opensuse-buildservice+owner(a)opensuse.org