Hello,
I have been trying, on behalf of one of our researchers here, to install the gpc-20010623 on a Solaris 8 (8-04) SunBlade.
I had install problems buth using Sun's "extra" gcc-2.95.2 sources as the base and using the gcc-core distribution from the GPC ftp site.
Mainly, these difficulties appear to arise because things like xmalloc and concat were being multiply defined.
So, by a good deal of guesswork, I ended up adding:
-DEGCS -DEGCS92 -DEGCS95
to be defined when doing the make. It compiled.
However when I try to compile a "hello word" I get the following at the linker stage
Undefined first referenced symbol in file _p_eq /usr/local/packages/gcc-2.95.2/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2/libgpc.a(string.o) ld: fatal: Symbol referencing errors. No output written to a.out collect2: ld returned 1 exit status
I guess this is a Pascal thing.
Anyone had any success with GPC under Solaris 8 ? Anyone shed any light ?
Full gpc -v helo.pas output is
Reading specs from /usr/local/packages/gcc-2.95.2/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2/specs gpc version 20010605, based on gcc-2.95.2 19991024 (release) /usr/local/packages/gcc-2.95.2/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2/gpcpp -lang-pascal -v -famtmpfile=/var/tmp/cc4YaaNX -fdelphi-comments -D__GNU_PASCAL__ -undef -D__GNUC__=2 -D__GNUC_MINOR__=95 -D__GPC__=2 -D__GPC_MINOR__=0 -D__GPC_RELEASE__=20010605 -D__BITS_BIG_ENDIAN__=1 -D__BYTES_BIG_ENDIAN__=1 -D__WORDS_BIG_ENDIAN__=1 -D__NEED_ALIGNMENT__=1 -Dsparc -Dsun -Dunix -D__svr4__ -D__SVR4 -D__sparc__ -D__sun__ -D__unix__ -D__svr4__ -D__SVR4 -D__sparc -D__sun -D__unix -Asystem(unix) -Asystem(svr4) -D__GCC_NEW_VARARGS__ -Acpu(sparc) -Amachine(sparc) hello.pas /var/tmp/cc5YaaNX.i GNU Pascal Compiler PreProcessor version 20010605, based on gcc-2.95.2 19991024 (release) (sparc) #include "..." search starts here: #include <...> search starts here: /usr/local/include /usr/local/packages/gcc-2.95.2/sparc-sun-solaris2.8/include /usr/local/packages/gcc-2.95.2/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2/include /usr/include End of search list. /usr/local/packages/gcc-2.95.2/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2/gpc1 /var/tmp/cc5YaaNX.i -quiet -dumpbase hello.pas -version -famtmpfile=/var/tmp/cc4YaaNX -o /var/tmp/cc5YaaNX.s GNU Pascal version 2.95.2 19991024 (release) (sparc-sun-solaris2.8) compiled by GNU C version 2.95.2 19991024 (release). GNU Pascal version is actually 20010605, based on gcc-2.95.2 19991024 (release) /usr/ccs/binås -V -Qy -s -o /var/tmp/cc5YaaNX1.o /var/tmp/cc5YaaNX.s /usr/ccs/binås: Sun WorkShop 6 99/08/18 /usr/local/packages/gcc-2.95.2/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2/collect2 -V -Y P,/usr/ccs/lib:/usr/lib -Qy /usr/local/packages/gcc-2.95.2/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2/crt1.o /usr/local/packages/gcc-2.95.2/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2/crti.o /usr/ccs/lib/values-Xa.o /usr/local/packages/gcc-2.95.2/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2/crtbegin.o -L/usr/local/packages/gcc-2.95.2/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2 -L/usr/ccs/bin -L/usr/ccs/lib -L/usr/local/packages/gcc-2.95.2/lib /var/tmp/cc5YaaNX1.o -lgpc -lm -lgcc -lc -lgcc /usr/local/packages/gcc-2.95.2/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2/crtend.o /usr/local/packages/gcc-2.95.2/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2/crtn.o ld: Software Generation Utilities - Solaris-ELF (4.0) Undefined first referenced symbol in file _p_eq /usr/local/packages/gcc-2.95.2/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2/libgpc.a(string.o) ld: fatal: Symbol referencing errors. No output written to a.out collect2: ld returned 1 exit status
On Fri, 6 Jul 2001, Kev Buckley wrote:
Hello,
I have been trying, on behalf of one of our researchers here, to install the gpc-20010623 on a Solaris 8 (8-04) SunBlade.
I had install problems buth using Sun's "extra" gcc-2.95.2 sources as the base and using the gcc-core distribution from the GPC ftp site.
Anyone had any success with GPC under Solaris 8 ?
Some time ago I compiled gpc version 20010502, based on GCC 2.95.3 20010315 with no problems on Solaris 8 Ultra1 machine. Regards, Adam Naumowicz
-------------------------------------- WWW: http://math.uwb.edu.pl/~adamn/ --------------------------------------