[fpc-devel] problem compiling compiler

Christo Crause christo.crause at gmail.com
Wed Aug 21 19:00:30 CEST 2019


On Wed, Aug 21, 2019 at 4:07 PM Marģers . via fpc-devel <
fpc-devel at lists.freepascal.org> wrote:

> Hi,
>  i used simple script for compiling compiler
>
> export PP=/home/user/fpc304/lib/fpc/3.0.4/ppcx64
> make singlezipinstall OS_TARGET=linux
> CPU_TARGET=x86_64    OPT="
> -Fu/home/user/fpc304/lib/fpc/3.0.4/units/x86_64-linux/rtl/"
>
> Reason of "export PP="  is that i don't have
> installed fpc, so i have to specify path where to
> find it.
> Script was fine some time ago, but now it can not
> find compiler:
>
> Makefile:135: *** Compiler
> /home/user/where/is/my/copy/of/fpc/compiler/ppcx64
> not found.  Stop.
>
>
> Can i improve my script to actually work or is it
> some sort of makefile bug?
>

The error message does not agree with your exported value of PP, so
something else is messing up. An alternative to the export command is to
specify the path to the compiler as a parameter to make, similar to the
rest of the parameters you pass to make.  To troubleshoot use the info
command for make to see how the various variables are configured:

make info PP=/home/user/fpc304/lib/fpc/3.0.4/ppcx64

If the compiler is found, it should be reported as the first line printed
after == Configuration info ==
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20190821/88d986e6/attachment.html>


More information about the fpc-devel mailing list