laurent@laurent-parise.com wrote:
but gpc -c crtdemo.pas returns :
crtdemo.pas:32: module/unit interface `Crt' could not be imported
What's the problem? Is there something to do to declare path to find units ???
Well, use `--automake' as you did below.
OK. I found another problem now. Typing
gpc --automake hello.pas returns :
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/libgpc.a(randfile.o): In function `do_seek': /home/elug/pascal-wochenende-20000729/gcc-2.95.2/gcc/p/rts/randfile.c:327: the `llseek' function may be dangerous; use `lseek64' instead.
but a.out is OK.
I tried to find what to do last 2 days in manual, but ....
A bug that was fixed last year. The binary you have was built before it was fixed. I don't know if anyone has uploaded a more recent binary somewhere, but onder Linux it's easy to build GPC from sources.
Apart from this, it's only a warning, and harmless as long as you don't use files > 2GB.
Frank
Frank Heckenbach wrote
Well, use `--automake' as you did below.
gpc --automake crtdemo.pas returns this
In file included from /usr/include/sys/time.h:30, from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/units/crtc.c:939: /usr/include/sys/select.h:52: warning: `__NFDBITS' redefined /usr/include/linux/posix_types.h:22: warning: this is the location of the previous definition /usr/include/sys/select.h:54: warning: `__FDMASK' redefined /usr/include/linux/posix_types.h:34: warning: this is the location of the previous definition cpp: -lang-c: linker input file unused since linking not done gpc: installation problem, cannot exec `cc1': No such file or directory gpc1: gpc exited with status 1 gpc1: gpc exited with status 1
and no a.out
However, I can find /usr/lib/gcc-lib/i386-slackware-linux/2.95.3/cc1 here. (but not in /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/ ...)
A bug that was fixed last year. The binary you have was built before it was fixed. I don't know if anyone has uploaded a more recent binary somewhere, but onder Linux it's easy to build GPC from sources.
Yes, I would have downloaded a more recent binary, but I can't find some on the ftp server and .... I tried to compile from sources but something (that I don't remember because I tried so many things!) was wrong. If I really fail installing these binaries, I will try to compile again ...
Thanks. Laurent.