When compiling OpenPBS with gcc-4 it exits with: sed: file ../../buildutils/exclude_script line 4: unknown command: `/' make[3]: Entering directory `/var/tmp/portage/openpbs-2.3.16-r3/work/OpenPBS_2_3_16/src/resmom' gcc -O3 -march=pentium4 -pipe -I../include -I../../src/include -I./linux -DHAVE_CONFIG_H -DPBS_MOM -DDEMUX=\"/usr/sbin/pbs_demux\" -DRCP_PATH=\"/usr/sbin/pbs_rcp\" -c mom_main.c gcc -O3 -march=pentium4 -pipe -I../include -I../../src/include -I./linux -DHAVE_CONFIG_H -DPBS_MOM -DDEMUX=\"/usr/sbin/pbs_demux\" -DRCP_PATH=\"/usr/sbin/pbs_rcp\" -c mom_comm.c gcc -O3 -march=pentium4 -pipe -I../include -I../../src/include -I./linux -DHAVE_CONFIG_H -DPBS_MOM -DDEMUX=\"/usr/sbin/pbs_demux\" -DRCP_PATH=\"/usr/sbin/pbs_rcp\" -c mom_server.c In file included from mom_server.c:106: ../include/pbs_nodes.h:196: error: array type has incomplete element type make[3]: *** [mom_server.o] Error 1 make[3]: Leaving directory `/var/tmp/portage/openpbs-2.3.16-r3/work/OpenPBS_2_3_16/src/resmom' make[2]: *** [all] Error 2 make[2]: Leaving directory `/var/tmp/portage/openpbs-2.3.16-r3/work/OpenPBS_2_3_16/src/resmom' make[1]: *** [all] Error 2 make[1]: Leaving directory `/var/tmp/portage/openpbs-2.3.16-r3/work/OpenPBS_2_3_16/src' make: *** [all] Error 2 The sed error is from the gcc32 patch. Not sure what it patches, but when removed openpbs still compiles. The incomplete element type error seems typical for gcc-4: http://gcc.gnu.org/ml/gcc/2005-02/msg00053.html This patch seems to fix it (I'm not a programmer!).
*** This bug has been marked as a duplicate of 128738 ***
CLOSED