Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 128739 - OpenPBS fails to compile with gcc-4
Summary: OpenPBS fails to compile with gcc-4
Status: VERIFIED DUPLICATE of bug 128738
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Other
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-04 01:55 UTC by Sebastiaan
Modified: 2006-04-04 01:56 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastiaan 2006-04-04 01:55:21 UTC
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!).
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-04-04 01:56:12 UTC

*** This bug has been marked as a duplicate of 128738 ***
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-04-04 01:56:20 UTC
CLOSED