Igor Marnat wrote:
FH> Sorry, where's the output? I don't see any messages from the FH> compilers there, neither the mentioned "new style" message. (Please
Yes , that's true. The message about "new style" appeared when I built my main project. It is big and fat and I tried to create simple and little one just for testing. Message about new style does not appear when the test project is being built. Anyway there is something odd here since it doesn't gets built.
FH> What's the output if you run this last command manually, and error FH> status (do "echo $?" afterwards)?
Here it is:
[igor@marnat2 test]$ make gp -v PC=ppc-linux-gpc testpas.pas ppc-linux-gpc -dumpmachine ppc-linux-gpc -dumpversion ppc-linux-gpc -print-file-name=units ppc-linux-gpc --print-needed-options -x Preprocessed-Pascal /var/tmp/GPaaa04995 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/ --unit-path=/home/igor/tmp/test/ -E -H /home/igor/tmp/test/testpas.pas 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 TOTAL : 0.00 0.00 0.00 make: *** [all] Error 1 [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 [igor@marnat2 test]$ echo $? 0
FH> Please also send the content of all *.gpd files that are produced FH> before it aborts (if any).
There is the only one *.gpd file afterwards:
[...]
I'm a bit confused. I see nothing suspicious here. Could you please use the source code of GP to find out where it exits with status 1? It's probably via procedure Quit (gp.pas), but AFAICS it can only happen if either an error message was printed (e.g. GeneralError, but there is no error message above), or when GP reads an unexpected error message from a compiler it calls (this would be the line "OK := False" in function ReadBufferAndIncludes, but it should echo the message before ("WriteLn (StdErr, s);"), but again, no such message above), or a shell command failed (but the last command called didn't fail when you called it manually -- of course, it may still fail when called from GP for some strange reason, this would then be the line "if Status <> 0 then Quit (Status);" in procedure ParseC).
Frank