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

2021-03-26 Thread Launchpad Bug Tracker
[Expired for QEMU because there has been no activity for 60 days.] ** Changed in: qemu Status: Incomplete => Expired -- 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

[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-23 Thread Thomas Huth
** Changed in: qemu Status: New => Incomplete -- 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 while running inside s390x docker container on x86_64

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

2021-01-20 Thread David Hildenbrand
Using latest greatest go from https://golang.org/dl/ [root@atomic-00 hello]# /usr/local/go/bin/go version go version go1.15.7 linux/s390x -- 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

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

2021-01-20 Thread David Hildenbrand
Which qemu version do you end up using? "/usr/bin/qemu-s390x-static" *usually* refers to the one provided by your distro, not your custom build. FWIW, I just installed go under Fedora 32 (which uses a slightly older version of go): [root@atomic-00 ~]# uname -a Linux atomic-00

[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

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

2020-11-23 Thread Laurent Vivier
Le 23/11/2020 à 12:03, Nirman Narang a écrit : > Any update on this? > I tried the latest version of qemu-user-static, it still fails with the same > error. > It works fine for me. Perhaps your chroot has been corrupted by your previous attempts -- You received this bug notification because

[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 Laurent Vivier
If you install go directly in your host system you must also install the libraries of s390x somewhere (except if it statically linked). The easiest way to test this is to install debian chroot, with something like: Check binftm_misc is configured: # cat /proc/sys/fs/binfmt_misc/qemu-s390x

[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 Laurent Vivier
Could you try to reproduce the problem with the latest version of QEMU from git repo? -- 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 while running inside

[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