Igor Marnat wrote:
Hello Frank, hello List!
FH> "OK := False" in function ReadBufferAndIncludes, but it should echo FH> the message before ("WriteLn (StdErr, s);"), but again, no such FH> message above), or a shell command failed (but the last command
Thank you for your prompting, I hope I've found something.
First of all, yes, gp really exits with not Ok in function ReadBufferAndIncludes. Condition "if (Pos (': ', s) <> 0)" works and gp quits. It really prints the string confused which looks like "TOTAL : 0.00 0.00 0.00". This string is the output of "ppc-linux-gpc .... -E -H test.c" command. I think that ppc-linux-gpc just prints the summary of execution time and gp erroneously take it for error message (or something like this). It all worked for x86 target because gcc was called for *.c files processing instead of gpc as for ppc-linux-target and gcc doesn't print summary messages containing ": ".
I think that the problem is that I called gp with "PC=ppc-linux-gpc" parameter for ppc target. It worked for x86 because gp used gcc instead of gpc for c files processing. Gp doesn't work for x86 as well if I call it with "gp testpas.pas" command instead of "gp testpas.pas".
What is the best way to correct the situation?
Earlier:
[igor@marnat2 test]$ ppc-linux-gpc -I /home/igor/tmp/test/ -I /home/igor/tmp/test/ -I . -I /home/igor/src-big/ELDK4.0/usr/lib/gcc/ppc-linux/4.0.3/units -I /home/igor/tmp/test/ -E -H /home/igor/tmp/test/test.c # 1 "/home/igor/tmp/test/test.c" # 1 "<built-in>" # 1 "<command line>" # 1 "/home/igor/tmp/test/test.c" void cinc (unsigned char* t) { (*t)++; return; }
Execution times (seconds) TOTAL : 0.00 0.00 0.01
Normally your ppc-linux-gpc (with given options) should not print the last line. Try:
ppc-linux-gpc -v -E -H /home/igor/tmp/test/test.c
you should see something like:
....../cc1 -E -quiet ....
the `-quiet' option is crucial here: it removes extra diagnostics (in particular time report).