Sign in Join

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

Mailing lists / lazarus / 2015-11

Failed to build lazarus release 1.4.4 from svn

3 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

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

Bo Berglund

I tried to compile the latest release of Lazarus (1.4.4) on my Raspberry Pi2 under Raspbian Jessie. I want to do this in order to get a stable IDE rather than the trunk version I have tried so far.

But I received errors while doing make bigide...

Here is what I have done:

1) I have downloaded fpc 2.6.4 for ARM using this command in /usr/local/fpc:
wget
http://sourceforge.net/projects/freepascal/files/Linux/2.6.4/fpc-2.6.4.arm-linux.tar

Then I unpacked it using:
tar xvf fpc-2.6.4.arm-linux.tar

2) I have created a symlink to the 2.6.4 compiler with this command: ln -sf /usr/local/lib/fpc/3.1.1/ppcarm /usr/local/bin/ppcarm

3) I created a directory lazarus in the pi home dir and inside that I checked out the sources:
svn co http://svn.freepascal.org/svn/lazarus/tags/lazarus_1_4_4 1.4.4

4) Then inside the 1.4.4 dir I issued:
time make bigide

The response when it quit was:

/usr/bin/ld: warning: ./link.res contains output sections; did you forget -T?
/usr/local/lib/fpc/2.6.4/units/arm-linux/rtl/cprt0.o: In function `_haltproc_eabi':
(.text+0x88): undefined reference to `_fini'
/usr/local/lib/fpc/2.6.4/units/arm-linux/rtl/cprt0.o: In function `_haltproc_eabi':
(.text+0x90): undefined reference to `_init'
svn2revisioninc.pas(768) Error: Error while linking svn2revisioninc.pas(768) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
Makefile:2740: recipe for target 'svn2revisioninc' failed make[2]: *** [svn2revisioninc] Error 1
make[2]: Leaving directory '/home/pi/lazarus/1.4.4/tools' Makefile:3155: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/pi/lazarus/1.4.4/tools' Makefile:3080: recipe for target 'lazbuild' failed make: *** [lazbuild] Error 2

real 2m27.851s

It seems like I am missing something important here, but what? I have set the ppcarm symlink to point to the current release version of FPC and I have checked out a clean version of lazarus sources and started make from within these sources.

Shouldn't it then just build successfully?
Or is there a different make command one should issue to build Lazarus IDE from the release sources?

Bo Berglund Developer in Sweden

Reply by email

Bo Berglund
to Bo Berglund
Bo Berglund wrote 26 lines
4) Then inside the 1.4.4 dir I issued: time make bigide The response when it quit was: /usr/bin/ld: warning: ./link.res contains output sections; did you forget -T? /usr/local/lib/fpc/2.6.4/units/arm-linux/rtl/cprt0.o: In function `_haltproc_eabi': (.text+0x88): undefined reference to `_fini' /usr/local/lib/fpc/2.6.4/units/arm-linux/rtl/cprt0.o: In function `_haltproc_eabi': (.text+0x90): undefined reference to `_init' svn2revisioninc.pas(768) Error: Error while linking svn2revisioninc.pas(768) Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted Makefile:2740: recipe for target 'svn2revisioninc' failed make[2]: *** [svn2revisioninc] Error 1 make[2]: Leaving directory '/home/pi/lazarus/1.4.4/tools' Makefile:3155: recipe for target 'all' failed make[1]: *** [all] Error 2 make[1]: Leaving directory '/home/pi/lazarus/1.4.4/tools' Makefile:3080: recipe for target 'lazbuild' failed make: *** [lazbuild] Error 2

I have tried many iterations now but all stop at the same place with an error because it cannot find _fini and _init while linking svn2revisioninc, whatever that is.

I even checked out the lazarus revision 1.4 and tried to make all, same story after 2.5 minutes it gives up at the exact same location.

I try to use fpc 2.6.4 for ARM, for which I have repeated my installation:

sudo su
wget
http://sourceforge.net/projects/freepascal/files/Linux/2.6.4/fpc-2.6.4.arm-linux.tar tar xvf fpc-2.6.4.arm-linux.tar
cd fpc-2.6.4.arm-linux
./install.sh (Reply /usr/local to the first question)

Is it not enough to have downloaded the fpc 2.6.4 version and installed it using the shellscript? Is something else needed too?

I have googled the exact error and I found it in a few discussions on installing Lazarus but these were all about compiling the trunk versions of fpc and lazarus, which I am not doing. Both directed the user to set the symlink for ppcarm to point to where the version 3.1.1 is built.
Is seed fpc 2.6.4 not enough to compile lazarus 1.4.x release?

I want to get the release versions working since I had problems with the trunk versions....

Please HELP! I have spent probably 10 hours today on this with multiple downloads, builds and apt-get updates all in vain. :(

Bo Berglund Developer in Sweden

Reply by email

Martin Schreiber
to Bo Berglund
Bo Berglund wrote
On Sun, 08 Nov 2015 16:15:59 +0100, Bo Berglund Is seed fpc 2.6.4 not enough to compile lazarus 1.4.x release?

For RaspberryPi you need the EABIHF version of the FPC-ARM compiler. For example 3.0.1 from here:
http://sourceforge.net/projects/mseide-msegui/files/fpcarm/

Show quoted text 5 lines
I want to get the release versions working since I had problems with the trunk versions.... Please HELP! I have spent probably 10 hours today on this with multiple downloads, builds and apt-get updates all in vain. :(

Please remember:
http://www.mail-archive.com/lazarus%40lists.lazarus.freepascal.org/msg50406.html ;-)

Martin

Reply by email