[opensuse-factory] How to build s390 package on x86_64 tumbleweed
Hi, I'd like to build local for s390x. The qemu packages are installed and also configured and enabled: werner/clisp> ll /proc/sys/fs/binfmt_misc/ total 0 -rw-r--r-- 1 root root 0 Feb 22 09:06 aarch64 -rw-r--r-- 1 root root 0 Feb 22 09:06 alpha -rw-r--r-- 1 root root 0 Feb 22 09:06 arm -rw-r--r-- 1 root root 0 Feb 22 09:06 armeb -rw-r--r-- 1 root root 0 Feb 22 09:06 m68k -rw-r--r-- 1 root root 0 Feb 22 09:06 mips -rw-r--r-- 1 root root 0 Feb 22 09:06 mipsel -rw-r--r-- 1 root root 0 Feb 22 09:06 ppc -rw-r--r-- 1 root root 0 Feb 22 09:06 ppc64 -rw-r--r-- 1 root root 0 Feb 22 09:06 ppc64le --w------- 1 root root 0 Jan 17 15:19 register -rw-r--r-- 1 root root 0 Feb 22 09:06 s390x -rw-r--r-- 1 root root 0 Feb 22 09:06 sh4 -rw-r--r-- 1 root root 0 Feb 22 09:06 sh4eb -rw-r--r-- 1 root root 0 Feb 22 09:06 sparc -rw-r--r-- 1 root root 0 Jan 17 15:19 status werner/clisp> cat /proc/sys/fs/binfmt_misc/status enabled nevertheless using osc build --root /abuild/oscbuild/openSUSE_Factory.S390X --alternative-project openSUSE:Factory:zSystems standard s390x fails with [ 54s] initializing rpm db... [ 54s] chroot: failed to run command '/usr/bin/rpmdb': No such file or directory as well as osc build --root /abuild/oscbuild/openSUSE_Factory.S390X s390x fails with [ 7s] [27/28] preinstalling rpm... [ 7s] [28/28] preinstalling pam... [ 7s] [ 7s] running aaa_base preinstall script [ 7s] chroot: failed to run command 'sh': No such file or directory [ 7s] running aaa_base postinstall script [ 7s] chroot: failed to run command 'sh': No such file or directory [ 7s] initializing rpm db... [ 7s] chroot: failed to run command '/usr/bin/rpmdb': No such file or directory but ll /abuild/oscbuild/openSUSE_Factory.S390X/bin/*sh -rwxr-xr-x 1 root root 1170920 Feb 16 23:15 /abuild/oscbuild/openSUSE_Factory.S390X/bin/bash lrwxrwxrwx 1 root root 4 Feb 16 23:15 /abuild/oscbuild/openSUSE_Factory.S390X/bin/sh -> bash file /abuild/oscbuild/openSUSE_Factory.S390X/bin/bash /abuild/oscbuild/openSUSE_Factory.S390X/bin/bash: ELF 64-bit MSB shared object, IBM S/390, version 1 (SYSV), dynamically linked, interpreter /lib/ld64.so.1, for GNU/Linux 3.2.0, BuildID[sha1]=04aaced44deb18be53f2f197d63e033cb30f406f, not stripped file /abuild/oscbuild/openSUSE_Factory.S390X/usr/bin/rpmbuild /abuild/oscbuild/openSUSE_Factory.S390X/usr/bin/rpmbuild: ELF 64-bit MSB executable, IBM S/390, version 1 (SYSV), dynamically linked, interpreter /lib/ld64.so.1, for GNU/Linux 3.2.0, BuildID[sha1]=c0f694314e71cbb8a86607f00ced6afea51da8b5, not stripped What does go wrong here and/or what I'm missing here? Werner -- "Having a smoking section in a restaurant is like having a peeing section in a swimming pool." -- Edward Burr
Hello, you building in chroot which is x86_64, you need build in qemu ->
From oscrc example :
# build-type to use - values can be (depending on the capabilities of the 'build' script) # empty - chroot build # kvm - kvm VM build (needs build-device, build-swap, build-memory) # xen - xen VM build (needs build-device, build-swap, build-memory) # experimental: # qemu - qemu VM build # lxc - lxc build #build-type = # build-device is the disk-image file to use as root for VM builds # e.g. /var/tmp/FILE.root #build-device = /var/tmp/FILE.root # build-swap is the disk-image to use as swap for VM builds # e.g. /var/tmp/FILE.swap #build-swap = /var/tmp/FILE.swap # build-memory is the amount of memory used in the VM # value in MB - e.g. 512 #build-memory = 512 # build-vmdisk-rootsize is the size of the disk-image used as root in a VM build # values in MB - e.g. 4096 #build-vmdisk-rootsize = 4096 # build-vmdisk-swapsize is the size of the disk-image used as swap in a VM build # values in MB - e.g. 1024 #build-vmdisk-swapsize = 1024 # build-vmdisk-filesystem is the file system type of the disk-image used in a VM build # values are ext3(default) ext4 xfs reiserfs btrfs #build-vmdisk-filesystem = ext4 On 22 February 2018 at 10:48, Dr. Werner Fink <werner@suse.de> wrote:
Hi,
I'd like to build local for s390x. The qemu packages are installed and also configured and enabled:
werner/clisp> ll /proc/sys/fs/binfmt_misc/ total 0 -rw-r--r-- 1 root root 0 Feb 22 09:06 aarch64 -rw-r--r-- 1 root root 0 Feb 22 09:06 alpha -rw-r--r-- 1 root root 0 Feb 22 09:06 arm -rw-r--r-- 1 root root 0 Feb 22 09:06 armeb -rw-r--r-- 1 root root 0 Feb 22 09:06 m68k -rw-r--r-- 1 root root 0 Feb 22 09:06 mips -rw-r--r-- 1 root root 0 Feb 22 09:06 mipsel -rw-r--r-- 1 root root 0 Feb 22 09:06 ppc -rw-r--r-- 1 root root 0 Feb 22 09:06 ppc64 -rw-r--r-- 1 root root 0 Feb 22 09:06 ppc64le --w------- 1 root root 0 Jan 17 15:19 register -rw-r--r-- 1 root root 0 Feb 22 09:06 s390x -rw-r--r-- 1 root root 0 Feb 22 09:06 sh4 -rw-r--r-- 1 root root 0 Feb 22 09:06 sh4eb -rw-r--r-- 1 root root 0 Feb 22 09:06 sparc -rw-r--r-- 1 root root 0 Jan 17 15:19 status werner/clisp> cat /proc/sys/fs/binfmt_misc/status enabled
nevertheless using
osc build --root /abuild/oscbuild/openSUSE_Factory.S390X --alternative-project openSUSE:Factory:zSystems standard s390x
fails with
[ 54s] initializing rpm db... [ 54s] chroot: failed to run command '/usr/bin/rpmdb': No such file or directory
as well as
osc build --root /abuild/oscbuild/openSUSE_Factory.S390X s390x
fails with
[ 7s] [27/28] preinstalling rpm... [ 7s] [28/28] preinstalling pam... [ 7s] [ 7s] running aaa_base preinstall script [ 7s] chroot: failed to run command 'sh': No such file or directory [ 7s] running aaa_base postinstall script [ 7s] chroot: failed to run command 'sh': No such file or directory [ 7s] initializing rpm db... [ 7s] chroot: failed to run command '/usr/bin/rpmdb': No such file or directory
but
ll /abuild/oscbuild/openSUSE_Factory.S390X/bin/*sh -rwxr-xr-x 1 root root 1170920 Feb 16 23:15 /abuild/oscbuild/openSUSE_Factory.S390X/bin/bash lrwxrwxrwx 1 root root 4 Feb 16 23:15 /abuild/oscbuild/openSUSE_Factory.S390X/bin/sh -> bash file /abuild/oscbuild/openSUSE_Factory.S390X/bin/bash /abuild/oscbuild/openSUSE_Factory.S390X/bin/bash: ELF 64-bit MSB shared object, IBM S/390, version 1 (SYSV), dynamically linked, interpreter /lib/ld64.so.1, for GNU/Linux 3.2.0, BuildID[sha1]=04aaced44deb18be53f2f197d63e033cb30f406f, not stripped file /abuild/oscbuild/openSUSE_Factory.S390X/usr/bin/rpmbuild /abuild/oscbuild/openSUSE_Factory.S390X/usr/bin/rpmbuild: ELF 64-bit MSB executable, IBM S/390, version 1 (SYSV), dynamically linked, interpreter /lib/ld64.so.1, for GNU/Linux 3.2.0, BuildID[sha1]=c0f694314e71cbb8a86607f00ced6afea51da8b5, not stripped
What does go wrong here and/or what I'm missing here?
Werner
-- "Having a smoking section in a restaurant is like having a peeing section in a swimming pool." -- Edward Burr -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On Feb 22 2018, "Dr. Werner Fink" <werner@suse.de> wrote:
osc build --root /abuild/oscbuild/openSUSE_Factory.S390X --alternative-project openSUSE:Factory:zSystems standard s390x
openSUSE:Factory:zSystems is configured for native builds only. If you want to use qemu-linux-user builds, you need to set up a project that has all the necessary settings similar to what is used by openSUSE:Factory:RISCV. Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
participants (3)
-
Andreas Schwab
-
Dr. Werner Fink
-
Ondřej Súkup