Hello,
I am new to linux and and am trying to install the latest version of
gcc (3.3.2) on Red Hat 7.3. I checked the prerequisites and installed the newest version
of binutils. I then made a objdir and ran configure then make. When make
was running it gave the following list of errors and then exited out. Does anyone have an
idea of what went wrong?
Thanks,
Bill
/root/temp/gcc-3.3.2/boehm-gc/os_dep.c:20:30: linux/version.h: No such file or directory
In file included from /usr/include/linux/types.h:5,
from /usr/include/asm/signal.h:4,
from /root/temp/gcc-3.3.2/boehm-gc/os_dep.c:27:
/usr/include/linux/config.h:4:28: linux/autoconf.h: No such file or directory
In file included from /root/temp/gcc-3.3.2/boehm-gc/os_dep.c:27:
/usr/include/asm/signal.h:21: error: conflicting types for `sigset_t'
/usr/include/signal.h:48: error: previous declaration of `sigset_t'
/usr/include/asm/signal.h:137: error: parse error before '.' token
/usr/include/asm/signal.h:141: error: parse error before '}' token
/usr/include/asm/signal.h:143: error: redefinition of `struct sigaction'
/usr/include/asm/signal.h:144: error: parse error before '.' token
/usr/include/asm/signal.h:147: error: conflicting types for `sa_mask'
/usr/include/asm/signal.h:138: error: previous declaration of `sa_mask'
/usr/include/asm/signal.h:148: error: parse error before '}' token
/usr/include/asm/signal.h:171: error: redefinition of `struct sigaltstack'
/usr/include/asm/signal.h:183: error: conflicting types for `sigaddset'
/usr/include/signal.h:209: error: previous declaration of `sigaddset'
/usr/include/asm/signal.h:188: error: conflicting types for `sigdelset'
/usr/include/signal.h:212: error: previous declaration of `sigdelset'
/root/temp/gcc-3.3.2/boehm-gc/os_dep.c: In function `GC_dirty_init':
/root/temp/gcc-3.3.2/boehm-gc/os_dep.c:2389: warning: passing arg 1 of `sigaddset' from
incompatible pointer type
make[3]: *** [os_dep.lo] Error 1
make[3]: Leaving directory `/root/temp/gcc-3.3.2.build/i686-pc-linux-gnu/boehm-gc'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/temp/gcc-3.3.2.build/i686-pc-linux-gnu/boehm-gc'
make[1]: *** [all-target-boehm-gc] Error 2
make[1]: Leaving directory `/root/temp/gcc-3.3.2.build'
make: *** [bootstrap-lean] Error 2