From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:40685) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UhI3Q-0004B8-R8 for qemu-devel@nongnu.org; Tue, 28 May 2013 07:27:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UhI3H-0002Bm-U9 for qemu-devel@nongnu.org; Tue, 28 May 2013 07:27:00 -0400 Received: from mx1.redhat.com ([209.132.183.28]:7590) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UhI3H-0002BW-LR for qemu-devel@nongnu.org; Tue, 28 May 2013 07:26:51 -0400 Date: Tue, 28 May 2013 14:27:06 +0300 From: "Michael S. Tsirkin" Message-ID: <20130528112706.GA9821@redhat.com> References: <20130528111121.GA6889@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <20130528111121.GA6889@redhat.com> Subject: Re: [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 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: >=20 > [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/lin= ux-user -Ilinux-user -Werror -fPIE -DPIE -m32 -D_GNU_SOURCE -D_FILE_OFFSET_= BITS=3D64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -= Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -Wendif-l= abels -Wmissing-include-dirs -Wempty-body -Wnested-externs -Wformat-securit= y -Wformat-y2k -Winit-self -Wignored-qualifiers -Wold-style-declaration -Wo= ld-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/in= clude/pixman-1 -I../linux-headers -I.. -I/scm/qemu/target-i386 -DNEED_C= PU_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 -M= T 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_G= S=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_F= S=E2=80=99 undeclared (first use in this function) > /scm/qemu/linux-user/syscall.c:4292:10: error: =E2=80=98TARGET_ARCH_GET_G= S=E2=80=99 undeclared (first use in this function) > /scm/qemu/linux-user/syscall.c:4293:10: error: =E2=80=98TARGET_ARCH_GET_F= S=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 >=20 > Should x86_64-linux-user be disabled if host is 32 bit? Hmm no, I copy-pasted command line incorrectly. Debugging ... > --=20 > MST