Recent

Author Topic: Can't find unit DB used by fcllaz  (Read 1096 times)

Blaazen

  • Hero Member
  • *****
  • Posts: 2770
  • POKE 54296,15
    • Eye-Candy Controls
Can't find unit DB used by fcllaz
« on: December 29, 2018, 11:20:51 pm »
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  [Select]
  1. [v1@nb-msi lazarus]$ make all
  2. make -C packager/registration
  3. make[1]: Vstupuje se do adresáře „/home/v1/Lazarus_Qt/lazarus/packager/registration“
  4. /usr/bin/rm -f ../units/x86_64-linux/fcllaz.ppu
  5. /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.pas
  6. Hint: (11030) Start of reading config file /etc/fpc.cfg
  7. Hint: (11031) End of reading config file /etc/fpc.cfg
  8. Free Pascal Compiler version 3.3.1 [2018/12/29] for x86_64
  9. Copyright (c) 1993-2018 by Florian Klaempfl and others
  10. (1002) Target OS: Linux for x86-64
  11. (3104) Compiling fcllaz.pas
  12. (10001) PPU Loading /usr/local/lib/fpc/3.3.1/units/x86_64-linux/fcl-db/db.ppu
  13. (10011) PPU Source: db.pas not available
  14. (10011) PPU Source: dataset.inc not available
  15. (10011) PPU Source: fields.inc not available
  16. (10011) PPU Source: datasource.inc not available
  17. (10011) PPU Source: database.inc not available
  18. (10011) PPU Source: dsparams.inc not available
  19. (10028) Recompiling DB, checksum changed for /usr/local/lib/fpc/3.3.1/units/x86_64-linux/rtl/classes.ppu
  20. /home/v1/Lazarus_Qt/lazarus/packager/registration/fcllaz.pas(11,3) Fatal: (10022) Can't find unit DB used by fcllaz
  21. Fatal: (1018) Compilation aborted
  22. make[1]: *** [Makefile:2786: fcllaz.ppu] Chyba 1
  23. make[1]: Opouští se adresář „/home/v1/Lazarus_Qt/lazarus/packager/registration“
  24. make: *** [Makefile:3253: registration] Chyba 2
  25. [v1@nb-msi lazarus]$
  26.  
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.
Lazarus 2.1.0 r59757M FPC 3.3.1 r40507 x86_64-linux-qt Chakra, Qt 4.8.7/5.11.2, Plasma 5.14.2
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

Cyrax

  • Hero Member
  • *****
  • Posts: 697
Re: Can't find unit DB used by fcllaz
« Reply #1 on: December 30, 2018, 12:29:32 am »
Please revert FPC trunk to r40685. There is problem with newest revisions of FPC trunk : https://bugs.freepascal.org/view.php?id=34779

Blaazen

  • Hero Member
  • *****
  • Posts: 2770
  • POKE 54296,15
    • Eye-Candy Controls
Re: Can't find unit DB used by fcllaz
« Reply #2 on: December 30, 2018, 12:52:12 am »
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.
Lazarus 2.1.0 r59757M FPC 3.3.1 r40507 x86_64-linux-qt Chakra, Qt 4.8.7/5.11.2, Plasma 5.14.2
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

wp

  • Hero Member
  • *****
  • Posts: 5455
Re: Can't find unit DB used by fcllaz
« Reply #3 on: December 30, 2018, 12:25:36 pm »
I just tried the new fpc r40706, and found that the IDE compiles successfully again with fpc trunk (tested on Win10, though).
Lazarus trunk / fpc 3.0.4 / all 32-bit on Win-10

Blaazen

  • Hero Member
  • *****
  • Posts: 2770
  • POKE 54296,15
    • Eye-Candy Controls
Re: Can't find unit DB used by fcllaz
« Reply #4 on: December 30, 2018, 02:16:26 pm »
Thanks, Lazarus compiled with 40708 but I have another problem now. When I start Lazarus I got:
Code: Pascal  [Select]
  1. [v1@nb-msi lazarus]$ ./startlazarus
  2.  is a file
  3. TLazarusManager.Run starting /home/v1/Lazarus_Qt/lazarus/lazarus ...
  4. Hint: (lazarus) [TMainIDE.ParseCmdLineOptions] PrimaryConfigPath="/home/v1/.lazarus"
  5. Hint: (lazarus) [TMainIDE.ParseCmdLineOptions] SecondaryConfigPath="/etc/lazarus"
  6. Hint: (lazarus) [TBuildManager.SetBuildTarget] Old=x86_64-linux-qt New=x86_64-linux-qt FPC=True LCL=False
  7. Hint: (lazarus) [TMainIDE.Destroy] B  -> inherited Destroy... TMainIDE
  8. Hint: (lazarus) [TMainIDE.Destroy] END
  9. [FORMS.PP] ExceptionOccurred
  10.   Sender=EFCreateError
  11.   Exception=Unable to create file "/etc/fppkg/default"
  12.   Stack trace:
  13.   $0000000000528182
  14.   $0000000000527FD3
  15.   $000000000105450C
  16.   $000000000121D06D  INSTANCE,  line 80 of ../packager/fppkghelper.pas
  17.   $0000000000C29FFC  OPENDEPENDENCY,  line 5838 of ../packager/packagesystem.pas
  18.   $0000000000C13B97  ADDPACKAGE,  line 2122 of ../packager/packagesystem.pas
  19.   $0000000000C0E31E  OPENDEPENDENCYWITHPACKAGELINK,  line 998 of ../packager/packagesystem.pas
  20.   $0000000000C29A87  OPENDEPENDENCY,  line 5785 of ../packager/packagesystem.pas
  21.   $0000000000C2AF89  OPENINSTALLEDDEPENDENCY,  line 5995 of ../packager/packagesystem.pas
  22.   $0000000000C14502  LOADLAZARUSBASEPACKAGE,  line 2213 of ../packager/packagesystem.pas
  23.   $0000000000C1433E  LOADSTATICBASEPACKAGES,  line 2218 of ../packager/packagesystem.pas
  24.   $0000000000C39596  LOADINSTALLEDPACKAGES,  line 3086 of ../packager/pkgmanager.pas
  25.   $00000000004BAE10  CREATE,  line 1590 of main.pp
  26.   $0000000000423C1B  main,  line 140 of lazarus.pp
  27. TApplication.HandleException: EFCreateError
  28. Unable to create file "/etc/fppkg/default"
  29.   Stack trace:
  30.   $0000000000528182
  31.   $0000000000527FD3
  32.   $000000000105450C
  33.   $000000000121D06D  INSTANCE,  line 80 of ../packager/fppkghelper.pas
  34.   $0000000000C29FFC  OPENDEPENDENCY,  line 5838 of ../packager/packagesystem.pas
  35.   $0000000000C13B97  ADDPACKAGE,  line 2122 of ../packager/packagesystem.pas
  36.   $0000000000C0E31E  OPENDEPENDENCYWITHPACKAGELINK,  line 998 of ../packager/packagesystem.pas
  37.   $0000000000C29A87  OPENDEPENDENCY,  line 5785 of ../packager/packagesystem.pas
  38.   $0000000000C2AF89  OPENINSTALLEDDEPENDENCY,  line 5995 of ../packager/packagesystem.pas
  39.   $0000000000C14502  LOADLAZARUSBASEPACKAGE,  line 2213 of ../packager/packagesystem.pas
  40.   $0000000000C1433E  LOADSTATICBASEPACKAGES,  line 2218 of ../packager/packagesystem.pas
  41.   $0000000000C39596  LOADINSTALLEDPACKAGES,  line 3086 of ../packager/pkgmanager.pas
  42.   $00000000004BAE10  CREATE,  line 1590 of main.pp
  43.   $0000000000423C1B  main,  line 140 of lazarus.pp
  44. ^C
  45. [v1@nb-msi lazarus]$
  46.  

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.
Lazarus 2.1.0 r59757M FPC 3.3.1 r40507 x86_64-linux-qt Chakra, Qt 4.8.7/5.11.2, Plasma 5.14.2
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

Blaazen

  • Hero Member
  • *****
  • Posts: 2770
  • POKE 54296,15
    • Eye-Candy Controls
Re: Can't find unit DB used by fcllaz
« Reply #5 on: December 30, 2018, 03:35:07 pm »
Which is also already reported by Cyrax: ps://bugs.freepascal.org/view.php?id=34780

So I had a luck yesterday, I met two issues at a time, one in compiler, the second in IDE.  %)
Lazarus 2.1.0 r59757M FPC 3.3.1 r40507 x86_64-linux-qt Chakra, Qt 4.8.7/5.11.2, Plasma 5.14.2
Lazarus 1.8.2 r57369 FPC 3.0.4 i386-win32-win32/win64 Wine 3.21

Try Eye-Candy Controls: https://sourceforge.net/projects/eccontrols/files/

wp

  • Hero Member
  • *****
  • Posts: 5455
Re: Can't find unit DB used by fcllaz
« Reply #6 on: December 30, 2018, 04:16:02 pm »
When bisecting yesterday the recent revisions of FPC trunk to find the guilty commit for https://bugs.freepascal.org/view.php?id=34779 I noticed that there is a rather high chance that a given Lazarus version will not compile with an FPC trunk revision. This confirms me in my opinion that it is not a good strategy to base my work on FPC trunk. Using FPC stable is much more productive.
Lazarus trunk / fpc 3.0.4 / all 32-bit on Win-10