[fpc-devel] Arm Thumb2 - Stellaris status

David Welch dwelch at dwelch.com
Sun Aug 21 00:00:27 CEST 2011


Ahhhh! that makes sense.  I assume that is either leftover from a prior 
build?  And how do I get a new/fresh build to look in the right place?

If I remove the offending fpc/2.7.1 directory and rebuild. (without 
trying to change the prefix)  it puts the same stuff back in that directory:

/opt/embarm/arm-embedded-ld: warning: library search path 
"/usr/local/lib/fpc/2.7.1/units/arm-embedded/rtl/" is unsafe for 
cross-compilation

Am I doing this wrong?

make clean buildbase installbase CROSSINSTALL=1 OS_TARGET=embedded 
CPU_TARGET=arm

If I change it to this?

make clean buildbase installbase CROSSINSTALL=1 OS_TARGET=embedded 
CPU_TARGET=cortexm3

and provide the necessary cortexm3-embedded-* tools.

make: -iVSPTPSOTO: Command not found
make: -iSP: Command not found
make: -iTP: Command not found
make: -iSO: Command not found
make: -iTO: Command not found
Makefile:203: *** The Makefile doesn't support target cortexm3-embedded, 
please run fpcmake first.  Stop.

Thanks,
David




>> "/usr/local/lib/fpc/2.7.1/units/arm-embedded/rtl/" is unsafe for
>> cross-compilation


> The problem is that you are using an RTL built for ARM. That's what the
> warning is about. You installed the compiler in /fpcarm, but it's using
> units from /usr/local/lib/fpc/2.7.1/units/arm-embedded/rtl/
>
> A correctly compiled unit would look like this:
> 00000000 <STM32F103__FPC_START>:
> 0: f8df 1034 ldr.w r1, [pc, #52] ; 38 <STM32F103__FPC_START+0x38>
> 4: 4a0d ldr r2, [pc, #52] ; (3c <STM32F103__FPC_START+0x3c>)
> 6: 4b0e ldr r3, [pc, #56] ; (40 <STM32F103__FPC_START+0x40>)
> 8: 429a cmp r2, r3
> a: bf9e ittt ls




More information about the fpc-devel mailing list