[fpc-pascal] Proper preprocessor?

Sven Barth pascaldragon at googlemail.com
Thu Jun 21 11:14:26 CEST 2018


Ryan Joseph <ryan at thealchemistguild.com> schrieb am Do., 21. Juni 2018,
08:37:

>
>
> > On Jun 21, 2018, at 1:21 PM, Ryan Joseph <ryan at thealchemistguild.com>
> wrote:
> >
> > Thanks Sven. So it was the Lazarus step I was missing! I know about
> using “lazbuild” from the command line but there are many .lpi projects in
> /compiler. Which one is ppc386? I see ppcx64.lpi but not ppc386.
>

pp.lpi is the i386 one (it was the first one, so no suffix ;)).


> I figured out how to build the “pp” project (not sure if this is the right
> one) but I’m getting a PPU error now. What do I do about system.ppu?
>
> Ryans-MacBook-Pro:fpc ryanjoseph$
> /Developer/ObjectivePascal/fpc/compiler/i386/pp
> /Users/ryanjoseph/Downloads/macro_test.pas
> Free Pascal Compiler version 3.1.1 [2018/06/21] for i386
> Copyright (c) 1993-2018 by Florian Klaempfl and others
> Target OS: Darwin for i386
> Compiling /Users/ryanjoseph/Downloads/macro_test.pas
> PPU Loading /usr/local/lib/fpc/3.1.1/units/i386-darwin/rtl/system.ppu
> PPU Invalid Version 195
> Fatal: Can't find unit system used by macro_test
> Fatal: Compilation aborted
>

You need to pass the correct parameters. I usually pass the following:

-n -Furtl/units/<CPU>-<OS> -viwn - FEtestoutput ./fpctests/mytest.pp

And set the current working directory to the top level directory of the
checkout.

testoutput and fpctests are two directories that I created in the top level
directory to keep things clean.

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20180621/ab060a2f/attachment.html>


More information about the fpc-pascal mailing list