On Thu, 14 May 1998, Clyde Meli wrote:
It seems that rts_base.p didn't get compiled. So I manually typed the lengthy command line above but compiled rts_base.p instead. I got this message:
rts-base.p:56: warning: no previous prototype for `__init_Rts_base'
but it seems to have compiled the unit....
I have similar problems with rts under IRIX. Obviously the current version of gpc is very platform dependent. I suggest to make a collection of failed compilations on different platforms. It could be easier to locate the missing bit thereafter.
Here is my story:
OS: IRIX 6.2, patch level: 04/98 Native compiler: IRIX development option 7.1 Make tool: GNU 3.76.1 GCC: 2.8.1 GPC: gpc-980511
Configure options: none (default for mips-sgi-irix6.2)
Command I: "make bootstrap LANGUAGES=c BOOT_CFALGS=-O2" Result: no problem
Command II: "make compare" Result: no errors reported, the gcc is OK after stage2
Command III: "make CC="stage2/xgcc -Bstage2/" LANGUAGES=pascal CFLAGS=-O2" Result: the compilation is complete, but not successful. A few warning mostly around the rts. The resulted xgpc is not able to compile the p/test/extended_pascal examples:
Command IV (from p/test/extended_pascal): ../../../xgpc -B../../../. abs.pas -o abs -v
Result: warnings from ld, compilation aborted ld: ERROR 33: Unresolved text symbol "_p_stdout" -- 1st referenced by /var/tmp/cca005os1.o. ld: ERROR 33: Unresolved text symbol "_p_write" -- 1st referenced by /var/tmp/cca005os1.o. ld: ERROR 33: Unresolved text symbol "_p_collect_flag" -- 1st referenced by /var/tmp/cca005os1.o. ld: ERROR 33: Unresolved text symbol "_p_initialize" -- 1st referenced by /var/tmp/cca005os1.o. ld: ERROR 33: Unresolved text symbol "_p_finalize" -- 1st referenced by /var/tmp/cca005os1.o. ld: ERROR 33: Unresolved text symbol "Gpc_debug" -- 1st referenced by dist/libgpc.a(rts-misc.o). ld: ERROR 33: Unresolved text symbol "Gpc_c_list" -- 1st referenced by dist/libgpc.a(rts-misc.o). ld: ERROR 33: Unresolved text symbol "_p_GLOBAL" -- 1st referenced by dist/libgpc.a(rts-heap.o). ld: ERROR 33: Unresolved text symbol "_p_fflush" -- 1st referenced by dist/libgpc.a(rts-error.o). ld: ERROR 33: Unresolved text symbol "Gpc_warn" -- 1st referenced by dist/libgpc.a(rts-error.o). ld: INFO 60: Output file removed because of error.
I am sure, something is missing from my platform specific Makefile that is there on Peter's machine and some other Linux box, but nowhere else. So the resulting rts is not functional after the compilation.
miklos
Miklos Cserzo University of Birmingham c/o School of Biochemistry MRC - Bioinformatics Project Tel: +44-121-414-4090 Schools of Biochemistry, Biology and Medicine Fax: +44-121-414-3982 Edgbaston, Birmingham B15 2TT E-mail: miklos@bip.bham.ac.uk United Kingdom