Recent

Author Topic: Errors when building FPC from source  (Read 2200 times)

Aruna

  • Hero Member
  • *****
  • Posts: 568
Errors when building FPC from source
« on: October 29, 2024, 03:13:00 am »
Hi, I am trying to install lazarus on to a brand new linux system. I am hitting a brick wall and can use some help please. See below, last few lines are the clues. Hopefully someone will see what went wrong? I have been fighting with this a long while am dead tired so going to call it a day. I will see you all in the morning. Thank you :)

Code: Text  [Select][+][-]
  1. aruna@debian:~/lazarus$ make bigide
  2. make -C packager/registration
  3. make[1]: Entering directory '/home/aruna/lazarus/packager/registration'
  4. /usr/bin/rm -f ../units/x86_64-linux/fcllaz.ppu
  5. /usr/bin/ppcx64 -MObjFPC -Scghi -O1 -g -gl -l -vewnhibq -Fu. -Fu/usr/lib/fpc/3.2.2/units/x86_64-linux/rtl -FE. -FU../units/x86_64-linux -Cg -Fl/usr/lib/gcc/x86_64-linux-gnu/12 -dx86_64 fcllaz.pas
  6. Hint: (11030) Start of reading config file /home/aruna/.fpc.cfg
  7. Hint: (11031) End of reading config file /home/aruna/.fpc.cfg
  8. Free Pascal Compiler version 3.2.2 [2021/05/16] for x86_64
  9. Copyright (c) 1993-2021 by Florian Klaempfl and others
  10. (1002) Target OS: Linux for x86-64
  11. (3104) Compiling fcllaz.pas
  12. (1008) 21 lines compiled, 0.1 sec
  13. (1022) 2 hint(s) issued
  14. /usr/bin/cp -f Makefile.compiled ../units/x86_64-linux/fcl.compiled
  15. make[1]: Leaving directory '/home/aruna/lazarus/packager/registration'
  16. make -C components lazbuildpackages
  17. make[1]: Entering directory '/home/aruna/lazarus/components'
  18. make -C lazutils
  19. make[2]: Entering directory '/home/aruna/lazarus/components/lazutils'
  20. /usr/bin/rm -f lib/x86_64-linux/lazutils.ppu
  21. /usr/bin/ppcx64 -MObjFPC -Scghi -O1 -g -gl -l -vewnhibq -Fu. -Fu../../packager/units/x86_64-linux -Fu/usr/lib/fpc/3.2.2/units/x86_64-linux/rtl -FE. -FUlib/x86_64-linux -Cg -Fl/usr/lib/gcc/x86_64-linux-gnu/12 -dx86_64 lazutils.pas
  22. Hint: (11030) Start of reading config file /home/aruna/.fpc.cfg
  23. Hint: (11031) End of reading config file /home/aruna/.fpc.cfg
  24. Free Pascal Compiler version 3.2.2 [2021/05/16] for x86_64
  25. Copyright (c) 1993-2021 by Florian Klaempfl and others
  26. (1002) Target OS: Linux for x86-64
  27. (3104) Compiling lazutils.pas
  28. (1008) 33 lines compiled, 0.1 sec
  29. (1022) 2 hint(s) issued
  30. /usr/bin/cp -f Makefile.compiled lib/x86_64-linux/lazutils.compiled
  31. make[2]: Leaving directory '/home/aruna/lazarus/components/lazutils'
  32. make -C codetools
  33. make[2]: Entering directory '/home/aruna/lazarus/components/codetools'
  34. /usr/bin/rm -f units/x86_64-linux/codetools.ppu
  35. /usr/bin/ppcx64 -MObjFPC -Sci -O1 -g -gl -l -vewnhibq -Fu. -Fu../../packager/units/x86_64-linux -Fu../lazutils/lib/x86_64-linux -Fu/usr/lib/fpc/3.2.2/units/x86_64-linux/rtl -FE. -FUunits/x86_64-linux -Cg -Fl/usr/lib/gcc/x86_64-linux-gnu/12 -dx86_64 codetools.pas
  36. Hint: (11030) Start of reading config file /home/aruna/.fpc.cfg
  37. Hint: (11031) End of reading config file /home/aruna/.fpc.cfg
  38. Free Pascal Compiler version 3.2.2 [2021/05/16] for x86_64
  39. Copyright (c) 1993-2021 by Florian Klaempfl and others
  40. (1002) Target OS: Linux for x86-64
  41. (3104) Compiling codetools.pas
  42. (1008) 33 lines compiled, 0.1 sec
  43. (1022) 2 hint(s) issued
  44. /usr/bin/cp -f Makefile.compiled units/x86_64-linux/codetools.compiled
  45. make[2]: Leaving directory '/home/aruna/lazarus/components/codetools'
  46. make -C buildintf
  47. make[2]: Entering directory '/home/aruna/lazarus/components/buildintf'
  48. /usr/bin/rm -f units/x86_64-linux/buildintf.ppu
  49. /usr/bin/ppcx64 -MObjFPC -Scghi -O1 -g -gl -l -vewnhibq -Fu. -Fu../../packager/units/x86_64-linux -Fu../lazutils/lib/x86_64-linux -Fu/usr/lib/fpc/3.2.2/units/x86_64-linux/rtl -FE. -FUunits/x86_64-linux -Cg -Fl/usr/lib/gcc/x86_64-linux-gnu/12 -dx86_64 buildintf.pas
  50. Hint: (11030) Start of reading config file /home/aruna/.fpc.cfg
  51. Hint: (11031) End of reading config file /home/aruna/.fpc.cfg
  52. Free Pascal Compiler version 3.2.2 [2021/05/16] for x86_64
  53. Copyright (c) 1993-2021 by Florian Klaempfl and others
  54. (1002) Target OS: Linux for x86-64
  55. (3104) Compiling buildintf.pas
  56. (1008) 25 lines compiled, 0.1 sec
  57. (1022) 2 hint(s) issued
  58. /usr/bin/cp -f Makefile.compiled units/x86_64-linux/buildintf.compiled
  59. make[2]: Leaving directory '/home/aruna/lazarus/components/buildintf'
  60. make -C lazdebuggers/lazdebuggerintf
  61. make[2]: Entering directory '/home/aruna/lazarus/components/lazdebuggers/lazdebuggerintf'
  62. /usr/bin/rm -f lib/x86_64-linux/lazdebuggerintfpackage.ppu
  63. /usr/bin/ppcx64 -MObjFPC -Scghi -O1 -g -gl -l -vewnhibq -Fu. -Fu../../../packager/units/x86_64-linux -Fu/usr/lib/fpc/3.2.2/units/x86_64-linux/rtl -FE. -FUlib/x86_64-linux -Cg -Fl/usr/lib/gcc/x86_64-linux-gnu/12 -dx86_64 lazdebuggerintfpackage.pas
  64. Hint: (11030) Start of reading config file /home/aruna/.fpc.cfg
  65. Hint: (11031) End of reading config file /home/aruna/.fpc.cfg
  66. Free Pascal Compiler version 3.2.2 [2021/05/16] for x86_64
  67. Copyright (c) 1993-2021 by Florian Klaempfl and others
  68. (1002) Target OS: Linux for x86-64
  69. (3104) Compiling lazdebuggerintfpackage.pas
  70. (1008) 16 lines compiled, 0.1 sec
  71. (1022) 2 hint(s) issued
  72. /usr/bin/cp -f Makefile.compiled lib/x86_64-linux/lazdebuggerintf.compiled
  73. make[2]: Leaving directory '/home/aruna/lazarus/components/lazdebuggers/lazdebuggerintf'
  74. make -C debuggerintf
  75. make[2]: Entering directory '/home/aruna/lazarus/components/debuggerintf'
  76. /usr/bin/rm -f lib/x86_64-linux/debuggerintf.ppu
  77. /usr/bin/ppcx64 -MObjFPC -Scghi -O1 -g -gl -l -venibq -vw-h- -vm4046 -Fu. -Fu../../packager/units/x86_64-linux -Fu../lazdebuggers/lazdebuggerintf/lib/x86_64-linux -Fu../lazutils/lib/x86_64-linux -Fu/usr/lib/fpc/3.2.2/units/x86_64-linux/rtl -FE. -FUlib/x86_64-linux -Cg -Fl/usr/lib/gcc/x86_64-linux-gnu/12 -dx86_64 debuggerintf.pas
  78. Free Pascal Compiler version 3.2.2 [2021/05/16] for x86_64
  79. Copyright (c) 1993-2021 by Florian Klaempfl and others
  80. (1002) Target OS: Linux for x86-64
  81. (3104) Compiling debuggerintf.pas
  82. (3104) Compiling dbgintfprocess.pas
  83. (10001) PPU Loading lib/x86_64-linux/process331.ppu
  84. (10011) PPU Source: process331.pp not found
  85. (10011) PPU Source: processbody.inc not available
  86. (10011) PPU Source: unix_process.inc not available
  87. (10028) Recompiling process331, checksum changed for /usr/lib/fpc/3.2.2/units/x86_64-linux/rtl/system.ppu
  88. /home/aruna/lazarus/components/debuggerintf/dbgintfprocess.pas(18,29) Fatal: (10022) Can't find unit process331 used by DbgIntfProcess
  89. Fatal: (1018) Compilation aborted
  90. make[2]: *** [Makefile:3471: debuggerintf.ppu] Error 1
  91. make[2]: Leaving directory '/home/aruna/lazarus/components/debuggerintf'
  92. make[1]: *** [Makefile:1913: lazbuildpackages] Error 2
  93. make[1]: Leaving directory '/home/aruna/lazarus/components'
  94. make: *** [Makefile:3151: lazbuild] Error 2
  95. aruna@debian:~/lazarus$


TRon

  • Hero Member
  • *****
  • Posts: 3742
Re: Errors when building FPC from source
« Reply #1 on: October 29, 2024, 06:10:09 am »
Can you try making your build with:
Code: Bash  [Select][+][-]
  1. make clean bigide OPT="-Ur"
I do not have to remember anything anymore thanks to total-recall.

dbannon

  • Hero Member
  • *****
  • Posts: 3174
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Errors when building FPC from source
« Reply #2 on: October 29, 2024, 07:05:55 am »
Yes Aruna, you are tired ! Check the title of this thread !

I have the files needed to make the missing .ppu, thus -
 
Code: Pascal  [Select][+][-]
  1. dbannon@dell:~/bin/Lazarus/lazarus-lazarus_4_0_RC_1$ ls -l components/debuggerintf/fcl-proc331
  2. total 84
  3. -rw-r--r-- 1 dbannon dbannon  3853 Oct 22 04:17 pipes331.pp
  4. -rw-r--r-- 1 dbannon dbannon  3532 Oct 22 04:17 process331.pp
  5. -rw-r--r-- 1 dbannon dbannon 36088 Oct 22 04:17 processbody.inc
  6. -rw-r--r-- 1 dbannon dbannon    41 Oct 22 04:17 README.txt
  7. -rw-r--r-- 1 dbannon dbannon  1234 Oct 22 04:17 unix_pipes.inc
  8. -rw-r--r-- 1 dbannon dbannon 15343 Oct 22 04:17 unix_process.inc
  9. -rw-r--r-- 1 dbannon dbannon  1699 Oct 22 04:17 win_pipes.inc
  10. -rw-r--r-- 1 dbannon dbannon 11415 Oct 22 04:17 win_process.inc
  11.  

They are, apparently, imported from FPC331 and are not in a previous Lazarus. Please check you have them.

Might be fun to run this too (from there in your Laz dir) -

Code: Bash  [Select][+][-]
  1. $> find . -iname "process331*"

Look after yourself !

Davo
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

Aruna

  • Hero Member
  • *****
  • Posts: 568
Re: Errors when building FPC from source
« Reply #3 on: October 29, 2024, 11:39:35 am »
Can you try making your build with:
Code: Bash  [Select][+][-]
  1. make clean bigide OPT="-Ur"

Hello @TRon how are you? I tried what you suggested and that error dissappeard but we have another one now:
Code: Text  [Select][+][-]
  1. make[1]: <snip>
  2. Leaving directory '/home/aruna/lazarus/tools'
  3. make -C packager/registration
  4. make[1]: Entering directory '/home/aruna/lazarus/packager/registration'
  5. /usr/bin/rm -f ../units/x86_64-linux/fcllaz.ppu
  6. /usr/bin/ppcx64 -MObjFPC -Scghi -O1 -g -gl -l -vewnhibq -Fu. -Fu/usr/lib/fpc/3.2.2/units/x86_64-linux/rtl -FE. -FU../units/x86_64-linux -Cg -Fl/usr/lib/gcc/x86_64-linux-gnu/12 -Ur -dx86_64 fcllaz.pas
  7. Hint: (11030) Start of reading config file /home/aruna/.fpc.cfg
  8. Hint: (11031) End of reading config file /home/aruna/.fpc.cfg
  9. Free Pascal Compiler version 3.2.2 [2021/05/16] for x86_64
  10. Copyright (c) 1993-2021 by Florian Klaempfl and others
  11. (1002) Target OS: Linux for x86-64
  12. (3104) Compiling fcllaz.pas
  13. /home/aruna/lazarus/packager/registration/fcllaz.pas(11,3) Fatal: (10022) Can't find unit db used by fcllaz
  14. Fatal: (1018) Compilation aborted
  15. make[1]: *** [Makefile:3471: fcllaz.ppu] Error 1
  16. make[1]: Leaving directory '/home/aruna/lazarus/packager/registration'
  17. make: *** [Makefile:3112: registration] Error 2

TRon

  • Hero Member
  • *****
  • Posts: 3742
Re: Errors when building FPC from source
« Reply #4 on: October 29, 2024, 11:52:40 am »
ok, then we need to dive a bit deeper.

Form your logs i can see that you have installed Lazarus into your home directory. Your FPC however seems to be a system-wide installation.

The question that are relevant:
- How did you install Lazarus in case you have done so and how did you install FPC ?
- which exact version of Lazarus are you trying to compile ?
I do not have to remember anything anymore thanks to total-recall.

Aruna

  • Hero Member
  • *****
  • Posts: 568
Re: Errors when building FPC from source
« Reply #5 on: October 29, 2024, 11:55:17 am »
Yes Aruna, you are tired ! Check the title of this thread !
Hi Davo am still trashed and still trying to waking up over here :) What did I miss on the title of the thread?

I have the files needed to make the missing .ppu, thus -
 
Code: Pascal  [Select][+][-]
  1. dbannon@dell:~/bin/Lazarus/lazarus-lazarus_4_0_RC_1$ ls -l components/debuggerintf/fcl-proc331
  2. total 84
  3. -rw-r--r-- 1 dbannon dbannon  3853 Oct 22 04:17 pipes331.pp
  4. -rw-r--r-- 1 dbannon dbannon  3532 Oct 22 04:17 process331.pp
  5. -rw-r--r-- 1 dbannon dbannon 36088 Oct 22 04:17 processbody.inc
  6. -rw-r--r-- 1 dbannon dbannon    41 Oct 22 04:17 README.txt
  7. -rw-r--r-- 1 dbannon dbannon  1234 Oct 22 04:17 unix_pipes.inc
  8. -rw-r--r-- 1 dbannon dbannon 15343 Oct 22 04:17 unix_process.inc
  9. -rw-r--r-- 1 dbannon dbannon  1699 Oct 22 04:17 win_pipes.inc
  10. -rw-r--r-- 1 dbannon dbannon 11415 Oct 22 04:17 win_process.inc
  11.  

They are, apparently, imported from FPC331 and are not in a previous Lazarus. Please check you have them.
I will check.  Davo would you have a cheat-sheet or something similar lying around that provides step-by-step instructions for building? Both fpc from source and laz-ide from source please? I am going to documnet everything and make one once I get this to work. Preferably with links to the source tar or zip to use to build.

Might be fun to run this too (from there in your Laz dir) -

Code: Bash  [Select][+][-]
  1. $> find . -iname "process331*"
I will search for the missing files thanks.

Look after yourself !
I am 'stable' now they say my viral load is near undetectable and blood sugar has stabilized to normal after taking metformin. Stop worrying mate am hard to kill, I am just so fed-up of having to take all these darn pills every day but they keep me alive soo.. :)

Listen Davo do me a favour and drop by IRC? Network is Libera and the channel is #pascal. If you have a few minutes and when convenient? Oh this is totally unrelated and way off-topic but who are the core dev's for lazarus? And who are the core dev's for fpc? Or just tell me on IRC? Be well my friend!

TRon

  • Hero Member
  • *****
  • Posts: 3742
Re: Errors when building FPC from source
« Reply #6 on: October 29, 2024, 12:01:45 pm »
What did I miss on the title of the thread?
"Errors when building FPC from source"

(counter) evidence:
Code: Bash  [Select][+][-]
  1. make bigide

Assuming that you are (still) not completely awake: IDE = lazarus, FPC = compiler

Good morning  :)
I do not have to remember anything anymore thanks to total-recall.

Aruna

  • Hero Member
  • *****
  • Posts: 568
Re: Errors when building FPC from source
« Reply #7 on: October 29, 2024, 12:18:26 pm »
ok, then we need to dive a bit deeper.

Form your logs i can see that you have installed Lazarus into your home directory. Your FPC however seems to be a system-wide installation.

The question that are relevant:
- How did you install Lazarus in case you have done so and how did you install FPC ?
- which exact version of Lazarus are you trying to compile ?
My hard drive failed @TRon so I plugged in a stand-by I have lying around in case of emergencies and installed Debian 12 onto this disk. Then I downloaded the lazarus source tar from HERE but I forgot this is now a pristine Debian install so when I tried to run make bigide it said I have to run fpcmake first. So I downloaded the fpc source and that started giving trouble which I can't remember what I did now but managed to fix then it choked saying no GTK? I forgot again so installed GTK2 and those errors went away but new ones appeared. So that is how I tried t install FPC and am trying to compile the Lazarus 4.ORC1. Maybe I should just start again from scratch?

Aruna

  • Hero Member
  • *****
  • Posts: 568
Re: Errors when building FPC from source
« Reply #8 on: October 29, 2024, 12:22:50 pm »
What did I miss on the title of the thread?
"Errors when building FPC from source"

(counter) evidence:
Code: Bash  [Select][+][-]
  1. make bigide

Assuming that you are (still) not completely awake: IDE = lazarus, FPC = compiler

Good morning  :)
Oh lord I must have been completely out of it last night to have done that lol. My apologies to everyone. And nope am not fully awake yet and yes a very good morning to you as well.

TRon

  • Hero Member
  • *****
  • Posts: 3742
Re: Errors when building FPC from source
« Reply #9 on: October 29, 2024, 12:54:36 pm »
... which I can't remember what I did now but managed to fix then it choked saying no GTK? I forgot again so installed GTK2 and those errors went away but new ones appeared. So that is how I tried t install FPC and am trying to compile the Lazarus 4.ORC1. Maybe I should just start again from scratch?
That might perhaps be the quickest solution.

In case you are in a hurry to get up and running:
- remove everything FPC and Lazarus related from your system (don't forget the configuration files and/or directories)
- download fpcupdeluxe 2.4.0e from here. You probably want this file.
- install dependencies, see FPCUpdeluxe readme section linux
- make the downloaded fpcupdeluxe file executable, e.g. chmod u+x "downloaded_file_name"
- start FPCUpDeluxe
- at top left select a path (where you have enough access rights) where you want to install FPC (f.e."/home/<username>/bin/fpc/3.2.2").
- at the left select Free Pascal compiler version 3.2.2 (let's stay safe there)
- press the (FPC) only button
- drink some coffee

when finished you should have a working FPC compiler and which can be started using its created FPC script (in fact you should use that, and only that script though you can copy it around to a more convenient place but it only makes sens eif you ever want to compile things with FPC in a terminal)
- then download the lazarus 4.0rc1 sources, f.e. https://gitlab.com/freepascal.org/lazarus/lazarus/-/archive/lazarus_4_0_RC_1/lazarus-lazarus_4_0_RC_1.tar.gz to a location where you can build it.
- untar the file
- cd into the main directory of the untarred file, then:
Code: Bash  [Select][+][-]
  1. make clean all bigide FPC="full path and name to the fpc.sh (it might be named slightly different) script file that was created by fpcupdeluxe"
  2.  

That should work for you (it does for me, except that I manually build FPC from source using a bootstrap compiler)

- Once the make is done, move the resulting build into a location of your liking (f.e. "/home/<username>/bin/lazarus/3.4rc1" )
- then in that location, alongside startlazarus and lazarus executable create a file named lazarus.cfg, and add the option --pcp="location of a directory to where you want to store your lazarus configuration" (for howto/info see wiki )

Once done you should be able to start Lazarus without issues. On first startup of lazarus when it asks:
- set the name of the compiler to your fpc.sh script that was created by fpcupdeluxe
- please ignore the ignorant popup requesters and/or messages telling that this is not the right compiler because the selected file does not start with the correct letters (it is a dumb and misleading message)
- when asked for sources, use the directory that fpcupdeluxe created to store the sources of the rtl and fcl

That should be about it. Only thing missing is a menu item. You can consult the gnome .desktop file manual for that.
« Last Edit: October 29, 2024, 01:10:51 pm by TRon »
I do not have to remember anything anymore thanks to total-recall.

Aruna

  • Hero Member
  • *****
  • Posts: 568
Re: Errors when building FPC from source
« Reply #10 on: October 29, 2024, 03:05:53 pm »
... which I can't remember what I did now but managed to fix then it choked saying no GTK? I forgot again so installed GTK2 and those errors went away but new ones appeared. So that is how I tried t install FPC and am trying to compile the Lazarus 4.ORC1. Maybe I should just start again from scratch?
That might perhaps be the quickest solution.
I used the *.deb filess  @TRon. And installed them in order as Sourceforge says: You need to download and install all three packages fpc-laz, fpc-src and lazarus-project.Install them in order:
  • fpc-laz - the Compiler, useful command line tools, base units and non visual components like database access
  • fpc-src - the sources of fpc and its packages, needed for code browsing
  • lazarus-project - the IDE, visual components and help files
And thank you god everything went smooth this time I used
Code: Text  [Select][+][-]
  1. sudo dpkg -i <your-deb-file>

In case you are in a hurry to get up and running:
Yes I was actually (I can't remember why now though? This is what happens when you burn the midnight oil and fly by night:) Thank you for taking so much time to investigate also for the clear and detailed instructions. I have a working laz-ide again but I want to start from scratch and document all the possible brick walls one can hit when doing this without the convenience of a package manager.

EDIT: Just attached a screenshot for anyone interested.
« Last Edit: October 29, 2024, 03:11:24 pm by Aruna »

Aruna

  • Hero Member
  • *****
  • Posts: 568
Re: Errors when building FPC from source
« Reply #11 on: October 29, 2024, 08:31:57 pm »
@TRon and @dbannon

Have a look HERE and then HERE

dbannon

  • Hero Member
  • *****
  • Posts: 3174
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Errors when building FPC from source
« Reply #12 on: October 30, 2024, 12:41:50 am »
...
And nope am not fully awake yet and yes a very good morning to you as well.
...
EDIT: Just attached a screenshot for anyone interested.

And a good morning to you too (its sort of late-ish morning here now !).

Glad its all working.  I'd suggest your problems related to dependencies. But by putting on the deb packages, they resolved dependencies for you. Just be careful, if you remove those debs (and go back to your own build), apt might decide you don't need those dependencies any more. I prefer to manually install them (with apt of course) so they are marked as "user installed" and get left alone.

FPC : From the wiki "first install binutils, make, gcc"
Lazarus : from my script : gtk2 - libx11-dev libgtk2.0-dev;  Qt5 - libqt5pas-dev (beware of old versions in repo).

Aruna _ I don't use IRC, too scared I might bump into Joanna. More than happy to talk over PM here however. Or email if you prefer.

Davo
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

Aruna

  • Hero Member
  • *****
  • Posts: 568
Re: Errors when building FPC from source
« Reply #13 on: October 30, 2024, 12:53:28 am »
And a good morning to you too (its sort of late-ish morning here now !).
Good late-ish morning and it is 19:46 here which is 7:46 PM :)

Glad its all working.  I'd suggest your problems related to dependencies. But by putting on the deb packages, they resolved dependencies for you. Just be careful, if you remove those debs (and go back to your own build), apt might decide you don't need those dependencies any more. I prefer to manually install them (with apt of course) so they are marked as "user installed" and get left alone.

FPC : From the wiki "first install binutils, make, gcc"
Lazarus : from my script : gtk2 - libx11-dev libgtk2.0-dev;  Qt5 - libqt5pas-dev (beware of old versions in repo).
Yes me too I got tired of fixing never ending errors. Strange that you fix one and recompile it comes back with a different one :)

Aruna _ I don't use IRC, too scared I might bump into Joanna. More than happy to talk over PM here however. Or email if you prefer.
Listen, just drop by the channel and 'pm' me so I know your there and just 'lurk' without saying anything? No one will know your in there and no one will say anything to you. Give it a try before you decide not to?
She is alright ( really, she does not bite:) but then 'i' have a very thick outer layer of skin... watch that video and tell me if 'you' would take all them pills?

TRon

  • Hero Member
  • *****
  • Posts: 3742
Re: Errors when building FPC from source
« Reply #14 on: October 30, 2024, 05:58:04 am »
Oh this is totally unrelated and way off-topic but who are the core dev's for lazarus? And who are the core dev's for fpc?
To keep it simple:
- For Free pascal, see here
- For Lazarus, see here

But, having said that please also realize that there are tens if not hundreds of other people that contribute (or have contributed over the years) to both projects by various means (also to other associated projects such as f.e. the help).

It is just that they do not have (or do not want to have) the right to make certain decisions.

I have a working laz-ide again but I want to start from scratch and document all the possible brick walls one can hit when doing this without the convenience of a package manager.
In case you want to do everything manually then there a few basic steps:
for FPC:
- get a bootstrap compiler (FPC-downloads, sourceforge)
- retrieve the source-code for the compiler version that should be build (git, gitlab, FPC-downloads, sourceforge)
- build the compiler with make using the bootstrap compiler
- install the freshly build compiler (make)
- configure the compiler for user specific setup (fpc.cfg) either manually or by using fpmkcfg
- test the compiler

for Lazarus:
- retrieve the source-code for the IDE version that should be build (git, gitlab, FPC-downloads, sourceforge)
- build the IDE with make using your freshly installed compiler
- install the freshly build Lazarus (make)
- make sure to set/configure the pcp directory
- optionally make a (menu) shortcut for your freshly build IDE
- test lazarus

Explaining each individual step is more complicated and depends on (and/or can depend on) platform, architecture, preferences, future plans and how someone want to have things setup.

The most easy way to install is ofc. using the package manager supplied by the OS and use their FPC and Lazarus packages. The downside of that solution is that there is hardly any upgrade path and/or room for personal preferences ad/or customization.

Have a look HERE and then HERE
Thank you for sharing and the shout-out. Man, you look wasted there (no offense). Please take good care of yourself !
I do not have to remember anything anymore thanks to total-recall.

 

TinyPortal © 2005-2018