From owner-freebsd-ppc@FreeBSD.ORG Thu Jul 31 01:26:38 2003 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ED40037B401 for ; Thu, 31 Jul 2003 01:26:37 -0700 (PDT) Received: from fafoe.narf.at (chello212186121237.14.vie.surfer.at [212.186.121.237]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0A1B743F3F for ; Thu, 31 Jul 2003 01:26:37 -0700 (PDT) (envelope-from stefan@fafoe.narf.at) Received: from wombat.fafoe.narf.at (wombat.fafoe.narf.at [192.168.2.102]) by fafoe.narf.at (Postfix) with ESMTP id A93BE40C2; Thu, 31 Jul 2003 10:26:33 +0200 (CEST) Received: by wombat.fafoe.narf.at (Postfix, from userid 1001) id 11F305E; Thu, 31 Jul 2003 10:26:33 +0200 (CEST) Date: Thu, 31 Jul 2003 10:26:32 +0200 From: Stefan Farfeleder To: Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?= Message-ID: <20030731082631.GN563@wombat.fafoe.narf.at> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="KN5l+BnMqAQyZLvT" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.4i cc: ppc@freebsd.org Subject: Re: does powerpc build? X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Jul 2003 08:26:38 -0000 --KN5l+BnMqAQyZLvT Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit On Thu, Jul 31, 2003 at 10:07:05AM +0200, Dag-Erling Smørgrav wrote: > The tinderbox consistently fails while building gcc in the cross-tools > phase. There are two things that stand out in the logs: > > - I get a *lot* of warnings about "NO_IMPLICIT_EXTERN_C" being > redefined (both src/contrib/gcc/config/rs6000/sysv4.h and > src/gnu/usr.bin/cc/cc_tools/config.h define it). Those aren't > fatal, but they fill about half the log file. > > - The actual error that breaks the build is as follows (slightly > edited for clarity): You have to use something like the attached patch. Regards, Stefan Farfeleder --KN5l+BnMqAQyZLvT Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="ppc-gcc.diff" Index: contrib/gcc/config/rs6000/freebsd.h =================================================================== RCS file: /usr/home/ncvs/src/contrib/gcc/config/rs6000/freebsd.h,v retrieving revision 1.1.1.2 diff -u -r1.1.1.2 freebsd.h --- contrib/gcc/config/rs6000/freebsd.h 11 Jul 2003 03:40:53 -0000 1.1.1.2 +++ contrib/gcc/config/rs6000/freebsd.h 15 Jul 2003 22:17:12 -0000 @@ -43,6 +43,23 @@ #undef LINK_SHLIB_SPEC #define LINK_SHLIB_SPEC "%{shared:-shared} %{!shared: %{static:-static}}" +/* We don't want _BIG_ENDIAN or _LITTLE_ENDIAN to be defined. */ +#undef RS6000_CPU_CPP_ENDIAN_BUILTINS +#define RS6000_CPU_CPP_ENDIAN_BUILTINS() \ + do \ + { \ + if (BYTES_BIG_ENDIAN) \ + { \ + builtin_define ("__BIG_ENDIAN__"); \ + builtin_assert ("machine=bigendian"); \ + } \ + else \ + { \ + builtin_define ("__LITTLE_ENDIAN__"); \ + builtin_assert ("machine=littleendian"); \ + } \ + } \ + while (0) /************************[ Target stuff ]***********************************/ Index: contrib/gcc/config/rs6000/sysv4.h =================================================================== RCS file: /usr/home/ncvs/src/contrib/gcc/config/rs6000/sysv4.h,v retrieving revision 1.1.1.6 diff -u -r1.1.1.6 sysv4.h --- contrib/gcc/config/rs6000/sysv4.h 11 Jul 2003 03:40:53 -0000 1.1.1.6 +++ contrib/gcc/config/rs6000/sysv4.h 15 Jul 2003 20:35:39 -0000 @@ -21,8 +21,6 @@ Boston, MA 02111-1307, USA. */ -/* Header files should be C++ aware in general. */ -#define NO_IMPLICIT_EXTERN_C /* Yes! We are ELF. */ #define TARGET_OBJECT_FORMAT OBJECT_ELF Index: gnu/usr.bin/cc/cc_int/Makefile =================================================================== RCS file: /usr/home/ncvs/src/gnu/usr.bin/cc/cc_int/Makefile,v retrieving revision 1.34 diff -u -r1.34 Makefile --- gnu/usr.bin/cc/cc_int/Makefile 11 Jul 2003 05:37:23 -0000 1.34 +++ gnu/usr.bin/cc/cc_int/Makefile 15 Jul 2003 21:26:53 -0000 @@ -27,6 +27,10 @@ attribs.c cselib.c debug.c rtl-error.c tree-dump.c tree-inline.c SRCS+= ${GCC_CPU}.c +.if exists(${GCC_CPU}-c.c) +SRCS+= ${GCC_CPU}-c.c +.endif + SRCS+= bb-reorder.c conflict.c ggc-common.c \ ggc-page.c ifcvt.c lists.c predict.c regrename.c resource.c sibcall.c \ --KN5l+BnMqAQyZLvT--