Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Feb 2003 10:06:45 +1000
From:      Peter Grehan <grehan@freebsd.org>
To:        Benno Rice <benno@freebsd.org>
Cc:        freebsd-powerpc@freebsd.org
Subject:   Re: Patch to allow buildworld for powerpc
Message-ID:  <3E556D95.37339AF0@freebsd.org>
References:  <1045782782.618.48.camel@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3E556D95.37339AF0>