Package: qemu-system Version: 1:2.4+dfsg-3 Severity: important -----
Attempting to compile Crypto++ (http://www.cryptopp.com/) under s390x chroot environment: # chroot debian-s390x # g++ -dumpmachine s390x-linux-gnu # cd /cryptopp-5.6.3/ # make g++ -DNDEBUG -g2 -O2 -pipe -c osrng.cpp g++: error trying to exec '/usr/lib/gcc/s390x-linux-gnu/5/cc1plus': execv: Exec format error GNUmakefile:382: recipe for target 'osrng.o' failed make: *** [osrng.o] Error 1 Reducing it to a minimal program: # cat test.cxx #include <iostream> int main(int argc, char* argv[]) { return argc; } # g++ test.cxx g++: error trying to exec '/usr/lib/gcc/s390x-linux-gnu/5/cc1plus': execv: Exec format error I'm not really sure how to proceed since I've never encountered this issue. `apt-get install --reinstall g++` did not help. ----- # file /usr/lib/gcc/s390x-linux-gnu/5/cc1plus /usr/lib/gcc/s390x-linux-gnu/5/cc1plus: ELF 64-bit MSB executable, IBM S/390, version 1 (GNU/Linux), dynamically linked, interpreter /lib/ld64.so.1, for GNU/Linux 2.6.32, BuildID[sha1]=aaa1e442e47e5e41c36b70d5e6a8f538da4ca3e7, not stripped ----- # Host $ uname -a Linux debian-8-x64 4.1.0-2-amd64 #1 SMP Debian 4.1.6-1 (2015-08-23) x86_64 GNU/Linux # QEMU guest /# uname -a Linux debian-8-x64 4.1.0-2-amd64 #1 SMP Debian 4.1.6-1 (2015-08-23) s390x GNU/Linux ----- Dpkg and apt-cache are not returning a qemu-system-s390x; my apologies if this is mis-classified. $ dpkg --search qemu-system-s390x dpkg-query: no path found matching pattern *qemu-system-s390x* But the following worked fine: # apt-get install qemu-user-static debootstrap # qemu-debootstrap --arch=s390x --keyring /usr/share/keyrings/debian-archive-keyring.gpg --variant=buildd --exclude=debfoster unstable debian-s390x http://ftp.debian.org/debian # chroot debian-s390x # apt-get install locales build-essentials emacs-nox ----- Gmail does not appear to provide a means to add X-Debbugs-CC, so I was not able to include pkg-qemu-de...@lists.alioth.debian.org.