raspberry installation lazarus / 1-Linux ---------------------------------------------------------------------- xinyiman · 2014-04-03 11:44 I bought a raspberry pi and try to install lazarus 1.0.14 and fpc 2.6.2 because I have to be able to use raudus on this architecture . I used sudo apt- get update sudo apt- get upgrade sudo apt- get install lazarus but of course the old version was . Then I performed the following steps: I went to the following address http://sourceforge.net/projects/freepascal/files/ I chose Linux then I chose 2.6.2 and there I was: http://sourceforge.net/projects/freepascal/files/Linux/2.6.2/ I then downloaded fpc - 2.6.2.arm - linux.tar decompressed with tar-xvf ./fpc-2.6.2.arm-linux.tar cd fpc - 2.6.2.arm -linux / sudo sh install.sh then went on http://sourceforge.net/projects/lazarus/files/Lazarus 20Zip % % 20_ % 20GZip / I chose the version 1.0.14 http://sourceforge.net/projects/lazarus/files/Lazarus 20Zip % % 20_ % 20GZip/Lazarus % 201.0.14 / download version . tar.gz sudo chmod 777 lazarus - 1.0.14 - 0.tar.gz unzip with tar-zxvf lazarus - 1.0.14 - 0.tar.gz cd lazarus make clean all Code: [Select]. . . assembling lazbuild Compiling resource .. / units / arm- linux / nogui / lazbuild.or Linking .. / lazbuild / usr / bin / ld : warning: .. / link.res contains output sections ; did you forget- T ? / usr/lib/fpc/2.6.2/units/arm-linux/rtl/cprt0.o : In function ` _haltproc_eabi ' : (. text +0 x88 ) : undefined reference to ` _fini ' / usr/lib/fpc/2.6.2/units/arm-linux/rtl/cprt0.o : In function ` _haltproc_eabi ' : (. text +0 x90 ) : undefined reference to ` _init ' lazbuild.lpr ( 1424) Error: Error while linking lazbuild.lpr ( 1424) Fatal: There were 1 errors compiling module , stopping Fatal: Compilation aborted make [ 2] : *** [ lazbuild ] Error 1 make [ 2] : Leaving directory `/ home / pi / Documents / lazarus / ide ' make [ 1] : *** [ lazbuilder ] Error 2 make [ 1] : Leaving directory `/ home / pi / Documents / lazarus / ide ' make: *** [ lazbuild ] Error 2 Google Traduttore per il Business:Translator ToolkitTraduttore di siti webStrumento a supporto dell'export I tried to follow this solution http://bugs.freepascal.org/view.php?id=24056 but if I type sudo find / -name cprt0.as I do not have any results. Does anyone know how to help me?! ---------------------------------------------------------------------- xinyiman · 2014-04-04 03:05 not idea?! ---------------------------------------------------------------------- BigChimp · 2014-04-04 10:15 Are you using raspbian or another hard float distribution? If so, standard FPC 2.6.x won't work; you'll need the debian patched version that uses the hardfloat calling conventions (IIRC the terminology). http://wiki.lazarus.freepascal.org/ARM_compiler_options#Instruction_se ts ---------------------------------------------------------------------- avra · 2014-04-04 11:21 If Lazarus 1.10 and FPC 2.6.2 with hard float support in Raspbian are enough for your needs then take a look at this solution: http://forum.lazarus.freepascal.org/index.php/topic,22610.msg133708.ht ml#msg133708 For Lazarus 1.0.6 and FPC 2.6.0 with hard float support in Raspbian take a look at solution explained here: http://forum.lazarus.freepascal.org/index.php/topic,20481.msg126602.ht ml#msg126602 ---------------------------------------------------------------------- xinyiman · 2014-04-04 16:06 Quote from: BigChimp on April 04, 2014, 12:15:55 pmAre you using raspbian or another hard float distribution? If so, standard FPC 2.6.x won't work; you'll need the debian patched version that uses the hardfloat calling conventions (IIRC the terminology). http://wiki.lazarus.freepascal.org/ARM_compiler_options#Instruction_se ts Sorry BigChimp, so I can not install it on raspberry? Do I have to compile from one PC x86 or amd64 and then move the track?! I do not understand ---------------------------------------------------------------------- BigChimp · 2014-04-04 16:14 Standard ARM FPC is softfloat. Raspbian is hardfloat. They are not compatible. (I don't know if that is the problem in your case because you still have not said what distribution you are using) If you are using raspbian you cannot use standard FPC 2.6.x because ARMHF support is either non-existent or not good enough. As I said, there are raspbian patches for FPC 2.6. that allow it to work on ARMHF, but obviously you will need to use the raspbian version, not the standard FPC version. Use either FPC trunk with ARMHF (e.g. via fpcup) or follow one of Avra's suggestions. Copying x86 or x64 compiled binaries from a PC would be madness as the instruction set is totally different - ARM CPUs cannot understand x86 code... ---------------------------------------------------------------------- xinyiman · 2014-04-04 16:23 you use raspbian. it's a shame, I'll try the patch suggested by will have, I'd like to figure out just how often are released patches for the raspberry.