[fpc-pascal] Cross compile from x86 to Pi

Jonas Maebe jonas.maebe at elis.ugent.be
Wed Aug 19 09:57:11 CEST 2015


Chris Moody wrote on Tue, 18 Aug 2015:

> So I tried to compile a special version of FPC for arm, I installed:  
> binutils-2.25
>
> And I got as far as this:
>
> /home/chris/Documents/fp/fpcbuild-2.6.4/binutils/bin/as  -o  
> /home/chris/Documents/fp/fpcbuild-2.6.4/fpcsrc/rtl/units/arm-linux/prt0.o  
> arm/prt0.as
> arm/prt0.as: Assembler messages:
> arm/prt0.as:46: Error: unrecognized symbol type ""
> arm/prt0.as:49: Error: expecting operand after ','; got nothing
> arm/prt0.as:50: Error: no such instruction: `ldmia sp!,{a2}'
[snip]

These errors suggest that  
/home/chris/Documents/fp/fpcbuild-2.6.4/binutils/bin/as is not an  
assembler for ARM. If you execute
  /home/chris/Documents/fp/fpcbuild-2.6.4/binutils/bin/as --version

the last line should tell you what target it was built for.


Jonas



More information about the fpc-pascal mailing list