[fpc-pascal] ARM crosscompiler again

Henry Vermaak henry.vermaak at gmail.com
Tue Jul 21 11:50:48 CEST 2009


2009/7/21 greim <greim at schleibinger.com>:
> so thanks i am some steps further
>
> i now installed the arm binutils from the Suse distribution
> ist version 2.19 instead of 2.16 and installed in
>
> /opt/cross/arm-linux/bin/
>
> by Yast
>
> So i now mad a call:
>
> make all CPU_TARGET=arm OS_TARGET=linux
> BINUTILSPREFIX=/opt/cross/arm-linux/bin/
>
> an voila it compiles... and ppcrossarm was in ./compiler
> fantastic.
>
> Then i did a
>
> make install CPU_TARGET=arm OS_TARGET=linux
> BINUTILSPREFIX=/opt/cross/arm-linux/bin/
>
> and now there are some files in
> /usr/bin
>
> looks fine!
>
> But now i did a
> ppcrossarm -B hallo.pas
>
> The compiler seems to run, and making the s-file, but assembling the
> s-file failed, with more then 20 error messages. like
>
> makuslinux3:/home/markus/arm # ppcrossarm -B -Aas hallo.pas
> Free Pascal Compiler version 2.3.1 [2009/07/21] for arm
> Copyright (c) 1993-2009 by Florian Klaempfl
> Target OS: Linux for ARM
> Compiling hallo.pas
> Assembling hallo
> hallo.s: Assembler messages:
> hallo.s:11: Warning: .type pseudo-op used outside of .def/.endef ignored.
> hallo.s:11: Error: junk at end of line, first unrecognized character is `P'
> hallo.s:14: Warning: .type pseudo-op used outside of .def/.endef ignored.
> hallo.s:14: Error: junk at end of line, first unrecognized character is `m'
> hallo.s:16: Error: too many memory references for `mov'
> hallo.s:17: Error: no such instruction: `stmfd r13!,{r4,r11,r12,r14,r15}'
> hallo.s:18: Error: too many memory references for `sub'
> hallo.s:19: Error: too many memory references for `sub'
> hallo.s:20: Error: no such instruction: `bl FPC_INITIALIZEUNITS'
> hallo.s:21: Error: no such instruction: `bl fpc_get_output'
> hallo.s:22: Error: too many memory references for `mov'
> hallo.s:23: Error: too many memory references for `mov'
> hallo.s:24: Error: no such instruction: `ldr r2,.Lj9'
> hallo.s:25: Error: expecting operand after ','; got nothing
> hallo.s:26: Error: no such instruction: `bl fpc_write_text_shortstr'
> hallo.s:27: Error: no such instruction: `bl FPC_IOCHECK'
> hallo.s:28: Error: too many memory references for `mov'
> hallo.s:29: Error: no such instruction: `bl fpc_writeln_end'
> hallo.s:30: Error: no such instruction: `bl FPC_IOCHECK'
> hallo.s:31: Error: no such ins....................................
> etc.
>
> any further idea..???

Using the wrong assembler?  Make sure your arm assembler and linker is
on the path.

Henry



More information about the fpc-pascal mailing list