[fpc-pascal] Compiling arm-embedded fpc

Koenraad Lelong fpascal at brouwerij.homelinux.net
Fri Feb 15 09:06:15 CET 2013


On 14-02-13 21:34, Michael Ring wrote:
> I did a grep through the fpc sourcecode and found a reference in
> ./compiler/systems/t_linux.pas in an arm related ifdef section
>
> add('  .note.gnu.build-id : { *(.note.gnu.build-id) }');
>
> so perhaps this is really missing in arm-embedded target.
>
>
> The patch for for fpc/compiler/systems/t_embed.pas seems to be pretty
>  straightforward, I will create the patch and test if debugging still
> works.
>
> Michael
>
> by the way:
>
> I used binutils-2.23.1 to create the cross-tools, configure script
> was:
>
> ./configure --target=arm-none-eabi --program-prefix=arm-embedded-
>
> compiled under Fedora-18.
>
...
>> Sounds to me like a broken binutils. I have never heard about the
>> .note section, except for some warnings now and then on obscure
>> platforms

Hi guys,

Thanks for taking the time to investigate this.
As far as I know binutils is the collection of programs to create
executables, so the gcc-compiler, assembler, linker, etc. Another name 
is "toolchain", right ?
I recently searched for a toolchain, and I found one : 
gcc-arm-none-eabi-4_7-2012q4-20121208-linux.tar.bz2. I got this in the 
release.txt :
GNU Tools for ARM Embedded Processors 4.7
                                - Dec 2012
I think I tried it also with an older toolchain from Codewarriors (now
Mentor). I'll have to verify this, though.
There's nothing to compile, just unpack and use it.
I don't know what you are using as toolchain, did you have the same 
problem ?

Like I said before, I made a virtual machine that's set up to have a
development environment for embedded-arm and fpc, including openocd. I 
made some scripts to do the compilation (to get a crosscompiler and the 
embedded-arm projects). The only thing I should do is make some document 
explaining how to use those scripts, although they're rather 
straighforward.
That could be used to investigate this case. The downside is it's size, 
about 900MB. It's on susestudio.com and on dropbox 
(https://www.dropbox.com/sh/dbsxi81jx2cb73n/h6ro62_XsD).
I'm going to use this when this problem is solved, but anyone can use 
it. I'm going to try to maintain this, so all comments are welcome. 
Users/passwords : fpc/fpc and root/linux.

Thanks again,

Koenraad Lelong.



More information about the fpc-pascal mailing list