Hello. I have been trying to build fpc for target ppc64le but using a ppc64 Fedora vm.
What I did so far was:
Create a script /usr/bin/powerpc64-linux-ld that runs
ld -A elf64lppc $@
And create a /usr/bin/powerpc64-linux-as that runs
as -little $@
Then:
make all CROSSOPT="-Cb- -Caelfv2" BINUTILSPREFIX=powerpc64-linux-
But the build fails with several errors just like this one:
ld: powerpc64/units/powerpc64-linux/dbgstabs.o: compiled for a little endian system and target is big endian
ld: failed to merge target specific data of file powerpc64/units/powerpc64-linux/dbgstabs.o
pp.pas(238,36) Error: Error while linking
pp.pas(238,36) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
I am probably doing something wrong, of course. Any help will be appreciated.
Thanks