Hi, I am new to this mailing list but I have done a lot of upfront work before writing for help. I am new to compilers but have to install GPC compiler for a user. I have read the Install and Readme for gpc and gcc. I have also gone through all of 12/99 mailing list archive and I still need help.
I am trying to use the compiler on an 32 bit SGI, v6.5 operating system. I downloaded the binaries for both the gcc (fw_gcc-2_8_1-sgipl2.tardist) and gpc (gpc-19990118.mips-sgi-irix6.2.tar.gz). I installed both, gcc in /usr/freeware and gpc in /usr/local. I've run gcc and tested it and it works fine. When I test gpc, I get a long message starting with "tabutil.pas:25: warning: missing program header tabutil.pas:30: type name expected, identifier `String80' given tabutil.pas:31: type name expected, identifier `String20' given tabutil.pas: In function `Readint': tabutil.pas:60: type name expected, identifier `String255' given tabutil.pas:63: only Pascal string type, array of char, and char type tabutil.pas:63: are assignment compatible with a string tabutil.pas:68: undeclared identifier `Depend_err' (first use this function) tabutil.pas:68: (Each undeclared identifier is reported only once tabutil.pas:68: for each function it appears in.) tabutil.pas:69: undeclared identifier `Str2int' (first use this function) tabutil.pas: In function `Readreal': tabutil.pas:76: type name expected, identifier `String255' given tabutil.pas:80: only Pascal string type, array of char, and char type tabutil.pas:80: are assignment compatible with a string tabutil.pas:85: undeclared identifier `Depend_err' (first use this function) tabutil.pas:86: undeclared identifier `Str2real' (first use this function) tabutil.pas: In function `Readstr': tabutil.pas:102: undeclared identifier `Strg' (first use this function) tabutil.pas: At top level: tabutil.pas:120: type name expected, identifier `String255' given tabutil.pas: In function `Readmatrix': tabutil.pas:126: type name expected, identifier `String255' given tabutil.pas:128: undeclared identifier `Fopen' (first use this function) tabutil.pas:131: argument to `length' must be of string or char type tabutil.pas:131: only Pascal string type, array of char, and char type tabutil.pas:131: are assignment compatible with a string tabutil.pas:132: subscripted object is not an array or string tabutil.pas:134: argument to `length' must be of string or char type tabutil.pas:134: only Pascal string type, array of char, and char type tabutil.pas:134: are assignment compatible with a string tabutil.pas:136: undeclared identifier `Indx' (first use this function) tabutil.pas:145: incompatible type for argument 2 of `Readstr' tabutil.pas:145: too many arguments to function `Readstr' tabutil.pas:146: incompatible type for argument 2 of `Readstr' tabutil.pas:146: too many arguments to function `Readstr' tabutil.pas:147: incompatible type for argument 2 of `Readstr' tabutil.pas:147: too many arguments to function `Readstr' tabutil.pas: In function `Scalematrix': tabutil.pas:195: subscripted object is not an array or string tabutil.pas:196: undeclared identifier `Indx' (first use this function) tabutil.pas: In function `program_noname': tabutil.pas:212: parse error before `End'
When this didn't work, I unpacked the source in /usr/local/src for both gcc (gcc-2_8_1_tar.gz) and gpc (gpc-19990118.tar.gz. I moved the p dir. from gpc to gcc dir. and ran the patch and ran configure. I then ran make LANGUAGES=pascal and received errors like missing cfe so copied into /usr/lib/cfe. Also, received errors for the inttypes.h, staarg.h and cccp.c and corrected paths. Gave up on this and removed both gcc and gpc source dir. and reinstalled the gpc and gcc binaries. Tested gcc OK. Same error mess. for gpc.
If I run gpc -v, the output is gpc vers.19990118, based on gcc 2.8.1.
If I run gcc -v, the output is reading specs from /usr/freeware/lib/gcc-lib/mips-sgi-irix6.2/2.8.1/specs gcc version 2.8.1.
I think I have compatible gpc and gcc vers.
When I run gpc -verbose, I get "Using builtin specs. gpc version 19990118, based on gcc-2.8.1 ld -call_shared -no_unresolved -init __do_global_ctors -fini __do_global_dtors -_SYSTYPE_SVR4 -n32 /usr/lib32/mips3/crt1.o crtbegin.o -L/usr/local/lib/gcc-lib/mips-sgi-irix6.2/2.8.1 -L/usr/local/lib/gcc-lib/mips-sgi-irix6.2/2.8.1 -L/usr/local/lib -lgpc -lm -dont_warn_unused -lgcc -warn_unused -L/usr/lib32/mips3 -L/usr/lib32 -dont_warn_unused -lc -warn_unused -dont_warn_unused -lgcc -warn_unused crtend.o /usr/lib32/mips3/crtn.o ld32: FATAL 9: I/O error (crtbegin.o): No such file or directory"
I had found this file under /usr/freeware/lib/gcc-lib/mips-sgi-irix6.2/2.8.1 and had worked with this path as well but to no avail.
Any help would be appreciated! Chris
=====
__________________________________________________ Do You Yahoo!? Send online invitations with Yahoo! Invites. http://invites.yahoo.com