Author Topic: An old problem, but without solution...  (Read 1999 times)

ermeneuta

  • Jr. Member
  • **
  • Posts: 64
An old problem, but without solution...
« on: September 11, 2023, 07:47:30 pm »
I am trying to install fpc and Lazarus on the Radxa Rock 5A board, with a Rockchip RK3588s ARM CPU, with 8GB of RAM. The OS is Debian 11.

I tried all the versions of both fpc and Lazarus that I have been able to find on internet, starting with the oldest one to arrive at fpc 3.2.2 and Lazarus 3.0RC1

Fpc install without glitches. Lazarus during the make bigide invariably terminates with this error :

(3104) Compiling fcllaz.pas
/home/adb/tmpfpc/lazarus-3.0RC1/packager/registration/fcllaz.pas(11,3) Fatal: (10022) Can't find unit db used by fcllaz
Fatal: (1018) Compilation aborted


Using find I am able to see that db.ppu does exist, just the makefile doesn't know were to find it...
I have carefully deleted any traces of previous remnants of fpc and lazarus cfg files, to no avail...
I am in desperate need to find a solution, to have a working development environment with Lazarus.
Thanks for any help.

- Fred



Bart

  • Hero Member
  • *****
  • Posts: 5757
    • Bart en Mariska's Webstek
Re: An old problem, but without solution...
« Reply #1 on: September 11, 2023, 10:03:34 pm »
Try updating the Lazarus sources to main (3.99) and see if that builds.

Bart

toby

  • Sr. Member
  • ****
  • Posts: 283
Re: An old problem, but without solution...
« Reply #2 on: September 12, 2023, 02:32:36 am »

you didn't say what directory your db.o and db.ppu where in

make sure you have your db.o and db.ppu in your /path-to/units/fcl-db/ dir

and then add

-Fu/path-to/units/fcl-db/

in your /etc/fpc.cfg along with the other -Fu entries

and you should be good


TRon

  • Hero Member
  • *****
  • Posts: 4377
Re: An old problem, but without solution...
« Reply #3 on: September 12, 2023, 04:32:37 am »
... ARM ... Debian 11 ...

Fpc install without glitches. Lazarus during the make bigide invariably terminates with this error :

... Can't find unit db used by fcllaz

Using find I am able to see that db.ppu does exist, just the makefile doesn't know were to find it...
...
Based on the symptoms the "FPC install without glitches" is most probably a wrong assumption. Sure it installed but, does it actually work when you try compile something from a terminal window ? If you create a small test project that includes unit db and compile that from the command line does that compile without errors ? You can use the commandline option -vt to see what paths/files the compiler tried in an attempt to locate unit db.

3.0 RC1 compiles just fine at arm and have no doubt it should do so for you as well. It is most probably (and usually) a configuration related issue.
Today is tomorrow's yesterday.

Thaddy

  • Hero Member
  • *****
  • Posts: 19633
  • Glad to be alive.
Re: An old problem, but without solution...
« Reply #4 on: September 12, 2023, 01:18:01 pm »
BIGIDE is the problem. It has always been.
Simply do make clean all install.
Any "programmer" that knows only one programming language is not a programmer

ermeneuta

  • Jr. Member
  • **
  • Posts: 64
Re: An old problem, but without solution...
« Reply #5 on: September 12, 2023, 02:22:13 pm »
BIGIDE is the problem. It has always been.
Simply do make clean all install.

Thanks, but already tested that, to no avail...
I will try the other suggestions, just let me return home...

-Fred

ermeneuta

  • Jr. Member
  • **
  • Posts: 64
Re: An old problem, but without solution...
« Reply #6 on: September 12, 2023, 02:35:41 pm »

you didn't say what directory your db.o and db.ppu where in

make sure you have your db.o and db.ppu in your /path-to/units/fcl-db/ dir

and then add

-Fu/path-to/units/fcl-db/

in your /etc/fpc.cfg along with the other -Fu entries

and you should be good

Oohhh... this seems to be the real problem....fpc.cfg is nowhere to be found ....

adb@rock-5a:~$ sudo find / -iname fpc.cfg
find: ‘/run/user/1000/gvfs’: Permission denied
adb@rock-5a:


Apparently the installation of fpc, despite no errors given, wasn't successful ...
As a matter of facts, trying to compile an example gave this :

adb@rock-5a:~$ fpc /usr/share/doc/fpc-3.2.2/gtk2/examples/helloworld/helloworld.pas
helloworld.pas(6,3) Fatal: Can't find unit Glib2 used by HelloWorld
Fatal: Compilation aborted
Error: /usr/bin/ppcarm returned an error exitcode
adb@rock-5a:~$



At this point I am open to suggestions...

-Fred

ermeneuta

  • Jr. Member
  • **
  • Posts: 64
Re: An old problem, but without solution...
« Reply #7 on: September 12, 2023, 02:46:53 pm »
....well... I repeated the installation of fpc, with the command

sudo .install.sh

but at the end there were these error messages, which probably I had not taken into consideration during the first install...

Write permission in /etc.
Writing sample configuration file to /etc/fpc.cfg
/usr/lib/fpc/3.2.2/samplecfg: 82: /usr/lib/fpc/../../bin/fpcmkcfg: not found
Writing sample configuration file to /usr/lib/fpc/3.2.2/ide/text/fp.cfg
/usr/lib/fpc/3.2.2/samplecfg: 87: /usr/lib/fpc/../../bin/fpcmkcfg: not found
Writing sample configuration file to /usr/lib/fpc/3.2.2/ide/text/fp.ini
/usr/lib/fpc/3.2.2/samplecfg: 91: /usr/lib/fpc/../../bin/fpcmkcfg: not found
Writing sample configuration file to /etc/fppkg.cfg
/usr/lib/fpc/3.2.2/samplecfg: 101: /usr/lib/fpc/../../bin/fpcmkcfg: not found
Writing sample configuration file to /etc/fppkg/default
/usr/lib/fpc/3.2.2/samplecfg: 105: /usr/lib/fpc/../../bin/fpcmkcfg: not found
mkdir: cannot create directory ‘/etc/fppkg/conf.d’: No such file or directory

End of installation.

Again.... suggestions ?

BTW, a find command reveals that fpcmkcfg is to be found in /usr/bin... not where the installation script looks for it...
 
-Fred
« Last Edit: September 12, 2023, 02:53:50 pm by ermeneuta »

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12984
  • FPC developer.
Re: An old problem, but without solution...
« Reply #8 on: September 12, 2023, 04:13:08 pm »
/usr/lib/fpc/../../bin/  _IS_ /usr/bin    So maybe a permission problem?

ermeneuta

  • Jr. Member
  • **
  • Posts: 64
Re: An old problem, but without solution...
« Reply #9 on: September 12, 2023, 04:40:11 pm »
/usr/lib/fpc/../../bin/  _IS_ /usr/bin    So maybe a permission problem?

Well, I prefix always sudo to the installation script.... is there anything else I can do ?

And the message :

/usr/lib/fpc/3.2.2/samplecfg: 82: /usr/lib/fpc/../../bin/fpcmkcfg: not found

seems to tell that the file is not found...it doesn't look as a permission  problem...

-Fred
« Last Edit: September 12, 2023, 04:44:48 pm by ermeneuta »

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12984
  • FPC developer.
Re: An old problem, but without solution...
« Reply #10 on: September 12, 2023, 06:51:55 pm »
Even if sudo, it still must be executable

ermeneuta

  • Jr. Member
  • **
  • Posts: 64
Re: An old problem, but without solution...
« Reply #11 on: September 12, 2023, 08:39:55 pm »
Even if sudo, it still must be executable

It looks like it is....see attached screen captures.

-Fred

 

TinyPortal © 2005-2018