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

Jose Pascual josepascual at almudi.com
Wed Feb 21 14:04:36 CET 2007


> > > 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 have made some change in Makefile and I CAN compiling fpc in
scratchbox-ARM,

but trying my first example and It's has failed:
.
.
Assembling test1
Linking test1
/usr/local/lib/fpc/2.1.1/units/arm-linux/rtl/cprt0.o: In function
`_haltproc':
: undefined reference to `_fini'
/usr/local/lib/fpc/2.1.1/units/arm-linux/rtl/cprt0.o: In function
`_haltproc':
: undefined reference to `_init'
test1.pas(28) Error: Error while linking
test1.pas(28) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
.
.
 
what's wrong?

Assembling iaeibserver
Linking iaeibserver
/usr/local/lib/fpc/2.1.1/units/arm-linux/rtl/cprt0.o: In function
`_haltproc':
: undefined reference to `_fini'
/usr/local/lib/fpc/2.1.1/units/arm-linux/rtl/cprt0.o: In function
`_haltproc':
: undefined reference to `_init'
iaeibserver.dpr(28) Error: Error while linking
iaeibserver.dpr(28) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
> > 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
> 
> 
> _______________________________________________
> 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