On Tue, Jan 14, 2014 at 2:54 PM, <crazed.husk@xxxxxxxxx> wrote: > > Hello. I'm attempting to build gcc 4.8.2 on a RedHat 6.2 system using gcc 4.4.7. I assume you know that Red Hat 6.2 is very very old. You have to expect some challenges. > # 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 GCC's configure script thinks that your system does not have a declaration for sbrk in the system header files. But it does, and GCC's default definition (in gcc/system.h) does not match the one in the system header files. You need to look at gcc/config.log to see why configure thought your system did not have sbrk. Ian