Forum > Linux

Can't find unit DB used by fcllaz

(1/2) > >>

Blaazen:
Hi, what's wrong?

I did a fresh SVN update via "svn co https://svn.freepascal.org/svn/lazarus/trunk lazarus".
After "make all" a got this:

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---[v1@nb-msi lazarus]$ make allmake -C packager/registrationmake[1]: Vstupuje se do adresáře „/home/v1/Lazarus_Qt/lazarus/packager/registration“/usr/bin/rm -f ../units/x86_64-linux/fcllaz.ppu/usr/local/bin/ppcx64 -MObjFPC -Scghi -O1 -g -gl -l -vewnhibq -Fu. -Fu/usr/local/lib/fpc/3.3.1/units/x86_64-linux/rtl -FE. -FU../units/x86_64-linux -Cg -dx86_64 fcllaz.pasHint: (11030) Start of reading config file /etc/fpc.cfgHint: (11031) End of reading config file /etc/fpc.cfgFree Pascal Compiler version 3.3.1 [2018/12/29] for x86_64Copyright (c) 1993-2018 by Florian Klaempfl and others(1002) Target OS: Linux for x86-64(3104) Compiling fcllaz.pas(10001) PPU Loading /usr/local/lib/fpc/3.3.1/units/x86_64-linux/fcl-db/db.ppu(10011) PPU Source: db.pas not available(10011) PPU Source: dataset.inc not available(10011) PPU Source: fields.inc not available(10011) PPU Source: datasource.inc not available(10011) PPU Source: database.inc not available(10011) PPU Source: dsparams.inc not available(10028) Recompiling DB, checksum changed for /usr/local/lib/fpc/3.3.1/units/x86_64-linux/rtl/classes.ppu/home/v1/Lazarus_Qt/lazarus/packager/registration/fcllaz.pas(11,3) Fatal: (10022) Can't find unit DB used by fcllazFatal: (1018) Compilation abortedmake[1]: *** [Makefile:2786: fcllaz.ppu] Chyba 1make[1]: Opouští se adresář „/home/v1/Lazarus_Qt/lazarus/packager/registration“make: *** [Makefile:3253: registration] Chyba 2[v1@nb-msi lazarus]$  File /usr/local/lib/fpc/3.3.1/units/x86_64-linux/fcl-db/db.ppu is there.
Path to fpc sources in environmentoptions.xml seems be OK.

I installed FPC via
>svn update
>make clean
>make all
>sudo make install

so source are in /home/v1/..

Maybe some config file is broken?
Thanks for help.

Cyrax:
Please revert FPC trunk to r40685. There is problem with newest revisions of FPC trunk : https://bugs.freepascal.org/view.php?id=34779

Blaazen:
Thank you, it seems that's it. I made Lazarus work again, I'm switching to 3.0.4 for a while.

Now: Lazarus 2.1.0 r59936M FPC 3.0.4 x86_64-linux-qt

I'll mark this thread [SOLVED] once the isssue will be resolved.

wp:
I just tried the new fpc r40706, and found that the IDE compiles successfully again with fpc trunk (tested on Win10, though).

Blaazen:
Thanks, Lazarus compiled with 40708 but I have another problem now. When I start Lazarus I got:

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---[v1@nb-msi lazarus]$ ./startlazarus is a fileTLazarusManager.Run starting /home/v1/Lazarus_Qt/lazarus/lazarus ...Hint: (lazarus) [TMainIDE.ParseCmdLineOptions] PrimaryConfigPath="/home/v1/.lazarus"Hint: (lazarus) [TMainIDE.ParseCmdLineOptions] SecondaryConfigPath="/etc/lazarus"Hint: (lazarus) [TBuildManager.SetBuildTarget] Old=x86_64-linux-qt New=x86_64-linux-qt FPC=True LCL=FalseHint: (lazarus) [TMainIDE.Destroy] B  -> inherited Destroy... TMainIDEHint: (lazarus) [TMainIDE.Destroy] END[FORMS.PP] ExceptionOccurred   Sender=EFCreateError  Exception=Unable to create file "/etc/fppkg/default"  Stack trace:  $0000000000528182  $0000000000527FD3  $000000000105450C  $000000000121D06D  INSTANCE,  line 80 of ../packager/fppkghelper.pas  $0000000000C29FFC  OPENDEPENDENCY,  line 5838 of ../packager/packagesystem.pas  $0000000000C13B97  ADDPACKAGE,  line 2122 of ../packager/packagesystem.pas  $0000000000C0E31E  OPENDEPENDENCYWITHPACKAGELINK,  line 998 of ../packager/packagesystem.pas  $0000000000C29A87  OPENDEPENDENCY,  line 5785 of ../packager/packagesystem.pas  $0000000000C2AF89  OPENINSTALLEDDEPENDENCY,  line 5995 of ../packager/packagesystem.pas  $0000000000C14502  LOADLAZARUSBASEPACKAGE,  line 2213 of ../packager/packagesystem.pas  $0000000000C1433E  LOADSTATICBASEPACKAGES,  line 2218 of ../packager/packagesystem.pas  $0000000000C39596  LOADINSTALLEDPACKAGES,  line 3086 of ../packager/pkgmanager.pas  $00000000004BAE10  CREATE,  line 1590 of main.pp  $0000000000423C1B  main,  line 140 of lazarus.ppTApplication.HandleException: EFCreateErrorUnable to create file "/etc/fppkg/default"  Stack trace:  $0000000000528182  $0000000000527FD3  $000000000105450C  $000000000121D06D  INSTANCE,  line 80 of ../packager/fppkghelper.pas  $0000000000C29FFC  OPENDEPENDENCY,  line 5838 of ../packager/packagesystem.pas  $0000000000C13B97  ADDPACKAGE,  line 2122 of ../packager/packagesystem.pas  $0000000000C0E31E  OPENDEPENDENCYWITHPACKAGELINK,  line 998 of ../packager/packagesystem.pas  $0000000000C29A87  OPENDEPENDENCY,  line 5785 of ../packager/packagesystem.pas  $0000000000C2AF89  OPENINSTALLEDDEPENDENCY,  line 5995 of ../packager/packagesystem.pas  $0000000000C14502  LOADLAZARUSBASEPACKAGE,  line 2213 of ../packager/packagesystem.pas  $0000000000C1433E  LOADSTATICBASEPACKAGES,  line 2218 of ../packager/packagesystem.pas  $0000000000C39596  LOADINSTALLEDPACKAGES,  line 3086 of ../packager/pkgmanager.pas  $00000000004BAE10  CREATE,  line 1590 of main.pp  $0000000000423C1B  main,  line 140 of lazarus.pp^C[v1@nb-msi lazarus]$  
i.e. Lazarus wants to write in /etc/fppkg where it has no rights. Running Lazarus as root is nonsense. BTW, the file "default" exists in /home/v1/.fppkg too.

There is some related activity in 59938, 59939 and 59940. I'll try to go back.

Navigation

[0] Message Index

[#] Next page

Go to full version