[fpc-pascal] fpc stderr broken?

Michael Van Canneyt michael at freepascal.org
Mon May 26 16:46:01 CEST 2014



On Mon, 26 May 2014, Mattias Gaertner wrote:

> Hi all,
>
> When I compile a program with a duplicate $R
> directive fpc (2.6.4) gives an error. Unlike other error messages this
> error is written to stderr (under Linux and OS X).
> Running fpc in a shell seems to always work. The output/stdout and
> stderr are both written nicely together.
> But when the stderr is redirected (e.g. fpc test.pas 2> errors.txt)
> then errors.txt is empty and the stderr error message is lost. And
> depending on the quantity of output/stdout some output bytes in front
> of the error are missing too.
> The same happens when running fpc via TProcess (with or without
> poStdErrToOutput).
>
> Is it a bug in fpc or in ppcx64 or in fpcres?

fpcres, I think, because the compiler does not use stderr, to my knowledge...

Michael.



More information about the fpc-pascal mailing list