I did more tests. If I try build a empty program linked with libc, this
program cause a linker failure as mentioned on previous message.

program program1;

{$LINKLIB c}

begin

end.

Someone can say if this is a problem with my raspbian image or a problem
with my FPC installation?


2014-06-25 23:52 GMT-03:00 Fabio Luis Girardi <fluisgira...@gmail.com>:

> What's the current status of dynlibs unit for Linux ARM?
>
> I'm doing a project and a shared library, both on a raspberry pi with FPC
> 2.6.4. I built the shared library successfully, but when I try build a
> empty program only with dynlibs unit on uses, the program won't compile.
> The output is:
>
> pi@raspberrypi ~/ffcfilas/libcustomization.wizard $ fpc program1.fpr
> Free Pascal Compiler version 2.6.4 [2014/03/21] for arm
> Copyright (c) 1993-2014 by Florian Klaempfl and others
> Target OS: Linux for ARMEL
> Compiling program1.fpr
> Assembling program1
> Linking program1
> /usr/bin/ld: warning: link.res contains output sections; did you forget -T?
> /usr/lib/fpc/2.6.4/units/arm-linux/rtl/cprt0.o: In function
> `_haltproc_eabi':
> (.text+0x88): undefined reference to `_fini'
> /usr/lib/fpc/2.6.4/units/arm-linux/rtl/cprt0.o: In function
> `_haltproc_eabi':
> (.text+0x90): undefined reference to `_init'
> program1.fpr(16) Error: Error while linking
> program1.fpr(16) Fatal: There were 1 errors compiling module, stopping
> Fatal: Compilation aborted
> Error: /usr/bin/ppcarm returned an error exitcode (normal if you did not
> specify a source file to be compile
>
> The program program1.fpr is:
>
> program program1;
>
> uses dynlibs;
>
> procedure test;
> begin
>
> end;
>
> begin
>   test;
> end.
>
> My FPC come from
> http://sourceforge.net/projects/freepascal/files/Linux/2.6.4/fpc-2.6.4.arm-linux.tar
>
> On a Linux 64, the program and the shared library compiles and works fine.
>
> So, programs and shared libraries works fine on RPi or I'm doing something
> wrong?
>
>
>
>
>
> --
> The best regards,
>
> Fabio Luis Girardi
> PascalSCADA Project
> http://sourceforge.net/projects/pascalscada
> http://www.pascalscada.com
>



-- 
The best regards,

Fabio Luis Girardi
PascalSCADA Project
http://sourceforge.net/projects/pascalscada
http://www.pascalscada.com
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to