Recent

Author Topic: Fpcupdeluxe  (Read 1016220 times)

TRon

  • Hero Member
  • *****
  • Posts: 4377
Re: Fpcupdeluxe
« Reply #2280 on: June 30, 2023, 02:53:19 am »
@ydd
Sorry for the late reaction on this particular part. I simply missed that you posted that information.

I read that topic. Here is screenshot how permissions are set for mapped shared folder
It would be interesting to see the access/owner rights for /home/yd/SHARE/LinuxLazarus/230626_Trunk/fpcbootstrap/ppcx64 directly after FPCDeluxe gives up. Provided that you've ran FPCDeluxe as the same user. That is when things start tumbling down (and that is very early in the build process of FPCDeluxe).

fwiw it is not about FPCDeluxe not being able to handle the access denied error, it is the make process/file that isn't capable coping with such kind of situations.
Today is tomorrow's yesterday.

ydd

  • Jr. Member
  • **
  • Posts: 82
Re: Fpcupdeluxe
« Reply #2281 on: June 30, 2023, 03:10:28 am »
It would be interesting to see the access/owner rights for /home/yd/SHARE/LinuxLazarus/230626_Trunk/fpcbootstrap/ppcx64

permissions are same for all folders/files under: /home/yd/SHARE/

TRon

  • Hero Member
  • *****
  • Posts: 4377
Re: Fpcupdeluxe
« Reply #2282 on: June 30, 2023, 03:27:49 am »
permissions are same for all folders/files under: /home/yd/SHARE/
Ok. Interesting.

That means that FPCDeluxe is able to download the required file and place it into that folder but make is not able to execute it.

One things that I do notice is that the owner for that/those shared directory/ies is not vboxsf (as is per SO question/answers).

I need to delve a little into the Virtual Box manuals.... might take some time.
Today is tomorrow's yesterday.

WayneSherman

  • Sr. Member
  • ****
  • Posts: 257
Re: Fpcupdeluxe
« Reply #2283 on: June 30, 2023, 08:19:26 am »
I just tested my setup which is running VirtualBox 6.1.40 on MX Linux (debian 10/buster) and Xubuntu 20.04 as a guest VM
I run VirtualBox not on Linux, but on Windows. Do you have chance to test the same?

I just setup a test with:
Windows 10 (as a VirtualBox host)
VirtualBox 7.0.8
Xubuntu 22.04 guest
FPCUPdeluxe V2.2.0sp for x86_64-linux running on Ubuntu
Installing and building FPC in a VirtualBox guest VM "shared folder"

I am getting the same permission denied errors that you got.  The first error that shows up is:
fpcupdeluxe: info: FPC Native Installer (BuildModule: FPC): Going to build FPC.
fpcupdeluxe: info: FPC Native Installer (BuildModule: FPC): Detected source version FPC (source): 3.2.2.
fpcupdeluxe: info: FPC Native Installer (BuildModule: FPC): To compile this FPC, we need (required) a compiler with version 3.2.0 or 3.2.2.
fpcupdeluxe: info: FPC Native Installer (BuildModule: FPC): Looking online for a FPCUP(deluxe) bootstrapper with name: fpcup-3_2_2-x86_64-linux-ppcx64.
fpcupdeluxe: info: FPC Native Installer (BuildModule: FPC): Success: found a FPCUP(deluxe) bootstrapper with version 3.2.2.
fpcupdeluxe: info: FPC Native Installer (BuildModule: FPC): Got a bootstrap compiler from FPCUP(deluxe) provided bootstrapper binaries.
fpcupdeluxe: info: FPC Native Installer (BuildModule: FPC): Check if we already have a bootstrap compiler with version 3.2.2.
fpcupdeluxe: info: FPC Native Installer (BuildModule: FPC): No correct bootstrapper. Going to download new bootstrapper.
fpcupdeluxe: info: FPC Native Installer (GetFile): Downloading fpcup-3_2_2-x86_64-linux-ppcx64.
Download progress fpcup-3_2_2-x86_64-linux-ppcx64: starting.
Download progress fpcup-3_2_2-x86_64-linux-ppcx64: starting.
Download progress fpcup-3_2_2-x86_64-linux-ppcx64: Starting download.
Download progress fpcup-3_2_2-x86_64-linux-ppcx64: download ready !
Found valid make application.
Found valid ld application.
fpcupdeluxe: ERROR: FPC Native Installer (BuildModuleCustom: FPC): FPC bootstrap version error: 0.0.0 ! Should never happen: expect many errors !!.

Comparing to my working setup (running VirtualBox 6.1.40 on a Linux host):
Download progress fpcup-3_2_2-x86_64-linux-ppcx64: download ready !
fpcupdeluxe: info: FPC Native Installer (BuildModule: FPC): To compile this FPC, we will use a fresh compiler with version : 3.2.2.
Found valid make application.
Found valid ld application.
fpcupdeluxe: info: FPC Native Installer (BuildModuleCustom: FPC): Using FPC bootstrap compiler with version: 3.2.2.

After that I get this:
fpcupdeluxe: info: FPC Native Installer (BuildModuleCustom: FPC): Running CleanModule once more, due to previous clean failure.
fpcupdeluxe: info: FPC Native Installer (CleanModule: FPC): Running make distclean twice.
fpcupdeluxe: Executing: /usr/bin/make --jobs=4 FPMAKEOPT=--threads=4 FPC=/home/test/mnt/vm_shared/2023-06-29_fpc_stable/fpcbootstrap/ppcx64 --directory=/home/test/mnt/vm_shared/2023-06-29_fpc_stable/fpcsrc FPCMAKE=/home/test/mnt/vm_shared/2023-06-29_fpc_stable/fpc/bin/x86_64-linux/fpcmake PPUMOVE=/home/test/mnt/vm_shared/2023-06-29_fpc_stable/fpc/bin/x86_64-linux/ppumove FPCDIR=/home/test/mnt/vm_shared/2023-06-29_fpc_stable/fpcsrc PREFIX=/home/test/mnt/vm_shared/2023-06-29_fpc_stable/fpc INSTALL_PREFIX=/home/test/mnt/vm_shared/2023-06-29_fpc_stable/fpc CPU_SOURCE=x86_64 OS_SOURCE=linux INSTALL_BINDIR=/home/test/mnt/vm_shared/2023-06-29_fpc_stable/fpc/bin/x86_64-linux CPU_TARGET=x86_64 OS_TARGET=linux distclean (working dir: /home/test/mnt/vm_shared/2023-06-29_fpc_stable/fpcsrc)
make: /home/test/mnt/vm_shared/2023-06-29_fpc_stable/fpcbootstrap/ppcx64: Permission denied

I think "make" is calling ppcx64 and ppcx64 is reporting "Permission denied" for some reason, but if I run the same make command from a terminal I don't get an error.
« Last Edit: June 30, 2023, 05:55:38 pm by WayneSherman »

Thaddy

  • Hero Member
  • *****
  • Posts: 19249
  • Glad to be alive.
Re: Fpcupdeluxe
« Reply #2284 on: June 30, 2023, 08:42:12 am »
Under Windows 10 it is often better to use wsl2 that comes with Windows 10/11 instead of virtualbox.

objects are fine constructs. You can even initialize them with constructors.

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1877
Re: Fpcupdeluxe
« Reply #2285 on: June 30, 2023, 09:44:30 am »
New version of fpcupdeluxe. Was needed due to new versioning of Lazarus trunk.
https://github.com/LongDirtyAnimAlf/fpcupdeluxe/releases/tag/v2.2.0s

Extra feature.
The Linux x86_64 binary is now unversioned with respect to glibc.
It would be interesting to know if this does (not) have any negative consequences.
See: https://forum.lazarus.freepascal.org/index.php/topic,58888

Please report any issues on Github. Thanks.

ydd

  • Jr. Member
  • **
  • Posts: 82
Re: Fpcupdeluxe
« Reply #2286 on: June 30, 2023, 01:43:43 pm »
permissions are same for all folders/files under: /home/yd/SHARE/
Ok. Interesting.

That means that FPCDeluxe is able to download the required file and place it into that folder but make is not able to execute it.

This is copy of installed Lazarus (by Fpcupdeluxe to local folder) to manually mapped Shared Folder

permissions are same for all folders/files under: /home/yd/SHARE/
One things that I do notice is that the owner for that/those shared directory/ies is not vboxsf (as is per SO question/answers).

I need to delve a little into the Virtual Box manuals.... might take some time.

folder "Share" is mapped manually - as it was advised by WayneSherman (I also found the same in VirtualBox help) in order to solve problems with symlinks.
I have one more Shared Folder - "Projects" which is auto mapped by VirtualBox - so permissions there are different - see on screenshot

fabiopesaju

  • Jr. Member
  • **
  • Posts: 99
Re: Fpcupdeluxe
« Reply #2287 on: June 30, 2023, 01:52:32 pm »
Is there some way, maybe by command line... to make the hidden modules appear, in the GUI? like encconv, uniqueinstance... Would you like to add and use only them, how could you do?

WayneSherman

  • Sr. Member
  • ****
  • Posts: 257
Re: Fpcupdeluxe
« Reply #2288 on: June 30, 2023, 06:07:41 pm »
I use VirtualBox on Windows and virtual machine with Linux.
Some time ago I was able to install Lazarus stable into folder inside of virtual machine.
Now I want to use "Shared Folders" feature of VirtualBox and install Lazarus into folder which is shared between Windows and Linux VM...
I'm getting error...

Although it is currently working for my setup (Linux host and Linux guest VM), I found reports that VirtualBox shared folders can have problems when used for building software.  See here:

https://forums.virtualbox.org/viewtopic.php?p=457699&hilit=shared+folder+build+fails#p457699

Quote
...By printing file permissions from within the meson script, I found that when the file is originally created, it is not executable for some period of time (~500ms or so) before eventually becoming executable. Since meson attempts to run the file instantly, it is still in this window when the file is not executable and fails. I do not see this problem on normal (non-shared) folders on the guest.

Quote
Also, Guest Additions shared folders are only designed for file transfer, not anything else. Use a real shared folder through a network if you want all of the available shared folders features an OS can provide.

TRon

  • Hero Member
  • *****
  • Posts: 4377
Re: Fpcupdeluxe
« Reply #2289 on: July 01, 2023, 03:40:26 am »
@WayneSherman:
Thank you for your extensive testing and reports.

@ydd:
Still investigating.

Is it possible to configure FPCDeluxe to not force the multiple jobs for make ? On some setups it is a stretch to begin with let alone on a shared folder of virtualbox that uses its own 'invented' vboxsf filesystem. Same for the number of threads used for the build.
« Last Edit: July 01, 2023, 03:47:26 am by TRon »
Today is tomorrow's yesterday.

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1877
Re: Fpcupdeluxe
« Reply #2290 on: July 01, 2023, 08:02:07 am »
Yes. In Setup+ there is a checkbox to disable jobs.

TRon

  • Hero Member
  • *****
  • Posts: 4377
Re: Fpcupdeluxe
« Reply #2291 on: July 02, 2023, 08:12:57 pm »
Thank you DonAlfredo, I've (finally) managed to find it.

btw testing things with FPCUpDeluxe 2.2.0s
Code: [Select]
fpcupdeluxe: info: FPC Native Installer (BuildModule: FPC): To compile this FPC, we need (required) a compiler with version 3.2.0 or 3.2.2.
fpcupdeluxe: info: FPC Native Installer (BuildModule: FPC): Looking for official FPC bootstrapper with version 3.2.2.
fpcupdeluxe: info: FPC Native Installer (BuildModule: FPC): Could not get compiler list from ftp://ftp.freepascal.org/pub/fpc/dist/3.2.2/bootstrap/. Trying again. Final try.
and then FPCUpDeluxe seems stuck. Stop button active, rest is not. How long should that normally take (stuck for around 20 minutes now).
Today is tomorrow's yesterday.

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1877
Re: Fpcupdeluxe
« Reply #2292 on: July 02, 2023, 08:27:02 pm »
Correct.
Seems that the FPC ftp server with bootstrap-compilers is offline.
In Setup+, check the "Use only fpcup bootstrappers."

TRon

  • Hero Member
  • *****
  • Posts: 4377
Re: Fpcupdeluxe
« Reply #2293 on: July 02, 2023, 08:48:20 pm »
@DonAlfredo:
Thank you for your awesome support. Just my luck then  :D

Ok, first step accomplished. It builds FPC stable. Then things get a bit hairy. I do not believe it has anything to do with virtualbox but originates from somewhere else...

Currently the lower information box informs me that:
Code: [Select]
fpcupdeluxe: info: Lazarus Native Installer (BuildModuleCustom: Lazbuild): Running: make lazbuild.
fpcupdeluxe: Start of compile error summary.
Fatal: (10022) Can't find unit system used by fcllaz
(3104) Compiling fcllaz.pas
fpcupdeluxe: Start of compile error summary.
Fatal: (1018) Compilation aborted
Fatal: (10022) Can't find unit system used by fcllaz
fpcupdeluxe: Start of compile error summary.
Error: /media/hostram/fpcupdeluxe/fpc/bin/x86_64-linux/ppcx64 returned an error exitcode
fpcupdeluxe: Start of compile error summary.
fpcupdeluxe: ERROR: Lazarus Native Installer (BuildModuleCustom: Lazbuild): make returned exit status #512.
fpcupdeluxe: Done !!

and the log:
Code: [Select]
fpcupdeluxe: Executing: /usr/bin/git describe HEAD (working dir: /media/hostram/fpcupdeluxe/lazarus)
fpcupdeluxe: Executing: /usr/bin/git describe --tags --exact-match HEAD (working dir: /media/hostram/fpcupdeluxe/lazarus)
fpcupdeluxe: Executing: /usr/bin/git describe --tags --always HEAD (working dir: /media/hostram/fpcupdeluxe/lazarus)
fpcupdeluxe: Executing: /usr/bin/git describe --contains --all HEAD (working dir: /media/hostram/fpcupdeluxe/lazarus)
fpcupdeluxe: Executing: /usr/bin/git name-rev --name-only HEAD (working dir: /media/hostram/fpcupdeluxe/lazarus)
fpcupdeluxe: info: Lazarus Native Installer (GetModule: Lazarus): No Lazarus patches defined.
fpcupdeluxe: info: Lazarus Native Installer (ConfigModule: Lazarus): Created Lazarus primary config directory: /media/hostram/fpcupdeluxe/config_lazarus.
fpcupdeluxe: info: Lazarus native builder: Detected source version Lazarus: 2.2.6.
fpcupdeluxe: info: Lazarus native builder: Using FPC compiler with version: 3.2.2.
fpcupdeluxe: info: Lazarus Native Installer (BuildModuleCustom: Lazbuild): Running: make lazbuild.
fpcupdeluxe: Executing: /usr/bin/make --directory=/media/hostram/fpcupdeluxe/lazarus FPC=/media/hostram/fpcupdeluxe/fpc/bin/x86_64-linux/fpc.sh PP=/media/hostram/fpcupdeluxe/fpc/bin/x86_64-linux/ppcx64 USESVN2REVISIONINC=0 PREFIX=/media/hostram/fpcupdeluxe/lazarus INSTALL_PREFIX=/media/hostram/fpcupdeluxe/lazarus LAZARUS_INSTALL_DIR=/media/hostram/fpcupdeluxe/lazarus/ FPCDIR=/media/hostram/fpcupdeluxe/fpc/units/x86_64-linux FPCMAKE=/media/hostram/fpcupdeluxe/fpc/bin/x86_64-linux/fpcmake PPUMOVE=/media/hostram/fpcupdeluxe/fpc/bin/x86_64-linux/ppumove OPT=-vw-n-h-l-d-u-t-p-c- lazbuild (working dir: /media/hostram/fpcupdeluxe/lazarus)
/usr/bin/make -C packager/registration
/media/hostram/fpcupdeluxe/fpc/bin/x86_64-linux/fpc.sh -MObjFPC -Scghi -O1 -g -gl -l -vewnhibq -Fu. -FE. -FU../units/x86_64-linux -Cg -Fl/usr/lib/gcc/x86_64-linux-gnu/12 -vw-n-h-l-d-u-t-p-c- -dx86_64 fcllaz.pas
make: *** [Makefile:3800: registration] Error 2
(1002) Target OS: Linux for x86-64
(3104) Compiling fcllaz.pas
Fatal: (10022) Can't find unit system used by fcllaz
Fatal: (1018) Compilation aborted
Error: /media/hostram/fpcupdeluxe/fpc/bin/x86_64-linux/ppcx64 returned an error exitcode
fpcupdeluxe: ERROR: Lazarus Native Installer (BuildModuleCustom: Lazbuild): make returned exit status #512.


ERROR: Fpcupdeluxe fatal error !
Sequencer (UserIDE): Failure running fpcupdeluxe: error executing sequence UserIDE
Sequencer (Lazarus): Failure running fpcupdeluxe: error executing sequence Lazarus
Sequencer (Default): Failure running fpcupdeluxe: error executing sequence Default

And I have currently no idea why building lazbuild (w/sh)ould fail.



Edit: ah, found it. Does FPCUpDeluxe make use of a symbolic link for the units  directory ? The directory the fpc.cfg links to for the unit directories does not exist.
« Last Edit: July 02, 2023, 09:09:42 pm by TRon »
Today is tomorrow's yesterday.

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1877
Re: Fpcupdeluxe
« Reply #2294 on: July 02, 2023, 09:09:05 pm »
I just tried to reproduce your error, but did not succeed. All 100% ok on my system when (vanilla) installing 3.2.2/2.2.6 in /media/hostram/fpcupdeluxe.
So, I have no idea.

 

TinyPortal © 2005-2018