[fpc-devel] Building 2.1.4 for SPARC/Linux

Mark Morgan Lloyd markMLl.fpc-devel at telemetry.co.uk
Wed Jul 4 17:13:02 CEST 2007


Using a binary 2.0.0 I've compiled 2.0.4 without problems, running on Debian 
4.0 "Etch" on an Ultra-10.

Using this 2.0.4 I'm trying to compile 2.1.4 using recent sources. First 
problem is a missing line as fixed in the patch below:

--- fpcsrc/rtl/linux/sparc/stat.inc~    2007-03-29 07:26:34.000000000 +0000
+++ fpcsrc/rtl/linux/sparc/stat.inc     2007-07-04 13:07:52.000000000 +0000
@@ -15,7 +15,8 @@
  {$IFNDEF FPC_USE_LIBC}

    Stat = packed record  // No unix typing because of differences
-    0:
+    case byte of
+     0:
        (dev   : culonglong;
        ino    : culonglong;
        mode   : cuint;

Hopefully I've got that right. However with that applied a  build all  fails with:

..
/usr/src/fpc/fpcbuild-2.1.4/fpcsrc/compiler/ppc3 -Ur -Xs -O2 -n -Fusparc 
-Fusystems -Fu/usr/src/fpc/fpcbuild-2.1.4/fpcsrc/rtl/units/sparc-linux 
-Fisparc -FE. -FUsparc/units/sparc-linux -dRELEASE  -dsparc -dGDB -dBROWSERLOG 
  pp.pas
/bin/mv -f ./pp ppcsparc
make[5]: Leaving directory `/usr/src/fpc/fpcbuild-2.1.4/fpcsrc/compiler'
make echotime
make[5]: Entering directory `/usr/src/fpc/fpcbuild-2.1.4/fpcsrc/compiler'
Start now 14:04:23
make[5]: Leaving directory `/usr/src/fpc/fpcbuild-2.1.4/fpcsrc/compiler'
make[4]: Leaving directory `/usr/src/fpc/fpcbuild-2.1.4/fpcsrc/compiler'
/usr/bin/
Binary files ppc3 and ppcsparc differ
make[3]: *** [cycle] Error 2
make[3]: Leaving directory `/usr/src/fpc/fpcbuild-2.1.4/fpcsrc/compiler'
make[2]: *** [compiler_cycle] Error 2
make[2]: Leaving directory `/usr/src/fpc/fpcbuild-2.1.4/fpcsrc'
make[1]: *** [build-stamp.sparc-linux] Error 2
make[1]: Leaving directory `/usr/src/fpc/fpcbuild-2.1.4/fpcsrc'
make: *** [fpcsrc/build-stamp.sparc-linux] Error 2

Anybody got any suggestions please?

-- 
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]



More information about the fpc-devel mailing list