Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2017-05

Crosscompiler for Arm Cortex A7

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Bogdan

Hi,

On Windows 7 I have build FPC crosscompiler for Moxa UC-8410A with Arm Cortex A7 microprocessor with following:

set PPBINDIR=c:\FPC\3.0.2\bin\i386-win32
set SRCDIR=c:\FPC\3.0.2
set INSTDIR=c:\FPC\pp84a
set MYCFG=uc84a.cfg
set HH=i386-win32

make clean all install CROSSINSTALL=1 NOGDB=1 OS_TARGET=linux CPU_TARGET=arm OPT="-dFPC_ARMHF" CROSSOPT="-dFPC_ARMHF -CpARMV7A -CaEABIHF -CfVFPV3" INSTALL_PREFIX=%INSTDIR% PP=%PPBINDIR%\fpc.exe CROSSBINDIR=%INSTDIR%\bin\%HH% BINUTILSPREFIX=arm-linux-gnueabihf-

Cross binutils are from http://gnutoolchains.com/raspberry/ (raspberry-gcc4.9.2-r4.exe)

When I crosscompile one of my project, I get errors from assembler:

[0.417] Assembling v8par
[0.417] Executing
"c:\FPC\pp84a\bin\i386-win32\arm-linux-gnueabihf-as.exe" with command line "-mfloat-abi=hard -meabi=5 -march=armv7-a -mfpu=vfpv3 -o lib\uc8410a\v8par.o lib\uc8410a\v8par.s"
lib\uc8410a\v8par.s: Assembler messages:
lib\uc8410a\v8par.s:3386: Error: garbage following instruction -- `blx V8$_$TV8LIST_$__$$_GET$LONGINT$$TV8DATA'
lib\uc8410a\v8par.s:3500: Error: garbage following instruction -- `blx V8$_$TV8LIST_$__$$_GETCOUNT$$LONGINT'
lib\uc8410a\v8par.s:3733: Error: garbage following instruction -- `blx V8$_$TV8SETSTRINGPARAM_$__$$_CREATE$LONGINT$LONGINT$LONGINT$ANSISTRING$$TV8SETSTRINGPARAM' lib\uc8410a\v8par.s:3736: Error: garbage following instruction -- `blx V8$_$TV8LIST_$__$$_ADD$TV8DATA'
lib\uc8410a\v8par.s:3758: Error: garbage following instruction -- `blx V8$_$TV8SETFLOATPARAM_$__$$_CREATE$LONGINT$LONGINT$LONGINT$DOUBLE$$TV8SETFLOATPARAM' lib\uc8410a\v8par.s:3761: Error: garbage following instruction -- `blx V8$_$TV8LIST_$__$$_ADD$TV8DATA'
[0.432] v8par.pas(745) Error: Error while assembling exitcode 1 [0.433] v8par.pas(745) Fatal: There were 2 errors compiling module, stopping

Is crosscompiler build with wrong options or is something else ?

Thanks.

---
This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus