On Tue, May 28, 2013 at 02:11:21PM +0300, Michael S. Tsirkin wrote: > Building target x86_64-linux-user on a 32 bit host gives me > this error: > > [mst@robin x86_64-linux-user]$ cc -I/scm/qemu/tcg -I/scm/qemu/tcg/i386 > -I/scm/qemu/linux-headers -I. -I/scm/qemu -I/scm/qemu/include > -I/scm/qemu/linux-user -Ilinux-user -Werror -fPIE -DPIE -m32 -D_GNU_SOURCE > -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes > -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes > -fno-strict-aliasing -Wendif-labels -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-all -I/usr/include/p11-kit-1 > -I/usr/include/libpng15 -I/usr/include/libusb-1.0 > -I/usr/include/pixman-1 -I../linux-headers -I.. -I/scm/qemu/target-i386 > -DNEED_CPU_H -I/scm/qemu/include -I/scm/qemu/linux-user/i386 > -I/scm/qemu/linux-user -pthread -I/usr/include/glib-2.0 > -I/usr/lib/glib-2.0/include -MMD -MP -MT linux-user/syscall.o -MF > linux-user/syscall.d -O2 -D_FORTIFY_SOURCE=2 -g -c -o linux-user/syscall.o > /scm/qemu/linux-user/syscall.c > /scm/qemu/linux-user/syscall.c: In function ‘do_arch_prctl’: > /scm/qemu/linux-user/syscall.c:4283:10: error: ‘TARGET_ARCH_SET_GS’ > undeclared (first use in this function) > /scm/qemu/linux-user/syscall.c:4283:10: note: each undeclared identifier is > reported only once for each function it appears in > /scm/qemu/linux-user/syscall.c:4284:10: error: ‘TARGET_ARCH_SET_FS’ > undeclared (first use in this function) > /scm/qemu/linux-user/syscall.c:4292:10: error: ‘TARGET_ARCH_GET_GS’ > undeclared (first use in this function) > /scm/qemu/linux-user/syscall.c:4293:10: error: ‘TARGET_ARCH_GET_FS’ > undeclared (first use in this function) > /scm/qemu/linux-user/syscall.c: At top level: > /scm/qemu/linux-user/syscall.c:4276:17: error: ‘do_arch_prctl’ defined but > not used [-Werror=unused-function] > cc1: all warnings being treated as errors > > Should x86_64-linux-user be disabled if host is 32 bit?
Hmm no, I copy-pasted command line incorrectly. Debugging ... > -- > MST
