[fpc-pascal] FPC for FreeBSD/PowerPC64
Karoly Balogh (Charlie/SGR)
charlie at scenergy.dfmk.hu
Sun Sep 13 10:36:39 CEST 2020
Hi,
On Sat, 12 Sep 2020, Curtis Hamilton via fpc-pascal wrote:
> I'm attempting to port FPC to Freebsd/PowerPC64 and need some help.
>
> I've added initial code to get started. However, when trying to cross compile I'm getting an internal error message when the newly
> created cross compiler (ppcrossppc64) executes.
>
> /root/Downloads/fpc-3.2.0/compiler/ppcrossppc64 -Ur -Ppowerpc64 -XPpowerpc64-unknown-freebsd11.2- -Xr -XX -CX -Ur -Xs -O2 -n -Fi../inc
> -Fi../powerpc64 -Fi../unix -Fi../bsd -Fi../bsd/powerpc64 -Fi../freebsd/powerpc64 -FE.
> -FU/root/Downloads/fpc-3.2.0/rtl/units/powerpc64-freebsd -dpowerpc64 -dRELEASE -CaDEFAULT -Us -Sg ../bsd/system.pp
> sysos.inc(69,12) Fatal: Internal error 2015021001
> Fatal: Compilation aborted
>
> Can someone help me decipher this? I've attached the fpc debug file, if that will help.
You can just search the source for that IE number as string. It will
reveal, that you failed to specify a default ABI for the target system.
This error seems to be PPC64 specific.
See systems/t_linux.pas for an example, and do something similar in the
PPC64 FreeBSD port.
Cheers,
--
Charlie
More information about the fpc-pascal
mailing list