Build fails on ppc64le

  • Lazarus/FPC Version: 2.2.0-0 from sourceforge
  • Operating System: openSUSE Tumbleweed
  • CPU / Bitness: ppc64le

What happens

Build fails with the following error:

(9009) Assembling lazbuild
(9022) Compiling resource ../units/powerpc64-linux/nogui/lazbuild.or
(9015) Linking ../lazbuild
../units/powerpc64-linux/nogui/project.o: in function `WRPR_$PROJECT_$$_TPROJECT_$_IPROJPACK_$_1_$_CLASSES$_$TCOMPONENT_$__$$__ADDREF$$LONGINT':
/home/abuild/rpmbuild/BUILD/lazarus/ide//project.pp:1:(.text.n_WRPR_$PROJECT_$$_TPROJECT_$_IPROJPACK_$_1_$_CLASSES$_$TCOMPONENT_$__$$__ADDREF$$LONGINT+0x4): call to `CLASSES$_$TCOMPONENT_$__$$__ADDREF$$LONGINT' lacks nop, can't restore toc; (toc save/adjust stub)
/usr/bin/ld: final link failed: bad value
Error: (9013) Error while linking
Fatal: (10026) There were 1 errors compiling module, stopping

What did you expect

A successful build

Steps to reproduce

> export FPCDIR=/usr/share/fpcsrc/
> fpcmake -Tall

Note: I didn't have the chance to test this on ppc64be.

Edited by Luigi Baldoni
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information