From owner-freebsd-ppc Sat Feb 22 7: 6:46 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 8789D37B401 for ; Sat, 22 Feb 2003 07:06:44 -0800 (PST) Received: from harrier.mail.pas.earthlink.net (harrier.mail.pas.earthlink.net [207.217.120.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id D8A4B43FAF for ; Sat, 22 Feb 2003 07:06:43 -0800 (PST) (envelope-from welchsm@earthlink.net) Received: from louie.psp.pas.earthlink.net ([207.217.78.221]) by harrier.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 18mbEe-0007VL-00; Sat, 22 Feb 2003 07:06:40 -0800 Received: from [207.217.78.202] by EarthlinkWAM via HTTP; Sat Feb 22 07:06:40 PST 2003 Message-ID: <1033337.1045926400920.JavaMail.nobody@louie.psp.pas.earthlink.net> Date: Sat, 22 Feb 2003 07:05:41 -0600 (GMT) From: Sean Welch Reply-To: Sean_Welch@alum.wofford.org To: Andrew Gallatin Subject: Re: Re: Also interested in testing Cc: freebsd-ppc@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 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 Well, I gave it a shot. I updated my source at around 00:30 (CST) this morning then overlayed the two files (freebsd.h & sysv4.h) with Peter's "gcc diff" before compiling. I used the command specified by Benno without the three options specified by Peter and the build bombed after compiling quite a bit. Here's the relevant part: cc -O -pipe -Wall -DFREEBSD_ELF -I/usr/src/libexec/rtld-elf/powerpc -I/usr/src/libexec/rtld-elf -fpic -DPIC -Wformat=2 -Wno-format-extra-args -Werror -c /usr/src/libexec/rtld-elf/rtld.c cc1: warnings being treated as errors In file included from /usr/src/libexec/rtld-elf/powerpc/rtld_machdep.h:32, from /usr/src/libexec/rtld-elf/rtld.h:39, from /usr/src/libexec/rtld-elf/rtld.c:54: /usr/obj/powerpc/usr/src/i386/usr/include/machine/atomic.h: In function `atomic_set_acq_8': /usr/obj/powerpc/usr/src/i386/usr/include/machine/atomic.h:270: warning: implicit declaration of function `powerpc_mb' *** Error code 1 Stop in /usr/src/libexec/rtld-elf. *** Error code 1 Stop in /usr/src/libexec. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. Any ideas? This was run under my 5.0-RELEASE installation... Sean -------Original Message------- From: Andrew Gallatin Sent: 02/21/03 11:46 AM To: Sean_Welch@alum.wofford.org Subject: Re: Also interested in testing > > Sean Welch writes: > Finally, I wasn't able to find anything helpful for > cross-compiling at all. The closest I got was an > archived email about problems cross-compiling for apha > on a pc but there wasn't much detail. Could someone > here point me to a comprehensive guide or give me > specific instructions? I figure while I'm trying to Benno and Peter touched on this yesterday: Benno> make -DNO_WERROR -DNO_BIND -DNOSHARED -DNOINFO -DNOGAMES -DNOPROFILE Benno> -DNOSHARE -DNOCRYPT -DNOSECURE -DNOLIBC_R -DNO_IPFILTER -DNO_CXX Benno> -DNOFORTH -DNO_FORTH TARGET_ARCH=powerpc buildworld PeterG> You should take out -DNO_WERROR, -DNO_CXX, and -DNOSHARED. buildworld is clean PeterG> with the above gcc patch, C++ builds fine, and shared libs have been working PeterG> since the rtld checkin. Note there is a problem at runtime with libstdc++, PeterG> hopefully that'll be fixed soon. David O'Brien has commited a few things in the interum which may help you. You'll also want the gcc diffs that Peter Grehan mentioned in his post. Drew > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ppc" in the body of the message