Forum > Unix

[SOLVED] Build Error On AlmaLinux 8.9

<< < (3/3)

Thaddy:
If almalinux is as it states on their website binary compatible with Red Hat, there should be no problems at all. Did you try to install from a red hat package (RHEL)? That should simply work.

hymcode:
I run a trial using my own basic Lazarus GUI program.

I was able to build the program successfully using Lazarus 2.2.4 on my Windows 10 machine.

I then mounted the samba share where the source is located on my AlmaLinux 8.9 machine, then execute the following command:


--- 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 project1.lpi
I am no longer doing this as root, however I got the following error output:


--- 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";}};} ---[tester@dev00 buildTest]$ lazbuild -B project1.lpiHint: (11030) Start of reading config file /etc/fpc.cfgHint: (11031) End of reading config file /etc/fpc.cfgFree Pascal Compiler version 3.2.2 [2021/05/16] for x86_64Copyright (c) 1993-2021 by Florian Klaempfl and othersError: No known file format detected for file 'project1.res'(1002) Target OS: Linux for x86-64(3104) Compiling project1.lpr(3104) Compiling unit1.pas(9022) Compiling resource /DEVSOURCE/buildTest/lib/x86_64-linux/project1.or/DEVSOURCE/buildTest/project1.lpr(24,1) Error: (9029) Error while compiling resources/DEVSOURCE/buildTest/project1.lpr(24,1) Fatal: (10026) There were 1 errors compiling module, stoppingFatal: (1018) Compilation abortedError: /usr/bin/ppcx64 returned an error exitcodeError: (lazarus) Compile Project, Target: /DEVSOURCE/buildTest/project1: stopped with exit code 1Error: (lazbuild) failed compiling of project /DEVSOURCE/buildTest/project1.lpi
I am really at a loss now with this all  %). My only guess is with the version of lazbuild on the AlmaLinux machine, which is at version 3.4

marcov:
Do you have gorc installed? Maybe redhat somehow packages that differently

dbannon:
> Error: No known file format detected for file 'project1.res'

Seems to be consistently the problem. Further up, I suggested you check ownership, permissions and content of the .res file, did you ?

Apps like Lazarus that assume they are running as a user and are running in user spaces (where they have normal write and execute permissions) can get confused by running as root (seems thats behind us) and running on some network shares.  Someone mentioned the share above and I dismissed it but maybe wrongly !

Please check you have execute (and, write) permissions on the samba share. The samba config will list them, the mount command might list them but sometimes is fooled.  A really reliable way ?

Make a small executable script, copy it to the samba drive and run it !  (May be a good idea to check first line, RedHad can be funny)


--- 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";}};} ---#!/usr/bin/bash  echo "Hello world" > test.txt
Make a file with that content (lets call it test.bash) , ensure you do have bash in /usr/bin/bash and make that file executable, don't execute it using bash, make it executable -


--- Code: --->$ chmod u+x test.bash
--- End code ---

and then run it (don't forget the dot slash at the start to ensure we run this file) -


--- Code: --->$ ./test.bash
--- End code ---

Now, if you see no error message a new file should have appeared, "test.txt", lets look at it -


--- Code: --->$ cat test.txt
--- End code ---

And we should see our "Hello World" message. If thats all good, I have wasted a few minutes of your time, sorry. If you seee a error message at any stage during that test, please report it here.

Davo



 

hymcode:

--- Quote from: dbannon on July 16, 2024, 02:21:46 am ---> Error: No known file format detected for file 'project1.res'

Seems to be consistently the problem. Further up, I suggested you check ownership, permissions and content of the .res file, did you ?

Apps like Lazarus that assume they are running as a user and are running in user spaces (where they have normal write and execute permissions) can get confused by running as root (seems thats behind us) and running on some network shares.  Someone mentioned the share above and I dismissed it but maybe wrongly !

Please check you have execute (and, write) permissions on the samba share. The samba config will list them, the mount command might list them but sometimes is fooled.  A really reliable way ?

Make a small executable script, copy it to the samba drive and run it !  (May be a good idea to check first line, RedHad can be funny)


--- 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";}};} ---#!/usr/bin/bash  echo "Hello world" > test.txt
Make a file with that content (lets call it test.bash) , ensure you do have bash in /usr/bin/bash and make that file executable, don't execute it using bash, make it executable -


--- Code: --->$ chmod u+x test.bash
--- End code ---

and then run it (don't forget the dot slash at the start to ensure we run this file) -


--- Code: --->$ ./test.bash
--- End code ---

Now, if you see no error message a new file should have appeared, "test.txt", lets look at it -


--- Code: --->$ cat test.txt
--- End code ---

And we should see our "Hello World" message. If thats all good, I have wasted a few minutes of your time, sorry. If you seee a error message at any stage during that test, please report it here.

Davo

--- End quote ---

Hello Davo,
Thank you for your helpful input. In the end, like yourself and the rest of those who provided their input into this issue. It turns out the cause was permissions related.

Even though I updated the Samba permissions and checked on the Linux machine to ensure the correct ownership and group were in place, I guess it just didn't like that fact the top level directory was still in the root / location.

I ended up copying all the files locally onto the Linux Machine and building it there with success.

I will go ahead and update this question to solved now.

Navigation

[0] Message Index

[*] Previous page

Go to full version