SVN linker errors

Ian Lance Taylor iant@google.com
Fri Oct 12 16:57:00 GMT 2007


"Rob Quill" <rob.quill@gmail.com> writes:

> I am currently trying to build the current SVN copy of GCC and have
> run into the following problems. Essentially, there is a large list of
> linker errors which ends as follows:
> 
> .libs/in_unpack_generic.o: In function `getchar':
> /usr/include/bits/stdio.h:43: multiple definition of `getchar'
> .libs/backtrace.o:/usr/include/bits/stdio.h:43: first defined here
> .libs/in_unpack_generic.o: In function `vprintf':
> /usr/include/bits/stdio.h:36: multiple definition of `vprintf'
> .libs/backtrace.o:/usr/include/bits/stdio.h:36: first defined here

This may have something to do with the change in extern inline
behaviour.  There is a fixincludes patch which should have cleaned up
the header files.  Search for glibc_c99_inline in
fixincludes/inclhack.def.

> The command I used was:
> 
>  ./configure --disable-multilib && make

Don't run ./configure.  Always run configure in an empty
directory--i.e., SRCDIR/configure.  This is documented in the
installation instructions.  You should first see if that fixes your
problem.

Ian



More information about the Gcc-help mailing list