But still can't compile it for ppc64 BE ELFv2. on x86_64 tried to compile as make all OS_TARGET=linux CPU_TARGET=powerpc64 CROSSOPT="-Cb -Caelfv2" BINUTILSPREFIX=/usr/bin/powerpc64-linux-gnu-
, on x86_64 binaries were still compiled as for x86_64. on ppc64le they're for pp64le.
That is quite strange. Now, my notes tell me that I build my armhf compiler in a 64bit intel VM with -
make clean all CPU_TARGET=arm CROSSOPT="-CpARMV6 -CaEABIHF" CROSSBINDIR=/usr/arm-linux-gnueabihf/bin
I end up with compiler/ppcarm and compiler/ppcrossarm. The file command confirms them as what they should be. Yours should be ppcpower64 or some such, a cross compiler that is x86_64 and a straight power64 compiler.
The only difference I can see is the use of CROSSBINDIR=... instead of BINUTILSPREFIX... I take it your power binutils live in /usr/bin and are called powerpc64-linux-gnu-as, powerpc64-linux-gnu-ld etc ? You have checked that they are actually there ? Mine is a debian based machine so no point me installing here.
I am struggling to suggest something more. Perhaps do a make clean, pump a few blank lines and then run that compile command without the "clean" and have a look through the log, the early part, to see if its talking about the right thing.
link4, we have to be realistic, there are not a lot of Power CPU users here. I logged a compile problem, a relativly minor issue on PowerLE a few years ago, while it got some comments, no fix unfortunately. The issue being, probably, none of the current devs have access to a Power64 machine. I sure don't ...
Davo
PS, my binutils look like this -
dbannon@u2004MnewBuild:~/bin/FPC/SRC/test$ ls -l /usr/arm-linux-gnueabihf/bin
total 0
lrwxrwxrwx 1 root root 32 Mar 31 2025 ar -> ../../bin/arm-linux-gnueabihf-ar
lrwxrwxrwx 1 root root 32 Mar 31 2025 as -> ../../bin/arm-linux-gnueabihf-as
lrwxrwxrwx 1 root root 32 Mar 31 2025 ld -> ../../bin/arm-linux-gnueabihf-ld
lrwxrwxrwx 1 root root 36 Mar 31 2025 ld.bfd -> ../../bin/arm-linux-gnueabihf-ld.bfd
lrwxrwxrwx 1 root root 37 Mar 31 2025 ld.gold -> ../../bin/arm-linux-gnueabihf-ld.gold
lrwxrwxrwx 1 root root 32 Mar 31 2025 nm -> ../../bin/arm-linux-gnueabihf-nm
lrwxrwxrwx 1 root root 37 Mar 31 2025 objcopy -> ../../bin/arm-linux-gnueabihf-objcopy
lrwxrwxrwx 1 root root 37 Mar 31 2025 objdump -> ../../bin/arm-linux-gnueabihf-objdump
lrwxrwxrwx 1 root root 36 Mar 31 2025 ranlib -> ../../bin/arm-linux-gnueabihf-ranlib
lrwxrwxrwx 1 root root 37 Mar 31 2025 readelf -> ../../bin/arm-linux-gnueabihf-readelf
lrwxrwxrwx 1 root root 35 Mar 31 2025 strip -> ../../bin/arm-linux-gnueabihf-strip