From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:37200) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UhHoB-0005a6-JO for qemu-devel@nongnu.org; Tue, 28 May 2013 07:11:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UhHo5-0005OS-4I for qemu-devel@nongnu.org; Tue, 28 May 2013 07:11:15 -0400 Received: from mx1.redhat.com ([209.132.183.28]:38641) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UhHo4-0005OK-Se for qemu-devel@nongnu.org; Tue, 28 May 2013 07:11:09 -0400 Date: Tue, 28 May 2013 14:11:22 +0300 From: "Michael S. Tsirkin" Message-ID: <20130528111121.GA6889@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] error building x86_64-linux-user on i686 host List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: riku.voipio@iki.fi 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/s= cm/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_BI= TS=3D64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wu= ndef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -Wendif-lab= els -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-ki= t-1 -I/usr/include/libpng15 -I/usr/include/libusb-1.0 -I/usr/incl= ude/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=3D2 -g = -c -o linux-user/syscall.o /scm/qemu/linux-user/syscall.c /scm/qemu/linux-user/syscall.c: In function =E2=80=98do_arch_prctl=E2=80=99: /scm/qemu/linux-user/syscall.c:4283:10: error: =E2=80=98TARGET_ARCH_SET_GS= =E2=80=99 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: =E2=80=98TARGET_ARCH_SET_FS= =E2=80=99 undeclared (first use in this function) /scm/qemu/linux-user/syscall.c:4292:10: error: =E2=80=98TARGET_ARCH_GET_GS= =E2=80=99 undeclared (first use in this function) /scm/qemu/linux-user/syscall.c:4293:10: error: =E2=80=98TARGET_ARCH_GET_FS= =E2=80=99 undeclared (first use in this function) /scm/qemu/linux-user/syscall.c: At top level: /scm/qemu/linux-user/syscall.c:4276:17: error: =E2=80=98do_arch_prctl=E2=80= =99 defined but not used [-Werror=3Dunused-function] cc1: all warnings being treated as errors Should x86_64-linux-user be disabled if host is 32 bit? --=20 MST