configure of gcc failed after svn pull this morning

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

 



On fedora, using the gcc from fedora: gcc (GCC) 4.8.3 20140911 (Red Hat
4.8.3-7)

I did an svn update and then moved to my build directory and after make
distclean, a ../gcc/configure fails with:

make[3]: Entering directory
`/usr/local/gccbuild/build-x86_64-unknown-linux-gnu/libcpp'
g++  -I../../../gcc/libcpp -I. -I../../../gcc/libcpp/../include
-I../../../gcc/libcpp/include  -g -O2 -W -Wall -Wno-narrowing
-Wwrite-strings -Wmissing-format-attribute -pedantic -Wno-long-long 
-fno-exceptions -fno-rtti -I../../../gcc/libcpp -I.
-I../../../gcc/libcpp/../include -I../../../gcc/libcpp/include   -c -o
charset.o -MT charset.o -MMD -MP -MF .deps/charset.Tpo
../../../gcc/libcpp/charset.c
In file included from ../../../gcc/libcpp/../include/hashtab.h:40:0,
                 from ../../../gcc/libcpp/../include/filenames.h:29,
                 from ../../../gcc/libcpp/system.h:367,
                 from ../../../gcc/libcpp/charset.c:21:
../../../gcc/libcpp/../include/ansidecl.h:171:64: error: new declaration
‘char* basename(const char*)’
 #  define ATTRIBUTE_NONNULL(m) __attribute__ ((__nonnull__ (m)))
                                                                ^
../../../gcc/libcpp/../include/libiberty.h:113:64: note: in expansion of
macro ‘ATTRIBUTE_NONNULL’
 extern char *basename (const char *) ATTRIBUTE_RETURNS_NONNULL
ATTRIBUTE_NONNULL(1);
                                                                ^
In file included from ../../../gcc/libcpp/system.h:201:0,
                 from ../../../gcc/libcpp/charset.c:21:
/usr/include/string.h:597:26: error: ambiguates old declaration ‘const
char* basename(const char*)’
 extern "C++" const char *basename (const char *__filename)

Is this a known thing with a quick fix before I look at it?

Patrick




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux