[Bug 1886793] Re: "go install" command fails while running inside s390x docker container on x86_64 host using qemu

2021-01-25 Thread Nirman Narang
I used the command "docker run --rm --privileged multiarch/qemu-user-static --reset -p yes". This pulls the latest one automatically. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1886793 Title:

[Bug 1886793] Re: "go install" command fails while running inside s390x docker container on x86_64 host using qemu

2021-01-18 Thread Nirman Narang
Any update on this? Tried on fresh env, Illegal instruction (core dumped), and Segmentation fault (core dumped) errors are still thrown with go commands. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU.

[Bug 1886793] Re: "go install" command fails while running inside s390x docker container on x86_64 host using qemu

2020-12-03 Thread Nirman Narang
Here is the output of the steps I tried: root@11:~# cat /proc/sys/fs/binfmt_misc/qemu-s390x enabled interpreter /usr/bin/qemu-s390x-static flags: F offset 0 magic 7f454c46020201020016 mask ff00fffe debootstrap --arch=s390x --foreign sid

[Bug 1886793] Re: "go install" command fails while running inside s390x docker container on x86_64 host using qemu

2020-11-23 Thread Nirman Narang
Let me try again using the following commands on a fresh x86 host. #apt install debootstrap #debootstrap_dir=debootstrap #debootstrap --arch=s390x --foreign sid "$debootstrap_dir" #sudo mkdir -p "${debootstrap_dir}/usr/bin" #sudo cp "$(which qemu-s390x-static)" "${debootstrap_dir}/usr/bin" #sudo

[Bug 1886793] Re: "go install" command fails while running inside s390x docker container on x86_64 host using qemu

2020-11-23 Thread Nirman Narang
Any update on this? I tried the latest version of qemu-user-static, it still fails with the same error. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1886793 Title: "go install" command fails

[Bug 1886793] Re: "go install" command fails while running inside s390x docker container on x86_64 host using qemu

2020-07-23 Thread Nirman Narang
I ran the following commands: #apt install debootstrap #debootstrap_dir=debootstrap #debootstrap --arch=s390x --foreign sid "$debootstrap_dir" #sudo mkdir -p "${debootstrap_dir}/usr/bin" #sudo cp "$(which qemu-s390x-static)" "${debootstrap_dir}/usr/bin" #sudo cp "$(which qemu-s390x)"

[Bug 1886793] Re: "go install" command fails while running inside s390x docker container on x86_64 host using qemu

2020-07-14 Thread Nirman Narang
I will try the same and will report here soon. What about the issue with getting a go s390x environment inside and s390x container running on x86 host using qemu-user-static? (This problem is also mentioned in the main issue above. This is the ultimate target which needs to be achieved, I want to

[Bug 1886793] Re: "go install" command fails while running inside s390x docker container on x86_64 host using qemu

2020-07-10 Thread Nirman Narang
Cloned qemu source code, checked out latest tag v5.0.0, built and installed the same on x86 Ubuntu host using "make" and "make install". root:~# qemu-s390x --version qemu-s390x version 5.0.0 (v5.0.0-dirty) Copyright (c) 2003-2020 Fabrice Bellard and the QEMU Project developers root:~# wget -q

[Bug 1886793] Re: "go install" command fails while running inside s390x docker container on x86_64 host using qemu

2020-07-08 Thread Nirman Narang
One more thing which I tried: I installed qemu on x86 Ubuntu host with apt-get install. Extracted s390x go 1.14.2 binaries on the same. Ran the following commands: root:~ wget -q https://storage.googleapis.com/golang/go1.14.2.linux-s390x.tar.gz root@:~# chmod ugo+r go1.14.2.linux-s390x.tar.gz

[Bug 1886793] [NEW] "go install" command fails while running inside s390x docker container on x86_64 host using qemu

2020-07-08 Thread Nirman Narang
Public bug reported: Steps to reproduce the issue: Register x86_64 host with the latest qemu-user-static. docker run --rm --privileged multiarch/qemu-user-static --reset -p yes Build the following Docker Image using following Dockerfile.s390x using command docker build -t