[fpc-pascal] Any suggestion for raspberry pi ?

Henry Vermaak henry.vermaak at gmail.com
Fri Aug 30 16:10:44 CEST 2013

On Fri, Aug 30, 2013 at 03:44:35PM +0200, Stefan Fischer wrote:
> Hi,
> a longer time ago, i've installed lazarus on my raspberry pi with
> wheezy. The fpc version was 2.6.0-xxx
> I could compile without any problem.
> Today I've downloaded fpc 2.6.2 and installed it.
> But now I have problems with the linker:
> Free Pascal Compiler version 2.6.2 [2013/02/15] for arm
> Copyright (c) 1993-2012 by Florian Klaempfl and others
> Target OS: Linux for ARMEL
> Compiling rfm.pas
> Assembling rfm
> Linking rfm
> /usr/bin/ld: warning: link.res contains output sections; did you forget
> -T?
> /usr/lib/fpc/2.6.2/units/arm-linux/rtl/cprt0.o: In function
> `_haltproc_eabi':
> (.text+0x88): undefined reference to `_fini'
> /usr/lib/fpc/2.6.2/units/arm-linux/rtl/cprt0.o: In function
> `_haltproc_eabi':
> (.text+0x90): undefined reference to `_init'

This sounds like it may be a multiarch thing biting you.  Those symbols
are in crti.o, and perhaps fpc isn't finding it.  I vaguely remember
getting a problem like this and fixing it by adding
-Fl/usr/lib/<arch-triplet>.  You can use `locate` to check where it is.


More information about the fpc-pascal mailing list