Forum > Beginners

howto rebuild FPC RTL for lazarus ?

<< < (3/3)

marcov:
Combine make all and install.  INSTALL_PREFIX is a parameter to install, not all.

make all install FPC=c:\lazarus\fpc\3.2.0\bin\x86_64-win64\fpc.exe INSTALL_PREFIX=c:\lazarus\fpc\3.2.0`

Local generation of units in source\ can't be avoided, it is install that copies them from there to the INSTALL_PREFIX location

alexraynepe196:

--- Quote from: marcov on November 25, 2021, 09:34:31 am ---Combine make all and install.  INSTALL_PREFIX is a parameter to install, not all.

make all install FPC=c:\lazarus\fpc\3.2.0\bin\x86_64-win64\fpc.exe INSTALL_PREFIX=c:\lazarus\fpc\3.2.0`

Local generation of units in source\ can't be avoided, it is install that copies them from there to the INSTALL_PREFIX location

--- End quote ---

this not pass, it makes same as i showed before - outputs to source\rtl\unis\$TARGET, and after build completes with same fail:

--- Code: GNU make  [+][-]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";}};} ---...lnfodwrf.pp(991,3) Note: Local variable "isdwarf64" is assigned but never used1417 lines compiled, 0.1 sec1 warning(s) issued2 note(s) issuedmake[1]: Leaving directory '/cygdrive/c/lazarus/fpc/3.2.0/source/rtl/win64'__missing_command_FPCMAKE -p -Tx86_64-win64 Makefile.fpcmake: __missing_command_FPCMAKE: Command not foundmake: *** [Makefile:1464: fpc_install] Error 127 
something need for founds `__missing_command_FPCMAKE`

alexraynepe196:
well, i pass instalation by explicit specify FPCMAKE:

--- 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";}};} ---c:\lazarus\fpc\3.2.0\source\rtl>make install FPC=c:\lazarus\fpc\3.2.0\bin\x86_64-win64\ppcx64.exe INSTALL_PREFIX=c:\lazarus\fpc\3.2.0 FPCMAKE=c:\lazarus\fpc\3.2.0\bin\x86_64-win64\fpcmake.exe CPU_TARGET=x86_64 
now it compile and installs ok.

But a got another problem: lazarus won`t use it. It fails with:

--- 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";}};} ---Verbose: Free Pascal Compiler version 3.2.0 [2020/07/07] for x86_64Verbose: Copyright (c) 1993-2020 by Florian Klaempfl and othersVerbose: Target OS: Win64 for x64Verbose: Compiling fcllaz.pasVerbose: PPU Loading C:\lazarus\fpc\3.2.0\units\x86_64-win64\rtl\system.ppuVerbose: PPU is compiled for another processorFatal: Невозможно найти system, используемый в fcllaz. Убедитесь, что все файлы PPU пакета находятся в его каталоге вывода. PPU в неверном каталоге=C:\lazarus\fpc\3.2.0\units\x86_64-win64\rtl\system.ppu..Verbose: Compilation abortedVerbose: C:\lazarus\fpc\3.2.0\bin\x86_64-win64\ppcx64.exe returned an error exitcode 
what target lazarus wants, since it virsion reports x86_64-win64-win32/win64?

avra:
https://wiki.freepascal.org/FPC_recompilation_automation

alexraynepe196:

--- Quote from: alexraynepe196 on November 25, 2021, 06:57:34 pm ---
But a got another problem: lazarus won`t use it. It fails with:

--- 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";}};} ---Verbose: Free Pascal Compiler version 3.2.0 [2020/07/07] for x86_64Verbose: Copyright (c) 1993-2020 by Florian Klaempfl and othersVerbose: Target OS: Win64 for x64Verbose: Compiling fcllaz.pasVerbose: PPU Loading C:\lazarus\fpc\3.2.0\units\x86_64-win64\rtl\system.ppuVerbose: PPU is compiled for another processorFatal: Невозможно найти system, используемый в fcllaz. Убедитесь, что все файлы PPU пакета находятся в его каталоге вывода. PPU в неверном каталоге=C:\lazarus\fpc\3.2.0\units\x86_64-win64\rtl\system.ppu..Verbose: Compilation abortedVerbose: C:\lazarus\fpc\3.2.0\bin\x86_64-win64\ppcx64.exe returned an error exitcode 
what target lazarus wants, since it virsion reports x86_64-win64-win32/win64?

--- End quote ---

looks that this problem caused some how by installer script - it copies compiled objects to units/$TARGET/rtl,  but try to open that files - windows reports that it busy by other aplication.

So, looks can close topic

Navigation

[0] Message Index

[*] Previous page

Go to full version