[fpc-pascal] some problem in SVN FPC for arm linux (v 2.3.1)
Henry Vermaak
henry.vermaak at gmail.com
Tue May 8 10:42:14 CEST 2007
On 04/05/07, Helmut Hartl <helmut.hartl at firmos.at> wrote:
>
> Well - that was what i would like to do - I thougt i try it
> using libc, as i hade some old code who was doing it just that way.
>
> But also the following:
>
> program nslu_test;
> {$mode objfpc}{$H+}
> {$linklib c}
> begin
> writeln('Hello');
> end.
>
> > ppcrossarm -XParm-linux- -CfSOFT nslu_test.lpr -Xd -Xr/usr/armlib
>
> Fails with:
>
> Free Pascal Compiler version 2.3.1 [2007/05/03] for arm
> Copyright (c) 1993-2007 by Florian Klaempfl
> Target OS: Linux for ARM
> Compiling nslu_test.lpr
> Assembling nslu_test
> Linking nslu_test
> /usr/local/lib/fpc/2.3.1/units/arm-linux/rtl/cprt0.o: In function
> `_haltproc':
> : undefined reference to `_fini'
> /usr/local/lib/fpc/2.3.1/units/arm-linux/rtl/cprt0.o: In function
> `_haltproc':
> : undefined reference to `_init'
> nslu_test.lpr(7,17) Error: Error while linking
> nslu_test.lpr(7,17) Fatal: There were 1 errors compiling module,
> stopping
> Fatal: Compilation aborted
>
>
> Am i using the compiler switches wrong?
> In "/usr/armlib" are the objects files of the slugosle build process ...
>
i vaguely remember getting this kind of problem too. my arm-linux-ld
for the slug doesn't like my fpc object files at all. as a last
resort i used the --allow-shlib-undefined option for ld and that
worked for me...
> Thank you,
>
> helmut
henry
More information about the fpc-pascal
mailing list