This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: gcc compile problems



>> checking to see whether the C compiler (gcc ) works .... no
>> get this everytime.
>
>Try to create a simple program, such as `main(){}', and try to compile
>it.  What is the error message you get?

The reason is that many ./configure scripts try to compile a simple
program and then link with crt0.o (sorry, file name might differ by a char
or so, I recall from my head). While this worked with gcc2.7 and before,
it seems that this file is not found by egcs1.1 (at least) for some reason
and the compilation therefore fails with an error message by ld stating it
can't find that file. Linking with crt0.o is specified explicitely in the
compile command of the ./configure script for some reason.

This actually happens everytime I run ./configure with egcs1.1 in my $PATH
before the old gcc2.7. System is SuSE Linux 6.2. One has to comment out
the respective lines in ./configure then (annoying...).

Regards
  Wolfgang

-------------------------------------------------------------------------
Wolfgang Bangerth          email: wolfgang.bangerth@iwr.uni-heidelberg.de
                             www: http://gaia.iwr.uni-heidelberg.de/~wolf



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]