Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2019-08

problem compiling compiler

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Marģers .

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?

Reply by email

Christo Crause
to Marģers .

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

Show quoted text 24 lines
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 ==

Reply by email

Marģers .
to Christo Crause

 

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 ==

== Configuration info ==

FPC.......... /home/user/fpc304/lib/fpc/3.0.4/ppcx64

"make info" shows correct location of starting
compiler, but during actual compilation makefile
is unable locate it.
i can successfully compile 3.0.4, but unable to
compile 3.3.1 ( few month ago i was able do so ).

Reply by email