Sign in Join

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

Mailing lists / fpc-devel / 2017-05

Bootstrapping for ppc64el

2 messages · 1 person ·

Reply by email Subscribe to this list Your subscription

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

John Paul Adrian Glaubitz

Hi!

I'm now trying to bootstrap fpc for ppc64el which unfortunately fails.

I'm using this command line:

BINUTILSPREFIX=powerpc64le-linux-gnu- make crossall crossinstall CPU_TARGET=powerpc64 CROSSOPT="-CaELFV2 -dFPC_LITTLE_ENDIAN" OS_TARGET=linux FPC=/usr/lib/fpc/3.0.0/ppcx64 INSTALL_PREFIX=/root/fpc-ppc64el/

/root/trunk/compiler/ppcrossppc64 -Ur -Ppowerpc64 -XPpowerpc64le-linux-gnu- -Xr -XX -CX -Ur -Xs -O2 -n -Fi../inc -Fi../powerpc64 -Fi../unix -Fipowerpc64 -FE. -FU/root/trunk/rtl/units/powerpc64-linux -dpowerpc64 -dRELEASE -CaELFV2 -dFPC_LITTLE_ENDIAN ../objpas/character.pas unicodedata_be.inc(5,106) Error: Illegal order of record elements unicodedata_be.inc(5,109) Fatal: Syntax error, "identifier" expected but ";" found Fatal: Compilation aborted

Building without -dFPC_LITTLE_ENDIAN produces a binary which doesn't work on an actual ppc64el machine:

./ppcppc64
-bash: ./ppcppc64: cannot execute binary file: Exec format error

Looks like the generated executable is big-endian:

file ./ppcppc64
./ppcppc64: ELF 64-bit MSB executable, 64-bit PowerPC or cisco 7500, version 1 (SYSV), statically linked, stripped

Adrian

.''`. John Paul Adrian Glaubitz : :' : Debian Developer - `. `' Freie Universitaet Berlin - `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913

Reply by email

John Paul Adrian Glaubitz
to John Paul Adrian Glaubitz
John Paul Adrian Glaubitz wrote
Building without -dFPC_LITTLE_ENDIAN produces a binary which doesn't work on an actual ppc64el machine:

Aha. Passing "-Cb-" works and yields a little-endian binary.

.''`. John Paul Adrian Glaubitz : :' : Debian Developer - `. `' Freie Universitaet Berlin - `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913

Reply by email