[fpc-devel] Building cross-compiler for arm-linux on win32
Nikolai Zhubr
n-a-zhubr at yandex.ru
Sat Dec 15 15:29:49 CET 2018
15.12.2018 16:58, I wrote:
> C:\FPC\3.0.4\bin\i386-Win32\arm-linux-ld.exe: error:
> T:\_tmp\fpcbuild-3.0.4\fpcsrc\rtl\units\arm-linux\system.o uses VFP
> instructions, whereas .\pp does not
> C:\FPC\3.0.4\bin\i386-Win32\arm-linux-ld.exe: failed to merge target
> specific data of file
Hm, indeed, objdump confirms this VFP thing:
T:\...3.0.4\fpcsrc\rtl\units\arm-linux>arm-linux-objdump.exe -p system.o
system.o: file format elf32-littlearm
private flags = 600: [APCS-32] [VFP float format] [software FP]
I suspect this is an inintended flag set by my arm-linux-as.exe for some
reason... Probably have to get rid of it somehow...
Thank you!
Regards,
Nikolai
> T:\_tmp\fpcbuild-3.0.4\fpcsrc\rtl\units\arm-linux\system.o
> C:\FPC\3.0.4\bin\i386-Win32\arm-linux-ld.exe: error:
> T:\_tmp\fpcbuild-3.0.4\fpcsrc\rtl\units\arm-linux\objpas.o uses VFP
> instructions, whereas .\pp does not
> ..... [lots of similar lines follow]
>
> Any ideas?
>
> Thank you!
>
> Regards,
> Nikolai
>
>
> 15.12.2018 3:24, I wrote:
>> Hi all,
>>
>> I'm trying to build a cross-compiler for arm-linux target on a win32
>> host. It fails at assembling system.s (produced from system.pp) with the
>> following output:
>>
>> T:\_tmp\fpcbuild-3.0.4\fpcsrc\rtl\units\arm-linux\system.s: Assembler
>> messages:
>> T:\_tmp\fpcbuild-3.0.4\fpcsrc\rtl\units\arm-linux\system.s:11309: Error:
>> bad instruction `it ls'
>> T:\_tmp\fpcbuild-3.0.4\fpcsrc\rtl\units\arm-linux\system.s:11334: Error:
>> bad instruction `it ls'
>> T:\_tmp\fpcbuild-3.0.4\fpcsrc\rtl\units\arm-linux\system.s:11360: Error:
>> bad instruction `it ls'
>> T:\_tmp\fpcbuild-3.0.4\fpcsrc\rtl\units\arm-linux\system.s:11387: Error:
>> bad instruction `it ls'
>> T:\_tmp\fpcbuild-3.0.4\fpcsrc\rtl\units\arm-linux\system.s:13271: Error:
>> garbage following instruction -- `ldrd r0,r1,[r0]'
>> make.EXE[6]: *** [system.ppu] Error 1
>>
>> I'm using arm-linux-as.exe from the recommended
>> binutils-2.15.94-win32-arm-linux.zip package downloaded from fpc
>> download area:
>>
>> arm-linux-as --version
>> GNU assembler 2.15.94 20050202
>> Copyright 2005 Free Software Foundation, Inc.
>> This program is free software; you may redistribute it under the terms
>> of the GNU General Public License. This program has absolutely no
>> warranty.
>> This assembler was configured for a target of `arm-linux-elf'.
>>
>> What could be the reason for these errors?
>>
>>
>> Thank you!
>>
>> Regards,
>> Nikolai
>> _______________________________________________
>> fpc-devel maillist - fpc-devel at lists.freepascal.org
>> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
>
> _______________________________________________
> fpc-devel maillist - fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
More information about the fpc-devel
mailing list