17.10.2016 11:26, Thomas Huth пишет: > On 14.10.2016 20:58, Michael Tokarev wrote: >> Hi. >> >> This commit: c9bc3437a905b660561a26cd4ecc64579843267b >> Author: Richard Henderson <r...@twiddle.net> >> 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 opcode: >> `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 :) > > "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 add > some "-march=xxx" 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/«BUILDDIR»/qemu-2.7+dfsg/tcg -I/«BUILDDIR»/qemu-2.7+dfsg/tcg/s390 -I/«BUILDDIR»/qemu-2.7+dfsg/linux-headers -I/«BUILDDIR»/qemu-2.7+dfsg/qemu-build/linux-headers -I. -I/«BUILDDIR»/qemu-2.7+dfsg -I/«BUILDDIR»/qemu-2.7+dfsg/include -I/«BUILDDIR»/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=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common -g -O2 -fdebug-prefix-map=/«BUILDDIR»/qemu-2.7+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -DCONFIG_QEMU_DATAPATH='"/usr/share/qemu:/usr/share/seabios:/usr/lib/ipxe/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/«BUILDDIR»/qemu-2.7+dfsg/target-alpha -DNEED_CPU_H -I/«BUILDDIR»/qemu-2.7+dfsg/include -I/«BUILDDIR»/qemu-2.7+dfsg/linux-user/alpha -I/«BUILDDIR»/qemu-2.7+dfsg/linux-user/host/s390x -I/«BUILDDIR»/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=2 -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 /«BUILDDIR»/qemu-2.7+dfsg/linux-user/safe-syscall.S /«BUILDDIR»/qemu-2.7+dfsg/linux-user/host/s390x/safe-syscall.inc.S: Assembler messages: /«BUILDDIR»/qemu-2.7+dfsg/linux-user/host/s390x/safe-syscall.inc.S:75: Error: Unrecognized opcode: `lt' /«BUILDDIR»/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