On Mon, 5 Apr 1999, Matt Adams wrote:

> Hey all,
> 
>     Perhaps this is slightly off topic, and if so, my apologies.  I've
run into
>     a bit of a problem trying to compile gcc v2.8.1

How could a problem compiling gcc with gcc be off-topic in linux-gcc?
Are you trying to do it on solaris? :-).
> 
>     I'm currently using v2.7.2.3  After I dl'ed 2.8.1 I ran the
configure
>     for my host with the options:
> 
>     --prefix=/usr
>     --build=i586-linux-gnu
>     --with-gnu-ld
>     --with-gnu-as
>     --with-elf
>     --enable-c-cpplib
>     --enable-threads=posix
> 
>     AFAIK this info is correct.  I then proceeded to [make
LANGUAGES=c];
>     however, the output always cops out with the following:
> gcc -b  -c  -DIN_GCC   -DUSE_GNULIBC_1 -g  -DHAVE_CONFIG_H    -I. -I.
-I./config
> version.c
> ld: cannot open -lgcc: No such file or directory
> make: *** [version.o] Error 1
> 
>     For whatever reason I *cannot* seem to make the compiler recognize
the gcc
> libraries.  I can't even find
>     a def for the [-lgcc] in the Makefile.  How might I go about
correcting this
> problem?

You won't find -lgcc in the Makefile.  It is implicit.  You can suppress
it with -nodefaultlibs or -nostdlib, but I don't think you want to do
that.  It is, as it were, the compiler's own library, it lives where the
compiler was built, and the compiler should know where to find it.

Hmmm.  Are you trying to build gcc-2.8.1 in the same place gcc-2.7.2.3
lives?  I don't think that will work.  It wouldn't surprise me if
./configure deleted your libgcc.a..- but no, the last dir in the path
name is the gcc version number, so it shouldn't do that.  Likewise for
the spec file...

Well, do gcc -v, and wherever it reads the specs from, in the same dir
there should be a libgcc.a.  If it's there, I guess you could copy it to
/lib or so, or give the path with -L.  If it's not, I don't know what to
tell you short of reinstall gcc-2.7.2.3.

I will probably try something like this soon.  Do you know of a patch
file to get from gcc-2.7.2.3 to 2.8.x ?? :-)

Lawson
 
>     Any comments or suggestions are greatly appreciated.
> 
> 
> Thanks.  Matt
> 
> 
> --
> [EMAIL PROTECTED]
> "i am a .sig virus, please \
> put me in your .sig file"
> 
          >< Microsoft free environment

This mail client runs on Wine.  Your mileage may vary.





___________________________________________________________________
You don't need to buy Internet access to use free Internet e-mail.
Get completely free e-mail from Juno at http://www.juno.com/getjuno.html
or call Juno at (800) 654-JUNO [654-5866]

Reply via email to