tech-toolchain archive

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

Re: CVS commit: src/external/gpl3/gcc/usr.bin/backend



On Sat, Mar 15, 2014 at 20:46:38 +0000, matthew green wrote:

> Modified Files:
>       src/external/gpl3/gcc/usr.bin/backend: Makefile
> 
> Log Message:
> make sure we use the C compiler (not C++) for CC= when running the
> configure for auto-build.h.  fixes problems on linux.

This helps but the build on Ubuntu still fails eventually
compiling common-target/errors.lo

In file included from 
/home/uwe/work/netbsd/ro/src/external/gpl3/gcc/dist/gcc/system.h:647:0,
                 from 
/home/uwe/work/netbsd/ro/src/external/gpl3/gcc/dist/gcc/errors.c:29:
/home/uwe/work/netbsd/ro/src/external/gpl3/gcc/dist/include/libiberty.h:110:36: 
error: new declaration 'char* basename(const char*)'
/usr/include/string.h:603:28: error: ambiguates old declaration 'const char* 
basename(const char*)'


All auto-host.h files have #define HAVE_DECL_BASENAME 0 (nothing in
gcc/dist seems to refer libgen.h where it's declared) and libiberty
declaration of basename conflicts with C++ declaration in glibc
string.h

-uwe


Home | Main Index | Thread Index | Old Index