From owner-freebsd-ia64 Wed May 15 12:58: 1 2002 Delivered-To: freebsd-ia64@freebsd.org Received: from evilpete.dyndns.org (12-232-26-46.client.attbi.com [12.232.26.46]) by hub.freebsd.org (Postfix) with ESMTP id 7E5A937B401; Wed, 15 May 2002 12:57:57 -0700 (PDT) Received: from overcee.wemm.org ([10.0.0.3]) by evilpete.dyndns.org (8.11.6/8.11.6) with ESMTP id g4FJvs100909; Wed, 15 May 2002 12:57:55 -0700 (PDT) (envelope-from peter@wemm.org) Received: from wemm.org (localhost [127.0.0.1]) by overcee.wemm.org (Postfix) with ESMTP id AA60339F8; Wed, 15 May 2002 12:57:54 -0700 (PDT) (envelope-from peter@wemm.org) X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: Ruslan Ermilov Cc: ia64@FreeBSD.ORG, "David O'Brien" Subject: Re: Cross-building ia64 on i386 does not work In-Reply-To: <20020515164720.GB70702@sunbay.com> Date: Wed, 15 May 2002 12:57:54 -0700 From: Peter Wemm Message-Id: <20020515195754.AA60339F8@overcee.wemm.org> Sender: owner-freebsd-ia64@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Ruslan Ermilov wrote: > Hi! > > While attempting to cross-build ia64 (make buildworld TARGET_ARCH=3Dia64), > I hit this problem: > : cc -O -pipe -Wall -Wno-format-y2k -Wno-uninitialized -o adventure ma= > in.o init.o done.o save.o subr.o vocab.o wizard.o io.o data.o crc.o=20 > : /usr/obj/ia64/CURRENT/usr/src/i386/usr/lib/libc.so: undefined reference t= > o `__builtin_va_end' > : /usr/obj/ia64/CURRENT/usr/src/i386/usr/lib/libc.so: undefined reference t= > o `__builtin_stdarg_start' > : *** Error code 1 > :=20 > : Stop in /CURRENT/usr/src/games/adventure. > : *** Error code 1 Yes, there are a stack of outstanding configuration issues with gcc still. See: http://people.freebsd.org/~peter/ia64gcc.diff In particular, you need: echo '' >> ${.TARGET} + echo '#define TARGET_CPU_DEFAULT (MASK_GNU_AS|MASK_GNU_LD)' >> ${.TARGET} echo '#include "ansidecl.h"' >> ${.TARGET} in cc_tools/Makefile. Without this, the ia64 target defaults to Intel assembler mode, and this does not work on gas very well at all. When using ./configure, this is detected by default. The diff above is out of date, I need to resync it and retest after David's cleanups. But to the best of my knowledge, the ia64 is not buildable from the gcc cvs yet. The diff above is a slightly stale hack from p4 while David sorts out the right thing to do. Cheers, -Peter -- Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com "All of this is for nothing if we don't go to the stars" - JMS/B5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ia64" in the body of the message