Try to compile both FPC itself (as part of OPT) and your library with -Cfsoft.
Hi, this is my ppcrossarm.exe -i
--------------------------------------
Free Pascal Compiler version 3.3.1
Compiler date : 2022/12/01
Compiler CPU target: arm
Supported targets (targets marked with '{*}' are under development):
Linux: Linux for ARMEL
WinCE: WinCE for ARM
gba: GameBoy Advance
PalmOS: PalmOS
nds: Nintendo DS
embedded: Embedded
Symbian: Symbian OS for ARM
iOS: iOS for ARM
Android: Android for ARMEL
AROS: AROS for ARM
NetBSD: NetBSD for ARMHF {*}
freertos: FreeRTOS
Supported CPU instruction sets:
ARMV2,ARMV3,ARMV4,ARMV4T,ARMV5T,ARMV5TE,ARMV5TEJ,ARMV6,ARMV6K,ARMV6T2,
ARMV6Z,ARMV6M,ARMV7,ARMV7A,ARMV7R,ARMV7M,ARMV7EM
Supported FPU instruction sets:
NONE,SOFT,LIBGCC,FPA,FPA10,FPA11,VFPV2,VFPV3,NEON_VFPV3,VFPV3_D16,
FPV4_S16,VFPV4,FPV4_SP_D16,NEON_VFPV4
--------------------------------------
I build FPC rtl & packages with FPC=ppcrossarm.exe
command line:
------------------
cd C:\fpcsrc\
make.exe rtl packages CROSSINSTALL=1 CPU_TARGET=arm OS_TARGET=linux BINUTILSPREFIX=arm-linux FPC=ppcrossarm.exe OPT="-Cfsoft"
output :
--------------------
arm-linux-as -meabi=5 -o C:/fpcsrc/rtl/units/arm-linux/prt0.o arm/prt0.as
ppcrossarm.exe -Ur -Tlinux -Parm -XParm-linux- -Ur -Xs -O2 -n -Fi../inc -Fi../arm -Fi../unix -Fiarm -FE. -FUC:/fpcsrc/rtl/units/arm-linux -Cfsoft -darm -dRELEASE -Us -Sg system.pp
=========================
Bootstrap Compiler is win64 ppcx64.exe
finally,
I build my library in Lazarus with -Cfsoft in [Compiler Options]->[Custom Options] pages, still got errors, here is information:
----------------------------
Free Pascal Compiler version 3.3.1 [2022/12/01] for arm
Copyright (c) 1993-2021 by Florian Klaempfl and others
(1002) Target OS: Linux for ARMEL
(3104) Compiling xxxx.ppr
(3104) Compiling ..\..\..\..\Common\GraphLibEx.pas
....
....
(9015) Linking E:\xxxxxxx\Bin\Linux\arm-OpenHarmony\libxxxx.so
arm-linux-ld.exe: error: E:\xxxxxx\Tmp\Linux\arm-OpenHarmony\xxxx.o uses VFP register arguments, E:\XXXXXXX\Bin\Linux\arm-OpenHarmony\libxxxx.so does not
arm-linux-ld.exe: error: C:\fpc\fpc64\units\arm-linux\rtl\sysutils.o uses VFP register arguments, E:\XXXXXXX\Bin\Linux\arm-OpenHarmony\libxxxx.so does not
=========================
did i miss something, Your help would be greatly appreciated