Sign in Join

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

Mailing lists / fpc-pascal / 2014-11

Cross compiler for Raspberry Pi

5 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

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

Martin Schreiber

Hi,
I try to build a fixes_2_6 cross compiler i386-linux -> arm-linux-eabihf. "
make crossinstall CPU_TARGET=arm OS_TARGET=linux CROSSBINDIR=$CROSSBINDIR OPT=-dFPC_ARMHF CROSSOPT="-Xd -CpARMV6 -CfVFPV2" INSTALL_PREFIX=$INSTALLDIR "
fails in compiling system.pp:
"
[...]
/usr/local/arm-linux-gnueabihf/bin/as -o /home/mse/packs/standard/svn/fp/arm/fixes_2_6_build/rtl/units/arm-linux/ucprt0.o arm/ucprt0.as
/home/mse/packs/standard/svn/fp/arm/fixes_2_6_build/compiler/ppcrossarm -Ur -Parm -XX -CX -Ur -Xs -O2 -n -Fi../inc -Fi../arm -Fi../unix -Fiarm -FD/usr/local/arm-linux-gnueabihf/bin -FE. -FU/home/mse/packs/standard/svn/fp/arm/fixes_2_6_build/rtl/units/arm-linux -dFPC_ARMHF -darm -dRELEASE -CpARMV6 -CfVFPV2 -Us -Sg system.pp
thread.inc(414,10) Warning: Function result does not seem to be set /home/mse/packs/standard/svn/fp/arm/fixes_2_6_build/rtl/units/arm-linux/system.s: Assembler messages:
/home/mse/packs/standard/svn/fp/arm/fixes_2_6_build/rtl/units/arm-linux/system.s:14141: Error: selected processor does not support ARM mode `fmrx r0,fpscr' /home/mse/packs/standard/svn/fp/arm/fixes_2_6_build/rtl/units/arm-linux/system.s:14147: Error: selected processor does not support ARM mode `fmxr fpscr,r0' /home/mse/packs/standard/svn/fp/arm/fixes_2_6_build/rtl/units/arm-linux/system.s:19222: Error: selected processor does not support ARM mode `fmdrr d0,r0,r1' [...]
"
What are the correct options?
BTW, I missed a list of the possible make targets, are they documented somewhere?

Thanks, Martin

Reply by email

Jonas Maebe
to Martin Schreiber
Martin Schreiber wrote
I try to build a fixes_2_6 cross compiler i386-linux -> arm-linux-eabihf.

FPC 2.6.x does not support arm-linux-eabihf. The compiler that comes with Raspbian contains custom patches that were backported from FPC trunk.

Jonas

Reply by email

Martin Schreiber
to Jonas Maebe
Jonas Maebe wrote 6 lines
On 26/11/14 10:03, Martin Schreiber wrote: > I try to build a fixes_2_6 cross compiler i386-linux -> arm-linux-eabihf. FPC 2.6.x does not support arm-linux-eabihf. The compiler that comes with Raspbian contains custom patches that were backported from FPC trunk.

Are the patches available for fixes_2_6? On Raspbian I get FPC 2.6.0.

Martin

Reply by email

Martin Schreiber
to Martin Schreiber
Martin Schreiber wrote 11 lines
On Wednesday 26 November 2014 10:04:12 Jonas Maebe wrote: > On 26/11/14 10:03, Martin Schreiber wrote: > > I try to build a fixes_2_6 cross compiler i386-linux -> > > arm-linux-eabihf. > > FPC 2.6.x does not support arm-linux-eabihf. The compiler that comes > with Raspbian contains custom patches that were backported from FPC > trunk. Are the patches available for fixes_2_6? On Raspbian I get FPC 2.6.0.

Yes, here attached.

Martin

Reply by email

Martin Schreiber
to Martin Schreiber
Martin Schreiber wrote 14 lines
On Wednesday 26 November 2014 10:41:53 Martin Schreiber wrote: > On Wednesday 26 November 2014 10:04:12 Jonas Maebe wrote: > > On 26/11/14 10:03, Martin Schreiber wrote: > > > I try to build a fixes_2_6 cross compiler i386-linux -> > > > arm-linux-eabihf. > > > > FPC 2.6.x does not support arm-linux-eabihf. The compiler that comes > > with Raspbian contains custom patches that were backported from FPC > > trunk. > > Are the patches available for fixes_2_6? On Raspbian I get FPC 2.6.0. Yes, here attached.

FPC 2.6.5 cross packages with cross-compiler, cross binutils, cross gdb and target libraries for MSEgui are here:
https://sourceforge.net/projects/mseide-msegui/files/fpcrossarm/

There is a new template project for MSEide "crossarmdefault.prj" for cross compiling and remote debugging, please read README.TXT.

Martin

Reply by email