Date: Sat, 22 Feb 2003 07:05:41 -0600 (GMT) From: Sean Welch <welchsm@earthlink.net> To: Andrew Gallatin <gallatin@cs.duke.edu> Cc: freebsd-ppc@freebsd.org Subject: Re: Re: Also interested in testing Message-ID: <1033337.1045926400920.JavaMail.nobody@louie.psp.pas.earthlink.net>
index | next in thread | raw e-mail
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 <gallatin@cs.duke.edu>
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
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1033337.1045926400920.JavaMail.nobody>
