From owner-freebsd-ppc Thu Feb 20 16: 5:22 2003 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 4A16237B401; Thu, 20 Feb 2003 16:05:21 -0800 (PST) Received: from gt3.OntheNet.com.au (nt.com.au [203.13.70.61]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0BA1A43FDF; Thu, 20 Feb 2003 16:05:20 -0800 (PST) (envelope-from grehan@freebsd.org) Received: from freebsd.org (CPE-203-45-238-180.qld.bigpond.net.au [203.45.238.180]) by gt3.OntheNet.com.au (8.12.6/8.12.6) with ESMTP id h1L05MVU078467; Fri, 21 Feb 2003 10:05:22 +1000 (EST) (envelope-from grehan@freebsd.org) Message-ID: <3E556D95.37339AF0@freebsd.org> Date: Fri, 21 Feb 2003 10:06:45 +1000 From: Peter Grehan X-Mailer: Mozilla 4.79 [en] (X11; U; Linux 2.2.14-12 i686) X-Accept-Language: en MIME-Version: 1.0 To: Benno Rice Cc: freebsd-powerpc@freebsd.org Subject: Re: Patch to allow buildworld for powerpc References: <1045782782.618.48.camel@localhost> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-ppc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > You will notice when building world that you get a lot of warnings from > gcc about the prototypes for various mem* and str* functions differing > from it's builtins. I'm talking to the toolchain guys at the moment > about fixing these. You should have talked to me :-) rs6000/rs6000.h has the wrong definition of SIZE_TYPE for FreeBSD, which causes conflicts with the builtin mem/str functions. It needed to be overridden in rs6000/freebsd.h. For those who want to start building, I've put the gcc diffs up at people.freebsd.org/~grehan/gcc_diffs.tgz > The command I use to build world is: > > make -DNO_WERROR -DNO_BIND -DNOSHARED -DNOINFO -DNOGAMES -DNOPROFILE > -DNOSHARE -DNOCRYPT -DNOSECURE -DNOLIBC_R -DNO_IPFILTER -DNO_CXX > -DNOFORTH -DNO_FORTH TARGET_ARCH=powerpc buildworld You should take out -DNO_WERROR, -DNO_CXX, and -DNOSHARED. buildworld is clean with the above gcc patch, C++ builds fine, and shared libs have been working since the rtld checkin. Note there is a problem at runtime with libstdc++, hopefully that'll be fixed soon. later, Peter. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ppc" in the body of the message