[fpc-devel] Building cross-compiler for arm-linux on win32
Nikolai Zhubr
n-a-zhubr at yandex.ru
Sat Dec 15 16:36:15 CET 2018
15.12.2018 17:38, Jonas Maebe:
>> 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...
>
> It would be useful to know on which ARM/Linux platform you want to run
> your code (board/processor, and if it's an ancient board and/or kernel,
> whether it's ARMEL/EABI or not), and which command line options you are
> using to build FPC.
>
> There is no single ARM/Linux platform, but many different incompatible
> ones (which is one of the reasons there are no provided FPC
> cross-compilers for this "platform".
Right, this is what I overlooked indeed (Well, because a pre-built
native compiler for ARM did work successfully out of the box, producing
perfectly usable arm binaries for me)
Now, I'm targeting an A20-olinuxino-micro board, which is afaik armv7a
with VPFv4. The board is running either openwrt or opensuse. (And
actually, the binaries produced by the pre-built native compiler have
been tested in both environments already)
So I suppose I should be using CROSSOPT="-CpARMV7A -CfFPV4_S16" ?
If I use it, I get the following errors:
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:12587: Error:
selected processor does not support `rfs r0' in ARM mode
T:\_tmp\fpcbuild-3.0.4\fpcsrc\rtl\units\arm-linux\system.s:12590: Error:
selected processor does not support `wfs r0' in ARM mode
T:\_tmp\fpcbuild-3.0.4\fpcsrc\rtl\units\arm-linux\system.s:19745: Error:
selected processor does not support `fcpyd d0,d1' in ARM mode
T:\_tmp\fpcbuild-3.0.4\fpcsrc\rtl\units\arm-linux\system.s:19746: Error:
selected processor does not support `fcpyd d1,d0' in ARM mode
system.pp(379) Error: Error while assembling exitcode 1
Thank you!
Regards,
Nikolai
>
>
> Jonas
> _______________________________________________
> 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