Sign in Join

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

Mailing lists / lazarus / 2014-06

Lazarus on Udoo quad (ARM device) ?

16 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

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

Anthony Tekatch

Hello,

I am having some difficulty getting Lazarus installed on an Udoo SBC (ARM device).

I installed "lubuntu 12.04 LTS armHF based" from here: http://www.udoo.org/downloads/

I installed FPC from here:
ftp://ftp.freepascal.org/pub/fpc/dist/2.6.4/arm-linux/ then
sudo bash
sh install.sh

Then I installed Lazarus as follows:
svn co http://svn.freepascal.org/svn/lazarus/trunk lazarus cd lazarus
make

then the following errors appeared:
...
Linking ../lazbuild
/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'
lazbuild.lpr(1742) Error: Error while linking
lazbuild.lpr(1742) Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted
make[2]: *** [lazbuild] Error 1
make[2]: Leaving directory `/home/debian/lazarus/ide' make[1]: *** [lazbuilder] Error 2
make[1]: Leaving directory `/home/debian/lazarus/ide' make: *** [lazbuild] Error 2
$

Any ideas?

Thanks,
Anthony

Reply by email

Reinier Olislagers
to Anthony Tekatch
Anthony Tekatch wrote 10 lines
Hello, I am having some difficulty getting Lazarus installed on an Udoo SBC (ARM device). I installed "lubuntu 12.04 LTS armHF based" from here: http://www.udoo.org/downloads/ I installed FPC from here: ftp://ftp.freepascal.org/pub/fpc/dist/2.6.4/arm-linux/

<snip>

Show quoted text 15 lines
/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' lazbuild.lpr(1742) Error: Error while linking lazbuild.lpr(1742) Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted make[2]: *** [lazbuild] Error 1 make[2]: Leaving directory `/home/debian/lazarus/ide' make[1]: *** [lazbuilder] Error 2 make[1]: Leaving directory `/home/debian/lazarus/ide' make: *** [lazbuild] Error 2 $ Any ideas?

The FPC you downloaded probably does not support ARM HF. IIRC, none of 2.6.x does, except that there's a version maintained by Debian with patches. You could try installing that or perhaps compile using FPC trunk (manually or using a tool like fpcup [warning: fpcup author speaking ;)] see here
http://wiki.lazarus.freepascal.org/Odroid#Installing_FPC.2FLazarus_using_fpcup for instructions for installation on another ARMHF+*buntu device so that should be quite usable)

Reply by email

Paul Breneman
to Anthony Tekatch: I am having some difficulty getting Lazarus installed on an Udoo SBC (ARM device). I…
Anthony Tekatch wrote 41 lines
Hello, I am having some difficulty getting Lazarus installed on an Udoo SBC (ARM device). I installed "lubuntu 12.04 LTS armHF based" from here: http://www.udoo.org/downloads/ I installed FPC from here: ftp://ftp.freepascal.org/pub/fpc/dist/2.6.4/arm-linux/ then sudo bash sh install.sh Then I installed Lazarus as follows: svn co http://svn.freepascal.org/svn/lazarus/trunk lazarus cd lazarus make then the following errors appeared: ... Linking ../lazbuild /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' lazbuild.lpr(1742) Error: Error while linking lazbuild.lpr(1742) Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted make[2]: *** [lazbuild] Error 1 make[2]: Leaving directory `/home/debian/lazarus/ide' make[1]: *** [lazbuilder] Error 2 make[1]: Leaving directory `/home/debian/lazarus/ide' make: *** [lazbuild] Error 2 $ Any ideas? Thanks, Anthony

I've had the same problem but only when Synapse is used in my Free Pascal program. Here is something from a year ago but I don't think it is related to my current problem:
http://bugs.freepascal.org/view.php?id=24518

I left messages on 20 and 26 May 2014 on the Synapse list but never heard any more from anyone about this.

Reply by email

Paul Breneman
to Reinier Olislagers: <snip> The FPC you downloaded probably does not support ARM HF. IIRC, none of 2.6.x does,…
Reinier Olislagers wrote 36 lines
On 22/06/2014 23:47, Anthony Tekatch wrote: > Hello, > > I am having some difficulty getting Lazarus installed on an Udoo SBC (ARM > device). > > I installed "lubuntu 12.04 LTS armHF based" from here: > http://www.udoo.org/downloads/ > > I installed FPC from here: > ftp://ftp.freepascal.org/pub/fpc/dist/2.6.4/arm-linux/ <snip> > /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' > lazbuild.lpr(1742) Error: Error while linking > lazbuild.lpr(1742) Fatal: There were 1 errors compiling module, stopping > Fatal: Compilation aborted > make[2]: *** [lazbuild] Error 1 > make[2]: Leaving directory `/home/debian/lazarus/ide' > make[1]: *** [lazbuilder] Error 2 > make[1]: Leaving directory `/home/debian/lazarus/ide' > make: *** [lazbuild] Error 2 > $ > > Any ideas? The FPC you downloaded probably does not support ARM HF. IIRC, none of 2.6.x does, except that there's a version maintained by Debian with patches. You could try installing that or perhaps compile using FPC trunk (manually or using a tool like fpcup [warning: fpcup author speaking ;)] see here http://wiki.lazarus.freepascal.org/Odroid#Installing_FPC.2FLazarus_using_fpcup for instructions for installation on another ARMHF+*buntu device so that should be quite usable)

Interesting, but why does my program compile OK using FPC 2.6.2 but fails using 2.6.4?

http://ctrlterm.com/ports.htm

I had the problem on 20 May 2014 and just reverted to 2.6.2 to avoid the problem?

Regards,
Paul Breneman
www.TurboControl.com

Reply by email

Reinier Olislagers
to Paul Breneman
Paul Breneman wrote 50 lines
On 06/23/2014 02:28 AM, Reinier Olislagers wrote: > On 22/06/2014 23:47, Anthony Tekatch wrote: >> Hello, >> >> I am having some difficulty getting Lazarus installed on an Udoo SBC >> (ARM >> device). >> >> I installed "lubuntu 12.04 LTS armHF based" from here: >> http://www.udoo.org/downloads/ >> >> I installed FPC from here: >> ftp://ftp.freepascal.org/pub/fpc/dist/2.6.4/arm-linux/ > <snip> >> /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' >> lazbuild.lpr(1742) Error: Error while linking >> lazbuild.lpr(1742) Fatal: There were 1 errors compiling module, stopping >> Fatal: Compilation aborted >> make[2]: *** [lazbuild] Error 1 >> make[2]: Leaving directory `/home/debian/lazarus/ide' >> make[1]: *** [lazbuilder] Error 2 >> make[1]: Leaving directory `/home/debian/lazarus/ide' >> make: *** [lazbuild] Error 2 >> $ >> >> Any ideas? > > The FPC you downloaded probably does not support ARM HF. IIRC, none of > 2.6.x does, except that there's a version maintained by Debian with > patches. > You could try installing that or perhaps compile using FPC trunk > (manually or using a tool like fpcup [warning: fpcup author speaking ;)] > see here > http://wiki.lazarus.freepascal.org/Odroid#Installing_FPC.2FLazarus_using_fpcup > > for instructions for installation on another ARMHF+*buntu device so that > should be quite usable) Interesting, but why does my program compile OK using FPC 2.6.2 but fails using 2.6.4? http://ctrlterm.com/ports.htm I had the problem on 20 May 2014 and just reverted to 2.6.2 to avoid the problem?

Are you using an ARMHF OS?

Reply by email

Reinier Olislagers
to Paul Breneman: Interesting, but why does my program compile OK using FPC 2.6.2 but fails using 2.6.4?…
Paul Breneman wrote 15 lines
On 06/23/2014 02:28 AM, Reinier Olislagers wrote: > On 22/06/2014 23:47, Anthony Tekatch wrote: > The FPC you downloaded probably does not support ARM HF. IIRC, none of > 2.6.x does, except that there's a version maintained by Debian with > patches. > You could try installing that or perhaps compile using FPC trunk > (manually or using a tool like fpcup [warning: fpcup author speaking ;)] > see here > http://wiki.lazarus.freepascal.org/Odroid#Installing_FPC.2FLazarus_using_fpcup > > for instructions for installation on another ARMHF+*buntu device so that > should be quite usable) Interesting, but why does my program compile OK using FPC 2.6.2 but fails using 2.6.4?

,,. and are you using FPC from your OS repository or from another source like the OP?

If your circumstances are the same, then I have no idea.

Reply by email

Paul Breneman
to Reinier Olislagers: Are you using an ARMHF OS?
Reinier Olislagers wrote 52 lines
On 23/06/2014 10:02, Paul Breneman wrote: > On 06/23/2014 02:28 AM, Reinier Olislagers wrote: >> On 22/06/2014 23:47, Anthony Tekatch wrote: >>> Hello, >>> >>> I am having some difficulty getting Lazarus installed on an Udoo SBC >>> (ARM >>> device). >>> >>> I installed "lubuntu 12.04 LTS armHF based" from here: >>> http://www.udoo.org/downloads/ >>> >>> I installed FPC from here: >>> ftp://ftp.freepascal.org/pub/fpc/dist/2.6.4/arm-linux/ >> <snip> >>> /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' >>> lazbuild.lpr(1742) Error: Error while linking >>> lazbuild.lpr(1742) Fatal: There were 1 errors compiling module, stopping >>> Fatal: Compilation aborted >>> make[2]: *** [lazbuild] Error 1 >>> make[2]: Leaving directory `/home/debian/lazarus/ide' >>> make[1]: *** [lazbuilder] Error 2 >>> make[1]: Leaving directory `/home/debian/lazarus/ide' >>> make: *** [lazbuild] Error 2 >>> $ >>> >>> Any ideas? >> >> The FPC you downloaded probably does not support ARM HF. IIRC, none of >> 2.6.x does, except that there's a version maintained by Debian with >> patches. >> You could try installing that or perhaps compile using FPC trunk >> (manually or using a tool like fpcup [warning: fpcup author speaking ;)] >> see here >> http://wiki.lazarus.freepascal.org/Odroid#Installing_FPC.2FLazarus_using_fpcup >> >> for instructions for installation on another ARMHF+*buntu device so that >> should be quite usable) > > Interesting, but why does my program compile OK using FPC 2.6.2 but > fails using 2.6.4? > > http://ctrlterm.com/ports.htm > > I had the problem on 20 May 2014 and just reverted to 2.6.2 to avoid the > problem? Are you using an ARMHF OS?

I don't think so. FPC 2.6.2 works OK. It is a Nexus 7 32 GB tablet 2013 version (I think).

Reply by email

Reinier Olislagers
to Paul Breneman
Paul Breneman wrote
I don't think so. FPC 2.6.2 works OK. It is a Nexus 7 32 GB tablet 2013 version (I think).

Yes, you mentioned 2.6.2 works OK. You probably have a regular ARM OS that supports non-HF operation which lets you run "normal" (non hardfloat) ARM programs.

Reply by email

Paul Breneman
to Reinier Olislagers: ,,. and are you using FPC from your OS repository or from another source like the OP? If…
Reinier Olislagers wrote 20 lines
On 23/06/2014 10:02, Paul Breneman wrote: > On 06/23/2014 02:28 AM, Reinier Olislagers wrote: >> On 22/06/2014 23:47, Anthony Tekatch wrote: >> The FPC you downloaded probably does not support ARM HF. IIRC, none of >> 2.6.x does, except that there's a version maintained by Debian with >> patches. >> You could try installing that or perhaps compile using FPC trunk >> (manually or using a tool like fpcup [warning: fpcup author speaking ;)] >> see here >> http://wiki.lazarus.freepascal.org/Odroid#Installing_FPC.2FLazarus_using_fpcup >> >> for instructions for installation on another ARMHF+*buntu device so that >> should be quite usable) > > Interesting, but why does my program compile OK using FPC 2.6.2 but > fails using 2.6.4? ,,. and are you using FPC from your OS repository or from another source like the OP? If your circumstances are the same, then I have no idea.

I'm using only public FPC releases. I should have done more work and reported this FPC 2.6.4 bug a month ago. Sorry for lack of time to do that.

Reply by email

Reinier Olislagers
to Paul Breneman
Paul Breneman wrote
I'm using only public FPC releases. I should have done more work and reported this FPC 2.6.4 bug a month ago. Sorry for lack of time to do that.

I was not talking about public releases. I was asking whether you got it as (e.g.) a .deb from the package manager from your OS or downloaded it or did as the OP did:

I installed FPC from here: ftp://ftp.freepascal.org/pub/fpc/dist/2.6.4/arm-linux

... however the question is moot as you don't know if the OS you're is running is ARMHF...

Reply by email

Anthony Tekatch
to Reinier Olislagers: <snip> The FPC you downloaded probably does not support ARM HF. IIRC, none of 2.6.x does,…
Reinier Olislagers wrote
.... You could try installing that or perhaps compile using FPC trunk (manually or using a tool like fpcup [warning: fpcup author speaking ;)] see here http://wiki.lazarus.freepascal.org/Odroid#Installing_FPC.2FLazarus_using_fpcup

Thank you.

I now have an Odroid U3 and am trying the instructions from your link with the following error in fpcup.log:

[2014-07-01 09:13:02.909 Info] ------------------------------------------------ [2014-07-01 09:20:51.573 Info] 1-7-14 09:20:51: fpcup 84655d763d40 (Sat Mar 01 16:15:36 2014 +0100) started. [2014-07-01 09:20:52.483 Info] TFPCInstaller init: [2014-07-01 09:20:52.483 Info] Bootstrap compiler dir: /home/odroid/development/fpcbootstrap/ [2014-07-01 09:20:52.483 Info] FPC URL: http://svn.freepascal.org/svn/fpc/trunk [2014-07-01 09:20:52.483 Info] FPC options: -dFPC_ARMHF -Cparmv7a -CaEABIHF -CfVFPv3 [2014-07-01 09:20:52.483 Info] FPC directory: /home/odroid/development/fpctrunk [2014-07-01 09:20:52.483 Info] External program path: /home/odroid/development/fpctrunk/bin/arm-linux:/home/odroid/development/fpctrunk/bin:/home/odroid/development/fpctrunk/utils:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games [2014-07-01 09:20:52.734 Info] INFO: directory /home/odroid/development/fpctrunk is not an SVN repository (or a repository with the wrong remote URL). [2014-07-01 09:20:58.097 Info] DownloadFromSVN: SVN gave error code 1 [2014-07-01 09:20:58.697 Info] Error running fpcup. Technical details: error executing sequence FPCGetOnly; line: 2, param: FPC [2014-07-01 09:20:58.898 Info] Error running fpcup. Technical details: error executing sequence Only; line: 1, param: FPCGetOnly [2014-07-01 09:20:59.098 Info] 1-7-14 09:20:59: fpcup finished. [2014-07-01 09:20:59.298 Info]
------------------------------------------------

This is the listing of that directory on my system: $ ls -al /home/odroid/development/fpctrunk
total 92
drwxrwxr-x 5 odroid odroid 4096 Jul 1 09:08 .
drwxrwxr-x 4 odroid odroid 4096 Jul 1 09:08 ..
drwxrwxr-x 4 odroid odroid 4096 Jul 1 09:08 .svn -rw-rw-r-- 1 odroid odroid 70430 Jul 1 09:08 Makefile drwxrwxr-x 2 odroid odroid 4096 Jul 1 09:08 installer drwxrwxr-x 28 odroid odroid 4096 Jul 1 09:08 packages

It seems fpcup cannot see the SVN repository. Is a simple fix?

Thanks,
Anthony

Reply by email

Reinier Olislagers
to Anthony Tekatch
Anthony Tekatch wrote 7 lines
On Mon, 23 Jun 2014 08:28:57 +0200, Reinier Olislagers wrote: > .... You could try installing that or perhaps compile using FPC > trunk (manually or using a tool like fpcup [warning: fpcup author > speaking ;)] see here > http://wiki.lazarus.freepascal.org/Odroid#Installing_FPC.2FLazarus_using_fpcup I now have an Odroid U3 and am trying the instructions from your link with the following error in fpcup.log:

<snip>

[2014-07-01 09:20:58.097 Info] DownloadFromSVN: SVN gave error code 1 It seems fpcup cannot see the SVN repository. Is a simple fix?

Yes, it seems it finds the svn command but has problems downloading.

Try again would be my suggestion. You can also try the svn checkout command manually in the relevant directory to see if that works.

Reply by email

Anthony Tekatch
to Reinier Olislagers
Reinier Olislagers wrote 16 lines
On 01/07/2014 02:03, Anthony Tekatch wrote: > On Mon, 23 Jun 2014 08:28:57 +0200, Reinier Olislagers > wrote: >> .... You could try installing that or perhaps compile using FPC >> trunk (manually or using a tool like fpcup [warning: fpcup author >> speaking ;)] see here >> http://wiki.lazarus.freepascal.org/Odroid#Installing_FPC.2FLazarus_using_fpcup > I now have an Odroid U3 and am trying the instructions from your link > with the following error in fpcup.log: <snip> > [2014-07-01 09:20:58.097 Info] DownloadFromSVN: SVN gave error code 1 > It seems fpcup cannot see the SVN repository. Is a simple fix? Yes, it seems it finds the svn command but has problems downloading. Try again would be my suggestion. You can also try the svn checkout command manually in the relevant directory to see if that works.

The missing svn (from incomplete directory) was due to the disk size being too small, I just had to enlarge as per leaflet that came with odroid U3. I did not try to run the svn command from the command line before I tried "df -h" to see 100% usage on that drive.

Next, locale was screwed up, fcpup --verbose showed this: svn: warning: cannot set LC_CTYPE locale
svn: warning: environment variable LANG is en_CA.UTF-8 svn: warning: please check that your locale name is correct I had to do this:
sudo locale-gen en_US.UTF-8

Next, there were some errors regarding Lazarus build: fpcup: info: Lazarus: buildmodulecustom: make/lazbuild returned error code 2 Details:
fpcup: info: Error running fpcup. Technical details: error executing sequence useride; line: 2, param: USERIDE fpcup: info: Error running fpcup. Technical details: error executing sequence Only; line: 5, param: useride FPCUp failed.
so I did a "fpcup --clean" then tried the standard command (from your link).

Lazarus is installed now.

Thanks,
Anthony

Reply by email

Corpsman
to Anthony Tekatch

Hello,
I am using Odroid too. I Update it via update.sh which was created by the people from lazarusforum.de

http://www.lazarusforum.de/viewtopic.php?f=3&t=5520&hilit=+update

But there is a problem with runnning the compiled program. Pressing F9 or CTRL + F9 creates the binary, but the IDE then freezes partly, so that compiling again is impossible (F9 does not run the application, only compile).

I can run the created binary's without Lazarus and all is fine. => So the IDE has do be killed via x-kill after each compile. Can you reproduce this ?

Corpsman

Anthony Tekatch wrote 49 lines
On Tue, 01 Jul 2014 09:08:05 +0200, Reinier Olislagers wrote: > On 01/07/2014 02:03, Anthony Tekatch wrote: >> On Mon, 23 Jun 2014 08:28:57 +0200, Reinier Olislagers >> wrote: >>> .... You could try installing that or perhaps compile using FPC >>> trunk (manually or using a tool like fpcup [warning: fpcup author >>> speaking ;)] see here >>> http://wiki.lazarus.freepascal.org/Odroid#Installing_FPC.2FLazarus_using_fpcup >> I now have an Odroid U3 and am trying the instructions from your link >> with the following error in fpcup.log: > <snip> >> [2014-07-01 09:20:58.097 Info] DownloadFromSVN: SVN gave error code 1 >> It seems fpcup cannot see the SVN repository. Is a simple fix? > Yes, it seems it finds the svn command but has problems downloading. > > Try again would be my suggestion. You can also try the svn checkout > command manually in the relevant directory to see if that works. The missing svn (from incomplete directory) was due to the disk size being too small, I just had to enlarge as per leaflet that came with odroid U3. I did not try to run the svn command from the command line before I tried "df -h" to see 100% usage on that drive. Next, locale was screwed up, fcpup --verbose showed this: svn: warning: cannot set LC_CTYPE locale svn: warning: environment variable LANG is en_CA.UTF-8 svn: warning: please check that your locale name is correct I had to do this: sudo locale-gen en_US.UTF-8 Next, there were some errors regarding Lazarus build: fpcup: info: Lazarus: buildmodulecustom: make/lazbuild returned error code 2 Details: fpcup: info: Error running fpcup. Technical details: error executing sequence useride; line: 2, param: USERIDE fpcup: info: Error running fpcup. Technical details: error executing sequence Only; line: 5, param: useride FPCUp failed. so I did a "fpcup --clean" then tried the standard command (from your link). Lazarus is installed now. Thanks, Anthony -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Auf meiner Homepage www.Corpsman.de ist immer was los, st?ndig wird sie aktualisiert und erweitert. Da ist f?r jeden was dabei.

Reply by email

Anthony Tekatch
to Corpsman
Corpsman wrote 8 lines
But there is a problem with runnning the compiled program. Pressing F9 or CTRL + F9 creates the binary, but the IDE then freezes partly, so that compiling again is impossible (F9 does not run the application, only compile). I can run the created binary's without Lazarus and all is fine. => So the IDE has do be killed via x-kill after each compile. Can you reproduce this ?

Also, I have a larger project that causes the IDE to restart constantly as soon as the project is loaded. I have not tracked that problem down yet. I just went back to a test project with one button and was able to get that working fine. I will have to do more testing to narrow down the offending part of my large project.

I used the instructions from here:
http://wiki.lazarus.freepascal.org/Odroid#Installing_FPC.2FLazarus_using_fpcup and this command to install Lazarus:
./fpcup_linux_armhf --inifile=fpcupodroid.ini --inisection=full --verbose

I had a problem where the IDE complained about:
Lazarus error lclclasses.pp unit Classes not found so I rebuilt Lazarus (Tools->Build Lazarus) and that seemed to help.

I'm still learning.

Anthony

Reply by email