Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 May 2002 12:57:54 -0700
From:      Peter Wemm <peter@wemm.org>
To:        Ruslan Ermilov <ru@FreeBSD.ORG>
Cc:        ia64@FreeBSD.ORG, "David O'Brien" <obrien@FreeBSD.ORG>
Subject:   Re: Cross-building ia64 on i386 does not work 
Message-ID:  <20020515195754.AA60339F8@overcee.wemm.org>
In-Reply-To: <20020515164720.GB70702@sunbay.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020515195754.AA60339F8>