Forum > FPC development

Errors when building FPC from source

(1/4) > >>

Aruna:
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  [+][-]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";}};} ---aruna@debian:~/lazarus$ make bigidemake -C packager/registrationmake[1]: Entering directory '/home/aruna/lazarus/packager/registration'/usr/bin/rm -f ../units/x86_64-linux/fcllaz.ppu/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.pasHint: (11030) Start of reading config file /home/aruna/.fpc.cfgHint: (11031) End of reading config file /home/aruna/.fpc.cfgFree Pascal Compiler version 3.2.2 [2021/05/16] for x86_64Copyright (c) 1993-2021 by Florian Klaempfl and others(1002) Target OS: Linux for x86-64(3104) Compiling fcllaz.pas(1008) 21 lines compiled, 0.1 sec(1022) 2 hint(s) issued/usr/bin/cp -f Makefile.compiled ../units/x86_64-linux/fcl.compiledmake[1]: Leaving directory '/home/aruna/lazarus/packager/registration'make -C components lazbuildpackagesmake[1]: Entering directory '/home/aruna/lazarus/components'make -C lazutilsmake[2]: Entering directory '/home/aruna/lazarus/components/lazutils'/usr/bin/rm -f lib/x86_64-linux/lazutils.ppu/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.pasHint: (11030) Start of reading config file /home/aruna/.fpc.cfgHint: (11031) End of reading config file /home/aruna/.fpc.cfgFree Pascal Compiler version 3.2.2 [2021/05/16] for x86_64Copyright (c) 1993-2021 by Florian Klaempfl and others(1002) Target OS: Linux for x86-64(3104) Compiling lazutils.pas(1008) 33 lines compiled, 0.1 sec(1022) 2 hint(s) issued/usr/bin/cp -f Makefile.compiled lib/x86_64-linux/lazutils.compiledmake[2]: Leaving directory '/home/aruna/lazarus/components/lazutils'make -C codetoolsmake[2]: Entering directory '/home/aruna/lazarus/components/codetools'/usr/bin/rm -f units/x86_64-linux/codetools.ppu/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.pasHint: (11030) Start of reading config file /home/aruna/.fpc.cfgHint: (11031) End of reading config file /home/aruna/.fpc.cfgFree Pascal Compiler version 3.2.2 [2021/05/16] for x86_64Copyright (c) 1993-2021 by Florian Klaempfl and others(1002) Target OS: Linux for x86-64(3104) Compiling codetools.pas(1008) 33 lines compiled, 0.1 sec(1022) 2 hint(s) issued/usr/bin/cp -f Makefile.compiled units/x86_64-linux/codetools.compiledmake[2]: Leaving directory '/home/aruna/lazarus/components/codetools'make -C buildintfmake[2]: Entering directory '/home/aruna/lazarus/components/buildintf'/usr/bin/rm -f units/x86_64-linux/buildintf.ppu/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.pasHint: (11030) Start of reading config file /home/aruna/.fpc.cfgHint: (11031) End of reading config file /home/aruna/.fpc.cfgFree Pascal Compiler version 3.2.2 [2021/05/16] for x86_64Copyright (c) 1993-2021 by Florian Klaempfl and others(1002) Target OS: Linux for x86-64(3104) Compiling buildintf.pas(1008) 25 lines compiled, 0.1 sec(1022) 2 hint(s) issued/usr/bin/cp -f Makefile.compiled units/x86_64-linux/buildintf.compiledmake[2]: Leaving directory '/home/aruna/lazarus/components/buildintf'make -C lazdebuggers/lazdebuggerintfmake[2]: Entering directory '/home/aruna/lazarus/components/lazdebuggers/lazdebuggerintf'/usr/bin/rm -f lib/x86_64-linux/lazdebuggerintfpackage.ppu/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.pasHint: (11030) Start of reading config file /home/aruna/.fpc.cfgHint: (11031) End of reading config file /home/aruna/.fpc.cfgFree Pascal Compiler version 3.2.2 [2021/05/16] for x86_64Copyright (c) 1993-2021 by Florian Klaempfl and others(1002) Target OS: Linux for x86-64(3104) Compiling lazdebuggerintfpackage.pas(1008) 16 lines compiled, 0.1 sec(1022) 2 hint(s) issued/usr/bin/cp -f Makefile.compiled lib/x86_64-linux/lazdebuggerintf.compiledmake[2]: Leaving directory '/home/aruna/lazarus/components/lazdebuggers/lazdebuggerintf'make -C debuggerintfmake[2]: Entering directory '/home/aruna/lazarus/components/debuggerintf'/usr/bin/rm -f lib/x86_64-linux/debuggerintf.ppu/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.pasFree Pascal Compiler version 3.2.2 [2021/05/16] for x86_64Copyright (c) 1993-2021 by Florian Klaempfl and others(1002) Target OS: Linux for x86-64(3104) Compiling debuggerintf.pas(3104) Compiling dbgintfprocess.pas(10001) PPU Loading lib/x86_64-linux/process331.ppu(10011) PPU Source: process331.pp not found(10011) PPU Source: processbody.inc not available(10011) PPU Source: unix_process.inc not available(10028) Recompiling process331, checksum changed for /usr/lib/fpc/3.2.2/units/x86_64-linux/rtl/system.ppu/home/aruna/lazarus/components/debuggerintf/dbgintfprocess.pas(18,29) Fatal: (10022) Can't find unit process331 used by DbgIntfProcessFatal: (1018) Compilation abortedmake[2]: *** [Makefile:3471: debuggerintf.ppu] Error 1make[2]: Leaving directory '/home/aruna/lazarus/components/debuggerintf'make[1]: *** [Makefile:1913: lazbuildpackages] Error 2make[1]: Leaving directory '/home/aruna/lazarus/components'make: *** [Makefile:3151: lazbuild] Error 2aruna@debian:~/lazarus$

TRon:
Can you try making your build with:

--- 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 bigide OPT="-Ur"

dbannon:
Yes Aruna, you are tired ! Check the title of this thread !

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.

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*"
Look after yourself !

Davo

Aruna:

--- Quote from: TRon on October 29, 2024, 06:10:09 am ---Can you try making your build with:

--- 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 bigide OPT="-Ur"
--- End quote ---

Hello @TRon how are you? I tried what you suggested and that error dissappeard but we have another one now:

--- Code: Text  [+][-]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[1]: <snip>Leaving directory '/home/aruna/lazarus/tools'make -C packager/registrationmake[1]: Entering directory '/home/aruna/lazarus/packager/registration'/usr/bin/rm -f ../units/x86_64-linux/fcllaz.ppu/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.pasHint: (11030) Start of reading config file /home/aruna/.fpc.cfgHint: (11031) End of reading config file /home/aruna/.fpc.cfgFree Pascal Compiler version 3.2.2 [2021/05/16] for x86_64Copyright (c) 1993-2021 by Florian Klaempfl and others(1002) Target OS: Linux for x86-64(3104) Compiling fcllaz.pas/home/aruna/lazarus/packager/registration/fcllaz.pas(11,3) Fatal: (10022) Can't find unit db used by fcllazFatal: (1018) Compilation abortedmake[1]: *** [Makefile:3471: fcllaz.ppu] Error 1make[1]: Leaving directory '/home/aruna/lazarus/packager/registration'make: *** [Makefile:3112: registration] Error 2

TRon:
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 ?

Navigation

[0] Message Index

[#] Next page

Go to full version