<html><head></head><body bgcolor="#ffffff" text="#2e3436" link="#2a76c6" vlink="#2e3436"><div>On Sun, 2018-12-02 at 22:16 +0100, Abou Al Montacir wrote:</div><blockquote type="cite"><div>On Mon, 2018-11-12 at 16:21 +0300, Alexander Kernozhitsky wrote:</div><blockquote type="cite"><pre>Yes. The program is very minimalistic (see the attachments)
...
It seems that lazbuild tries to find the file with compiler messages, but 
fails.</pre></blockquote><div>I finally understood the issue.</div></blockquote><div>It seems not true, actually!</div><blockquote type="cite"><div>Lazbuild tries to look to the compiler error message at the wrong location:</div><pre>/usr/share/fpcsrc/3..4/compiler/msg/errore.msg</pre><div>However the error messages file is located in Debian at:</div><pre>/usr/lib/x86_64-linux-gnu/fpc/3.0.4/msg/errore.msg</pre><div>So Lazarus/lazbuild does not find it and falls back on a copy shipped by lazarus-src:</div><pre>/usr/lib/lazarus/1.8.4/components/codetools/fpc.errore.msg</pre><div>However as you did not install lazarus-src, the file pointer is nil and an error happens when trying to access it.</div><div>The first step to fix this is to try to understand why do we install the error message file in the wrong place?</div></blockquote><div>The error messages current location is decided by FPC make file and not by our scripts. And even it we are going to overwrite this we may want to move the error files to either</div><pre>/usr/share/fpc/3.0.4/compiler/msg/errore.msg</pre><div>or to</div><div><pre>/usr/share/fp-compiler-3.0.4/msg/errore.msg</pre></div><div>but not to</div><pre>/usr/share/fpcsrc/3..4/compiler/msg/errore.msg</pre><div><br></div><div>For now I'll probably try to change Lazarus default search path.</div><div><pre>-- <br></pre><span style="font-family: monospace; white-space: pre;">Cheers,
Abou Al Montacir</span></div></body></html>