Frank Heckenbach writes:
Frank> Khimenko Victor wrote:
23-Feb-00 15:45 you wrote:
Khimenko Victor wrote:
please mention this is not necessary for Debian GNU/Linux and Debian GNU/Hurd. The current gpc can be fetched from www.debian.org for the architectures alpha, arm, i386, m68k, sparc and powerpc.
This is true for KSI-Linux & SuSE as well AFAIK. So IMO to write something "if you are plan to use version of GPC not included in your distribution then vetter to build GPC yourself because..."
Nope. The GPC distribution that comes with SuSE-6.3 is misinstalled. It does not find the standard units (such as CRT). I am getting complaints from users about this regularly.
Hmm. Looks like two-ended sword to me :-) SuSE-6.3 DOES NOT install CRT. But 'make install' does not install CRT as well (AFAIK). So I'm not sure if only SuSE must be blamed here...
P.S. I mean 'does not install CRT in usable state' of course. You can not just 'use CRT;' fire gpc and get working program after `make install'...
Frank> Yes, you can if you compile with `--automake' (and have ncurses Frank> installed which shouldn't be a problem under Linux).
Frank> The CRT unit (as well as the other units) are installed in source Frank> form which I think is fine for a free compiler, and will be compiled Frank> when needed (using `--automake') with your favourite options Frank> (optimization, debugging, etc.). The problem with SuSE, AFAIUI Frank> (can't check myself) is that either the unit sources are not Frank> installed, or there is some path problem so the installed GPC does Frank> not find them.
I'm currently beta testing gpc for the next SuSE release. Since I'm not really using gpc myself, could you help me what I should test, so that SuSE 6.4 will have a working gpc?
We're planning to use gpc 19991030 with gcc 2.95.2.
I just did the following tests with some of the demos: gromit:/usr/doc/packages/gpc/demos:[0]$ gpc --automake crtdemo.pas gromit:/usr/doc/packages/gpc/demos:[0]$ ./a.out
And the output looks fine.
I also run the test suite (installed in /usr/doc/packages/gpc/test) and got only a few failures:
TEST constovfl.pas: failed: failed: 0 /usr/bin/ld: cannot open -lgmp: Datei oder Verzeichnis nicht gefunden collect2: ld returned 1 exit status TEST dialec3.pas: failed TEST dialec4.pas: OK /usr/bin/ld: cannot open -lgmp: Datei oder Verzeichnis nicht gefunden collect2: ld returned 1 exit status TEST dialec5.pas: failed /usr/bin/ld: cannot open -lgmp: Datei oder Verzeichnis nicht gefunden collect2: ld returned 1 exit status TEST dialec6.pas: failed TEST fjf149.pas: Failed: 64 TEST fjf83.pas: failed: Failed /tmp/cc6RgcsV.s: Assembler messages: /tmp/cc6RgcsV.s:115: Error: operands given don't match any known 386 instruction TEST goto4.pas: failed
All other tests had an OK printed. I don't think that those failures are serious, especially since I don't have libgmp installed on my system.
Looking over the discussion again, Khimenko mentioned:
Hmm. Looks like two-ended sword to me :-) SuSE-6.3 DOES NOT install CRT. But 'make install' does not install CRT as well (AFAIK). So I'm not sure if only SuSE must be blamed here...
P.S. I mean 'does not install CRT in usable state' of course. You can not just 'use CRT;' fire gpc and get working program after `make install'...
Is there any other command (beside 'make install'[1]) that should be issued? I'm now checking the sources myself
Btw. I double checked that the units are installed: /usr/lib/gcc-lib/i386-suse-linux/2.95.2/units /usr/lib/gcc-lib/i386-suse-linux/2.95.2/units/crt.inc /usr/lib/gcc-lib/i386-suse-linux/2.95.2/units/crt.pas /usr/lib/gcc-lib/i386-suse-linux/2.95.2/units/crtc.c /usr/lib/gcc-lib/i386-suse-linux/2.95.2/units/crtc.h [...]
Thanks for your help and a great work!
Andreas
Footnotes: [1] I didn't found anything while RTFMing.