[fpc-pascal] arm-linux (raspberry pi)
Fabio Luis Girardi
fluisgirardi at gmail.com
Tue Jul 1 18:45:10 CEST 2014
2014-07-01 11:26 GMT-03:00 John Lee <johnelee0 at gmail.com>:
> I've just done an apt-get nstall fpc on rpi, running wheezy/jessie - quite
> a lot of libs downloaded. Is there a smaller download?
I install FPC using:
sudo apt-get install fp-compiler
> Seems to be ver 2.6.2. Appears to work with a quick try compiling. Have
> you seen any problems using it on wheezy?
I'm using wheezy armHF (fpc 2.6.0+patch to armhf), and the problem are not
when I compile the program and the shared library (I have success to build
both), but when I run the program and it try to load the shared library
built in FPC static or dynamically using units dl or dynlibs. If I build
program in FPC and the shared library on GCC, it can load the shared
library, static or dynamically, without problems.
> Can it be used to compile v2.7 on the rpi, or is some weird cross compile
I don't know. To compile fpc 2.7.1 on rpi, I uninstalled the fpc 2.6 that
comes with wheezy, and installed a fpc copy from here
> Have you tried/succeeded in building the latest rpi arm version from trunk
> eg v2.7.1? Think jonas suggested that it should work (or did he just say
> that 2.6.4 doesn't work?)
Using the FPC 2.7.1 from the cited site, I compiled and installed FPC 2.7.1
trunk successful following these steps:
When I used the stock fpc 2.6.4, downloaded from
It don't works, don't compile my program nor my shared library. I think
that the cause of this, is because my distro (wheezy) is ARMHF and fpc
stock is ARMEL. Marco warned me about this...
> , but don't know if v2.7.1 is used much. Does it work? If so can you
> please make it available as a zip or whatever? I can provide an ftp site
> for you.
No and yes. It compiles the program and the shared library, like as fpc
2.6.0+armhf patch, but at runtime, my program can't load my shared library.
> TIA john
> On 1 July 2014 14:14, Fabio Luis Girardi <fluisgirardi at gmail.com> wrote:
>> 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 armhf. So I downgrade my
>> linux install to a ARMEL distro (raspbian from 2013-05) and everything
>> works very well.
>> So, comparing the results, this can be a bug in the shared library
>> mechanism of FPC on ARMHF?
>> 2014-06-28 12:29 GMT-03:00 Jonas Maebe <jonas.maebe at elis.ugent.be>:
>>> 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.
>>> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
>> The best regards,
>> Fabio Luis Girardi
>> PascalSCADA Project
>> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
The best regards,
Fabio Luis Girardi
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fpc-pascal