From owner-freebsd-ppc Wed Jul 10 19: 6:50 2002 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 15B1E37B400 for ; Wed, 10 Jul 2002 19:06:47 -0700 (PDT) Received: from wantpackets.com (wantpackets.com [208.8.54.110]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5F62143E54 for ; Wed, 10 Jul 2002 19:06:46 -0700 (PDT) (envelope-from andy@wantpackets.com) Received: from wantpackets.com (www@wantpackets.com [208.8.54.110]) by wantpackets.com (8.12.3/8.12.3) with ESMTP id g6B28Fa6075858 for ; Wed, 10 Jul 2002 22:08:15 -0400 (EDT) (envelope-from andy@wantpackets.com) Received: (from www@localhost) by wantpackets.com (8.12.3/8.12.3/Submit) id g6B28EU9075857 for freebsd-ppc@freebsd.org; Wed, 10 Jul 2002 22:08:14 -0400 (EDT) (envelope-from andy@wantpackets.com) From: Andy X-Authentication-Warning: wantpackets.com: www set sender to andy@localhost using -f To: freebsd-ppc@freebsd.org Subject: Re: current -CURRENT and compiling powerpc port Message-ID: <1026353294.3d2ce88eaf694@www.wantpackets.com> Date: Wed, 10 Jul 2002 22:08:14 -0400 (EDT) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: IMP/PHP IMAP webmail program 2.2.7 X-Originating-IP: 216.65.176.247 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 Quoting Benno Rice : > On Thu, 2002-07-11 at 11:13, Andy wrote: > > Hello, > > > > > > I have kept up with -CURRENT on my ia32 laptop for a while, and > have been > > interested in the powerpc port. I have tried to compile it with the > Oct > > 18,2001 > > instructions but fail. > > > http://www.FreeBSD.org/cgi/getmsg.cgi?fetch=19592+25100+/usr/local/www/db/text/2001/freebsd-ppc/20011021.freebsd-ppc > > I have hacked along, but still fail. I used makeoptions > -D__powerpc__ to get > > the kernel to compile past the first object. Besides this, and a > hack to a .h > > file (proc.h [can't tell line numbers in vi, but change > ar_args[] to > > ar_args[512] to get it to compile]), the sources are clean but fail > linking the > > objects. > > /sys/powerpc/compile/GENERIC/../../../kern/init_main.c:199: > undefined > > reference to `sysinit_set' > > /sys/powerpc/compile/GENERIC/../../../kern/init_main.c:323: > undefined > > reference to `aout_sysvec' > > /sys/powerpc/compile/GENERIC/../../../kern/kern_linker.c:289: > undefined > > reference to `modmetadata_set' > > etc etc... these are just a few of the errors. > > > > Anything to be done? I briefly searched the list archives but did > not find > > new compilation instructions. > > Hrm. I'm not sure. I'm running with a toolchain built out of that > port > and it seems to be ok. > > Mark (if you're watching) is there any chance of getting that powerpc > cross toolchain updated to gcc31? Or David (if _you're_ watching =)), > is there any way of making the gcc ports capable of building > cross-chains? > > -- > Benno Rice > benno@FreeBSD.org Ah, I did not use his port, I forgot to mention, I used the ports' version. (But I thought he committed it to ports, so there would be no difference..?) I used 'make MACHINE_ARCH=powerpc CC=powerpc-rtems-gcc LD=powerpc-rtems-ld NM=powerpc-rtems-nm SIZE=powerpc-rtems-size OBJCOPY=powerpc-rtems-objcopy' I have not finished downloading the 'psim-freebsd' port yet but I am not to that part yet, anyway... /var/db/pkg/powerpc-rtems-binutils-2.11.2 /var/db/pkg/powerpc-rtems-gcc-2.95.3 ...is what I have. any advice? (sounds like I must use his port.) -andrew On another note, I tried to file a pr once and was not accepted by the mail server or something heh. It is a simple ipfw segfault that no longer exists in -CURRENT but does in 4.6-RELEASE-p1. It is seen by 'ipfw add unreach' and exists because of not checking to see if a string is NULL or not. #0 0x805ce34 in strtoul () #1 0x8049e22 in fill_reject_code (codep=0xbfbff670, str=0x0) at ipfw.c:975 #2 0x804bc21 in add (ac=0, av=0xbfbffc14) at ipfw.c:1759 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ppc" in the body of the message