Hi all!!
First (tests made on ARMHF): I did tests with latest FPC, built from trunk.
The trouble persists. A simple program can't load a simple shared library,
both built in FPC, but my program built in FPC can load a shared library
built in gcc.
As Marco said, stock fpc 2.6.4 don't works on armh
On 28/06/14 16:48, Fabio Luis Girardi wrote:
I'm testing any option that appears to be useful to build a shared
library. Even If the help says that is unsupported. I'm desperate :)
Unsupported options are much more likely to break things than fix things.
Jonas
Em 28/06/2014 09:13, "Jonas Maebe" escreveu:
>
> And as the FPC help says, -CD is unsupported (nor needed; it is related
to the as of yet unimplemented Delphi-style dynamic packages support).
>
I'm testing any option that appears to be useful to build a shared library.
Even If the help says that
On 27/06/14 16:24, Fabio Luis Girardi wrote:
The output of "readelf -a" with libraries built in C and FPC...
The command line used to build the library in fpc is:
fpc ulib.pas
fpc -Cg -Xc -CD -CX library1.fpr
FPC does not support PIC code for ARM in 2.6.x. Additionally, if you
want PIC, then
Hi!
I did more tests, with a clean raspbian image, using fpc that comes with
raspbian repositories. Now I can compile a program and the shared library,
but I can't load my shared library on my program, but my program can load
and use a shared library built in C. Maybe a FPC bug??
No, I installed F
No, I installed FPC on Rpi using this file:
http://sourceforge.net/projects/freepascal/files/Linux/2.6.4/fpc-2.6.4.arm-linux.tar
Using the FPC 2.6.4, I tried build a fresh FPC 2.7.1 on Rpi, but I found
the same error.
So, I have to go back and install FPC from Raspibian repositories...
2014
In our previous episode, Fabio Luis Girardi said:
> Someone can say if this is a problem with my raspbian image or a problem
> with my FPC installation?
Did you use the raspbian provided (and patched!) FPC or did you build your
own?
Stock 2.6.4 does NOT run armhf systems, Raspbian patched theirs.
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: