lpha-dec-vms-gcc -c -DIN_GCC -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attri bute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Wold-style-definition -Wc++-compat -DHAVE_CONFIG_H -I. - I. -I/src/gcc-4.5.0/gcc -I/src/gcc-4.5.0/gcc/. -I/src/gcc-4.5.0/gcc/../include -I/src/gcc-4.5.0/gcc/../libcpp/include -I/obj/gcc/vms/. /gmp -I/src/gcc-4.5.0/gmp -I/obj/gcc/vms/./mpfr -I/src/gcc-4.5.0/mpfr -I/src/gcc-4.5.0/mpc/src -I/src/gcc-4.5.0/gcc/../libdecnumber - I/src/gcc-4.5.0/gcc/../libdecnumber/dpd -I../libdecnumber /src/gcc-4.5.0/gcc/c-lang.c -o c-lang.o In file included from /src/gcc-4.5.0/gcc/resource.h:24:0, from /usr/local/lib/gcc/alpha-dec-vms/4_5_0/../../../../alpha-dec-vms/include/wait.h:74, from /usr/local/lib/gcc/alpha-dec-vms/4_5_0/../../../../alpha-dec-vms/include/stdlib.h:51, from /src/gcc-4.5.0/gcc/system.h:211, from /src/gcc-4.5.0/gcc/c-lang.c:24:
/src/gcc-4.5.0/gcc/hard-reg-set.h:42:39: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'HARD_REG_ELT_TYPE' The problem is that there is both gcc/resource.h and sysroot/usr/include/resource.h. When sysroot/usr/include/wait.h does: #if defined _XOPEN_SOURCE_EXTENDED || !defined _POSIX_C_SOURCE # include <signal.h> /* for siginfo_t */ # include <resource.h> /* for struct rusage */ #endif it gets the wrong resource.h for now I patched sysroot/usr/include/wait.h to #include "resource.h" instead. Unfortunate fix is maybe to rename to gcc/gccresource.h? - Jay