Subject: Re: Compiling GCC-2.95 and other programs
To: None <port-powerpc@netbsd.org>
From: None <josh@ssimr.com>
List: port-powerpc
Date: 05/20/2001 13:38:14
On Wed, May 16, 2001 at 08:05:49PM -0400, josh@ssimr.com wrote:
> I installed NetBSD 1.5 the MacPPC NetBSD port on a PowerMacintosh
> 6500/300. I want to compile as many of the programs I use as I can. I

My problems apparently are:

1. There is no powerpc-apple-netbsd1.5 config option for
GCC-2.95.3. Robert Withrow - quoted below- has created one, so perhaps
that is all I need. Lacking this stops configure from
running; and thus prevents the typical compilation cycle from
completing. 

2. I don't yet know how to find out what needs to be done to actually
compile the software. There were references to patches in the pkgsrc
versions. I want to be able to see the announcement for the latest
version, currently http://gcc.gnu.org/gcc-2.95/gcc-2.95.3.html and
download the source from an appropriate mirror. I have no objections
to downloading patches from pkgsrc. I don't want to build the package;
I want to compile the program. I've no objection to the package system
or building packages, I just see it as a more complex step. Something
to think about later.

It is clear to me now that compiling GCC on a Powerpc, NetBSD is more
complicated task, than compiling other programs. I want to concentrate
on this.  All my other compiling problems are the usual combination of
stupidity, failure to RTFM, etc. 

David Querbach wrote:

> I have built gcc both as an i386 -> powerpc cross and as a powerpc
> native complier, and haven't observed any problems.  Make sure you
> use the ones in the tree or in pkgsrc, however, since these have been
> patched as necessary to integrate them with NetBSD.

Robert Withrow wrote:
> What version of GCC?  If you are talking about 2.95.x, can you give
> details, since there isn't a powerepc-netbsd config option for that
> compiler.  (I have created one and I am successfully building and
> running cross-compiled kernels using 2.95.3, as I wrote earlier...)

Now judging from the gcc version number on my newly installed Mac
PowerPC NetBSD 1.5 system and a look at the web page for gcc, the
version I have is four releases back and about two years old. There is
nothing wrong with that; I simply wish to be able to compile the newer
version. It worries me that NetBSD version seems to be the last one
before the egcs and gcc versions merged.

bash-2.05$ gcc -v
Using builtin specs.
gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release)

http://gcc.gnu.org/releases.html#timeline

After the April 1999 merger between GCC and EGCS, only a single
Release Name    Version number  Release date
GCC 2.95.3      2.95.3  March 16, 2001
GCC 2.95.2      2.95.2  October 24, 1999
GCC 2.95.1      2.95.1  August 19, 1999
GCC 2.95        2.95    July 31, 1999
EGCS 1.1.2      2.91.66 March 15, 1999
EGCS 1.1.1      2.91.60 December 1, 1998
EGCS 1.1.0      2.91.57 September 3, 1998

-- 
Josh Kuperman
josh@ssimr.com
http://www.ssimr.com