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

Daniël Mantione daniel.mantione at freepascal.org
Wed Feb 21 20:41:36 CET 2007



Op Wed, 21 Feb 2007, schreef Jose Pascual:

> > -----Mensaje original-----
> > De: fpc-pascal-bounces at lists.freepascal.org [mailto:fpc-pascal-
> > bounces at lists.freepascal.org] En nombre de Daniël Mantione
> > Enviado el: miércoles, 21 de febrero de 2007 14:10
> > Para: FPC-Pascal users discussions
> > Asunto: RE: [fpc-pascal] FPC for Scratchbox-ARM (compiling with errors)
> > 
> > 
> > 
> > Op Wed, 21 Feb 2007, schreef Jose Pascual:
> > 
> > > 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?
> > 
> > Libc. Your libc is different than what the cprt0 startup code expects.
> > Try a pure Pascal program.
> 
> yes, pure pascal program build but how can I resolve with libc problem (i
> need libc)?

What libc does scratchbox use? If it is uclibc you might need to modify 
cprt0

Daniël


More information about the fpc-pascal mailing list