I'm trying to start to work with gnu pascal on a solaris 2.6 platform. After installing the binary distribution 19990118, my first attempts to compile a simple program (demoproc.pas, included in the distribution) have no sucessfull at all:
using gpc --automake demoproc.pas
produces the output
ld: fatal: file crt1.o: open failed: No cuch file or directory ld: fatal: file crti.o: open failed: No cuch file or directory ld: fatal: file crtbegin.o: open failed: No cuch file or directory ld: fatal: library -lgcc: not found ld: fatal: file crtend.o: open failed: No cuch file or directory ld: fatal: file crtn.o: open failed: No cuch file or directory
It looks something is misconfigured ... I'm using GPC_EXEC_PREFIX=/usr/local/lib/gcc-lib/*/*
This should be a very basic thing to solve, but .... can someone help ?
Thank you,
Fernando Carrilho
Fernando Carrilho wrote:
I'm trying to start to work with gnu pascal on a solaris 2.6 platform. After installing the binary distribution 19990118, my first attempts to compile a simple program (demoproc.pas, included in the distribution) have no sucessfull at all:
using gpc --automake demoproc.pas
produces the output
ld: fatal: file crt1.o: open failed: No cuch file or directory ld: fatal: file crti.o: open failed: No cuch file or directory ld: fatal: file crtbegin.o: open failed: No cuch file or directory ld: fatal: library -lgcc: not found ld: fatal: file crtend.o: open failed: No cuch file or directory ld: fatal: file crtn.o: open failed: No cuch file or directory
It looks something is misconfigured ... I'm using GPC_EXEC_PREFIX=/usr/local/lib/gcc-lib/*/*
This should be a very basic thing to solve, but .... can someone help ?
The correct solution is to compile GPC from sources and install a files, including the GCC files.
A quick workaround which often works, provided you have another version of GCC installed at all, is to copy the files (crt*.o, cc1, cpp, libgcc.a) from the GCC directory (`gcc --print-file-name=.`) to the GPC directory (`gpc --print-file-name=.`).
Frank