Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2011-10

Making a cross-compiler for STM32

9 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Koenraad Lelong

Hi,

I'm trying to make a crosscompliler for STM32 (arm-embedded) on my linux-machine. I just downloaded a daily development snapshot and compiled it with :
make clean buildbase installbase CROSSINSTALL=1 CROSSOPT="-CfSoft -XParm-elf-" OS_TARGET=embedded CPU_TARGET=arm
PREFIX=/home/koenraad/Documents/devel SUBARCH=armv7m

All seems fine except I get an error when the rtl gets compiled :

/bin/mkdir -p /home/koenraad/Downloads/STM32/fpc/rtl/units/arm-embedded
/home/koenraad/Downloads/STM32/fpc/compiler/ppcrossarm -Cparmv7m
@rtl.cfg -Ur -Tembedded -Parm -XParm-embedded- -Xr -Ur -Xs -O2 -n
-Fi../inc -Fi../arm -FE.
-FU/home/koenraad/Downloads/STM32/fpc/rtl/units/arm-embedded -darm
-dRELEASE -CfSoft -XParm-elf- -Us -Sg system.pp
/home/koenraad/Downloads/STM32/fpc/compiler/ppcrossarm -Cparmv7m
@rtl.cfg -Ur -Tembedded -Parm -XParm-embedded- -Xr -Ur -Xs -O2 -n
-Fi../inc -Fi../arm -FE.
-FU/home/koenraad/Downloads/STM32/fpc/rtl/units/arm-embedded -darm
-dRELEASE -CfSoft -XParm-elf- arm/lm3fury.pp
/home/koenraad/Downloads/STM32/fpc/compiler/ppcrossarm -Cparmv7m
@rtl.cfg -Ur -Tembedded -Parm -XParm-embedded- -Xr -Ur -Xs -O2 -n
-Fi../inc -Fi../arm -FE.
-FU/home/koenraad/Downloads/STM32/fpc/rtl/units/arm-embedded -darm
-dRELEASE -CfSoft -XParm-elf- arm/lm3tempest.pp
/home/koenraad/Downloads/STM32/fpc/compiler/ppcrossarm -Cparmv7m
@rtl.cfg -Ur -Tembedded -Parm -XParm-embedded- -Xr -Ur -Xs -O2 -n
-Fi../inc -Fi../arm -FE.
-FU/home/koenraad/Downloads/STM32/fpc/rtl/units/arm-embedded -darm
-dRELEASE -CfSoft -XParm-elf- arm/stm32f103.pp
/home/koenraad/Downloads/STM32/fpc/compiler/ppcrossarm -Cparmv7m
@rtl.cfg -Ur -Tembedded -Parm -XParm-embedded- -Xr -Ur -Xs -O2 -n
-Fi../inc -Fi../arm -FE.
-FU/home/koenraad/Downloads/STM32/fpc/rtl/units/arm-embedded -darm
-dRELEASE -CfSoft -XParm-elf- arm/lpc1768.pp
/home/koenraad/Downloads/STM32/fpc/compiler/ppcrossarm -Cparmv7m
@rtl.cfg -Ur -Tembedded -Parm -XParm-embedded- -Xr -Ur -Xs -O2 -n
-Fi../inc -Fi../arm -FE.
-FU/home/koenraad/Downloads/STM32/fpc/rtl/units/arm-embedded -darm
-dRELEASE -CfSoft -XParm-elf- -I../objpas ../objpas/objpas.pp
/home/koenraad/Downloads/STM32/fpc/compiler/ppcrossarm -Cparmv7m
@rtl.cfg -Ur -Tembedded -Parm -XParm-embedded- -Xr -Ur -Xs -O2 -n
-Fi../inc -Fi../arm -FE.
-FU/home/koenraad/Downloads/STM32/fpc/rtl/units/arm-embedded -darm
-dRELEASE -CfSoft -XParm-elf- heapmgr.pp
heapmgr.pp(23,34) Error: Identifier not found "TMemoryManager"
heapmgr.pp(23,34) Error: Error in type definition
heap.inc(211,37) Error: Identifier not found "TFPCHeapStatus"
heap.inc(211,37) Error: Error in type definition
heap.inc(214,1) Error: Forward type not resolved "Tfpcheapstatus"
heap.inc(367,44) Error: Identifier not found "TFPCHeapStatus"
heap.inc(372,11) Error: Illegal qualifier
heap.inc(372,35) Error: Illegal qualifier
heap.inc(372,58) Error: Illegal qualifier
heap.inc(376,39) Error: Identifier not found "THeapStatus"
heap.inc(381,11) Error: Illegal qualifier
heap.inc(381,35) Error: Illegal qualifier
heap.inc(381,58) Error: Illegal qualifier
heap.inc(382,10) Error: Illegal qualifier
heap.inc(382,37) Error: Illegal qualifier
heap.inc(383,10) Error: Illegal qualifier
heap.inc(383,37) Error: Illegal qualifier
heap.inc(384,10) Error: Illegal qualifier
heap.inc(384,37) Error: Illegal qualifier
heap.inc(385,10) Error: Illegal qualifier
heap.inc(386,10) Error: Illegal qualifier
heap.inc(387,10) Error: Illegal qualifier
heap.inc(388,10) Error: Illegal qualifier
heap.inc(389,10) Error: Illegal qualifier
heap.inc(390,10) Error: Illegal qualifier
heap.inc(391,10) Error: Illegal qualifier
heap.inc(528,38) Error: Illegal qualifier
heap.inc(778,48) Error: Identifier not found "MaxKeptOSChunks"
heap.inc(830,35) Error: Identifier not found "GrowHeapSize1"
heap.inc(832,42) Error: Identifier not found "GrowHeapSize1"
heap.inc(834,34) Error: Identifier not found "GrowHeapSize1"
heap.inc(837,35) Error: Identifier not found "GrowHeapSize2"
heap.inc(839,42) Error: Identifier not found "GrowHeapSize2"
heap.inc(841,34) Error: Identifier not found "GrowHeapSize2"
heap.inc(852,41) Error: Identifier not found "ReturnNilIfGrowHeapFails"
heap.inc(869,19) Error: Illegal qualifier
heap.inc(870,18) Error: Illegal qualifier
heap.inc(870,41) Error: Illegal qualifier
heap.inc(871,17) Error: Illegal qualifier
heap.inc(871,40) Error: Illegal qualifier
heap.inc(976,39) Error: Expression type must be class or record type
heap.inc(978,21) Error: Identifier not found "currheapused"
heap.inc(979,21) Error: Identifier not found "currheapused"
heap.inc(979,35) Error: Identifier not found "maxheapused"
heap.inc(981,19) Error: Identifier not found "maxheapused"
heap.inc(981,34) Error: Identifier not found "currheapused"
heap.inc(1001,33) Error: Identifier not found "ReturnNilIfGrowHeapFails"
heap.inc(1045,39) Error: Expression type must be class or record type
heap.inc(1047,21) Error: Identifier not found "currheapused"
heap.inc(1048,21) Error: Identifier not found "currheapused"
heap.inc(1048,21) Fatal: There were 50 errors compiling module, stopping
Fatal: Compilation aborted
make[3]: *** [heapmgr.ppu] Fout 1
make[3]: Map '/home/koenraad/Downloads/STM32/fpc/rtl/embedded' wordt
verlaten
make[2]: *** [embedded_all] Fout 2
make[2]: Map '/home/koenraad/Downloads/STM32/fpc/rtl' wordt verlaten
make[1]: *** [rtl_all] Fout 2
make[1]: Map '/home/koenraad/Downloads/STM32/fpc' wordt verlaten
make: *** [base.build-stamp.arm-embedded] Fout 2

Did I do anything wrong ? Or is the snapshot unstable for those devices ? How can I get a working compiler ?

Thanks,

Koenraad Lelong

Reply by email

Jeppe Græsdal Johansen
to Koenraad Lelong

Those errors seem to relate to some recent changes in the way heap management is done. Last I checked it worked just fine, but other things might have changed which broke it. I'll try to confirm if it's broken later on

But if you try revision 19167 then those changes shouldn't be there. I'm fairly certain that should build

Koenraad Lelong wrote 117 lines
Hi, I'm trying to make a crosscompliler for STM32 (arm-embedded) on my linux-machine. I just downloaded a daily development snapshot and compiled it with : make clean buildbase installbase CROSSINSTALL=1 CROSSOPT="-CfSoft -XParm-elf-" OS_TARGET=embedded CPU_TARGET=arm PREFIX=/home/koenraad/Documents/devel SUBARCH=armv7m All seems fine except I get an error when the rtl gets compiled : /bin/mkdir -p /home/koenraad/Downloads/STM32/fpc/rtl/units/arm-embedded /home/koenraad/Downloads/STM32/fpc/compiler/ppcrossarm -Cparmv7m @rtl.cfg -Ur -Tembedded -Parm -XParm-embedded- -Xr -Ur -Xs -O2 -n -Fi../inc -Fi../arm -FE. -FU/home/koenraad/Downloads/STM32/fpc/rtl/units/arm-embedded -darm -dRELEASE -CfSoft -XParm-elf- -Us -Sg system.pp /home/koenraad/Downloads/STM32/fpc/compiler/ppcrossarm -Cparmv7m @rtl.cfg -Ur -Tembedded -Parm -XParm-embedded- -Xr -Ur -Xs -O2 -n -Fi../inc -Fi../arm -FE. -FU/home/koenraad/Downloads/STM32/fpc/rtl/units/arm-embedded -darm -dRELEASE -CfSoft -XParm-elf- arm/lm3fury.pp /home/koenraad/Downloads/STM32/fpc/compiler/ppcrossarm -Cparmv7m @rtl.cfg -Ur -Tembedded -Parm -XParm-embedded- -Xr -Ur -Xs -O2 -n -Fi../inc -Fi../arm -FE. -FU/home/koenraad/Downloads/STM32/fpc/rtl/units/arm-embedded -darm -dRELEASE -CfSoft -XParm-elf- arm/lm3tempest.pp /home/koenraad/Downloads/STM32/fpc/compiler/ppcrossarm -Cparmv7m @rtl.cfg -Ur -Tembedded -Parm -XParm-embedded- -Xr -Ur -Xs -O2 -n -Fi../inc -Fi../arm -FE. -FU/home/koenraad/Downloads/STM32/fpc/rtl/units/arm-embedded -darm -dRELEASE -CfSoft -XParm-elf- arm/stm32f103.pp /home/koenraad/Downloads/STM32/fpc/compiler/ppcrossarm -Cparmv7m @rtl.cfg -Ur -Tembedded -Parm -XParm-embedded- -Xr -Ur -Xs -O2 -n -Fi../inc -Fi../arm -FE. -FU/home/koenraad/Downloads/STM32/fpc/rtl/units/arm-embedded -darm -dRELEASE -CfSoft -XParm-elf- arm/lpc1768.pp /home/koenraad/Downloads/STM32/fpc/compiler/ppcrossarm -Cparmv7m @rtl.cfg -Ur -Tembedded -Parm -XParm-embedded- -Xr -Ur -Xs -O2 -n -Fi../inc -Fi../arm -FE. -FU/home/koenraad/Downloads/STM32/fpc/rtl/units/arm-embedded -darm -dRELEASE -CfSoft -XParm-elf- -I../objpas ../objpas/objpas.pp /home/koenraad/Downloads/STM32/fpc/compiler/ppcrossarm -Cparmv7m @rtl.cfg -Ur -Tembedded -Parm -XParm-embedded- -Xr -Ur -Xs -O2 -n -Fi../inc -Fi../arm -FE. -FU/home/koenraad/Downloads/STM32/fpc/rtl/units/arm-embedded -darm -dRELEASE -CfSoft -XParm-elf- heapmgr.pp heapmgr.pp(23,34) Error: Identifier not found "TMemoryManager" heapmgr.pp(23,34) Error: Error in type definition heap.inc(211,37) Error: Identifier not found "TFPCHeapStatus" heap.inc(211,37) Error: Error in type definition heap.inc(214,1) Error: Forward type not resolved "Tfpcheapstatus" heap.inc(367,44) Error: Identifier not found "TFPCHeapStatus" heap.inc(372,11) Error: Illegal qualifier heap.inc(372,35) Error: Illegal qualifier heap.inc(372,58) Error: Illegal qualifier heap.inc(376,39) Error: Identifier not found "THeapStatus" heap.inc(381,11) Error: Illegal qualifier heap.inc(381,35) Error: Illegal qualifier heap.inc(381,58) Error: Illegal qualifier heap.inc(382,10) Error: Illegal qualifier heap.inc(382,37) Error: Illegal qualifier heap.inc(383,10) Error: Illegal qualifier heap.inc(383,37) Error: Illegal qualifier heap.inc(384,10) Error: Illegal qualifier heap.inc(384,37) Error: Illegal qualifier heap.inc(385,10) Error: Illegal qualifier heap.inc(386,10) Error: Illegal qualifier heap.inc(387,10) Error: Illegal qualifier heap.inc(388,10) Error: Illegal qualifier heap.inc(389,10) Error: Illegal qualifier heap.inc(390,10) Error: Illegal qualifier heap.inc(391,10) Error: Illegal qualifier heap.inc(528,38) Error: Illegal qualifier heap.inc(778,48) Error: Identifier not found "MaxKeptOSChunks" heap.inc(830,35) Error: Identifier not found "GrowHeapSize1" heap.inc(832,42) Error: Identifier not found "GrowHeapSize1" heap.inc(834,34) Error: Identifier not found "GrowHeapSize1" heap.inc(837,35) Error: Identifier not found "GrowHeapSize2" heap.inc(839,42) Error: Identifier not found "GrowHeapSize2" heap.inc(841,34) Error: Identifier not found "GrowHeapSize2" heap.inc(852,41) Error: Identifier not found "ReturnNilIfGrowHeapFails" heap.inc(869,19) Error: Illegal qualifier heap.inc(870,18) Error: Illegal qualifier heap.inc(870,41) Error: Illegal qualifier heap.inc(871,17) Error: Illegal qualifier heap.inc(871,40) Error: Illegal qualifier heap.inc(976,39) Error: Expression type must be class or record type heap.inc(978,21) Error: Identifier not found "currheapused" heap.inc(979,21) Error: Identifier not found "currheapused" heap.inc(979,35) Error: Identifier not found "maxheapused" heap.inc(981,19) Error: Identifier not found "maxheapused" heap.inc(981,34) Error: Identifier not found "currheapused" heap.inc(1001,33) Error: Identifier not found "ReturnNilIfGrowHeapFails" heap.inc(1045,39) Error: Expression type must be class or record type heap.inc(1047,21) Error: Identifier not found "currheapused" heap.inc(1048,21) Error: Identifier not found "currheapused" heap.inc(1048,21) Fatal: There were 50 errors compiling module, stopping Fatal: Compilation aborted make[3]: *** [heapmgr.ppu] Fout 1 make[3]: Map '/home/koenraad/Downloads/STM32/fpc/rtl/embedded' wordt verlaten make[2]: *** [embedded_all] Fout 2 make[2]: Map '/home/koenraad/Downloads/STM32/fpc/rtl' wordt verlaten make[1]: *** [rtl_all] Fout 2 make[1]: Map '/home/koenraad/Downloads/STM32/fpc' wordt verlaten make: *** [base.build-stamp.arm-embedded] Fout 2 Did I do anything wrong ? Or is the snapshot unstable for those devices ? How can I get a working compiler ? Thanks, Koenraad Lelong _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply by email

Koenraad Lelong
to Jeppe Græsdal Johansen
Jeppe Græsdal Johansen wrote 8 lines
Those errors seem to relate to some recent changes in the way heap management is done. Last I checked it worked just fine, but other things might have changed which broke it. I'll try to confirm if it's broken later on But if you try revision 19167 then those changes shouldn't be there. I'm fairly certain that should build

Hi Jeppe,

Now I could make my compiler.
I also tried to compile a program (downloaded from your site) with the compiler, but I got a whole bunch of warnings. Is there a a way to solve these ?

Many thanks,

Koenraad Lelong.

~/Documents/devel/lib/fpc/2.7.1/ppcrossarm -Parm -Tembedded -Wpstm32f103re -Cfsoft -Cparmv7m -XParm-elf-
-Fu~/Documents/devel/lib/fpc/2.7.1/units/arm-embedded/rtl/ test.pas Free Pascal Compiler version 2.7.1 [2011/10/11] for arm Copyright (c) 1993-2011 by Florian Klaempfl and others Target OS: Embedded
Compiling test.pas
Assembling test
Linking test
/home/koenraad/bin/arm-elf-ld: test.o: Warning: Thumb BLX instruction targets thumb function 'STM32F103FW_$$_RCC_DEINIT'. /home/koenraad/bin/arm-elf-ld: test.o: Warning: Thumb BLX instruction targets thumb function 'STM32F103FW_$$_RCC_HSECONFIG$TRCCSTATUS'. /home/koenraad/bin/arm-elf-ld: test.o: Warning: Thumb BLX instruction targets thumb function 'STM32F103FW_$$_RCC_WAITFORHSESTARTUP$$BOOLEAN'. /home/koenraad/bin/arm-elf-ld: test.o: Warning: Thumb BLX instruction targets thumb function 'STM32F103FW_$$_FLASH_PREFETCHBUFFERCMD$LONGWORD'. /home/koenraad/bin/arm-elf-ld: test.o: Warning: Thumb BLX instruction targets thumb function 'STM32F103FW_$$_FLASH_SETLATENCY$LONGWORD'. /home/koenraad/bin/arm-elf-ld: test.o: Warning: Thumb BLX instruction targets thumb function 'STM32F103FW_$$_RCC_HCLKCONFIG$LONGWORD'. /home/koenraad/bin/arm-elf-ld: test.o: Warning: Thumb BLX instruction targets thumb function 'STM32F103FW_$$_RCC_PCLK2CONFIG$LONGWORD'. /home/koenraad/bin/arm-elf-ld: test.o: Warning: Thumb BLX instruction targets thumb function 'STM32F103FW_$$_RCC_PCLK1CONFIG$LONGWORD'. /home/koenraad/bin/arm-elf-ld: test.o: Warning: Thumb BLX instruction targets thumb function 'STM32F103FW_$$_RCC_PLLCONFIG$LONGWORD$LONGWORD'. /home/koenraad/bin/arm-elf-ld: test.o: Warning: Thumb BLX instruction targets thumb function 'STM32F103FW_$$_RCC_PLLCMD$TSTATE'. /home/koenraad/bin/arm-elf-ld: test.o: Warning: Thumb BLX instruction targets thumb function 'STM32F103FW_$$_RCC_GETFLAGSTATUS$BYTE$$LONGWORD'. /home/koenraad/bin/arm-elf-ld: test.o: Warning: Thumb BLX instruction targets thumb function 'STM32F103FW_$$_RCC_SYSCLKCONFIG$LONGWORD'. /home/koenraad/bin/arm-elf-ld: test.o: Warning: Thumb BLX instruction targets thumb function 'STM32F103FW_$$_RCC_GETSYSCLKSOURCE$$BYTE'. /home/koenraad/bin/arm-elf-ld: test.o: Warning: Thumb BLX instruction targets thumb function 'STM32F103FW_$$_GPIO_DEINIT$TPORTREGISTERS'. /home/koenraad/bin/arm-elf-ld: test.o: Warning: Thumb BLX instruction targets thumb function 'STM32F103FW_$$_GPIO_STRUCTINIT$TGPIO_INITTYPEDEF'. /home/koenraad/bin/arm-elf-ld: test.o: Warning: Thumb BLX instruction targets thumb function
'STM32F103FW_$$_GPIO_INIT$TPORTREGISTERS$TGPIO_INITTYPEDEF'. /home/koenraad/bin/arm-elf-ld: test.o: Warning: Thumb BLX instruction targets thumb function
'STM32F103FW_$$_GPIO_INIT$TPORTREGISTERS$TGPIO_INITTYPEDEF'. /home/koenraad/bin/arm-elf-ld: test.o: Warning: Thumb BLX instruction targets thumb function 'STM32F103FW_$$_USART_DEINIT$TUSARTREGISTERS'. /home/koenraad/bin/arm-elf-ld: test.o: Warning: Thumb BLX instruction targets thumb function 'STM32F103FW_$$_USART_STRUCTINIT$TUSART_INITTYPEDEF'. /home/koenraad/bin/arm-elf-ld: test.o: Warning: Thumb BLX instruction targets thumb function
'STM32F103FW_$$_USART_INIT$TUSARTREGISTERS$TUSART_INITTYPEDEF'. /home/koenraad/bin/arm-elf-ld: test.o: Warning: Thumb BLX instruction targets thumb function 'STM32F103FW_$$_USART_CMD$TUSARTREGISTERS$TSTATE'. /home/koenraad/bin/arm-elf-ld: test.o: Warning: Thumb BLX instruction targets thumb function
'STM32F103FW_$$_USART_GETFLAGSTATUS$TUSARTREGISTERS$WORD$$LONGWORD'. /home/koenraad/bin/arm-elf-ld: test.o: Warning: Thumb BLX instruction targets thumb function 'STM32F103FW_$$_USART_SENDDATA$TUSARTREGISTERS$WORD'. /home/koenraad/bin/arm-elf-ld: test.o: Warning: Thumb BLX instruction targets thumb function 'FPC_INITIALIZEUNITS'.
/home/koenraad/bin/arm-elf-ld: test.o: Warning: Thumb BLX instruction targets thumb function 'P$TEST_$$_RCC_CONFIGURE'.
/home/koenraad/bin/arm-elf-ld: test.o: Warning: Thumb BLX instruction targets thumb function
'STM32F103FW_$$_RCC_APB2PERIPHCLOCKCMD$LONGWORD$TSTATE'. /home/koenraad/bin/arm-elf-ld: test.o: Warning: Thumb BLX instruction targets thumb function 'P$TEST_$$_GPIO_CONFIGURE'. /home/koenraad/bin/arm-elf-ld: test.o: Warning: Thumb BLX instruction targets thumb function 'P$TEST_$$_USART_CONFIGURE'. /home/koenraad/bin/arm-elf-ld: test.o: Warning: Thumb BLX instruction targets thumb function
'STM32F103FW_$$_GPIO_INIT$TPORTREGISTERS$TGPIO_INITTYPEDEF'. /home/koenraad/bin/arm-elf-ld: test.o: Warning: Thumb BLX instruction targets thumb function 'P$TEST_$$_USART_PUTCHAR$CHAR'. /home/koenraad/bin/arm-elf-ld: test.o: Warning: Thumb BLX instruction targets thumb function 'P$TEST_$$_USART_PUTCHAR$CHAR'. /home/koenraad/bin/arm-elf-ld: test.o: Warning: Thumb BLX instruction targets thumb function 'P$TEST_$$_USART_PUTCHAR$CHAR'. /home/koenraad/bin/arm-elf-ld: test.o: Warning: Thumb BLX instruction targets thumb function 'P$TEST_$$_USART_PUTCHAR$CHAR'. /home/koenraad/bin/arm-elf-ld: test.o: Warning: Thumb BLX instruction targets thumb function 'P$TEST_$$_USART_PUTCHAR$CHAR'. /home/koenraad/bin/arm-elf-ld: test.o: Warning: Thumb BLX instruction targets thumb function 'STM32F103FW_$$_GPIO_SETBITS$TPORTREGISTERS$WORD'. /home/koenraad/bin/arm-elf-ld: test.o: Warning: Thumb BLX instruction targets thumb function 'STM32F103FW_$$_GPIO_RESETBITS$TPORTREGISTERS$WORD'. /home/koenraad/bin/arm-elf-ld: test.o: Warning: Thumb BLX instruction targets thumb function 'P$TEST_$$_DELAY'.
/home/koenraad/bin/arm-elf-ld: test.o: Warning: Thumb BLX instruction targets thumb function 'STM32F103FW_$$_GPIO_RESETBITS$TPORTREGISTERS$WORD'. /home/koenraad/bin/arm-elf-ld: test.o: Warning: Thumb BLX instruction targets thumb function 'STM32F103FW_$$_GPIO_SETBITS$TPORTREGISTERS$WORD'. /home/koenraad/bin/arm-elf-ld: test.o: Warning: Thumb BLX instruction targets thumb function 'P$TEST_$$_DELAY'.
/home/koenraad/bin/arm-elf-ld: test.o: Warning: Thumb BLX instruction targets thumb function 'P$TEST_$$_USART_PUTCHAR$CHAR'. /home/koenraad/bin/arm-elf-ld: test.o: Warning: Thumb BLX instruction targets thumb function 'FPC_DO_EXIT'.
/home/koenraad/bin/arm-elf-ld:
/home/koenraad/Documents/devel/lib/fpc/2.7.1/units/arm-embedded/rtl/system.o: Warning: Thumb BLX instruction targets thumb function 'SYSTEM_$$_SYSINITFPU'.
/home/koenraad/bin/arm-elf-ld:
/home/koenraad/Documents/devel/lib/fpc/2.7.1/units/arm-embedded/rtl/system.o: Warning: Thumb BLX instruction targets thumb function 'SYSTEM_$$_FPC_CPUINIT'.
/home/koenraad/bin/arm-elf-ld:
/home/koenraad/Documents/devel/lib/fpc/2.7.1/units/arm-embedded/rtl/system.o: Warning: Thumb BLX instruction targets thumb function 'SYSTEM_$$_FINALIZEUNITS'.
/home/koenraad/bin/arm-elf-ld:
/home/koenraad/Documents/devel/lib/fpc/2.7.1/units/arm-embedded/rtl/system.o: Warning: Thumb BLX instruction targets thumb function 'SYSTEM_$$_INTERNALEXIT'.
/home/koenraad/bin/arm-elf-ld:
/home/koenraad/Documents/devel/lib/fpc/2.7.1/units/arm-embedded/rtl/system.o: Warning: Thumb BLX instruction targets thumb function 'SYSTEM_$$_SYSTEM_EXIT'.
/home/koenraad/bin/arm-elf-ld:
/home/koenraad/Documents/devel/lib/fpc/2.7.1/units/arm-embedded/rtl/system.o: Warning: Thumb BLX instruction targets thumb function 'SYSTEM_$$_DO_EXIT'. /home/koenraad/bin/arm-elf-ld:
/home/koenraad/Documents/devel/lib/fpc/2.7.1/units/arm-embedded/rtl/system.o: Warning: Thumb BLX instruction targets thumb function 'SYSTEM_$$_HALT$LONGINT'.
/home/koenraad/bin/arm-elf-ld:
/home/koenraad/Documents/devel/lib/fpc/2.7.1/units/arm-embedded/rtl/system.o: Warning: Thumb BLX instruction targets thumb function 'SYSTEM_$$_HALT$LONGINT'.
/home/koenraad/bin/arm-elf-ld:
/home/koenraad/Documents/devel/lib/fpc/2.7.1/units/arm-embedded/rtl/system.o: Warning: Thumb BLX instruction targets thumb function 'SYSTEM_$$_GET_CALLER_FRAME$POINTER$$POINTER'.
/home/koenraad/bin/arm-elf-ld:
/home/koenraad/Documents/devel/lib/fpc/2.7.1/units/arm-embedded/rtl/system.o: Warning: Thumb BLX instruction targets thumb function 'SYSTEM_$$_GET_CALLER_ADDR$POINTER$$POINTER'.
/home/koenraad/bin/arm-elf-ld:
/home/koenraad/Documents/devel/lib/fpc/2.7.1/units/arm-embedded/rtl/system.o: Warning: Thumb BLX instruction targets thumb function 'SYSTEM_$$_HANDLEERRORADDRFRAME$LONGINT$POINTER$POINTER'. /home/koenraad/bin/arm-elf-ld:
/home/koenraad/Documents/devel/lib/fpc/2.7.1/units/arm-embedded/rtl/system.o: Warning: Thumb BLX instruction targets thumb function '_haltproc'. /home/koenraad/bin/arm-elf-ld: stm32f103fw.o: Warning: Thumb BLX instruction targets thumb function
'STM32F103FW_$$_RCC_GETFLAGSTATUS$BYTE$$LONGWORD'. /home/koenraad/bin/arm-elf-ld: stm32f103fw.o: Warning: Thumb BLX instruction targets thumb function
'STM32F103FW_$$_RCC_GETFLAGSTATUS$BYTE$$LONGWORD'. /home/koenraad/bin/arm-elf-ld: stm32f103fw.o: Warning: Thumb BLX instruction targets thumb function 'fpc_div_dword'. /home/koenraad/bin/arm-elf-ld: stm32f103fw.o: Warning: Thumb BLX instruction targets thumb function
'STM32F103FW_$$_RCC_APB2PERIPHRESETCMD$LONGWORD$TSTATE'. /home/koenraad/bin/arm-elf-ld: stm32f103fw.o: Warning: Thumb BLX instruction targets thumb function
'STM32F103FW_$$_RCC_APB2PERIPHRESETCMD$LONGWORD$TSTATE'. /home/koenraad/bin/arm-elf-ld: stm32f103fw.o: Warning: Thumb BLX instruction targets thumb function
'STM32F103FW_$$_RCC_APB2PERIPHRESETCMD$LONGWORD$TSTATE'. /home/koenraad/bin/arm-elf-ld: stm32f103fw.o: Warning: Thumb BLX instruction targets thumb function
'STM32F103FW_$$_RCC_APB2PERIPHRESETCMD$LONGWORD$TSTATE'. /home/koenraad/bin/arm-elf-ld: stm32f103fw.o: Warning: Thumb BLX instruction targets thumb function
'STM32F103FW_$$_RCC_APB2PERIPHRESETCMD$LONGWORD$TSTATE'. /home/koenraad/bin/arm-elf-ld: stm32f103fw.o: Warning: Thumb BLX instruction targets thumb function
'STM32F103FW_$$_RCC_APB2PERIPHRESETCMD$LONGWORD$TSTATE'. /home/koenraad/bin/arm-elf-ld: stm32f103fw.o: Warning: Thumb BLX instruction targets thumb function
'STM32F103FW_$$_RCC_APB2PERIPHRESETCMD$LONGWORD$TSTATE'. /home/koenraad/bin/arm-elf-ld: stm32f103fw.o: Warning: Thumb BLX instruction targets thumb function
'STM32F103FW_$$_RCC_APB2PERIPHRESETCMD$LONGWORD$TSTATE'. /home/koenraad/bin/arm-elf-ld: stm32f103fw.o: Warning: Thumb BLX instruction targets thumb function
'STM32F103FW_$$_RCC_APB2PERIPHRESETCMD$LONGWORD$TSTATE'. /home/koenraad/bin/arm-elf-ld: stm32f103fw.o: Warning: Thumb BLX instruction targets thumb function
'STM32F103FW_$$_RCC_APB2PERIPHRESETCMD$LONGWORD$TSTATE'. /home/koenraad/bin/arm-elf-ld: stm32f103fw.o: Warning: Thumb BLX instruction targets thumb function
'STM32F103FW_$$_RCC_APB2PERIPHRESETCMD$LONGWORD$TSTATE'. /home/koenraad/bin/arm-elf-ld: stm32f103fw.o: Warning: Thumb BLX instruction targets thumb function
'STM32F103FW_$$_RCC_APB2PERIPHRESETCMD$LONGWORD$TSTATE'. /home/koenraad/bin/arm-elf-ld: stm32f103fw.o: Warning: Thumb BLX instruction targets thumb function
'STM32F103FW_$$_RCC_APB1PERIPHRESETCMD$LONGWORD$TSTATE'. /home/koenraad/bin/arm-elf-ld: stm32f103fw.o: Warning: Thumb BLX instruction targets thumb function
'STM32F103FW_$$_RCC_APB1PERIPHRESETCMD$LONGWORD$TSTATE'. /home/koenraad/bin/arm-elf-ld: stm32f103fw.o: Warning: Thumb BLX instruction targets thumb function
'STM32F103FW_$$_RCC_APB1PERIPHRESETCMD$LONGWORD$TSTATE'. /home/koenraad/bin/arm-elf-ld: stm32f103fw.o: Warning: Thumb BLX instruction targets thumb function
'STM32F103FW_$$_RCC_APB1PERIPHRESETCMD$LONGWORD$TSTATE'. /home/koenraad/bin/arm-elf-ld: stm32f103fw.o: Warning: Thumb BLX instruction targets thumb function
'STM32F103FW_$$_RCC_GETCLOCKSFREQ$TRCC_CLOCKSTYPEDEF'. /home/koenraad/bin/arm-elf-ld: stm32f103fw.o: Warning: Thumb BLX instruction targets thumb function 'fpc_div_dword'. 131 lines compiled, 0.1 sec, 5892 bytes code, 172 bytes data

Reply by email

Jeppe Græsdal Johansen
to Koenraad Lelong
Koenraad Lelong wrote 19 lines
On 11-10-11 15:56, Jeppe Græsdal Johansen wrote: > Those errors seem to relate to some recent changes in the way heap > management is done. Last I checked it worked just fine, but other things > might have changed which broke it. I'll try to confirm if it's broken > later on > > But if you try revision 19167 then those changes shouldn't be there. I'm > fairly certain that should build > Hi Jeppe, Now I could make my compiler. I also tried to compile a program (downloaded from your site) with the compiler, but I got a whole bunch of warnings. Is there a a way to solve these ? Many thanks, Koenraad Lelong.

That's a problem, since that error was fixed in revision 19238.

Btw. I just tested, and I had no problem building the svn trunk version using fpc 2.71. What version of fpc did you try to build with?

Regards,
Jeppe

Reply by email

Koenraad Lelong
to Jeppe Græsdal Johansen
Jeppe Græsdal Johansen wrote 7 lines
That's a problem, since that error was fixed in revision 19238. Btw. I just tested, and I had no problem building the svn trunk version using fpc 2.71. What version of fpc did you try to build with? Regards, Jeppe

Hi,

I tried with 19167, like you advised ;-)
I'll try 19238 now.

Thanks again,

Koenraad Lelong.

Reply by email

Koenraad Lelong
to Koenraad Lelong
Koenraad Lelong wrote 9 lines
On 11-10-11 22:05, Jeppe Græsdal Johansen wrote: > That's a problem, since that error was fixed in revision 19238. > > Btw. I just tested, and I had no problem building the svn trunk version > using fpc 2.71. What version of fpc did you try to build with? > > Regards, > Jeppe

Hi,

I think I misunderstood your question. I built my crosscompiler with 2.4.0 (standard on Ubuntu 10.4 LTS). I'll see if I can get a more recent version. Hm, I see that for Debian the most recent version is 2.4.2, would this do to make 2.7 ? I'll first try with 2.4.0.

Regards,

Koenraad Lelong.

Reply by email

Jeppe Græsdal Johansen
to Koenraad Lelong
Koenraad Lelong wrote 20 lines
On 12-10-11 08:12, Koenraad Lelong wrote: > On 11-10-11 22:05, Jeppe Græsdal Johansen wrote: >> That's a problem, since that error was fixed in revision 19238. >> >> Btw. I just tested, and I had no problem building the svn trunk version >> using fpc 2.71. What version of fpc did you try to build with? >> >> Regards, >> Jeppe > Hi, I think I misunderstood your question. I built my crosscompiler with 2.4.0 (standard on Ubuntu 10.4 LTS). I'll see if I can get a more recent version. Hm, I see that for Debian the most recent version is 2.4.2, would this do to make 2.7 ? I'll first try with 2.4.0. Regards, Koenraad Lelong.

Neither will do, and that explains the problem. To build the svn trunk version you need the latest stable release(or latest svn trunk version), which is version 2.4.4

Reply by email

Koenraad Lelong
to Jeppe Græsdal Johansen
Jeppe Græsdal Johansen wrote
Den 12-10-2011 08:25, Koenraad Lelong skrev: Neither will do, and that explains the problem. To build the svn trunk version you need the latest stable release(or latest svn trunk version), which is version 2.4.4

OK,

I installed the binary version of 2.4.4 from the website, altough I prefer the package.
Compiling the snapshot of a few days ago went OK, but how do I install this ?
I did a
make all PREFIX=/usr
make singlezipinstall
and unpacked this to /usr. Unfortunatly, in /usr/bin I get fpc 2.4.4. I checked the archive and /bin/fpc is 2.4.4. /lib/fpc/2.7.1/ppcx64 is indeed 2.7.1.
To make my crosscompiler, I'll try
make clean buildbase installbase CROSSINSTALL=1 CROSSOPT="-CfSoft -XParm-elf-" OS_TARGET=embedded CPU_TARGET=arm
PREFIX=/home/koenraad/Documents/devel SUBARCH=armv7m PP=/usr/lib/fpc/2.7.1/ppcx64

I'll report back.

Regards,

Koenraad Lelong.

Reply by email

Koenraad Lelong
to Koenraad Lelong
Show quoted text 5 lines
To make my crosscompiler, I'll try make clean buildbase installbase CROSSINSTALL=1 CROSSOPT="-CfSoft -XParm-elf-" OS_TARGET=embedded CPU_TARGET=arm PREFIX=/home/koenraad/Documents/devel SUBARCH=armv7m PP=/usr/lib/fpc/2.7.1/ppcx64

No luck,

I still get those heapmanager errors.

I'm stuck :-(

Regards,

Koenraad Lelong.

Reply by email