[fpc-pascal] Compiling arm-embedded fpc

Koenraad Lelong fpascal at brouwerij.homelinux.net
Wed Jan 30 18:26:16 CET 2013

> Hi Michael,
> I downloaded svn version 23457, and now I can compile the crosscompiler.
> Unfortunately, I can't compile a project with that crosscompiler. More
> precisely, the project can't be linked. I have to redo some things to
> note what I am doing and what the results are, but the linking stage
> seems to go wrong.
> I'll report more when I have my notes.
> Regards,
> Koenraad Lelong


I made a virtual appliance with opensuse 12.2, x386. To be able to 
download it you must create an account on http://susestudio.com. Search 
for freepascal, then you'll find it : Freepascal for arm-embedded.

While making and testing it I discovered that the last revision (at this 
time 23542) does create a compiler, but when I try to compile the 
application from the wiki, I get a linking error :

fpc -Parm -Tembedded -Wplpc2124 -XParm-none-eabi- tled1.pp

Free Pascal Compiler version 2.7.1 [2013/01/30] for arm
Copyright (c) 1993-2012 by Florian Klaempfl and others
Target OS: Embedded
Compiling tled1.pp
Assembling program
Linking tled1
/home/fpc/bin/arm-none-eabi-ld: error: no memory region specified for 
loadable section `.note.gnu.build-id'
tled1.pp(54,4) Error: Error while linking
tled1.pp(54,4) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
Error: /usr/bin/ppcrossarm returned an error exitcode (normal if you did 
not specify a source file to be compiled)
fpc at linux-ogvy:~/src-arm-fpc>

This is the same error I reported about some days ago. Is it me, doing 
something wrong, or is there something wrong with the crosscompiler ?


Koenraad Lelong.

More information about the fpc-pascal mailing list