[fpc-pascal] FPC for Scratchbox-ARM (compiling with errors)
Jose Pascual
josepascual at almudi.com
Fri Feb 23 09:31:08 CET 2007
> > > >
> > > > > 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
>
> I'm using glibc (v2.3.2), I have resolved problem I have a mistake in
> configuration for /etc/fpc.cfg
>
> right now, I'm build more complex program with units and libc with fpc
> but
> it does not run,
>
> I have debugged it with gdb in real ARM target and Program does not
> arrive
> to my first line of pascal (after begin).
>
> this is the gdb message:
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x40094018 in _IO_file_xsputn () from /lib/libc.so.6
>
> any idea about this problem? (perhaps 2.1.1 snapshot?)
any idea or suggestion?
>
> regards
> Jose Pascual
>
> > Daniël
> >
> > __________ Información de NOD32, revisión 2073 (20070221) __________
> >
> > 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 2073 (20070221) __________
>
> Este mensaje ha sido analizado con NOD32 antivirus system
> http://www.nod32.com
More information about the fpc-pascal
mailing list