Forum > Other
Building Lazarus 3.4 with FreePascal 3.2.2 fails under OpenBSD 7.5
TCH:
Checked those commits. The first one only applies for FreePascal 3.3.X, which means it does not have to be reversed under 3.2.2. The second one refers to a part which is not exists in 3.2.2's packages/fcl-base/src/syncobjs.pp. Still, i tried to add
--- 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";}};} ---{$DEFINE NO_SEMAPHORE_SUPPORT} to it, compiled the file and put the resulting .ppu, .o and .rsj files to their place in /usr/lib/fpc/3.2.2/units/x86_64-openbsd/fcl-base/. Unfortunately still crashes.
--- Quote from: marcov on June 10, 2024, 10:16:33 pm --- Note also that svn2revision is not crucial. Probably it only tries to execute git to get some revision to put in about. Probably the makefiles allow it to ski pit.
--- End quote ---
Thanks for the tip, i'll try to skip that in the makefiles.
--- Quote from: marcov on June 10, 2024, 10:16:33 pm ---Find out why it doesn't work.
--- End quote ---
It does not work, because units/x86_64-openbsd/fcl-net/cnetdb.ppu does not exists in the OpenBSD port of FPC 3.2.2, because at the line 76 of packages/fcl-net/fpmake.pp, OpenBSD is missing from the list. This is already fixed in 3.3, but it is still missing in both the binaries and sources of 3.2.2. Since i could not compile the fixes branch of 3.2.2, because of the erroneous Makefile, i need to do this workaround.
TCH:
If i compile like with gmake bigide USESVN2REVISIONINC=0, then it passes those parts, but then it halts with this error:
--- Code: ---/tmp/lazarus/ide/lazarus.pp(87,2) Fatal: (2013) Cannot open include file "revision.inc"
--- End code ---
If i comment that line out, then it'll miss the functions from it.
marcov:
(Looking at that make log) You do realize that FPC requires gmake not BSD default (bsd-)make ?
TCH:
Whoops, i keep forgetting. (The Lazarus in the ports does use the regular make.) Thanks for pointing out, i'll retry it.
Edit: I just used the commands from here.
TRon:
--- Quote from: TCH on June 11, 2024, 10:55:20 am ---Whoops, i keep forgetting. (The Lazarus in the ports does use the regular make.) Thanks for pointing out, i'll retry it.
Edit: I just used the commands from here.
--- End quote ---
because you are basing things off FPC fixes make sure to use the correct FPC to build lazarus with, e.g. (g)make all FPC="/path/and/name/to/your/fpc/fixes/executable"
Navigation
[0] Message Index
[#] Next page
[*] Previous page