[fpc-pascal] FPC for Scratchbox-ARM (compiling with errors)
Jose Pascual
josepascual at almudi.com
Wed Feb 21 10:05:34 CET 2007
> -----Mensaje original-----
> De: fpc-pascal-bounces at lists.freepascal.org [mailto:fpc-pascal-
> bounces at lists.freepascal.org] En nombre de Florian Klaempfl
> Enviado el: martes, 20 de febrero de 2007 13:19
> Para: FPC-Pascal users discussions
> Asunto: Re: [fpc-pascal] FPC for Scratchbox-ARM (compiling with errors)
>
> Daniël Mantione schrieb:
> >
> > Op Tue, 20 Feb 2007, schreef Jose Pascual:
> >
> >> /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
> >> .
> >
> > That is then the problem. You cannot cycle on ARM with a 2.0
> compiler.
> > With recent 2.1 this is possible.
> >
> >>> 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.
> >
> > I recommend 2.1 for that, 2.0 is not realiable enough on ARM for
> that.
> > Just to be clear: 2.1 needs to be bootstrapped with a 2.0 compiler,
> so you
> > need to start with a 2.0, then bootstrap a 2.1 crosscompiler for ARM,
> and
> > use that to bootstrap a native ARM compiler.
>
> The 2.1.x compiler has also a problem:
> make all doesn't work, only
> make all OPT=-O- -Ooregvar
I have tried again in scratchbox for ARM, using ppcarm 2.1.1 native for ARM
(generated in a crosscompiling in linux i386), using:
make CPU_TARGET=arm OS_TARGET=linux PP=/trabajo/temp/ppcarm OPT="-O-
-Ooregvar" all
.
.
.
/trabajo/fpcbuild_2.1.1/fpcsrc/compiler/ppcarm -Ur -Xs -O2 -n -Fulnet
-Fu/trabajo/fpcbuild_2.1.1/fpcsrc/rtl/units/arm-linux
-Fu/trabajo/fpcbuild_2.1.1/fpcsrc/packages/base/hash/units/arm-linux
-Fu/trabajo/fpcbuild_2.1.1/fpcsrc/packages/base/paszlib/units/arm-linux
-Fu/trabajo/fpcbuild_2.1.1/fpcsrc/packages/base/netdb/units/arm-linux
-Fu/trabajo/fpcbuild_2.1.1/fpcsrc/packages/base/libasync/units/arm-linux
-Fu/trabajo/fpcbuild_2.1.1/fpcsrc/packages/base/pthreads/units/arm-linux
-Fu/trabajo/fpcbuild_2.1.1/fpcsrc/fcl/units/arm-linux
-Fu/trabajo/fpcbuild_2.1.1/fpcsrc/packages/base/fpmake
-Fu/trabajo/fpcbuild_2.1.1/fpcsrc
-Fu/trabajo/fpcbuild_2.1.1/fpcsrc/packages/base/pasjpeg/units/arm-linux
-Fu/trabajo/fpcbuild_2.1.1/fpcsrc/packages/base/ibase/units/arm-linux
-Fu/trabajo/fpcbuild_2.1.1/fpcsrc/packages/base/postgres/units/arm-linux
-Fu/trabajo/fpcbuild_2.1.1/fpcsrc/packages/base/mysql/units/arm-linux
-Fu/trabajo/fpcbuild_2.1.1/fpcsrc/packages/base/odbc/units/arm-linux
-Fu/trabajo/fpcbuild_2.1.1/fpcsrc/packages/base/oracle/units/arm-linux
-Fu/trabajo/fpcbuild_2.1.1/fpcsrc/packages/base/sqlite/units/arm-linux
-Filnet/sys -FE. -FUunits/arm-linux
-Fl/scratchbox/compilers/arm-linux-ct401-2.3/bin/../lib/gcc/arm-unknown-linu
x-gnu/4.0.1 -Fl/usr/local/lib -Fl/usr/X11R6/lib -Fl/usr/lib -Fl/lib -O-
-Ooregvar -darm -dRELEASE pkglnet.pp
/trabajo/fpcbuild_2.1.1/fpcsrc/compiler/ppcarm -Ur -Xs -O2 -n -Fulnet
-Fu/trabajo/fpcbuild_2.1.1/fpcsrc/rtl/units/arm-linux
-Fu/trabajo/fpcbuild_2.1.1/fpcsrc/packages/base/hash/units/arm-linux
-Fu/trabajo/fpcbuild_2.1.1/fpcsrc/packages/base/paszlib/units/arm-linux
-Fu/trabajo/fpcbuild_2.1.1/fpcsrc/packages/base/netdb/units/arm-linux
-Fu/trabajo/fpcbuild_2.1.1/fpcsrc/packages/base/libasync/units/arm-linux
-Fu/trabajo/fpcbuild_2.1.1/fpcsrc/packages/base/pthreads/units/arm-linux
-Fu/trabajo/fpcbuild_2.1.1/fpcsrc/fcl/units/arm-linux
-Fu/trabajo/fpcbuild_2.1.1/fpcsrc/packages/base/fpmake
-Fu/trabajo/fpcbuild_2.1.1/fpcsrc
-Fu/trabajo/fpcbuild_2.1.1/fpcsrc/packages/base/pasjpeg/units/arm-linux
-Fu/trabajo/fpcbuild_2.1.1/fpcsrc/packages/base/ibase/units/arm-linux
-Fu/trabajo/fpcbuild_2.1.1/fpcsrc/packages/base/postgres/units/arm-linux
-Fu/trabajo/fpcbuild_2.1.1/fpcsrc/packages/base/mysql/units/arm-linux
-Fu/trabajo/fpcbuild_2.1.1/fpcsrc/packages/base/odbc/units/arm-linux
-Fu/trabajo/fpcbuild_2.1.1/fpcsrc/packages/base/oracle/units/arm-linux
-Fu/trabajo/fpcbuild_2.1.1/fpcsrc/packages/base/sqlite/units/arm-linux
-Filnet/sys -FE. -FUunits/arm-linux
-Fl/scratchbox/compilers/arm-linux-ct401-2.3/bin/../lib/gcc/arm-unknown-linu
x-gnu/4.0.1 -Fl/usr/local/lib -Fl/usr/X11R6/lib -Fl/usr/lib -Fl/lib -O-
-Ooregvar -darm -dRELEASE pkglibcurl.pp
pkglibcurl.pp(19,64) Fatal: Can't find unit libcurl
Fatal: Compilation aborted
make[4]: *** [pkglibcurl.ppu] Error 1
make[4]: Leaving directory `/trabajo/fpcbuild_2.1.1/fpcsrc/utils/fppkg'
make[3]: *** [fppkg_all] Error 2
make[3]: Leaving directory `/trabajo/fpcbuild_2.1.1/fpcsrc/utils'
make[2]: *** [utils_all] Error 2
make[2]: Leaving directory `/trabajo/fpcbuild_2.1.1/fpcsrc'
make[1]: *** [build-stamp.arm-linux] Error 2
make[1]: Leaving directory `/trabajo/fpcbuild_2.1.1/fpcsrc'
make: *** [fpcsrc/build-stamp.arm-linux] Error 2
.
.
.
I think in Makefile was missing to add
-Fu/trabajo/fpcbuild_2.1.1/fpcsrc/packages/extra/libcurl/units/arm-linux/
and perhaps some other -Fu?
> I tried to debug it for several hours but I didn't find what's wrong :(
> _______________________________________________
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>
> __________ Información de NOD32, revisión 2072 (20070220) __________
>
> Este mensaje ha sido analizado con NOD32 antivirus system
> http://www.nod32.com
More information about the fpc-pascal
mailing list