Received: from eggs.gnu.org ([2001:4830:134:3::10]:60942) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bw5L5-0006pe-C6 for qemu-devel@nongnu.org; Mon, 17 Oct 2016 06:40:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bw5L0-0000FQ-Dq for qemu-devel@nongnu.org; Mon, 17 Oct 2016 06:40:15 -0400 Received: from isrv.corpit.ru ([86.62.121.231]:46918) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bw5Kq-00008m-QJ for qemu-devel@nongnu.org; Mon, 17 Oct 2016 06:40:10 -0400 References: <1f404cfc-4917-9fc0-b628-5af22e3bf64c@msgid.tls.msk.ru> <44ae9753-110b-4419-5734-66c3b1d0f9a4@redhat.com> From: Michael Tokarev Message-ID: <3e228280-1bda-e2f8-3d8e-df4c116220c8@msgid.tls.msk.ru> Date: Mon, 17 Oct 2016 13:39:56 +0300 MIME-Version: 1.0 In-Reply-To: <44ae9753-110b-4419-5734-66c3b1d0f9a4@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] Provide safe_syscall for s390x List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Thomas Huth , qemu-devel@nongnu.org, Richard Henderson 17.10.2016 11:26, Thomas Huth =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > On 14.10.2016 20:58, Michael Tokarev wrote: >> Hi. >> >> This commit: c9bc3437a905b660561a26cd4ecc64579843267b >> Author: Richard Henderson >> Date: Tue Jun 21 17:32:12 2016 -0700 >> >> linux-user: Provide safe_syscall for s390x >> >> does not build on debian unstable porterbox for s390x, with >> the following error message: >> >> linux-user/host/s390x/safe-syscall.inc.S: Assembler messages: >> linux-user/host/s390x/safe-syscall.inc.S:75: Error: Unrecognized opcod= e: >> `lt' >> rules.mak:72: recipe for target 'linux-user/safe-syscall.o' failed >> >> Since I know nothing about s390, I've no idea what's at fault >> here... :) Thought I'd report this :) >=20 > "lt" seems to be a newer s390x opcode which has been added to the > architecture within the last ten years or so. So maybe you've got to ad= d > some "-march=3Dxxx" flag when compiling this file? > Could you maybe start with finding out the exact comand line that is > used to compile this file? Here we go: cc -I/=C2=ABBUILDDIR=C2=BB/qemu-2.7+dfsg/tcg -I/=C2=ABBUILDDIR=C2=BB/qemu= -2.7+dfsg/tcg/s390 -I/=C2=ABBUILDDIR=C2=BB/qemu-2.7+dfsg/linux-headers -I/=C2=ABBUILDDIR=C2=BB/qemu-2.7+dfsg/qemu-build/linux-headers -I. -I/=C2=ABBUILDDIR=C2=BB/qemu-2.7+dfsg -I/=C2=ABBUILDDIR=C2=BB/qemu-2.7+df= sg/include -I/=C2=ABBUILDDIR=C2=BB/qemu-2.7+dfsg/linux-user -Ilinux-user -I/usr/include/pixman-1 -DHAS_LIBSSH2_SFTP_FSYNC -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=3D64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common -g -O2 -fdebug-prefix-map=3D/=C2=ABBUILDDIR=C2=BB/qemu-2.7+dfsg=3D. -fstack-prot= ector-strong -Wformat -Werror=3Dformat-security -Wdate-time -D_FORTIFY_SOURCE=3D2 -DCONFIG_QEMU_DATAPATH=3D'"/usr/share/qemu:/usr/share/seabios:/usr/lib/ip= xe/qemu"' -DVENDOR_DEBIAN -Wendif-labels -Wno-shift-negative-value -Wmissing-include-dirs -Wempty-body -Wnested-externs -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wold-style-declaration -Wold-style-definition -Wtype-limits -fstack-protector-strong -I/usr/include/p11-kit-1 -I/usr/include/libpng16 -I/usr/include/cacard -I/usr/include/libusb-1.0 -I../linux-headers -I.. -I/=C2=ABBUILDDIR=C2=BB/qemu-2.7+dfsg/target-alpha -DNEED_CPU_H -I/=C2=ABBUILDDIR=C2=BB/qemu-2.7+dfsg/include -I/=C2=ABBUILDDIR=C2=BB/qemu-2.7+dfsg/linux-user/alpha -I/=C2=ABBUILDDIR=C2=BB/qemu-2.7+dfsg/linux-user/host/s390x -I/=C2=ABBUILDDIR=C2=BB/qemu-2.7+dfsg/linux-user -MMD -MP -MT linux-user/safe-syscall.o -MF linux-user/safe-syscall.d -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3D2 -pthread -I/usr/include/glib-2.0 -I/usr/lib/s390x-linux-gnu/glib-2.0/include -pthread -I/usr/include/glib-2.0 -I/usr/lib/s390x-linux-gnu/glib-2.0/include -g -c -o linux-user/safe-syscall.o /=C2=ABBUILDDIR=C2=BB/qemu-2.7+dfsg/linux-user/safe-syscall.S /=C2=ABBUILDDIR=C2=BB/qemu-2.7+dfsg/linux-user/host/s390x/safe-syscall.in= c.S: Assembler messages: /=C2=ABBUILDDIR=C2=BB/qemu-2.7+dfsg/linux-user/host/s390x/safe-syscall.in= c.S:75: Error: Unrecognized opcode: `lt' /=C2=ABBUILDDIR=C2=BB/qemu-2.7+dfsg/rules.mak:72: recipe for target 'linux-user/safe-syscall.o' failed make[2]: *** [linux-user/safe-syscall.o] Error 1 (cc is gcc 6.2.0) I've no idea which -march is the default and what choices are available. /mjt