[fpc-devel] Building cross-compiler for arm-linux on win32
Nikolai Zhubr
n-a-zhubr at yandex.ru
Sat Dec 15 14:58:58 CET 2018
Hi all,
Ok, apparently the binutils-2.15.94-win32-arm-linux.zip (provided on the
fpc website) is somewhat outdated to be really usable for arm target.
Retrying with (self-built) binutils-2.28 apparently solves the previous
problem but now I have another: ld yells something about VFP instructions:
T:/_tmp/fpcbuild-3.0.4/fpcsrc/compiler/ppcrossarm.exe -Tlinux -Parm
-XParm-linux- -Xr -Ur -Xs -O2 -n -Fuarm -Fusystems
-FuT:/_tmp/fpcbuild-3.0.4/fpcsrc/rtl/units/arm-linux -Fiarm -FE.
-FUarm/units/arm-linux -dRELEASE -darm -dGDB -dBROWSERLOG -Sew -darm
-dGDB -dBROWSERLOG -Sew pp.pas
C:\FPC\3.0.4\bin\i386-Win32\arm-linux-ld.exe: warning: .\link.res
contains output sections; did you forget -T?
C:\FPC\3.0.4\bin\i386-Win32\arm-linux-ld.exe: error:
arm\units\arm-linux\pp.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 arm\units\arm-linux\pp.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\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
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
More information about the fpc-devel
mailing list