Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2014-07

Re: arm-linux (raspberry pi)

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

John Lee

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?

Seems to be ver 2.6.2. Appears to work with a quick try compiling. Have you seen any problems using it on wheezy?

Can it be used to compile v2.7 on the rpi, or is some weird cross compile needed?

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?), 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.

TIA john

Fabio Luis Girardi wrote 46 lines
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 : > 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 > _______________________________________________ > fpc-pascal maillist - > http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal > -- The best regards, Fabio Luis Girardi PascalSCADA Project http://sourceforge.net/projects/pascalscada http://www.pascalscada.com _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply by email

Fabio Luis Girardi
to John Lee

2014-07-01 11:26 GMT-03:00 John Lee :

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 needed?

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

http://freepascal.thaddy.co.uk/raspberrypi.html

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:

http://www.michellcomputing.co.uk/blog/2014/05/freepascal-2-7-1-on-raspberry-pi/

When I used the stock fpc 2.6.4, downloaded from

http://sourceforge.net/projects/freepascal/files/Linux/2.6.4/fpc-2.6.4.arm-linux.tar/download

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.

Show quoted text 55 lines
TIA john On 1 July 2014 14:14, Fabio Luis Girardi 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 : > >> 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 >> _______________________________________________ >> fpc-pascal maillist - >> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal >> > > > > -- > The best regards, > > Fabio Luis Girardi > PascalSCADA Project > http://sourceforge.net/projects/pascalscada > http://www.pascalscada.com > > _______________________________________________ > fpc-pascal maillist - > http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal >
The best regards, Fabio Luis Girardi PascalSCADA Project http://sourceforge.net/projects/pascalscada http://www.pascalscada.com

Reply by email