swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Help with installation, please -- results of make CC="gcc -v"


From: Scott Christley
Subject: RE: Help with installation, please -- results of make CC="gcc -v"
Date: Fri, 14 Nov 1997 20:01:28 -0800

At 02:13 AM 11/14/97 -0500, Bret Comstock Waldow wrote:
>> ls -l /usr/lib/gcc-lib/i486-linux/2.7.2.1
>
>total 2796
>-rw-r--r--   1 root     root        87968 Feb  6  1997 SYSCALLS.c.X
>-rwxr-xr-x   1 root     root      1073932 Feb  6  1997 cc1*
>-rwxr-xr-x   1 root     root      1404612 Feb  6  1997 cc1plus*
>-rwxr-xr-x   1 root     root        71720 Feb  6  1997 cpp*
>drwxr-xr-x   3 root     root         1024 Oct  1 09:34 include/
>-rw-r--r--   1 root     root       203254 Feb  6  1997 libgcc.a
>-rw-r--r--   1 root     root         1077 May 19  1996 specs
>
>  Is this bad news?

yep, bad news; they didn't create the ObjC compiler, they have an older
version which is what you see in i486-linuxaout, but unfortunately you
cannot use it.  
Things aren't that bad, but what you will need to do is get the source code
for GCC, compile it, and install it on your system.  First thing to do is to
get the source from

ftp://prep.ai.mit.edu/pub/gnu

look for a file which is gcc-2.7.2.2.tar.gz or such, you should probably get
the highest version that is available.

Once you get, gunzip it, untar it, then read the INSTALL file.  It is more
detailed but the essential steps will look like this.

./configure --prefix=/usr/local
make LANGUAGES="c"
make stage1
make CC="stage1/xgcc -Bstage1/" CFLAGS="-g -O" LANGUAGES="c"
make stage2
make CC="stage2/xgcc -Bstage2/" CFLAGS="-O2"
make install

Note that I am having you install the new gcc in /usr/local versus in /usr
where the system gcc is located; it is always a good idea not to overwrite
the system gcc just in case.

You will probably need to logout then log back in, and when you type

gcc -v

you should see something like:

Reading spec from /usr/local/lib/gcc-lib/i486-pc-linux-gnu/2.7.2/specs
gcc driver version 2.7.2

Note the "/usr/local" which tells you are running the newly compiled gcc.

Now go compile Swarm!!

cheers
Scott


                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.
                  ==================================


reply via email to

[Prev in Thread] Current Thread [Next in Thread]