Forum > Linux

Cannot recompile lazarus-2.0.0 on RPi 3

(1/1)

tailkinker:
I have need to install a visual component in Lazarus on my RPi 3.  (I won't be doing development on the Pi, just compiling from source using lazbuild.)  When I install the component, however, and attempt to recompile the IDE, I get 'cannot find fpdebug'.  I have followed instructions elsewhere to increase the size of my swapfile, to 2048 megabytes in fact, and I still get the error message.  Can anybody please help? 

tailkinker:
Tried using lazbuild --build-ide= to rebuild the IDE (thinking that this uses less RAM than the full IDE) and got the following output:


--- Code: ---Hint: (lazarus) [CalcTargets] Lazarus directory is readonly, using fallback target directory: /home/pi/.lazarus/bin
Hint: (lazarus) [CalcTargets] Lazarus directory is readonly, using fallback target directory: /home/pi/.lazarus/bin
Info: (lazarus) Execute Title="Build IDE"
Info: (lazarus) Working Directory="/usr/lib/lazarus/2.0.0/"
Info: (lazarus) Executable="/usr/bin/make"
Info: (lazarus) Param[0]="idepkg"
Info: (lazarus) Param[1]="-w"
make: Entering directory '/usr/lib/lazarus/2.0.0'
/usr/bin/make -C ide idepkg
make[1]: Entering directory '/usr/lib/lazarus/2.0.0/ide'
/usr/bin/make --assume-new=lazarus.pp lazarus OPT=' @/home/pi/.lazarus/idemake.cfg'
make[2]: Entering directory '/usr/lib/lazarus/2.0.0/ide'
/usr/bin/fpc -gl -vbqewnhi -Sci -dlclgtk2 -Fu../designer -Fu../debugger -Fu../debugger/frames -Fu../converter -Fu../packager -Fu../packager/frames -Fu../components/custom -Fuframes -Fu. -Fu/usr/lib/arm-linux-gnueabihf/fpc/3.0.4/units/arm-linux/rtl -Fiinclude -Fiinclude/linux -Fi../images -FE.. -FU../units/arm-linux/gtk2 -Fl/usr/lib/gcc/arm-linux-gnueabihf/8 -Flinclude -Fl/etc/ld.so.conf.d/*.conf @/home/pi/.lazarus/idemake.cfg -darm lazarus.pp
Hint: (11030) Start of reading config file /etc/fpc.cfg
Hint: (11031) End of reading config file /etc/fpc.cfg
Hint: (11030) Start of reading config file /home/pi/.lazarus/idemake.cfg
Hint: (11031) End of reading config file /home/pi/.lazarus/idemake.cfg
Free Pascal Compiler version 3.0.4+dfsg-22+rpi1 [2019/02/04] for arm
Copyright (c) 1993-2017 by Florian Klaempfl and others
(1002) Target OS: Linux for ARMHF
(3104) Compiling lazarus.pp
/home/pi/.lazarus/staticpackages.inc(3,1) Fatal: (10022) Can't find unit fpdebug used by Lazarus
Fatal: (1018) Compilation aborted
make[2]: *** [Makefile:3972: lazarus] Error 1
make[1]: *** [Makefile:4394: idepkg] Error 2
make: *** [Makefile:3171: idepkg] Error 2
Error: /usr/bin/ppcarm returned an error exitcode
make[2]: Leaving directory '/usr/lib/lazarus/2.0.0/ide'
make[1]: Leaving directory '/usr/lib/lazarus/2.0.0/ide'
make: Leaving directory '/usr/lib/lazarus/2.0.0'
Error: (lazarus) Build IDE: stopped with exit code 2
Error: (lazarus) Building IDE: Building IDE failed.

--- End code ---

Martin_fr:
If you do not use FpDebug, then you can uninstall it. By default it is installed as a dependency for package LazDebuggerFpLldb (for Mac users).

If you installed packages of your own, any package that contains Debug and Fp, like LazDebuggerFp or LazDebuggerFpGdbmi.
The default gdb debugger does not need FpDebug.


I read on another thread on the forum, someone claimed, they had to do "make" in the component folder first. I do not recall which thread it was....

For the rest, someone with knowledge of the Makefiles need to answer this.

trev:

--- Quote from: Martin_fr on April 07, 2021, 01:56:03 pm ---I read on another thread on the forum, someone claimed, they had to do "make" in the component folder first. I do not recall which thread it was....
--- End quote ---

https://forum.lazarus.freepascal.org/index.php/topic,46612.msg366376.html#msg366376

Navigation

[0] Message Index

Go to full version