[10939] in Athena Bugs

home help back first fref pref prev next nref lref last post

gcc on sun sparcs

daemon@ATHENA.MIT.EDU (wdc@Athena.MIT.EDU)
Fri Sep 10 12:31:02 1993

From: wdc@Athena.MIT.EDU
Date: Fri, 10 Sep 93 12:30:37 EDT
To: dewey@Athena.MIT.EDU, testers@Athena.MIT.EDU
Cc: f_l@Athena.MIT.EDU


I appologize for this error message being so unhelpful.

Here is why, and here is what you do about it:

The suns came to us without a C compiler.  We used gcc to build the system.
We installed THE EXACT gcc we used to build with, changing nothing.  We did
that so we could be 100% sure that it would be identical and working.

The gcc we used required explict options to tell it where everything is.
When we built we used a script which did the right thing.

When we deployed the suns, we were not allowed to deploy our script because
that would conflict with the Sun CC that we are finally getting.

The release notes, a copy of which should be next to EVERY SINGLE SUN WE
DEPLOYED, explain how to make gcc work.  They also contain a lot of other 
important differences between Suns and what you may be used to.  You should
carefully read every word of these notes.

The cc script I use is the following two lines:

#!/bin/sh
/usr/gcc/bin/gcc -traditional -B/usr/gcc/lib/ -DSOLARIS -I/usr/gcc/include $@

NOTE!!!!!  If you are teaching people to use ANSI C, remove the "-traditional"
flag.

home help back first fref pref prev next nref lref last post