[fpc-pascal] Issue with Linking

Martin Schreiber mse00000 at gmail.com
Thu Aug 20 17:37:13 CEST 2015


On Thursday 20 August 2015 15:47:59 Chris Moody wrote:

> > http://sourceforge.net/projects/mseide-msegui/files/fpcarm/
>
> I downloaded the file from this URL and had it overwrite my installed
> FPC 2.64 files and I still got :
>
> /usr/bin/ld: warning: link.res contains output sections; did you forget -T?
> /home/pi/fpc-2.6.4/lib/fpc/2.6.4/units/arm-linux/rtl/cprt0.o: In
> function `_haltproc_eabi':
> (.text+0x88): undefined reference to `_fini'
> /home/pi/fpc-2.6.4/lib/fpc/2.6.4/units/arm-linux/rtl/cprt0.o: In
> function `_haltproc_eabi':
> (.text+0x90): undefined reference to `_init'
> Dentist.pas(106) Error: Error while linking
> Dentist.pas(106) Fatal: There were 1 errors compiling module, stopping
> Fatal: Compilation aborted
> Error: /usr/bin/ppcarm returned an error exitcode
>
> I did notice the file I downloaded did not include a new version of ld,
> so not sure if I did the correct thing or not.
>
Probably not, I assume the .fpc.cfg is not correct.

If you like to use the fixes_3_0 compiler:

On the Pi extract fpc_eabihf_3_0_1.tar.gz to /home/pi/fpc/3_0, copy 
attached .fpc.cfg to /home/pi.

In order to compile your application:
/home/pi/fpc/3_0/eabihf/lib/fpc/3.0.1/ppcarm -Fu<your unit source dir> \ 
<yourapplication main file>

Did you try the cross compiling environment?

Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .fpc.cfg
Type: text/x-csrc
Size: 6806 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20150820/d6eb818d/attachment.c>


More information about the fpc-pascal mailing list