Richard D. Jackson wrote:
I'm having some issues in getting gpc compiled following the directions at http://www.gnu-pascal.de/gpc_42.html#SEC42
Here is what I have done and the results I'm getting.
1st attempt used gcc-core-3.2.1.tar.gz & gpc-20021128.tar.gz
The gcc-3 based GPC does not yet work with "dwarf2" debug info (which is the default on many platforms). Therefore you'll have to add `-g0' (no debug info at all) or `-gstabs' (which works on many systems). When testing, add it in EXTRA_TEST_PFLAGS on the make command line.
When I ran configure on this one I had one gpc patch fail to apply. It was the bug url patch as the above gentoo patch had changed the url to a gentoo url verses the gnu url so I fixed the gpc patch to reflect the change and got a clean gpc patch.
The same was reported with a GCC for Mac OS X patched by Apple.
I think it should work directly if we change our diff to:
*** gcc/system.h.orig Fri Oct 25 15:11:09 2002 --- gcc/system.h Mon Nov 25 15:30:37 2002 *************** *** 30,31 **** --- 30,36 ----
+ #ifdef GPC + #undef GCCBUGURL + #define GCCBUGURL "URL:http://www.gnu-pascal.de/todo.html" + #endif + /* We must include stdarg.h/varargs.h before stdio.h. */
Now on to running make.
When Make ran I got this error which I have been unable to track down as from what I can see it looks OK.
In file included from /var/tmp/portage/gcc-3.2.1-r6/work/gcc-3.2.1/gcc/p/gpc-common.c:27: /var/tmp/portage/gcc-3.2.1-r6/work/gcc-3.2.1/gcc/p/gpc.h:667: conflicting types for `global_trees' /var/tmp/portage/gcc-3.2.1-r6/work/gcc-3.2.1/gcc/tree.h:1956: previous declaration of `global_trees' make[1]: *** [p/gpc-common.o] Error 1
We're aware of this problem (when using post-3.2.1 GCC's). It will be fixed in the next GPC alpha. If you want to try it now, just remove the following two lines:
gpc.h: extern tree size_type_node;
gpc-decl.c: tree size_type_node;
Frank