Build error after successful config on Redhat 6.2 with gcc 4.8.2

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

 



Hello.  I'm attempting to build gcc 4.8.2 on a RedHat 6.2 system using gcc 4.4.7.  The configure seemed to run just fine, but when I do the make I very quickly get the syntax errors in the build.  This can't be a normal thing, so I'm assuming I'm missing something obvious.  Anyone see this before?  Am I attempting to great a jump going from 4.4 to 4.8?  Thanks in advance for your help.



# make
g++ -c   -g  -DIN_GCC    -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common  -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -Ibuild -I/usr/local/src/gcc/gcc/gcc -I/usr/local/src/gcc/gcc/gcc/build -I/usr/local/src/gcc/gcc/gcc/../include -I/usr/local/src/gcc/gcc/gcc/../libcpp/include  -I/usr/local/src/gcc/gcc/gcc/../libdecnumber -I/usr/local/src/gcc/gcc/gcc/../libdecnumber/bid -I../libdecnumber -I/usr/local/src/gcc/gcc/gcc/../libbacktrace    \
		-o build/genmddeps.o /usr/local/src/gcc/gcc/gcc/genmddeps.c
In file included from /usr/include/sys/resource.h:25,
                 from /usr/include/sys/wait.h:32,
                 from /usr/local/src/gcc/gcc/gcc/system.h:358,
                 from /usr/local/src/gcc/gcc/gcc/genmddeps.c:19:
/usr/include/bits/resource.h:127: error: declaration does not declare anything
In file included from /usr/local/src/gcc/gcc/gcc/genmddeps.c:19:
/usr/local/src/gcc/gcc/gcc/system.h:450: error: declaration of C function ‘void* sbrk(int)’ conflicts with
/usr/include/unistd.h:1053: error: previous declaration ‘void* sbrk(intptr_t)’ here
/usr/local/src/gcc/gcc/gcc/system.h:454: error: new declaration ‘char* strstr(const char*, const char*)’
/usr/include/string.h:323: error: ambiguates old declaration ‘const char* strstr(const char*, const char*)’
In file included from /usr/local/src/gcc/gcc/gcc/genmddeps.c:19:
/usr/local/src/gcc/gcc/gcc/system.h:506: error: declaration of C function ‘const char* strsignal(int)’ conflicts with
/usr/include/string.h:566: error: previous declaration ‘char* strsignal(int)’ here
In file included from /usr/local/src/gcc/gcc/gcc/system.h:651,
                 from /usr/local/src/gcc/gcc/gcc/genmddeps.c:19:
/usr/local/src/gcc/gcc/gcc/../include/libiberty.h:110: error: new declaration ‘char* basename(const char*)’
/usr/include/string.h:603: error: ambiguates old declaration ‘const char* basename(const char*)’
/usr/local/src/gcc/gcc/gcc/../include/libiberty.h:628: warning: declaration of ‘int snprintf(char*, size_t, const char*, ...)’ with C language linkage
/usr/local/src/gcc/gcc/gcc/system.h:533: warning: conflicts with previous declaration ‘int snprintf(char*, size_t, const char*, ...)’
/usr/local/src/gcc/gcc/gcc/../include/libiberty.h:628: warning: due to different exception specifications
/usr/local/src/gcc/gcc/gcc/../include/libiberty.h:633: warning: declaration of ‘int vsnprintf(char*, size_t, const char*, __va_list_tag*)’ with C language linkage
/usr/local/src/gcc/gcc/gcc/system.h:537: warning: conflicts with previous declaration ‘int vsnprintf(char*, size_t, const char*, __va_list_tag*)’
/usr/local/src/gcc/gcc/gcc/../include/libiberty.h:633: warning: due to different exception specifications
make: *** [build/genmddeps.o] Error 1
#






[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