On Tue, Oct 01, 2013 at 02:41:24PM +0200, Dirk Müller wrote:
Hi Michal,
[ 2s] running aaa_base preinstall script [ 2s] chroot: failed to run command 'sh': No such file or directory
Unfortunately Adrian reenbled the qemu-accel layer before leaving for vacation, which (as you found out) does not work.
you need to manually fix it up now, as root, do echo -1 > /proc/sys/fs/binfmt_misc/arm
and then rerun the osc command. please note that due to osc bugs, you need to always include the spec file in the osc build commandline as last argument when using --alternative-project.
sudo strace -f -o out chroot /var/tmp/build-root-qemu/ /usr/bin/gcc /home/abuild/foo.c ... stat("/usr/lib64/gcc/armv7hl-suse-linux-gnueabi/4.8/cc1", 0x7ffff786c010) = -1 ENOENT (No such file or directory)
Yeah, normal when you use the broken qemu-accel stuff. I've disabled it again now.
Let me know if that helps.
BTW: what is the correct way how to setup aarch64 build? http://news.opensuse.org/2013/10/01/suse-speeds-up-building-aarch64-software... mentions follow the same as for normal arch build, however I got [ 3s] [30/30] preinstalling pam... [ 3s] [ 3s] running aaa_base preinstall script [ 3s] chroot: failed to run command 'sh': Exec format error [ 3s] running aaa_base postinstall script [ 3s] chroot: failed to run command 'sh': Exec format error [ 3s] initializing rpm db... [ 3s] chroot: failed to run command '/usr/bin/rpmdb': Exec format error I assume missing binfmt_misc for aarch64, however qemu-linux-user does not have qemu-aarch64-binfmt handler. Looking to Virtualization I doubt it was added in a meanwhile. Regards Michal Vyskocil
Greetings, Dirk