[opensuse-buildservice] Local cross compile/build ... does not work
Hi, on a Leap 42.2 x86_64 I see for osc build --root <my root for ARM> openSUSE_Factory armv7l the following [ 5s] running aaa_base preinstall script [ 5s] chroot: failed to run command 'sh': No such file or directory [ 5s] running aaa_base postinstall script [ 5s] chroot: failed to run command 'sh': No such file or directory [ 5s] initializing rpm db... [ 5s] chroot: failed to run command '/usr/bin/rpmdb': No such file or directory [ 5s] [ 5s] noether failed "build clisp.spec" at Fri Dec 2 14:19:18 UTC 2016. after doing sudo cp /usr/bin/qemu-*-binfmt /abuild/oscbuild/openSUSE_Factory.ARM/usr/bin/ this change to [ 5s] running aaa_base preinstall script [ 5s] running aaa_base postinstall script [ 5s] initializing rpm db... [ 5s] [ 5s] noether failed "build clisp.spec" at Fri Dec 2 14:19:42 UTC 2016. qemu is installed and the architectures had been registered at the first run of osc (btw: it is enough to do this only once): ll /proc/sys/fs/binfmt_misc/ total 0 -rw-r--r-- 1 root root 0 Dec 2 15:18 aarch64 -rw-r--r-- 1 root root 0 Dec 2 15:18 alpha -rw-r--r-- 1 root root 0 Dec 2 15:18 arm -rw-r--r-- 1 root root 0 Dec 2 15:18 armeb -rw-r--r-- 1 root root 0 Dec 2 15:18 m68k -rw-r--r-- 1 root root 0 Dec 2 15:18 mips -rw-r--r-- 1 root root 0 Dec 2 15:18 mipsel -rw-r--r-- 1 root root 0 Dec 2 15:18 ppc -rw-r--r-- 1 root root 0 Dec 2 15:18 ppc64 -rw-r--r-- 1 root root 0 Dec 2 15:18 ppc64le --w------- 1 root root 0 Dec 2 15:18 register -rw-r--r-- 1 root root 0 Dec 2 15:18 s390x -rw-r--r-- 1 root root 0 Dec 2 15:18 sh4 -rw-r--r-- 1 root root 0 Dec 2 15:18 sh4eb -rw-r--r-- 1 root root 0 Dec 2 15:18 sparc -rw-r--r-- 1 root root 0 Dec 2 15:18 status cat /proc/sys/fs/binfmt_misc/arm enabled interpreter /usr/bin/qemu-arm-binfmt flags: P offset 0 magic 7f454c4601010100000000000000000002002800 mask ffffffffffffff00fffffffffffffffffeffffff What does go wrong here? Werner -- "Having a smoking section in a restaurant is like having a peeing section in a swimming pool." -- Edward Burr
On Freitag, 2. Dezember 2016, 15:26:18 CET wrote Dr. Werner Fink:
Hi,
on a Leap 42.2 x86_64 I see for
osc build --root <my root for ARM> openSUSE_Factory armv7l
that repo is setup for native compile it seems. You should be able to build against openSUSE:Factory:ARM qemu repos on x86_64
the following
[ 5s] running aaa_base preinstall script [ 5s] chroot: failed to run command 'sh': No such file or directory [ 5s] running aaa_base postinstall script [ 5s] chroot: failed to run command 'sh': No such file or directory [ 5s] initializing rpm db... [ 5s] chroot: failed to run command '/usr/bin/rpmdb': No such file or directory [ 5s] [ 5s] noether failed "build clisp.spec" at Fri Dec 2 14:19:18 UTC 2016.
after doing
sudo cp /usr/bin/qemu-*-binfmt /abuild/oscbuild/openSUSE_Factory.ARM/usr/bin/
this change to
[ 5s] running aaa_base preinstall script [ 5s] running aaa_base postinstall script [ 5s] initializing rpm db... [ 5s] [ 5s] noether failed "build clisp.spec" at Fri Dec 2 14:19:42 UTC 2016.
qemu is installed and the architectures had been registered at the first run of osc (btw: it is enough to do this only once):
ll /proc/sys/fs/binfmt_misc/ total 0 -rw-r--r-- 1 root root 0 Dec 2 15:18 aarch64 -rw-r--r-- 1 root root 0 Dec 2 15:18 alpha -rw-r--r-- 1 root root 0 Dec 2 15:18 arm -rw-r--r-- 1 root root 0 Dec 2 15:18 armeb -rw-r--r-- 1 root root 0 Dec 2 15:18 m68k -rw-r--r-- 1 root root 0 Dec 2 15:18 mips -rw-r--r-- 1 root root 0 Dec 2 15:18 mipsel -rw-r--r-- 1 root root 0 Dec 2 15:18 ppc -rw-r--r-- 1 root root 0 Dec 2 15:18 ppc64 -rw-r--r-- 1 root root 0 Dec 2 15:18 ppc64le --w------- 1 root root 0 Dec 2 15:18 register -rw-r--r-- 1 root root 0 Dec 2 15:18 s390x -rw-r--r-- 1 root root 0 Dec 2 15:18 sh4 -rw-r--r-- 1 root root 0 Dec 2 15:18 sh4eb -rw-r--r-- 1 root root 0 Dec 2 15:18 sparc -rw-r--r-- 1 root root 0 Dec 2 15:18 status cat /proc/sys/fs/binfmt_misc/arm enabled interpreter /usr/bin/qemu-arm-binfmt flags: P offset 0 magic 7f454c4601010100000000000000000002002800 mask ffffffffffffff00fffffffffffffffffeffffff
What does go wrong here?
Werner
-- Adrian Schroeter email: adrian@suse.de SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg) Maxfeldstraße 5 90409 Nürnberg Germany -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
armv7 is not set up for qemu user-space builds. You need to make sure qemu-linux-user is preinstalled in the build root. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org
participants (3)
-
Adrian Schröter
-
Andreas Schwab
-
Dr. Werner Fink