Matthias Klose wrote:
with this patch and gcc-3.3 I get:
../.././xgpc -B../.././ -I../rts --automake --executable-file-name -W -Wall -Wpointer-arith -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -g -O2 --executable-path=. --unit-path=/build/packages/gcc/3.3/gcc-3.3-3.3ds9/src/gcc/p/rts --unit-path=/build/packages/gcc/3.3/gcc-3.3-3.3ds9/src/gcc/p/units `cat needed-options` -I. -I "/build/packages/gcc/3.3/gcc-3.3-3.3ds9/src/gcc/p" "/build/packages/gcc/3.3/gcc-3.3-3.3ds9/src/gcc/p/utils/gpidump.pas" In file included from /build/packages/gcc/3.3/gcc-3.3-3.3ds9/src/gcc/p/utils/gpidump.pas:52: ./tree.inc: In procedure `ProcessFile': ./tree.inc:115: error: undeclared identifier `LANG_HOOKS_IDENTIFIER_SIZE' (first use in this routine) ./tree.inc:115: error: (Each undeclared identifier is reported only once ./tree.inc:115: error: for each routine it appears in.) ./tree.inc:115: error: undeclared identifier `struct' (first use in this routine) ./tree.inc:115: error: syntax error before `tree_common' ./tree.inc:115: error: invalid structured initializer ./tree.inc:115: error: invalid structured initializer ./tree.inc:115: error: invalid structured initializer ./tree.inc:115: error: invalid structured initializer ./tree.inc:115: error: invalid structured initializer ./tree.inc:115: error: invalid structured initializer ./tree.inc:115: error: invalid structured initializer ./tree.inc:115: error: missing separator ./tree.inc:115: error: syntax error before `/' ./tree.inc:115: error: undeclared identifier `tree' (first use in this routine) ./tree.inc:115: error: missing separator ./tree.inc:115: error: syntax error before `)' /build/packages/gcc/3.3/gcc-3.3-3.3ds9/src/gcc/p/utils/gpidump.pas:34: warning: `Verbose' defined but not used /build/packages/gcc/3.3/gcc-3.3-3.3ds9/src/gcc/p/utils/gpidump.pas:34: warning: `Hex' defined but not used make[5]: *** [gpidump] Error 1
This error should be ignorable -- I succesfuly run test suite after the build stopped. The compiler should install correctly -- I have not tried but I will try on anather machine. Since gpidump is non-essential the short term workaround may be just to disable building it. However proper fix seem very tricky -- we want to propagate information from C header to Pascal program. I leave it to Frank -- I would probably make a small C file which would export everything needed in Pascal, but he may have different idea.