On 06/06/07, Francisco Reyes <[EMAIL PROTECTED]> wrote:
How do I tell it where to look for the rtl units?

Tried compiling a simple progrma like:
compiler/ppcrossx64 -Xr rtl/ programs/crtxy.pp


usually fpc.cfg is configured to find the units, but because you
installed the compiled units in a different folder, you will need to
either change fpc.cfg, or pass the options to ppcrossx64.  the
relevant lines in fpc.cfg are:

-Fu/usr/lib/fpc/$fpcversion/units/$fpctarget
-Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/*
-Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/rtl

you will also want to tell ppcrossx64 what your binutils prefix is by
using -XPx86_64-freebsd-.  also make sure that the compiler can find
your binutils (put it on the path).

Thr crtxy.pp is a trivial program that uses the crt unit.

Gave me the error:
Fatal: Can't find unit System used by crtxy
Fatal: Compilation aborted

Also tried putting
{$UNITPATH /data/fpc/rtl}
At the top most line of my program.

When I installed in i386 I used the FreeBSD port so this is my first install
from source.. specially cross-compiling..

Just trying to see if my cross compile worked.
Trying on my laptop, which is FreeBSD AMD64.
Compiled on my desktop with FreeBSD i386.

henry
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to