So, we support only qemu builds where qemu comes from some project repository so you can have different versions and also reliable builds in future. (since OBS 2.4)
For newer opensuse 13.1 with OBS 2.5, the copy function is gone, so I create a pre-built QEMU binary package in my project, and added lines below to the "Project Config":
%ifarch armv7el armv8el Hostarch: x86_64 Preinstall: qemu-linux-user-arm %endif
To be safe, I still install packages below on both OBS server and OBS worker: build 20140424-1.1 build-initvm-x86_64 20140424-1.1 qemu 2.0.0-236.1 qemu-arm 2.0.0-236.1 qemu-kvm 2.0.0-236.1 qemu-linux-user 2.0.0-234.3
The qemu packages should not be needed, if you use kvm or xen workers.
[Rick Liu] Instead of using pre-built qemu-linux-user binaries from opensuse and package these binary into RPM in my OBS project's package, I rebuilt it from the source. With the installation of "qemu-linux-user" RPM (directly from opensuse) for each OBS worker machine, now I'm able to do QEMU chroot cross-build in OBS 2.5.2 and OBS 2.5.3. PS. Without the installation of "qemu-linux-user" RPM on each OBS worker machine, I'll still get the build error below: [ 0s] Memory limit set to 35790464KB [ 0s] Using BUILD_ROOT=/local/ramdrive/obs/worker/root_1 [ 0s] Using BUILD_ARCH=armv7el [ 0s] [ 0s] [ 0s] obs-worker-008 started "build perl.spec" at Mon May 26 17:59:27 UTC 2014. [ 0s] [ 0s] Building perl for project 'Trunk:MxC' repository 'standard' arch 'armv7el' srcmd5 'cd27a05addb6451b8124f54e6dc779c8' [ 0s] [ 0s] processing recipe /local/ramdrive/obs/worker/root_1/.build-srcdir/perl.spec ... [ 0s] running changelog2spec --target rpm --file /local/ramdrive/obs/worker/root_1/.build-srcdir/perl.spec [ 0s] init_buildsystem --configdir /var/run/obs/worker/1/build/configs --cachedir /var/cache/build --clean --rpmlist /local/ramdrive/obs/worker/root_1/.build.rpmlist /local/ramdrive/obs/worker/root_1/.build-srcdir/perl.spec build rpmlint-Factory ... [ 0s] registering binfmt handlers for cross build [ 0s] interpreter for 'aarch64' is -1 [ 0s] interpreter for 'aarch64' is -1 [ 0s] interpreter for 'arm' is -1 [ 0s] interpreter for 'armeb' is -1 [ 0s] interpreter for 'ppc' is -1 [ 0s] interpreter for 'mips' is -1 [ 0s] interpreter for 'mipsel' is -1 [ 0s] interpreter for 'sh4' is -1 [ 0s] interpreter for 'sh4eb' is -1 [ 1s] cycle: glibc -> glibc-common -> bash [ 1s] breaking dependency glibc-common -> bash [ 1s] cycle: glibc -> glibc-common [ 1s] breaking dependency glibc -> glibc-common [ 1s] cycle: glibc -> nss-softokn-freebl [ 1s] breaking dependency nss-softokn-freebl -> glibc [ 1s] cycle: libgcc -> glibc -> nss-softokn-freebl [ 1s] breaking dependency glibc -> nss-softokn-freebl [ 1s] cycle: libgcc -> glibc [ 1s] breaking dependency libgcc -> glibc [ 1s] cycle: coreutils -> pam [ 1s] breaking dependency coreutils -> pam [ 1s] cycle: rpm-libs -> rpm [ 1s] breaking dependency rpm -> rpm-libs [ 1s] [1/62] preinstalling setup... [ 1s] [2/62] preinstalling filesystem... ... ... ... [ 5s] running bzip2-x86-arm postinstall script [ 5s] chroot: failed to run command 'sh': Exec format error [ 5s] running tar-x86-arm postinstall script [ 5s] chroot: failed to run command 'sh': Exec format error [ 5s] running coreutils-x86-arm postinstall script [ 5s] chroot: failed to run command 'sh': Exec format error [ 5s] running nss-x86-arm postinstall script [ 5s] chroot: failed to run command 'sh': Exec format error [ 5s] running sed-x86-arm postinstall script [ 5s] chroot: failed to run command 'sh': Exec format error [ 5s] running diffutils-x86-arm postinstall script [ 5s] chroot: failed to run command 'sh': Exec format error [ 5s] running file-x86-arm postinstall script [ 5s] chroot: failed to run command 'sh': Exec format error [ 5s] running rpm-x86-arm postinstall script [ 5s] chroot: failed to run command 'sh': Exec format error [ 5s] running aaa-meego-accelerator postinstall script [ 5s] chroot: failed to run command 'sh': Exec format error [ 5s] running bash-x86-arm postinstall script [ 5s] chroot: failed to run command 'sh': Exec format error [ 5s] initializing rpm db... [ 5s] chroot: failed to run command '/usr/bin/rpmdb': Exec format error Thanks, Rick -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org