Recent

Author Topic: Fpcupdeluxe  (Read 1018231 times)

TRon

  • Hero Member
  • *****
  • Posts: 4377
Re: Fpcupdeluxe
« Reply #2295 on: July 02, 2023, 09:10:16 pm »
post crossed.
Quote
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.
and fwiw that is a VirtualBox issue and I have not set/configured that option yet.
« Last Edit: July 02, 2023, 09:12:56 pm by TRon »
Today is tomorrow's yesterday.

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1877
Re: Fpcupdeluxe
« Reply #2296 on: July 02, 2023, 09:15:32 pm »
Yes, fpcupdeluxe creates a symlink to the units. And I guess this is causing the issue.

TRon

  • Hero Member
  • *****
  • Posts: 4377
Re: Fpcupdeluxe
« Reply #2297 on: July 03, 2023, 12:27:31 am »
And also the second part (building Lazarus) succeeded (see attached picture and log).

As already stated:
The issues as experienced have nothing to do with FPCUpDeluxe but everything with how to handle things with care when it comes to using a 3th party filesystem implementation and how to configure things properly.

For my experiment I used:
  • Oracle's VirtualBox 7.0.8 r156879 ( Qt5.15.8 )
  • VirtualBox guest additions iso named VBoxGuestAdditions_7.0.9-157499.iso (*)

And, I performed the following steps:
  • created a new VM with an added shared (machine) folder using my host ramdisk, using /media/hostram as mountpoint for the guest, and checkmarked automount (read-only off)
  • installed a fresh new OS (Linux x86_64, Debian bookworm) in the VM (minimal openbox GUI)
  • after intial setup of the guest OS, I closed it down, same as VirtualBox itself and used VBoxManage to add support for symlinks for the shared name (VBoxManage setextradata "Name of VM" VBoxInternal2/SharedFoldersEnableSymlinksCreate/<name of share> 1)
     for references see
     1,
     2,
     3,
     4,
     5
  • started VirtualBox again
  • started the VM
  • rebuild the kernel for the VirtualBox guest additions (*)
  • added myself (normal user) as vboxsf user
  • downloaded FPCUpDeluxe to the share

then, I ran FPCDeluxe
  • changed install path in order to use the shared directory
  • in setup+, removed the use make jobs option
  • press the install/update FPC+Lazarus button
  • got some errors (see 1)
  • installed required packages (~200 MB) in guest OS and retried pressing the button
  • got another error (see 2)
  • installed missing git package (~ 50 MB) in guest OS and retried pressing the button
  • got another error (see 3)
  • in setup+, added the use only fpcup bootstrap option
  • retried pressing the button
  • success

(*) For my setup I needed to use newer guest additions then supplied with VirtualBox as otherwise my guest OS screen isn't visible (bug by VirtualBox).

error 1: FPCUpDeluxe requires some packages that my guest OS apparantly did not had installed
so followed the instructions: sudo apt install make binutils build-essential gdb subversion zip unzip libx11-dev libgtk2.0-dev libgdk-pixbuf2.0-dev libcairo2-dev libpango1.0-dev

error 2:
fpcupdeluxe: WARNING: FPC Native Installer (GitClient: FPC): git is needed, but cannot be found on the system !!.
fpcupdeluxe: ERROR: FPC Native Installer (GetModule: FPC): Checkout/update of FPC sources failure.

error 3:
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.
Today is tomorrow's yesterday.

WayneSherman

  • Sr. Member
  • ****
  • Posts: 257
Re: Fpcupdeluxe
« Reply #2298 on: July 03, 2023, 05:06:02 am »
For my experiment I used:
  • Oracle's VirtualBox 7.0.8 r156879 ( Qt5.15.8 )
  • VirtualBox guest additions iso named VBoxGuestAdditions_7.0.9-157499.iso (*)
...installed a fresh new OS (Linux x86_64, Debian bookworm) in the VM (minimal openbox GUI)

What is your host OS?  The errors when building software on Virtualbox shared drives were using Windows as the host OS.

TRon

  • Hero Member
  • *****
  • Posts: 4377
Re: Fpcupdeluxe
« Reply #2299 on: July 03, 2023, 03:27:34 pm »
What is your host OS?  The errors when building software on Virtualbox shared drives were using Windows as the host OS.
Ah yes, true. Linux x86_64 Debian bookworm as well for the host.

Unfortunately I can't test with Windows myself. But do note that similar issues as described by TS have been reported (see also references, some mentions are windows related)  and have been solved (or are still in limbo on the VB issues list). To make the point come across, most if not all similar issues are VirtualBox related which for me was the whole point of the exercise. If you note my log closely you can see that not all issues are solved (most probably I even created others).

As I've already stated, if you must then don't use the shared folder for the build part(s). It can easily be circumvented especially when you have enough memory to spare.

edit:
btw some links with regards to git and issues on shared VirtualBox folders
http://johnbokma.com/blog/2019/06/16/git-permission-issue-with-virtualbox-shared-folders.html
https://stackoverflow.com/questions/43067801/git-status-does-not-work-properly-with-virtualbox-shared-folders
https://stackoverflow.com/questions/54410355/git-status-between-windows-and-linux-does-not-agree?noredirect=1&lq=1
« Last Edit: July 04, 2023, 05:32:52 am by TRon »
Today is tomorrow's yesterday.

Peter H

  • Sr. Member
  • ****
  • Posts: 272
Re: Fpcupdeluxe
« Reply #2300 on: July 16, 2023, 09:11:08 am »
I try to update FPC trunk+Lazarus trunk on Win64.
I get the same compile errors since 3 days now.
This is a little bit unusual, usually such glitches are resolved within 1 day.
I am unsure if this is a problem with fpcupdeluxe or a problem with the source code, hope you can help.

I have also tried to install totally fresh into an empty directory; this fails also.

Code: [Select]
16.07.2023 07:34:16: fpcupdeluxe: V474 (20230710) started.
FPCUPdeluxe V2.2.0t for x86_64-win64 running on Win64-10.0.22621
Build with: FPC 3.2.2 on Win11 x86_64

Here is a copy of the messages, beginning with the first error:

Code: [Select]
1008) 1965 lines compiled, 0.7 sec
(3104) Compiling tadbsource.pas
(3104) Compiling codyutils.pas
(3104) Compiling addassignmethoddlg.pas
(3104) Compiling codyctrls.pas
(3104) Compiling dbginforeader.pas
C:\fpc\lazarus\components\leakview\dbginforeader.pas(876,27) Error: (3069) Call by var for arg no. 2 has to match exactly: Got "ShortString" expected "AnsiString"
(3104) Compiling sqlstringspropertyeditordlg.pas
(3104) Compiling opkman_const.pas
(3104) Compiling opkman_mainfrm.pas
(1008) 982 lines compiled, 1.0 sec
C:\fpc\lazarus\components\leakview\dbginforeader.pas(923) Fatal: (10026) There were 1 errors compiling module, stopping
Fatal: (1018) Compilation aborted
Error: C:\fpc\fpc\bin\x86_64-win64\ppcx64.exe returned an error exitcode
(3104) Compiling taseries.pas
(3104) Compiling taradialseries.pas
(3104) Compiling codyfrm.pas
(3104) Compiling codyregistration.pas
(3104) Compiling newidewnddlg.pas
(3104) Compiling codyopts.pas
(3104) Compiling addwithblockdlg.pas
(3104) Compiling codyfindoverloads.pas
(3104) Compiling codynodeinfodlg.pas
(3104) Compiling declarevardlg.pas
Error: (lazarus) Compile package leakview 1.0: stopped with exit code 1
(3104) Compiling opkman_downloader.pas
(3104) Compiling opkman_common.pas
(3104) Compiling opkman_options.pas
(3104) Compiling opkman_serializablepackages.pas
(3104) Compiling generatesqldlg.pp
(3104) Compiling gdbmiserverdebugger.pas
(3104) Compiling sshgdbmidebugger.pas
(1008) 22323 lines compiled, 2.1 sec
(1023) 11 note(s) issued
Error: (lazarus) Compile package OnlinePackageManager 1.0.1.2: terminated
Error: (lazarus) Compile package SQLDBLaz 1.0.2: terminated
Error: (lazarus) Compile package TAChartLazarusPkg 1.0: terminated
Error: (lazarus) Compile package LazDebuggerGdbmi 0.1: terminated
Error: (lazarus) Compile package SynEditDsgn 1.0: terminated
(3104) Compiling codyidentifiersdlg.pas
Error: (lazarus) Compile package Cody 1.1: terminated
Error: (lazarus) [TLazPackageGraph.CompileRequiredPackages] "Exit code 1"
Error: (lazarus) Building IDE: Compile AutoInstall Packages failed.
C:\fpc\fpcbootstrap\make.exe: *** [useride] Error 2
fpcupdeluxe: ERROR: Lazarus Native Installer (BuildModuleCustom: UserIDE): make.exe returned exit status #2.


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

Installing the previous version of Lazarus+FPC trunk from about a week ago works. I must however reboot to do this, because after this failed installation there remains a link which triggers a "permission denied" error. This can be resolved by re-booting.
« Last Edit: July 16, 2023, 10:43:18 am by Peter H »

paweld

  • Hero Member
  • *****
  • Posts: 1639
Re: Fpcupdeluxe
« Reply #2301 on: July 16, 2023, 02:41:05 pm »
Best regards / Pozdrawiam
paweld

Peter H

  • Sr. Member
  • ****
  • Posts: 272
Re: Fpcupdeluxe
« Reply #2302 on: July 16, 2023, 03:16:22 pm »
I am not absolutely sure, if this is a problem of FPC trunk, of Lazarus trunk or a problem of FPCupdeluxe.

This because it is since three days always the same compiling problem and I see no reported issue in GitLab.

I mean some other 100 people which are much more skilled should see this too ... ??
At least the compiler developers or Lazarus developers should see it.
When it says "pipeline passed" in Gitlab, doesnt this mean, it should compile?

Also I am not sure if it is a compiler bug or a bug in Lazarus sources. Therefore I did not report it, because I do not know where I should report it.

Recently I had a build-problem with FPCupdeluxe and it turned out, this was because a PATH Environment variable was pointing to the bin directory.
This is not the case now, but could there be other reasons?
« Last Edit: July 16, 2023, 03:28:43 pm by Peter H »

paweld

  • Hero Member
  • *****
  • Posts: 1639
Re: Fpcupdeluxe
« Reply #2303 on: July 16, 2023, 03:42:53 pm »
The error is in Lazarus, specifically the 'leakview' component (error message:   

C:\fpc\lazarus\components\leakview\dbginforeader.pas(876,27) Error: (3069) Call by var for arg no. 2 has to match exactly: Got "ShortString" expected "AnsiString" 

) - was caused by this change in FPC: https://gitlab.com/freepascal.org/fpc/source/-/commit/2339db3b0096e9292f055c60a16c1b51225c6c9d
Best regards / Pozdrawiam
paweld

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12411
  • Debugger - SynEdit - and more
    • wiki
Re: Fpcupdeluxe
« Reply #2304 on: July 16, 2023, 05:32:50 pm »
The error is in Lazarus, specifically the 'leakview' component (error message:   

C:\fpc\lazarus\components\leakview\dbginforeader.pas(876,27) Error: (3069) Call by var for arg no. 2 has to match exactly: Got "ShortString" expected "AnsiString" 

) - was caused by this change in FPC: https://gitlab.com/freepascal.org/fpc/source/-/commit/2339db3b0096e9292f055c60a16c1b51225c6c9d

ok, then it needs to be fixed in Lazarus => is there a bug report?

paweld

  • Hero Member
  • *****
  • Posts: 1639
Re: Fpcupdeluxe
« Reply #2305 on: July 16, 2023, 08:11:48 pm »
@Martin: I didn't report because I don't use fpc trunk, but nevertheless I test-installed and it turns out it's ok now - about an hour ago @MvC fixed the problem in FPC
Best regards / Pozdrawiam
paweld

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12411
  • Debugger - SynEdit - and more
    • wiki
Re: Fpcupdeluxe
« Reply #2306 on: July 27, 2023, 02:54:15 pm »
It says in the hint for the url "double click to edit" => unfortunately that does not work (win vista).

I need to change the url to a path => because vista can't connect anymore. (but I have a remote folder with an up to date clone).

Command line git can do that, and update. But if I checkout, and then try to have fpcupdeluxe build it I get
Code: Text  [Select][+][-]
  1. fpcupdeluxe: info: FPC Native Installer (CleanModule: FPC): Removal of stale build files and directories for i386-win32. May take a while.
  2. fpcupdeluxe: info: FPC Native Installer (CheckModule: FPC): Checking FPC sources with Git Client.
  3. fpcupdeluxe: Executing: C:\Program Files\Git\cmd\git.exe status --porcelain (working dir: C:\fpc\fixes3_2\fpcsrc)
  4. fpcupdeluxe: Executing: C:\Program Files\Git\cmd\git.exe config remote.origin.url (working dir: C:\fpc\fixes3_2\fpcsrc)
  5. fpcupdeluxe: ERROR: FPC Native Installer (CheckModule: FPC): sources error (URL mismatch).
  6. fpcupdeluxe: ERROR: FPC Native Installer (CheckModule: FPC): Desired URL=https://gitlab.com/freepascal.org/fpc/source/.
  7. fpcupdeluxe: ERROR: FPC Native Installer (CheckModule: FPC): Source URL=.
  8.  
  9.  
  10. ERROR: Fpcupdeluxe fatal error !
  11. Sequencer (FPC): Failure running fpcupdeluxe: error executing sequence FPC
  12. Sequencer (Only): Failure running fpcupdeluxe: error executing sequence Only

I don't know why it says "Source URL=."

I did add a new origin "pc" and removed "origin"
Code: Text  [Select][+][-]
  1. git remote -v
  2. pc      p:fpc_source (fetch)
  3. pc      p:fpc_source (push)
  4.  
  5.  
« Last Edit: July 27, 2023, 02:56:05 pm by Martin_fr »

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12411
  • Debugger - SynEdit - and more
    • wiki
Re: Fpcupdeluxe
« Reply #2307 on: July 27, 2023, 02:57:33 pm »
If I rename it to origin then I get
Code: Text  [Select][+][-]
  1. fpcupdeluxe: ERROR: FPC Native Installer (CheckModule: FPC): Source URL=p:fpc_source/.
  2.  

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 12411
  • Debugger - SynEdit - and more
    • wiki
Re: Fpcupdeluxe
« Reply #2308 on: July 27, 2023, 02:58:07 pm »
In there a way I can directly put that in the config file?

geraldholdsworth

  • Sr. Member
  • ****
  • Posts: 288
Re: Fpcupdeluxe
« Reply #2309 on: August 13, 2023, 05:13:02 pm »
Hi all,

Having used this very successfully on my retiring MacBook Pro to install Lazarus with these cross compilers:
macOS 32bit
macOS 64bit (native)
macOS ARM
Linux 32bit
Linux 64bit
Linux 32bit ARM
Linux 64bit ARM
Windows 32bit
Windows 64bit

I tried the same thing on my brand new MacBook Pro. This is a 2023 Pro running macOS Ventura (13.5). I managed to get the native compiler installed, but only these cross compilers:
Linux 64bit
Windows 64bit

macOS 64bit failed, but reported it was installed.

This is using FPCUpDeluxe 2.4.0a (the latest version as of today 13/08/2023), without changing any settings and using the "Stable" versions of FPC and Lazarus. I have tried some other combinations, including the versions of FPC and Lazarus I have on my outgoing laptop, but all with the same result.

I would like to get these installed on my new laptop, along with a Windows ARM cross compiler, but I can't see any way to achieve this. Anyone got any ideas?

My alternative would be to use my Mac mini (2014, so still running an Intel macOS - Monterey) whenever I wanted to produce multiple builds and, hopefully, I'm able to just copy across the install from my laptop to my Mini.

 

TinyPortal © 2005-2018