Forum > FPC development
Errors when building FPC from source
Aruna:
--- Quote from: dbannon on October 29, 2024, 07:05:55 am ---Yes Aruna, you are tired ! Check the title of this thread !
--- End quote ---
Hi Davo am still trashed and still trying to waking up over here :) What did I miss on the title of the thread?
--- Quote from: dbannon on October 29, 2024, 07:05:55 am ---I have the files needed to make the missing .ppu, thus -
--- 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";}};} ---dbannon@dell:~/bin/Lazarus/lazarus-lazarus_4_0_RC_1$ ls -l components/debuggerintf/fcl-proc331total 84-rw-r--r-- 1 dbannon dbannon 3853 Oct 22 04:17 pipes331.pp-rw-r--r-- 1 dbannon dbannon 3532 Oct 22 04:17 process331.pp-rw-r--r-- 1 dbannon dbannon 36088 Oct 22 04:17 processbody.inc-rw-r--r-- 1 dbannon dbannon 41 Oct 22 04:17 README.txt-rw-r--r-- 1 dbannon dbannon 1234 Oct 22 04:17 unix_pipes.inc-rw-r--r-- 1 dbannon dbannon 15343 Oct 22 04:17 unix_process.inc-rw-r--r-- 1 dbannon dbannon 1699 Oct 22 04:17 win_pipes.inc-rw-r--r-- 1 dbannon dbannon 11415 Oct 22 04:17 win_process.inc
They are, apparently, imported from FPC331 and are not in a previous Lazarus. Please check you have them.
--- End quote ---
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.
--- Quote from: dbannon on October 29, 2024, 07:05:55 am ---Might be fun to run this too (from there in your Laz dir) -
--- Code: Bash [+][-]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";}};} ---$> find . -iname "process331*"
--- End quote ---
I will search for the missing files thanks.
--- Quote from: dbannon on October 29, 2024, 07:05:55 am ---Look after yourself !
--- End quote ---
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:
--- Quote from: Aruna on October 29, 2024, 11:55:17 am ---What did I miss on the title of the thread?
--- End quote ---
"Errors when building FPC from source"
(counter) evidence:
--- Code: Bash [+][-]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";}};} ---make bigide
Assuming that you are (still) not completely awake: IDE = lazarus, FPC = compiler
Good morning :)
Aruna:
--- Quote from: TRon 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 ?
--- End quote ---
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:
--- Quote from: TRon on October 29, 2024, 12:01:45 pm ---
--- Quote from: Aruna on October 29, 2024, 11:55:17 am ---What did I miss on the title of the thread?
--- End quote ---
"Errors when building FPC from source"
(counter) evidence:
--- Code: Bash [+][-]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";}};} ---make bigide
Assuming that you are (still) not completely awake: IDE = lazarus, FPC = compiler
Good morning :)
--- End quote ---
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:
--- Quote from: Aruna on October 29, 2024, 12:18:26 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?
--- End quote ---
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 [+][-]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";}};} ---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"
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.
Navigation
[0] Message Index
[#] Next page
[*] Previous page