[Lazarus] Failed to build lazarus release 1.4.4 from svn

Bo Berglund bo.berglund at gmail.com
Sun Nov 8 16:15:59 CET 2015


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





More information about the Lazarus mailing list