[fpc-pascal] FPC for Scratchbox-ARM (compiling with errors)

Jose Pascual josepascual at almudi.com
Tue Feb 20 13:02:02 CET 2007


> > Hi EveryOne,
> >
> > I'm tryng to compiling fpc compiler and units under scratchbox for
> ARM
> >
> > I have crosscompile, with fpcarm in linux i386, fpcmake and pp for
> > ARM, I have copy to scratchbox system
> >
> > and I have used both program to generate a complete build in
> > scratchbox using
> >
> > # export FPC=pp
> > # make CPU_TARGET=arm OS_TARGET=linux build
> >
> > but it's fail in math.pp compiling (division by zero error)
> 
> Is /trabajo/temp/pp still an i386 compiler? What compiler version is
> it?

/trabajo/temp/pp is a ARM binary. version is 2.0.4

#/trabajo/temp/pp
Free Pascal Compiler version 2.0.4 [2007/02/19] for arm
Copyright (c) 1993-2006 by Florian Klaempfl
.
.
.

#readelf -h /trabajo/temp/pp
ELF Header:
  Magic:   7f 45 4c 46 01 01 01 61 00 00 00 00 00 00 00 00
  Class:                             ELF32
  Data:                              2's complement, little endian
  Version:                           1 (current)
  OS/ABI:                            ARM
  ABI Version:                       0
  Type:                              EXEC (Executable file)
  Machine:                           ARM
  Version:                           0x1
  Entry point address:               0x80c0
  Start of program headers:          52 (bytes into file)
  Start of section headers:          1880176 (bytes into file)
  Flags:                             0x2, has entry point, GNU EABI
  Size of this header:               52 (bytes)
  Size of program headers:           32 (bytes)
  Number of program headers:         3
  Size of section headers:           40 (bytes)
  Number of section headers:         7
  Section header string table index: 6

> A possible solution could be to cycle an i386 compiler first (include
> debug info with -g in case it'll have the same problem), and use that
> as bootstrap compiler.

But I'm going to geneate i386 binary compiler and tools so I can't to
execute in scratchbox.

I think your suggestion is useful to generate precompiled units in i386
linux, but I'd like to build all fpc 
inside sratchbox using arm binary compiler and tools, a arm
not-crosscompiling fpc system.

Jose Pascual.

> Daniël
> 
> 
> > /trabajo/temp/pp -Ur -Ur -Xs  -n -Fi../inc -Fi../arm -Fi../unix -
> Fiarm -FE.
> > -FU/trabajo/fpcbuild_2.0.4_exp/fpcsrc/rtl/units/arm-linux -darm
> > -dRELEASE -Sg ../objpas/typinfo.pp /trabajo/temp/pp -Ur -Ur -Xs  -n
> > -Fi../inc -Fi../arm -Fi../unix -Fiarm -FE.
> > -FU/trabajo/fpcbuild_2.0.4_exp/fpcsrc/rtl/units/arm-linux -darm
> > -dRELEASE ../objpas/math.pp
> > math.pp(125,22) Fatal: Compilation aborted An unhandled exception
> > occurred at $B7F0DC04 :
> > EInvalidOp : Invalid floating point operation
> >   $B7F0DC04
> >   $00087A00
> >   $00087BAC
> >   $0013E458
> >   $0014BF1C
> >   $0014C4C0
> >   $000FBD4C
> >   $000F5F14
> >   $000781A4
> >   $00032BC8
> >   $00008368
> >
> > make[8]: *** [math.ppu] Error 217
> > .
> > .
> > .
> >
> >
> > any suggestion to resolve it?
> >
> >
> > Jose Pascual
> >
> >
> >
> > _______________________________________________
> > fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> > http://lists.freepascal.org/mailman/listinfo/fpc-pascal
> >
> 
> __________ Información de NOD32, revisión 2071 (20070220) __________
> 
> Este mensaje ha sido analizado con  NOD32 antivirus system
> http://www.nod32.com





More information about the fpc-pascal mailing list