[fpc-devel] Current Trunk does not build for target embedded amd ARM-Cortex-M0 (Introduced in Rev 25370)

Michael Ring mail at michael-ring.org
Tue Sep 3 08:44:32 CEST 2013


Trunk for armv7m buils just fine with this commandline:

make clean buildbase CROSSINSTALL=1 OS_TARGET=embedded CPU_TARGET=arm 
SUBARCH=armv7m CROSSOPT="-O-" BINUTILSPREFIX=arm-none-eabi-

doing the same for armv6m:

make clean buildbase CROSSINSTALL=1 OS_TARGET=embedded CPU_TARGET=arm 
SUBARCH=armv6m CROSSOPT="-O-" BINUTILSPREFIX=arm-none-eabi-

gives the following errormessage:

make -C embedded all
/bin/mkdir -p /Users/ring/devel/fpc-orig/rtl/units/arm-embedded
/Users/ring/devel/fpc-orig/compiler/ppcrossarm -Cparmv6m @rtl.cfg -Ur 
-Tembedded -Parm -XParm-none-eabi- -Xr -Ur -Xs -O2 -n -Fi../inc 
-Fi../arm -FE. -FU/Users/ring/devel/fpc-orig/rtl/units/arm-embedded 
-darm -dRELEASE -O- -Us -Sg system.pp
text.inc(2082,14) Warning: Implicit string type conversion from 
"AnsiString" to "UnicodeString"
text.inc(2301,53) Warning: Implicit string type conversion with 
potential data loss from "UnicodeString" to "AnsiString"
/Users/ring/devel/fpc-orig/rtl/units/arm-embedded/system.s: Assembler 
messages:
/Users/ring/devel/fpc-orig/rtl/units/arm-embedded/system.s:13: Error: 
selected processor does not support Thumb mode `stmfd 
r13!,{r11,r12,r14,r15}'
/Users/ring/devel/fpc-orig/rtl/units/arm-embedded/system.s:14: Error: lo 
register required -- `sub r11,r12,#4'
/Users/ring/devel/fpc-orig/rtl/units/arm-embedded/system.s:16: Error: lo 
register required -- `strb r0,[r11,#-48]'

The problem started with rev 25370, all version before that build fine 
on armv6m

Comments for 25370 were:

+ arm: tsettings.instructionset
* the selected instruction set is now independent from the cpu type: e.g. armv7-a can perfectly execute thumb(2) code


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20130903/e1e1c61e/attachment.html>


More information about the fpc-devel mailing list