[fpc-devel] Compiling fpc-2.2.0 on ppc64 and smartlinking

Joost van der Sluis joost at cnoc.nl
Tue Oct 16 16:08:20 CEST 2007


Hi all,

I've tried to build fpc-2.2.0 on Fedora on ppc64 on the build-system
from redhat.

It seems like it that it doesn't work with smart-linking. So I disabled
smart-linking on ppc64. 

But that doesn't help, since in a few files in the packages (for example
zlib) explicitly turn on smartlinking in it's source.

Why is this done? And why am I the only one with this problem, how is
ppc64-2.2.0 build for the release?

Output of the compilation (with no smart-linking) is below.

Joost

make[2]: Entering directory
`/builddir/build/BUILD/fpcbuild-2.2.0/fpcsrc/packages/extra'
make -C unzip all
make[3]: Entering directory `/builddir/build/BUILD/fpcbuild-2.2.0/fpcsrc/packages/extra/unzip'
/bin/mkdir -p units/powerpc64-linux
/builddir/build/BUILD/fpcbuild-2.2.0/fpcsrc/compiler/ppcppc64 -Ur -Xs -O2 -n -Fu/builddir/build/BUILD/fpcbuild-2.2.0/fpcsrc/rtl/units/powerpc64-linux -FE. -FUunits/powerpc64-linux -gl -k--build-id -dpowerpc64 -dRELEASE ziptypes.pp
/builddir/build/BUILD/fpcbuild-2.2.0/fpcsrc/compiler/ppcppc64 -Ur -Xs -O2 -n -Fu/builddir/build/BUILD/fpcbuild-2.2.0/fpcsrc/rtl/units/powerpc64-linux -FE. -FUunits/powerpc64-linux -gl -k--build-id -dpowerpc64 -dRELEASE unzip.pp
make[3]: Leaving directory `/builddir/build/BUILD/fpcbuild-2.2.0/fpcsrc/packages/extra/unzip'
make -C zlib all
make[3]: Entering directory `/builddir/build/BUILD/fpcbuild-2.2.0/fpcsrc/packages/extra/zlib'
/bin/mkdir -p units/powerpc64-linux
/builddir/build/BUILD/fpcbuild-2.2.0/fpcsrc/compiler/ppcppc64 -Ur -Xs -O2 -n -Fu/builddir/build/BUILD/fpcbuild-2.2.0/fpcsrc/rtl/units/powerpc64-linux -FE. -FUunits/powerpc64-linux -Fl/usr/lib/gcc/ppc64-redhat-linux/4.1.2 -Flinclude -Flld.so.conf.d/*.conf -gl -k--build-id -dpowerpc64 -dRELEASE zlib.pp
units/powerpc64-linux/zlib.sl/zlib0s29.s: Assembler messages:
units/powerpc64-linux/zlib.sl/zlib0s29.s:2354: Error: undefined symbol `.Ll2' in operation
units/powerpc64-linux/zlib.sl/zlib0s29.s:2354: Error: undefined symbol `.Ll1' in operation
units/powerpc64-linux/zlib.sl/zlib0s29.s:2360: Error: undefined symbol `.Ll3' in operation
units/powerpc64-linux/zlib.sl/zlib0s29.s:2360: Error: undefined symbol `.Ll2' in operation
units/powerpc64-linux/zlib.sl/zlib0s29.s:2379: Error: undefined symbol `.Ll5' in operation
units/powerpc64-linux/zlib.sl/zlib0s29.s:2379: Error: undefined symbol `.Ll4' in operation
units/powerpc64-linux/zlib.sl/zlib0s29.s:2385: Error: undefined symbol `.Ll6' in operation
units/powerpc64-linux/zlib.sl/zlib0s29.s:2385: Error: undefined symbol `.Ll5' in operation
units/powerpc64-linux/zlib.sl/zlib0s29.s:2404: Error: undefined symbol `.Ll8' in operation
units/powerpc64-linux/zlib.sl/zlib0s29.s:2404: Error: undefined symbol `.Ll7' in operation
units/powerpc64-linux/zlib.sl/zlib0s29.s:2410: Error: undefined symbol `.Ll9' in operation
units/powerpc64-linux/zlib.sl/zlib0s29.s:2410: Error: undefined symbol `.Ll8' in operation
units/powerpc64-linux/zlib.sl/zlib0s29.s:2429: Error: undefined symbol `.Ll11' in operation
units/powerpc64-linux/zlib.sl/zlib0s29.s:2429: Error: undefined symbol `.Ll10' in operation
units/powerpc64-linux/zlib.sl/zlib0s29.s:2435: Error: undefined symbol `.Ll12' in operation
units/powerpc64-linux/zlib.sl/zlib0s29.s:2435: Error: undefined symbol `.Ll11' in operation
units/powerpc64-linux/zlib.sl/zlib0s29.s:2454: Error: undefined symbol `.Ll14' in operation
units/powerpc64-linux/zlib.sl/zlib0s29.s:2454: Error: undefined symbol `.Ll13' in operation
units/powerpc64-linux/zlib.sl/zlib0s29.s:2460: Error: undefined symbol `.Ll15' in operation
units/powerpc64-linux/zlib.sl/zlib0s29.s:2460: Error: undefined symbol `.Ll14' in operation
units/powerpc64-linux/zlib.sl/zlib0s29.s:2479: Error: undefined symbol `.Ll17' in operation
units/powerpc64-linux/zlib.sl/zlib0s29.s:2479: Error: undefined symbol `.Ll16' in operation
units/powerpc64-linux/zlib.sl/zlib0s29.s:2485: Error: undefined symbol `.Ll18' in operation
units/powerpc64-linux/zlib.sl/zlib0s29.s:2485: Error: undefined symbol `.Ll17' in operation
units/powerpc64-linux/zlib.sl/zlib0s29.s:2504: Error: undefined symbol `.Ll20' in operation
units/powerpc64-linux/zlib.sl/zlib0s29.s:2504: Error: undefined symbol `.Ll19' in operation
units/powerpc64-linux/zlib.sl/zlib0s29.s:2510: Error: undefined symbol `.Ll21' in operation
units/powerpc64-linux/zlib.sl/zlib0s29.s:2510: Error: undefined symbol `.Ll20' in operation
units/powerpc64-linux/zlib.sl/zlib0s29.s:2529: Error: undefined symbol `.Ll23' in operation
units/powerpc64-linux/zlib.sl/zlib0s29.s:2529: Error: undefined symbol `.Ll22' in operation
units/powerpc64-linux/zlib.sl/zlib0s29.s:2535: Error: undefined symbol `.Ll24' in operation
units/powerpc64-linux/zlib.sl/zlib0s29.s:2535: Error: undefined symbol `.Ll23' in operation
zlib.pp(205) Error: Error while assembling exitcode 1
/usr/bin/ar: creating units/powerpc64-linux/libpzlib.a
/usr/bin/ar: units/powerpc64-linux/zlib.sl/zlib0s29.o: No such file or directory
zlib.pp(205) Error: Error while linking
zlib.pp(205) Fatal: There were 3 errors compiling module, stopping
Fatal: Compilation aborted
make[3]: *** [zlib.ppu] Error 1
make[3]: Leaving directory `/builddir/build/BUILD/fpcbuild-2.2.0/fpcsrc/packages/extra/zlib'
make[2]: *** [zlib_all] Error 2
make[2]: Leaving directory `/builddir/build/BUILD/fpcbuild-2.2.0/fpcsrc/packages/extra'
make[1]: *** [extra_all] Error 2
make[1]: Leaving directory `/builddir/build/BUILD/fpcbuild-2.2.0/fpcsrc/packages'
make: *** [packages_extra_all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.88199 (%build)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.88199 (%build)





More information about the fpc-devel mailing list