Recent

Author Topic: Erro compiling Lazarus IDE UBUNTU  (Read 3850 times)

Leopovoa

  • Newbie
  • Posts: 6
Erro compiling Lazarus IDE UBUNTU
« on: June 21, 2017, 10:21:23 pm »
Hi folks,

I installed Lazarus 1.6 on Ubuntu 16.04 LTS successfully. I can compile my programs without any difficulty. But at the time I need to install a new package and compile the IDE I find the following error:

make: Entering directory '/usr/lib/lazarus/1.6'
/usr/bin/make -C ide idepkg
make[1]: Entering directory '/usr/lib/lazarus/1.6/ide'
../tools/svn2revisioninc .. revision.inc
Warning: svn not in path.
/usr/bin/make --assume-new=lazarus.pp lazarus OPT=' @/home/leopovoa/.lazarus/idemake.cfg'
make[2]: Entering directory '/usr/lib/lazarus/1.6/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/fpc/3.0.0/units/x86_64-linux/rtl -Fiinclude -Fiinclude/linux -Fi../images -FE.. -FU../units/x86_64-linux/gtk2 -Cg -Fl/usr/lib/gcc/x86_64-linux-gnu/5 -Flinclude -Fl/etc/ld.so.conf.d/*.conf @/home/leopovoa/.lazarus/idemake.cfg -dx86_64 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/leopovoa/.lazarus/idemake.cfg
Hint: (11031) End of reading config file /home/leopovoa/.lazarus/idemake.cfg
Free Pascal Compiler version 3.0.0+dfsg-2 [2016/01/28] for x86_64
Copyright (c) 1993-2015 by Florian Klaempfl and others
(1002) Target OS: Linux for x86-64
(3104) Compiling lazarus.pp
make[2]: *** [lazarus] Error 1
make[1]: *** [idepkg] Error 2
make: *** [idepkg] Error 2
/home/leopovoa/.lazarus/staticpackages.inc(6,1) Fatal: (10022) Can't find unit cody used by Lazarus
Fatal: (1018) Compilation aborted
Error: /usr/bin/ppcx64 returned an error exitcode
Makefile:3959: recipe for target 'lazarus' failed
make[2]: Leaving directory '/usr/lib/lazarus/1.6/ide'
Makefile:4381: recipe for target 'idepkg' failed
make[1]: Leaving directory '/usr/lib/lazarus/1.6/ide'
Makefile:3160: recipe for target 'idepkg' failed
make: Leaving directory '/usr/lib/lazarus/1.6'

I think Lazarus is not finding his own units. Can someone help me??

Thank you !!

Handoko

  • Hero Member
  • *****
  • Posts: 5131
  • My goal: build my own game engine using Lazarus
Re: Erro compiling Lazarus IDE UBUNTU
« Reply #1 on: June 22, 2017, 04:26:26 am »
Hello Leopovoa,
Welcome to the forum.

What is the new package that you failed to compile?

Leopovoa

  • Newbie
  • Posts: 6
Re: Erro compiling Lazarus IDE UBUNTU
« Reply #2 on: June 22, 2017, 02:10:45 pm »
Hi,

weblaz.

I think the error occurs before compiling the package. Soon at the beginning of the compilation. It seems that the compiler does not find the basic units of the lazarus. Where is the configuration file that indicates the paths of the Units ?? I could not find it.

Eugene Loza

  • Hero Member
  • *****
  • Posts: 663
    • My games in Pascal
Re: Erro compiling Lazarus IDE UBUNTU
« Reply #3 on: June 22, 2017, 02:52:01 pm »
Where is the configuration file that indicates the paths of the Units ?? I could not find it
I believe you are looking for fpc.cfg which is usually located at /etc/fpc.cfg . However, when you've installed Lazarus, you should have seen the start-up window, which preforms automatic checks of the folders and detects any errors. Also make sure you've installed all three debs: Lazarus, FPC and FPC-src.
P.S. You might also want to try the latest Lazarus version, 1.8RC2 at the moment (don't forget to purge and remove the previous one, including, delete ~/.lazarus folder to avoid strange folder behavior which might actually happen after upgrading).
My FOSS games in FreePascal&CastleGameEngine: https://decoherence.itch.io/ (Sources: https://gitlab.com/EugeneLoza)

Montear00n

  • Newbie
  • Posts: 1
    • Talktobabes
Re: Erro compiling Lazarus IDE UBUNTU
« Reply #4 on: August 25, 2017, 02:41:37 am »
Hi Eugene,

Wanted to post and say thanks for the solution to OPs problem as it helped fix mine. Cheers

 

TinyPortal © 2005-2018