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 https://storage.googleapis.com/golang/go1.14.2.linux-s390x.tar.gz root:~# chmod ugo+r go1.14.2.linux-s390x.tar.gz root:~# rm -rf /usr/local/go /usr/bin/go root:~# tar -C /usr/local -xzf go1.14.2.linux-s390x.tar.gz root:~# ln -sf /usr/local/go/bin/go /usr/bin/ root:~# ln -sf /usr/local/go/bin/gofmt /usr/bin/ root:~# ln -sf /usr/bin/gcc /usr/bin/s390x-linux-gnu-gcc root:~# go version -bash: /usr/bin/go: cannot execute binary file: Exec format error root:~# qemu-s390x /usr/bin/go version /lib/ld64.so.1: No such file or directory
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 https:/ /storage. googleapis. com/golang/ go1.14. 2.linux- s390x.tar. gz 2.linux- s390x.tar. gz 2.linux- s390x.tar. gz go/bin/ go /usr/bin/ go/bin/ gofmt /usr/bin/ s390x-linux- gnu-gcc
root:~# chmod ugo+r go1.14.
root:~# rm -rf /usr/local/go /usr/bin/go
root:~# tar -C /usr/local -xzf go1.14.
root:~# ln -sf /usr/local/
root:~# ln -sf /usr/local/
root:~# ln -sf /usr/bin/gcc /usr/bin/
root:~# go version
-bash: /usr/bin/go: cannot execute binary file: Exec format error
root:~# qemu-s390x /usr/bin/go version
/lib/ld64.so.1: No such file or directory