[fpc-pascal] problem compiling svn-fpc for arm-linux
Koenraad Lelong
fpascal at brouwerij.homelinux.net
Sun Mar 19 10:07:10 CET 2006
Koenraad Lelong schreef:
> Peter Vreman schreef:
>
>>> More specific, the error-lines point to the @object construct.
>>> Is there any way I can avoid these errors ?
>>> I used revision 2898 of fpc. My arm-linux-as is version 2.14.
>>
>> Use the latest binutils 2.16.1
>>
> I downloaded and compiled them from http://www.gnuarm.com, then compiled
> fpc with it, with no success. Tried again from www.gnu.org, same result.
> Do I have to specify some option ?
I asked about this on linux-arm at lists.arm.linux.org.uk. This is what
Russel King replied :
<quote>
>> The assembler stumbles on the line containing @object :
>> .section .bss
>> .balign 2
>> .globl operatingsystem_result
>> .type operatingsystem_result, at object
>> .size operatingsystem_result,2
>> operatingsystem_result:
>> .zero 2
>>
>> This is what I get :
>> ...fpc/rtl/units/arm-linux/system.s:51162: Error: unrecognized symbol
>> type ""
This program is buggy - '@' is used as the comment character for ARM, so
everything after that is ignored. The assembler therefore sees:
.type operatingsystem_result,
which is garbage. The GNU assembler targetted for ARM accepts '#' or
'%' here, not '@'.
</quote>
Is there anyone who can give a hint where to look to fix this ?
Regards,
Koenraad Lelong.
More information about the fpc-pascal
mailing list