Hi again,

I re-compiled all (fpc+lazarus+binutils) on a fresh Ubuntu 9.10 x86 VM
(virtualbox) and it seems to be ok.

Lazarus compile x86 code.

Now I'm trying again to make fpc/lazarus compatible with arm, but
there are other problems.

I compiled the ppcrossarm:
~$ ~/lazarus/fpc/2.5.1/lib/fpc/2.5.1/ppcrossarm -iV
2.5.1

But when I try to compile a simple "TestARM.pas" program:

~/TestARM$ cat TestARM.pas
program hello;
 begin
   writeln ('Hello!');
 end.

I get this error:

~/TestARM$ ~/lazarus/fpc/2.5.1/lib/fpc/2.5.1/ppcrossarm -XParm-linux-
TestARM.pas
Free Pascal Compiler version 2.5.1 [2009/12/09] for arm
Copyright (c) 1993-2009 by Florian Klaempfl
Target OS: Linux for ARM
Compiling TestARM.pas
Fatal: Can't find unit system used by hello
Fatal: Compilation aborted

Some suggestions?

Furthermore, if I set in Lazarus->Project->Compiler Options->Code:

Target OS (-T): Linux
Target CPU family (-P): arm

There is this error:

"The project uses target OS=Error: ppcarm can't be executed, error
message: Failed to execute "ppcarm", error code: 127.
The system.ppu for this target was not found in the FPC binary directories.
Make sure fpc is installed correctly for this target and fpc.cfg
contains the right directories."

this is the fpc in my fpc dir (~/lazarus/fpc/2.5.1/fpc.cfg or the
symlinked /usr/share/fpcsrc/fpc.cfg ):

~$ cat /usr/share/fpcsrc/fpc.cfg
#INCLUDE /etc/fpc.cfg
#DEFINE DEMOTEST
#DEFINE DEMOTEST1
#DEFINE LAZARUS

-Fu~/lazarus/fpc/2.5.1/lib/fpc/2.5.1/units/$fpctarget/*
-Fl~/lazarus/fpc/2.5.1/rtl/units/$fpctarget/
-Fu~/lazarus/lcl
-Fi~/lazarus/lcl/include
-Fu~/lazarus/lcl/nonwin32

-a
-Sd
-Xd
-Xs


-O-


#IFDEF CPUARM
;-XParm-linux-uclibc-
-XP~/lazarus/fpc/binutils/
-Xr~/lazarus/fpc/2.5.1/lib/fpc/2.5.1/units/$fpctarget/rtl/
-XR~/lazarus/fpc/
-darm
-CfSOFT
-CaEABI
-Tlinux

#ENDIF
#IFDEF CPUI386

-XP~/lazarus/fpc/binutils/
-Xr~/lazarus/fpc/2.5.1/rtl/units/$fpctarget/
-FL~/lazarus/fpc/ld-uClibc.so.0
#ENDIF


Thank you!

--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to