Forum > Unix
[SOLVED] Build Error On AlmaLinux 8.9
hymcode:
Hello,
We are trying to build our software on a new AlmaLinux machine we are currently testing. To the best of my knowledge, I have set up the development environment identical to our CentOS 7.9 machine, however after executing the following command in a Terminal Window:
--- 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";}};} ---$ lazbuild -B linuxconveripfiles.lpi
I get the following error messages:
--- 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";}};} ---(9022) Compiling resource /PCSOURCE/NEXTLX_ALMA/LINUXPASCAL/lib/x86_64-linux/convertipfiles.orError: No known file format detected for file 'convertipfiles.res'/PCSOURCE/NEXTLX_ALMA/LINUXPASCAL/convertipfiles.lpr(23,1) Error: (9029) Error while compiling resources/PCSOURCE/NEXTLX_ALMA/LINUXPASCAL/convertipfiles.lpr(23,1) Fatal: (10026) There were 1 errors compiling module, stoppingFatal: (1018) Compilation abortedError: /usr/bin/ppcx64 returned an error exitcodeError: (lazarus) Compile Project, Target: convertipfiles: stopped with exit code 1Error: (lazbuild) failed compiling of project /PCSOURCE/NEXTLX_ALMA/LINUXPASCAL/linuxconvertipfiles.lpi
We have Free Pascal Compiler Version: 3.2.0, lazbuild Version: 2.0.12 and they were installed via the yum package manager.
The files and directories listed above in the error messages are located on a Samba server which our AlmaLinux machine has mounted, and we are building within the mounted drive as the root user.
I hope this information helps, and thank you for your assistance.
dbannon:
Error: No known file format detected for file 'convertipfiles.res'
You are using a very old version of Lazarus (and FPC). Could it be that the convertipfiles.res was made by a newer version ? Not sure I'd recommend such old tools to be honest.
I'd also check its permissions, size (ie is it an empty file) and ownership given you have been running Lazarus as root. IMHO, that is very bad practice.
Davo
hymcode:
--- Quote from: dbannon on July 12, 2024, 02:55:10 am ---Error: No known file format detected for file 'convertipfiles.res'
You are using a very old version of Lazarus (and FPC). Could it be that the convertipfiles.res was made by a newer version ? Not sure I'd recommend such old tools to be honest.
I'd also check its permissions, size (ie is it an empty file) and ownership given you have been running Lazarus as root. IMHO, that is very bad practice.
Davo
--- End quote ---
Hello Davo, I have removed the Lazarus development environment that is provided by yum as you're right it's very old and now have installed via the .rpm files found on Sourceforge.
I tried to build the software again but now I get the following error message:
--- 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";}};} ---[root@dev00 LINUXPASCAL]# lazbuild -B linuxconvertipfiles.lpi Error: (lazarus) invalid Lazarus directory "/usr/lib64/lazarus/": directory not foundError: (lazarus) Building failed: linuxconvertipfiles.lpi
Any ideas on this?
af0815:
One problem is, different linux use different path.
For me, i use often: fpc from the distribution and lazarus build from sources. Path are correct with this. And no root is nessesary. I never use shares as a base for the sources, always only a source control tool like git (or svn). With this, it is for me meaningless on what platform i have to work. And i am working on different linux, raspbian and windows.
BTW: I can use a crosscompiling sytsem to compile from windows to the linux targets. The only goal is, to have the correct libs on the windows machine for the different linux'es.
TRon:
In addition to af0815's response and using the default package manager's version of fpc you can either work your way up if that version is too old or extract the ppc executable from the provided packages of the previous compiler version to use as bootstrap compiler for building the latest FPC compiler.
Building and installing Lazarus from source is a trivial matter.
There is no need whatsoever to run FPC and/or Lazarus as root and should be discouraged.
Navigation
[0] Message Index
[#] Next page