[Lazarus] while make lazarus x64, get i386 error

Mattias Gaertner nc-gaertnma at netcologne.de
Tue Feb 24 12:14:15 CET 2015

On Tue, 24 Feb 2015 10:29:28 +0200
FreeMan <freeman35 at delphiturkiye.com> wrote:

> Sorry I been late :(
> *-) /freepascal/3.1.1/packages/fpmkunit/units_bs/i386-darwin
> this folder has many ppu and o files. is there process.ppu too.

Building FPC yourself normally contains two steps: "make all" and "make
install". The "all" compiles all ppu files, putting them across the
source directories. The "install" copies the files nicely to one
directory with one level of sub directories. Typically this
is /usr/lib/fpc/$fpcversion/units/$fpctarget/*.

The later structure is used by the paths in /etc/fpc.cfg.

> *-)/freepascal/3.1.1/packages/fcl-process/units/x86_64-darwin/process.ppu
> *-)/Volumes/ram_disk/opt/freepascal/3.1.1/lib/fpc/3.1.1/units/x86_64-darwin/fcl-process/process.ppu

You combined FPC sources (/Volumes/ram_disk/opt/freepascal/3.1.1)
with the FPC installation (/Volumes/ram_disk/opt/freepascal/3.1.1).
Although this is possible, it makes it harder to spot
misconfigurations, so it is not recommended.
If you are not an expert, do what all others do: Use different
directories. For example

make distclean all install INSTALL_PREFIX=/Volumes/ram_disk/

This creates the files under

Don't forget to remove /Volumes/ram_disk/opt/freepascal/3.1.1/lib.

And then add to your /etc/fpc.cfg

After that click in the IDE menu Tools / Rescan FPC source directory.

More information about the Lazarus mailing list