Jonas Maebe wrote 5 lines
On 20 Aug 2010, at 17:47, Mark Morgan Lloyd wrote:
> Is what I am doing reasonable, or should I- as an example- be using 2.4.0 to rebuild itself with -CaEABI before trying to go any further?
It's best to compile 2.4.0 with -dFPC_ARMEL (no need to use -CaEABI) and use the resulting compiler.
Thanks Jonas. It's worth noting that the hardware is an NLSU2 "Slug", so uname -a reports
Linux ... 2.6.26-2-ixp4xx #1 Mon Jun 21 20:07:59 UTC 2010 armv5tel GNU/Linux
I've got some meatier development boards but they came with CE and I've not found how to get Linux onto them yet.
If I use 2.2.2 to build an initial 2.4.0 like
make 'NOGDB=1' 'OPT=-CfSOFT' all
make 'OPT=-CfSOFT' install
I get something that can compile an app provided that I still give it -Cf. If I then try to use that to recompile itself with
make 'NOGDB=1' 'OPT=-dFPC_ARMEL' all
I get
/usr/local/bin/ppcarm -Ur -Ur -Xs -O2 -n -Fi../inc -Fi../arm -Fi../unix -Fiarm -FE.
-FU/usr/local/src/fpc/fpcbuild-2.4.0/fpcsrc/rtl/units/arm-linux -dFPC_ARMEL -darm -dRELEASE -Us -Sg system.pp
thread.inc(332,10) Warning: Function result does not seem to be set thread.inc(344,11) Warning: Function result does not seem to be set thread.inc(354,11) Warning: Function result does not seem to be set thread.inc(359,11) Warning: Function result does not seem to be set thread.inc(364,11) Warning: Function result does not seem to be set thread.inc(393,10) Warning: Function result does not seem to be set thread.inc(412,11) Warning: Function result does not seem to be set thread.inc(436,11) Warning: Function result does not seem to be set thread.inc(442,11) Warning: Function result does not seem to be set thread.inc(483,10) Warning: Function result does not seem to be set /usr/local/src/fpc/fpcbuild-2.4.0/fpcsrc/rtl/units/arm-linux/system.s: Assembler messages:
/usr/local/src/fpc/fpcbuild-2.4.0/fpcsrc/rtl/units/arm-linux/system.s:14465: Error: selected processor does not support `rfs r0' ..
/usr/local/src/fpc/fpcbuild-2.4.0/fpcsrc/rtl/units/arm-linux/system.s:56074: Error: selected processor does not support `stfd f0,[r5]' system.pp(373) Error: Error while assembling exitcode 1 system.pp(373) Fatal: There were 2 errors compiling module, stopping Fatal: Compilation aborted
make[7]: *** [system.ppu] Error 1
make[7]: Leaving directory
`/usr/local/src/fpc/fpcbuild-2.4.0/fpcsrc/rtl/linux'
What should I be doing here- using both -Cf and -d?
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk
[Opinions above are the author's, not those of his employers or colleagues]