From owner-freebsd-ppc@FreeBSD.ORG Sun Jun 29 17:12:14 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 6A5AD37B401; Sun, 29 Jun 2003 17:12:14 -0700 (PDT) Received: from gull.mail.pas.earthlink.net (gull.mail.pas.earthlink.net [207.217.120.84]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0245243FDD; Sun, 29 Jun 2003 17:12:14 -0700 (PDT) (envelope-from welchsm@earthlink.net) Received: from daisy.psp.pas.earthlink.net ([207.217.78.223]) by gull.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 19WmHD-0007ld-00; Sun, 29 Jun 2003 17:12:11 -0700 Received: from [207.217.78.202] by EarthlinkWAM via HTTP; Sun Jun 29 17:12:11 PDT 2003 Message-ID: <4778251.1056931931178.JavaMail.nobody@daisy.psp.pas.earthlink.net> Date: Sun, 29 Jun 2003 17:09:47 -0500 (GMT) From: Sean Welch To: grehan@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Earthlink Web Access Mail version 3.0 cc: freebsd-ppc@freebsd.org Subject: PPC progress X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Sean_Welch@alum.wofford.org List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jun 2003 00:12:14 -0000 It has been a while but I'm still interested in doing what testing I can. I updated my -CURRENT install just a few days ago so I should be good to go with a cross compile. (Just have to figure out this rc(ng) system so I can get it configured...) I saw last week that the buildworld was broken for ppc so I haven't tried the cross compile yet. Is that back on track? Is it still necessary to patch for the toolchain? Are we still using the same loader? Let me know what I can do to help. Sean From owner-freebsd-ppc@FreeBSD.ORG Sun Jun 29 17:24:22 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 85D8437B401 for ; Sun, 29 Jun 2003 17:24:22 -0700 (PDT) Received: from dommail.onthenet.com.au (dommail.OntheNet.com.au [203.13.70.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6BB5344027 for ; Sun, 29 Jun 2003 17:24:21 -0700 (PDT) (envelope-from grehan@freebsd.org) Received: from freebsd.org (CPE-203-45-244-178.qld.bigpond.net.au [203.45.244.178]) by dommail.onthenet.com.au (Mirapoint Messaging Server MOS 3.2.4-GA) with ESMTP id AAU49122 (AUTH peterg@ptree32.com.au); Mon, 30 Jun 2003 10:24:14 +1000 (EST) Sender: grehan@dommail.onthenet.com.au Message-ID: <3EFF8357.D3077E70@freebsd.org> Date: Mon, 30 Jun 2003 10:24:55 +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: Sean_Welch@alum.wofford.org References: <4778251.1056931931178.JavaMail.nobody@daisy.psp.pas.earthlink.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: freebsd-ppc@freebsd.org Subject: Re: PPC progress 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: Mon, 30 Jun 2003 00:24:22 -0000 Hi Sean, Support for some older (cheaper :) new-world Macs - the original iMacs, the B&W G3 and the PCI G4 should now work, although I'm still doing the bmac ethernet driver for these platforms. I've successfully used an Intel FXP card in a B&W G3. Peter Wemm did a fix for libgcc for amd64 that fixed the relocation problems with libstdc++, so it's now possible to view man pages on PPC :-) > I saw last week that the buildworld was broken for ppc > so I haven't tried the cross compile yet. Is that back > on track? Yep, it's working again. > Is it still necessary to patch for the toolchain? Yes - the patch David O'Brien posted is the one to use. > Are we still using the same loader? The loader in the tree won't boot from CDROM, but should be fine for net-booting. A CD-bootable loader can be obtained from http://www.freebsd.org/~grehan/loader > Let me know what I can do to help. Run it up and let me know how it goes :-) later, Peter. From owner-freebsd-ppc@FreeBSD.ORG Tue Jul 1 07:15:18 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 D5BC037B401; Tue, 1 Jul 2003 07:15:18 -0700 (PDT) Received: from gull.mail.pas.earthlink.net (gull.mail.pas.earthlink.net [207.217.120.84]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4DA1943F93; Tue, 1 Jul 2003 07:15:18 -0700 (PDT) (envelope-from welchsm@earthlink.net) Received: from bert.psp.pas.earthlink.net ([207.217.78.217]) by gull.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 19XLuf-0000DO-00; Tue, 01 Jul 2003 07:15:17 -0700 Received: from [207.217.78.14] by EarthlinkWAM via HTTP; Tue Jul 01 07:15:17 PDT 2003 Message-ID: <2398508.1057068917810.JavaMail.nobody@bert.psp.pas.earthlink.net> Date: Tue, 1 Jul 2003 07:15:10 -0500 (GMT) From: Sean Welch To: grehan@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Earthlink Web Access Mail version 3.0 cc: freebsd-ppc@freebsd.org Subject: Attempting to cross-compile newest -CURRENT X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Sean_Welch@alum.wofford.org List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Jul 2003 14:15:19 -0000 Well, I gave it a shot last night with mixed results. First I had trouble with the toolchain patch I had copied out of the lists a while back. Turns out it had a few extra line breaks (not surprising since I cut and pasted from a webpage) but it also seemed to have an extra "endif" in the part applied to freebsd.h; the build failed pretty quickly on that last. I glued the lines together and got rid of the endif (adjusted all the line numbers in the patch to take it into account) and it applied just fine but then the build broke on ps (???) telling me: /usr/src/bin/ps/print.c: In function `state': /usr/src/bin/ps/print.c:250: warning: comparison is always false due to limited range of data type *** Error code 1 Not sure it wasn't me, I cleaned out /usr/obj, did a make clean under /usr/src, cvsup'd again, reapplied the patch and started off the build again this morning. I suspect it will fail in the same place as I didn't see any changes to print.c, but again it could be just me. I figured I'd double check my procedure with you. I'm still using the following for a make command: make -DNO_BIND -DNOINFO -DNOGAMES -DNOPROFILE -DNOCRYPT -DNOSECURE -DNOLIBC_R -DNO_IPFILTER -DNOFORTH -DNO_FORTH TARGET_ARCH=powerpc buildworld | & tee /tmp/powerpc.log Are all of these options still needed? (It sure would be nice to have an ssh!) The patch I used on /usr/src is as follows (please post a new copy if this one has problems): Index: contrib/gcc/config/rs6000/freebsd.h =================================================================== RCS file: /home/ncvs/src/contrib/gcc/config/rs6000/freebsd.h,v retrieving revision 1.1.1.1 diff -u -r1.1.1.1 freebsd.h --- contrib/gcc/config/rs6000/freebsd.h 1 Feb 2002 18:15:22 -0000 1.1.1.1 +++ contrib/gcc/config/rs6000/freebsd.h 21 Mar 2003 17:11:00 -0000 @@ -23,6 +23,14 @@ #undef CPP_OS_DEFAULT_SPEC #define CPP_OS_DEFAULT_SPEC "%(cpp_os_freebsd)" +/* XXX */ +#undef CPP_ENDIAN_BIG_SPEC +#define CPP_ENDIAN_BIG_SPEC "-D__BIG_ENDIAN__ -Amachine=bigendian" + +/* XXX */ +#undef CPP_ENDIAN_LITTLE_SPEC +#define CPP_ENDIAN_LITTLE_SPEC "-D__LITTLE_ENDIAN__ -Amachine=littleendian" + #undef STARTFILE_DEFAULT_SPEC #define STARTFILE_DEFAULT_SPEC "%(startfile_freebsd)" @@ -38,6 +48,11 @@ #undef LINK_OS_DEFAULT_SPEC #define LINK_OS_DEFAULT_SPEC "%(link_os_freebsd)" +/* XXX: This is wrong for many platforms in sysv4.h. + We should work on getting that defination fixed. */ +#undef LINK_SHLIB_SPEC +#define LINK_SHLIB_SPEC "%{shared:-shared} %{!shared: %{static:-static}}" + /************************[ Target stuff ]***********************************/ @@ -47,6 +62,18 @@ /* rs6000.h gets this wrong for FreeBSD. We use the GCC defaults instead. */ #undef WCHAR_TYPE + +/* +XXX: SIZE_TYPE setting fixes: +/usr/obj/powerpc/usr/src/i386/usr/include/string.h:65: warning: conflicting types for built-in function `memcmp' +/usr/obj/powerpc/usr/src/i386/usr/include/string.h:66: warning: conflicting types for built-in function `memcpy' +/usr/obj/powerpc/usr/src/i386/usr/include/string.h:68: warning: conflicting types for built-in function `memset' +/usr/obj/powerpc/usr/src/i386/usr/include/string.h:94: warning: conflicting types for built-in function `strncat' +/usr/obj/powerpc/usr/src/i386/usr/include/string.h:95: warning: conflicting types for built-in function `strncmp' +/usr/obj/powerpc/usr/src/i386/usr/include/string.h:96: warning: conflicting types for built-in function `strncpy' +*/ +#undef SIZE_TYPE +#define SIZE_TYPE "unsigned int" #undef WCHAR_UNSIGNED #define WCHAR_UNSIGNED 0 Index: contrib/gcc/config/rs6000/sysv4.h =================================================================== RCS file: /home/ncvs/src/contrib/gcc/config/rs6000/sysv4.h,v retrieving revision 1.1.1.5 diff -u -r1.1.1.5 sysv4.h --- contrib/gcc/config/rs6000/sysv4.h 10 Feb 2003 05:41:43 -0000 1.1.1.5 +++ contrib/gcc/config/rs6000/sysv4.h 21 Mar 2003 17:04:49 -0000 @@ -326,7 +326,7 @@ /* Define this to set the endianness to use in libgcc2.c, which can not depend on target_flags. */ -#if !defined(_LITTLE_ENDIAN) && !defined(__sun__) +#if !defined(__LITTLE_ENDIAN__) && !defined(__sun__) #define LIBGCC2_WORDS_BIG_ENDIAN 1 #else #define LIBGCC2_WORDS_BIG_ENDIAN 0 @@ -1207,7 +1207,7 @@ /* FreeBSD support. */ #define CPP_OS_FREEBSD_SPEC "\ - -D__PPC__ -D__ppc__ -D__PowerPC__ -D__powerpc__ \ + -D__PPC__ -D__ppc__ -D__PowerPC__ -D__powerpc__ -D__ELF__ \ -Acpu=powerpc -Amachine=powerpc" #define STARTFILE_FREEBSD_SPEC FBSD_STARTFILE_SPEC @@ -1216,7 +1216,17 @@ #define LINK_START_FREEBSD_SPEC "" #define LINK_OS_FREEBSD_SPEC "\ - %{symbolic:-Bsymbolic}" + %{p:%e`-p' not supported; use `-pg' and gprof(1)} \ + %{Wl,*:%*} \ + %{v:-V} \ + %{assert*} %{R*} %{rpath*} %{defsym*} \ + %{shared:-Bshareable %{h*} %{soname*}} \ + %{!shared: \ + %{!static: \ + %{rdynamic: -export-dynamic} \ + %{!dynamic-linker: -dynamic-linker /usr/libexec/ld-elf.so.1}} \ + %{static:-Bstatic}} \ + %{symbolic:-Bsymbolic}" /* GNU/Linux support. */ #ifdef USE_GNULIBC_1 From owner-freebsd-ppc@FreeBSD.ORG Tue Jul 1 07:39:11 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 33B0B37B401; Tue, 1 Jul 2003 07:39:11 -0700 (PDT) Received: from pintail.mail.pas.earthlink.net (pintail.mail.pas.earthlink.net [207.217.120.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8F26743FF5; Tue, 1 Jul 2003 07:39:10 -0700 (PDT) (envelope-from welchsm@earthlink.net) Received: from louie.psp.pas.earthlink.net ([207.217.78.221]) by pintail.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 19XMHi-0007MK-00; Tue, 01 Jul 2003 07:39:06 -0700 Received: from [207.217.78.13] by EarthlinkWAM via HTTP; Tue Jul 01 07:39:05 PDT 2003 Message-ID: <4776057.1057070346016.JavaMail.nobody@louie.psp.pas.earthlink.net> Date: Tue, 1 Jul 2003 07:39:03 -0500 (GMT) From: Sean Welch To: grehan@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Earthlink Web Access Mail version 3.0 cc: freebsd-ppc@freebsd.org Subject: Follow-up on the rebuild X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Sean_Welch@alum.wofford.org List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Jul 2003 14:39:11 -0000 As expected, my new attempt to build failed in the same manner. The line above the error message I sent earlier is: cc1: warnings being treated as errors Guess this means I just need to wait until someone else sorts this out. (Should have stuck with the code I built successfully for i386 3 days ago...) Sean From owner-freebsd-ppc@FreeBSD.ORG Tue Jul 1 07:48:17 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 D09CA37B401; Tue, 1 Jul 2003 07:48:17 -0700 (PDT) Received: from swan.mail.pas.earthlink.net (swan.mail.pas.earthlink.net [207.217.120.123]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6516844029; Tue, 1 Jul 2003 07:48:17 -0700 (PDT) (envelope-from welchsm@earthlink.net) Received: from grover.mail.pas.earthlink.net ([207.217.121.249] helo=grover.psp.pas.earthlink.net) by swan.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 19XMQa-0002eR-00; Tue, 01 Jul 2003 07:48:17 -0700 Received: from [207.217.78.205] by EarthlinkWAM via HTTP; Tue Jul 01 07:48:16 PDT 2003 Message-ID: <3085007.1057070896891.JavaMail.nobody@grover.psp.pas.earthlink.net> Date: Tue, 1 Jul 2003 07:48:13 -0500 (GMT) From: Sean Welch To: grehan@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Earthlink Web Access Mail version 3.0 cc: freebsd-ppc@freebsd.org Subject: rescue build failure X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Sean_Welch@alum.wofford.org List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Jul 2003 14:48:18 -0000 Aha. I see I'm not the only one with this problem: http://docs.freebsd.org/cgi/getmsg.cgi?fetch=384463+0+current/freebsd-current Sean From owner-freebsd-ppc@FreeBSD.ORG Tue Jul 1 11:56:22 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 1648137B401; Tue, 1 Jul 2003 11:56:22 -0700 (PDT) Received: from dragon.nuxi.com (trang.nuxi.com [66.93.134.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6064543FDF; Tue, 1 Jul 2003 11:56:21 -0700 (PDT) (envelope-from obrien@NUXI.com) Received: from dragon.nuxi.com (obrien@localhost [127.0.0.1]) by dragon.nuxi.com (8.12.9/8.12.9) with ESMTP id h61IuIaQ060389; Tue, 1 Jul 2003 11:56:18 -0700 (PDT) (envelope-from obrien@dragon.nuxi.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.12.9/8.12.9/Submit) id h61IuHHX060355; Tue, 1 Jul 2003 11:56:17 -0700 (PDT) Date: Tue, 1 Jul 2003 11:56:17 -0700 From: "David O'Brien" To: Sean_Welch@alum.wofford.org Message-ID: <20030701185617.GA57350@dragon.nuxi.com> References: <4776057.1057070346016.JavaMail.nobody@louie.psp.pas.earthlink.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4776057.1057070346016.JavaMail.nobody@louie.psp.pas.earthlink.net> User-Agent: Mutt/1.4i X-Operating-System: FreeBSD 5.1-CURRENT Organization: The NUXI BSD Group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 cc: grehan@freebsd.org cc: freebsd-ppc@freebsd.org Subject: Re: Follow-up on the rebuild X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: obrien@freebsd.org List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Jul 2003 18:56:22 -0000 On Tue, Jul 01, 2003 at 07:39:03AM -0500, Sean Welch wrote: > As expected, my new attempt to build failed in the same manner. > > The line above the error message I sent earlier is: > > cc1: warnings being treated as errors Add -DNO_WERROR to your build. From owner-freebsd-ppc@FreeBSD.ORG Tue Jul 1 12:07:57 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 5249237B401; Tue, 1 Jul 2003 12:07:57 -0700 (PDT) Received: from falcon.mail.pas.earthlink.net (falcon.mail.pas.earthlink.net [207.217.120.74]) by mx1.FreeBSD.org (Postfix) with ESMTP id D165744028; Tue, 1 Jul 2003 12:07:56 -0700 (PDT) (envelope-from welchsm@earthlink.net) Received: from gonzo.psp.pas.earthlink.net ([207.217.78.242]) by falcon.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 19XQTs-0006N0-00; Tue, 01 Jul 2003 12:07:56 -0700 Received: from [207.217.78.11] by EarthlinkWAM via HTTP; Tue Jul 01 12:07:56 PDT 2003 Message-ID: <7288849.1057086476079.JavaMail.nobody@gonzo.psp.pas.earthlink.net> Date: Tue, 1 Jul 2003 12:07:53 -0500 (GMT) From: Sean Welch To: obrien@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Earthlink Web Access Mail version 3.0 cc: grehan@freebsd.org cc: freebsd-ppc@freebsd.org Subject: Re: Follow-up on the rebuild X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Sean_Welch@alum.wofford.org List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Jul 2003 19:07:57 -0000 Okay. I'll give that a try. Thanks! Sean -------Original Message------- From: David O'Brien Sent: 07/01/03 06:56 PM To: Sean_Welch@alum.wofford.org Subject: Re: Follow-up on the rebuild > > On Tue, Jul 01, 2003 at 07:39:03AM -0500, Sean Welch wrote: > As expected, my new attempt to build failed in the same manner. > > The line above the error message I sent earlier is: > > cc1: warnings being treated as errors Add -DNO_WERROR to your build. > From owner-freebsd-ppc@FreeBSD.ORG Tue Jul 1 16:43:36 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 46DC737B401 for ; Tue, 1 Jul 2003 16:43:36 -0700 (PDT) Received: from dommail.onthenet.com.au (dommail.OntheNet.com.au [203.13.70.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id D10804405A for ; Tue, 1 Jul 2003 16:43:34 -0700 (PDT) (envelope-from peterg@ptree32.com.au) Received: from ptree32.com.au (CPE-203-45-244-178.qld.bigpond.net.au [203.45.244.178]) by dommail.onthenet.com.au (Mirapoint Messaging Server MOS 3.2.4-GA) with ESMTP id AAU99012 (AUTH peterg@ptree32.com.au); Wed, 2 Jul 2003 09:43:29 +1000 (EST) Sender: grehan@ptree32.com.au Message-ID: <3F021CDC.13B9F1EA@ptree32.com.au> Date: Wed, 02 Jul 2003 09:44:28 +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: Sean_Welch@alum.wofford.org References: <2398508.1057068917810.JavaMail.nobody@bert.psp.pas.earthlink.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: freebsd-ppc@freebsd.org Subject: Re: Attempting to cross-compile newest -CURRENT 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: Tue, 01 Jul 2003 23:43:36 -0000 Hi Sean, > I figured I'd double check my procedure with you. > > I'm still using the following for a make command: > > make -DNO_BIND -DNOINFO -DNOGAMES -DNOPROFILE -DNOCRYPT -DNOSECURE -DNOLIBC_R -DNO_IPFILTER -DNOFORTH -DNO_FORTH TARGET_ARCH=powerpc buildworld | & tee /tmp/powerpc.log > > Are all of these options still needed? (It sure would be nice > to have an ssh!) PPC buildworld is done with "-DNOLIBC_R -DNOFORTH". You shouldn't have to use -DNO_WARN. DES has a periodic tinderbox build for PPC (and other arches), with the results up at http://triangle.rtp.FreeBSD.Org/~des/ That's a good option to see if there's generic build-breakage (e.g. the recent /rescue problems, which were fixed as of a few minutes ago). > The patch I used on /usr/src is as follows (please post a new > copy if this one has problems): I think that's a little out of data. The only file that needs to be patched now is rs6000/config/freebsd.h, and the diff is at www.freebsd.org/~grehan/freebsd.h.diff later, Peter. From owner-freebsd-ppc@FreeBSD.ORG Wed Jul 2 14:35:42 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 D16AA37B426 for ; Wed, 2 Jul 2003 14:35:42 -0700 (PDT) Received: from grouse.mail.pas.earthlink.net (grouse.mail.pas.earthlink.net [207.217.120.116]) by mx1.FreeBSD.org (Postfix) with ESMTP id 57CC343F3F for ; Wed, 2 Jul 2003 14:35:42 -0700 (PDT) (envelope-from welchsm@earthlink.net) Received: from ernie.psp.pas.earthlink.net ([207.217.78.243]) by grouse.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 19XpGM-0001Sw-00; Wed, 02 Jul 2003 14:35:38 -0700 Received: from [207.217.78.203] by EarthlinkWAM via HTTP; Wed Jul 02 14:35:38 PDT 2003 Message-ID: <1382382.1057181738346.JavaMail.nobody@ernie.psp.pas.earthlink.net> Date: Wed, 2 Jul 2003 14:33:32 -0500 (GMT) From: Sean Welch To: Peter Grehan Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Earthlink Web Access Mail version 3.0 cc: freebsd-ppc@freebsd.org Subject: Re: Attempting to cross-compile newest -CURRENT X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Sean_Welch@alum.wofford.org List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jul 2003 21:35:43 -0000 Thanks much! I've made the corresponding changes to my environment so I think I'm ready to go. By the way, I added -DNO_WERROR to the list on O'Brien's suggestion. I removed the -DNOFORTH option; should I also remove the -DNO_FORTH option? If not, what is the difference? I did run into another rather strange problem yesterday and I'm not sure what to do about it. I'm going to have to post a message to the current mailing list about it I think. I stopped a cross-compile in the middle and then restarted. I got a kernel panic and was dropped down into the debugger with a complaint that a directory didn't exist (or some such). I glanced at the kernel dump but didn't save it. After rebooting into single user mode I ran fsck manually (been having bad results with background fsck lately) and ended up finding that my /usr/obj contained "unexpected softupdate inconsistency"s. I had it fix them and got everything running again but now I have a directory that shows empty using every swich on ls but refuses to be removed (even with a force and after a chflags) with a message that the directory isn't empty. ?!?! I can change the name but not move it to another partition. Any suggestions before I mail the current list? I was really hoping not to have to newfs this thing and start over. It doesn't seem to be hurting anything and I suppose I could try to rename it to something else and just live with it.... Sean -------Original Message------- From: Peter Grehan Sent: 07/01/03 06:44 PM To: Sean_Welch@alum.wofford.org Subject: Re: Attempting to cross-compile newest -CURRENT > > Hi Sean, > I figured I'd double check my procedure with you. > > I'm still using the following for a make command: > > make -DNO_BIND -DNOINFO -DNOGAMES -DNOPROFILE -DNOCRYPT -DNOSECURE -DNOLIBC_R -DNO_IPFILTER -DNOFORTH -DNO_FORTH TARGET_ARCH=powerpc buildworld | & tee /tmp/powerpc.log > > Are all of these options still needed? (It sure would be nice > to have an ssh!) PPC buildworld is done with "-DNOLIBC_R -DNOFORTH". You shouldn't have to use -DNO_WARN. DES has a periodic tinderbox build for PPC (and other arches), with the results up at http://triangle.rtp.FreeBSD.Org/~des/ That's a good option to see if there's generic build-breakage (e.g. the recent /rescue problems, which were fixed as of a few minutes ago). > The patch I used on /usr/src is as follows (please post a new > copy if this one has problems): I think that's a little out of data. The only file that needs to be patched now is rs6000/config/freebsd.h, and the diff is at www.freebsd.org/~grehan/freebsd.h.diff later, Peter. > From owner-freebsd-ppc@FreeBSD.ORG Wed Jul 2 19:12:09 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 4417537B401 for ; Wed, 2 Jul 2003 19:12:09 -0700 (PDT) Received: from dommail.onthenet.com.au (dommail.OntheNet.com.au [203.13.70.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3C2C843FAF for ; Wed, 2 Jul 2003 19:12:08 -0700 (PDT) (envelope-from grehan@freebsd.org) Received: from freebsd.org (CPE-203-45-244-178.qld.bigpond.net.au [203.45.244.178]) by dommail.onthenet.com.au (Mirapoint Messaging Server MOS 3.2.4-GA) with ESMTP id AAV28652 (AUTH peterg@ptree32.com.au); Thu, 3 Jul 2003 12:11:58 +1000 (EST) Sender: grehan@dommail.onthenet.com.au Message-ID: <3F039133.A4190609@freebsd.org> Date: Thu, 03 Jul 2003 12:13:07 +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: Sean_Welch@alum.wofford.org References: <1382382.1057181738346.JavaMail.nobody@ernie.psp.pas.earthlink.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: freebsd-ppc@freebsd.org Subject: Re: Attempting to cross-compile newest -CURRENT 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, 03 Jul 2003 02:12:09 -0000 Hi Sean, > By the way, I added -DNO_WERROR to the list on O'Brien's > suggestion. As I mentioned, that shouldn't be necessary, and might only hide some errors. > I removed the -DNOFORTH option; should I also > remove the -DNO_FORTH option? If not, what is the difference? The loader won't work due to a memory alloc error - still to be debugged. The -DNO_FORTH was a type - it should have been -DNOFORTH. > I did run into another rather strange problem yesterday > and I'm not sure what to do about it. I'm going to have > to post a message to the current mailing list about it > I think. ... > Any suggestions before I mail the current list? Get a backtrace from the debugger (db> t) and post that with the bug report. You might want to disable background fsck in the meantime in your /etc/rc.conf later, Peter. From owner-freebsd-ppc@FreeBSD.ORG Thu Jul 3 09:52:00 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 7CF7637B401; Thu, 3 Jul 2003 09:52:00 -0700 (PDT) Received: from avocet.mail.pas.earthlink.net (avocet.mail.pas.earthlink.net [207.217.120.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9D93A4400B; Thu, 3 Jul 2003 09:51:59 -0700 (PDT) (envelope-from welchsm@earthlink.net) Received: from huey.psp.pas.earthlink.net ([207.217.78.220]) by avocet.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 19Y7JP-0007Ca-00; Thu, 03 Jul 2003 09:51:59 -0700 Received: from [207.217.78.205] by EarthlinkWAM via HTTP; Thu Jul 03 09:51:59 PDT 2003 Message-ID: <2054641.1057251119151.JavaMail.nobody@huey.psp.pas.earthlink.net> Date: Thu, 3 Jul 2003 09:49:53 -0500 (GMT) From: Sean Welch To: Peter Grehan Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Earthlink Web Access Mail version 3.0 cc: freebsd-ppc@freebsd.org Subject: Re: Attempting to cross-compile newest -CURRENT X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Sean_Welch@alum.wofford.org List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jul 2003 16:52:00 -0000 Okay. I've made those changes in my make line... The compiled loader has a problem? I'll use the one from your website, then. Unfortunately I can't send in a debug trace because it isn't a recurring problem. I'm dealing with the results of trying to fix the last kernel panic... Maybe I should go ahead and wipe it out and reinstall using 5.1-RELEASE. Then I can update right away... Bummer. Sean -------Original Message------- From: Peter Grehan Sent: 07/02/03 09:13 PM To: Sean_Welch@alum.wofford.org Subject: Re: Attempting to cross-compile newest -CURRENT > > Hi Sean, > By the way, I added -DNO_WERROR to the list on O'Brien's > suggestion. As I mentioned, that shouldn't be necessary, and might only hide some errors. > I removed the -DNOFORTH option; should I also > remove the -DNO_FORTH option? If not, what is the difference? The loader won't work due to a memory alloc error - still to be debugged. The -DNO_FORTH was a type - it should have been -DNOFORTH. > I did run into another rather strange problem yesterday > and I'm not sure what to do about it. I'm going to have > to post a message to the current mailing list about it > I think. ... > Any suggestions before I mail the current list? Get a backtrace from the debugger (db> t) and post that with the bug report. You might want to disable background fsck in the meantime in your /etc/rc.conf later, Peter. > From owner-freebsd-ppc@FreeBSD.ORG Sat Jul 5 01:00:19 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 40E8B37B401 for ; Sat, 5 Jul 2003 01:00:19 -0700 (PDT) Received: from dommail.onthenet.com.au (dommail.OntheNet.com.au [203.13.70.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id D223C4400F for ; Sat, 5 Jul 2003 01:00:17 -0700 (PDT) (envelope-from peterg@ptree32.com.au) Received: from dommail.onthenet.com.au (localhost.onthenet.com.au [127.0.0.1]) by dommail.onthenet.com.au (Mirapoint Messaging Server MOS 3.2.4-GA) with ESMTP id AAV65384; Sat, 5 Jul 2003 18:00:01 +1000 (EST) From: Message-Id: <200307050800.AAV65384@dommail.onthenet.com.au> Received: from 139.134.64.157 by dommail.onthenet.com.au (Mirapoint Messaging Server MOS 3.2.4-GA) with HTTP/1.1; Sat, 5 Jul 2003 18:00:01 +1000 Date: Sat, 5 Jul 2003 18:00:01 +1000 To: Sean_Welch@alum.wofford.org X-Mailer: Webmail Mirapoint Direct 3.2.4-GA MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: freebsd-ppc@freebsd.org Subject: Re: Attempting to cross-compile newest -CURRENT 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: Sat, 05 Jul 2003 08:00:19 -0000 Hi Sean, >The compiled loader has a problem? I'll use the one from your >website, then. Not really - the two mods I made (in the one on the website) were to sync the i-cache after the load (maybe not needed) and to modify the CD9660 code so it could read hybrid-HFS formatted CDs, which OpenFirmware requires. You should be able to net-boot fine with the loader from the tree. >Maybe I should go ahead and wipe >it out and reinstall using 5.1-RELEASE. Then I can update >right away... Yes, that may get you going faster. later, Peter. From owner-freebsd-ppc@FreeBSD.ORG Sat Jul 5 07:36:03 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 5604137B401 for ; Sat, 5 Jul 2003 07:36:03 -0700 (PDT) Received: from conure.mail.pas.earthlink.net (conure.mail.pas.earthlink.net [207.217.120.54]) by mx1.FreeBSD.org (Postfix) with ESMTP id D550F43FBF for ; Sat, 5 Jul 2003 07:36:02 -0700 (PDT) (envelope-from welchsm@earthlink.net) Received: from misspiggy.psp.pas.earthlink.net ([207.217.78.246]) by conure.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 19Yo8q-0007Hl-00; Sat, 05 Jul 2003 07:35:56 -0700 Received: from [207.217.78.16] by EarthlinkWAM via HTTP; Sat Jul 05 07:35:56 PDT 2003 Message-ID: <607692.1057415756667.JavaMail.nobody@misspiggy.psp.pas.earthlink.net> Date: Sat, 5 Jul 2003 07:33:31 -0500 (GMT) From: Sean Welch To: peterg@ptree32.com.au Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Earthlink Web Access Mail version 3.0 cc: freebsd-ppc@freebsd.org Subject: Re: Attempting to cross-compile newest -CURRENT X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Sean_Welch@alum.wofford.org List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Jul 2003 14:36:03 -0000 Thanks for the clarification. It'll be a couple of days before I can try a reinstall. I'm hoping the problem that caused 5.0-RELEASE to trash all of my disklabels has been fixed. That wasn't a pleasant 3.5 hours figuring out how to get my data back... Sean -------Original Message------- From: peterg@ptree32.com.au Sent: 07/05/03 03:00 AM To: Sean_Welch@alum.wofford.org Subject: Re: Attempting to cross-compile newest -CURRENT > > Hi Sean, >The compiled loader has a problem? I'll use the one from your >website, then. Not really - the two mods I made (in the one on the website) were to sync the i-cache after the load (maybe not needed) and to modify the CD9660 code so it could read hybrid-HFS formatted CDs, which OpenFirmware requires. You should be able to net-boot fine with the loader from the tree. >Maybe I should go ahead and wipe >it out and reinstall using 5.1-RELEASE. Then I can update >right away... Yes, that may get you going faster. later, Peter. >