From owner-freebsd-amd64@FreeBSD.ORG Fri Sep 8 15:32:42 2006 Return-Path: X-Original-To: freebsd-amd64@hub.freebsd.org Delivered-To: freebsd-amd64@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7760E16A4DE for ; Fri, 8 Sep 2006 15:32:42 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id B315E43D81 for ; Fri, 8 Sep 2006 15:30:38 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k88FUWtH071220 for ; Fri, 8 Sep 2006 15:30:32 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k88FUWfU071219; Fri, 8 Sep 2006 15:30:32 GMT (envelope-from gnats) Date: Fri, 8 Sep 2006 15:30:32 GMT Message-Id: <200609081530.k88FUWfU071219@freefall.freebsd.org> To: freebsd-amd64@FreeBSD.org From: John Baldwin Cc: Subject: Re: amd64/102996: powerpc cross-build fails on amd64 host, works fine on i386 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: John Baldwin List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Sep 2006 15:32:42 -0000 The following reply was made to PR amd64/102996; it has been noted by GNATS. From: John Baldwin To: freebsd-amd64@freebsd.org Cc: Peter Grehan , freebsd-gnats-submit@freebsd.org Subject: Re: amd64/102996: powerpc cross-build fails on amd64 host, works fine on i386 Date: Fri, 8 Sep 2006 11:10:52 -0400 On Thursday 07 September 2006 17:51, Peter Grehan wrote: > %%% > Index: Makefile > =================================================================== > RCS file: /home/ncvs/src/gnu/usr.bin/binutils/libbfd/Makefile,v > retrieving revision 1.33 > diff -u -r1.33 Makefile > --- Makefile 24 Oct 2004 15:32:25 -0000 1.33 > +++ Makefile 26 Aug 2006 00:48:26 -0000 > @@ -48,6 +48,12 @@ > CFLAGS+= -DSELECT_VECS="${SELVEC}" > CFLAGS+= -DDEFAULT_VECTOR=${DEFAULT_VECTOR} > > +.if ${TARGET_ARCH:M*64} > +CFLAGS+= -DTARGET_64BIT=1 > +.else > +CFLAGS+= -DTARGET_64BIT=0 > +.endif > + This doesn't match alpha (though that only matters if you MFC this). Seems that a more general purpose solution would be to test TARGET_ARCH and use that to set TARGET properties (i.e. the bug seems to be that it's setting TARGET properties based on the host arch, which is wrong). -- John Baldwin