Recent

Author Topic: FPCUPdeluxe hangs on `fpmake`  (Read 3863 times)

yay

  • New Member
  • *
  • Posts: 24
FPCUPdeluxe hangs on `fpmake`
« on: March 12, 2024, 10:45:53 am »
Hello all,

I'm interested in  trying out FreePascal, so for the last few days (not a good sign) I have been trying to install the thing, and it straight up doesn't work. Attempting to install FPC and Lazarus "stable" on Ubuntu 22.04 with FPCUPdeluxe (v2.4.0d build 492) does a bunch of stuff then hangs indefinitely (and, yes, I mean indefinitely, unless there is some planet where compiling should take more than 12 hours) on the following line:

`./fpmake compile --threads=16 --localunitdir=.. --os=linux --cpu=x86_64 -o -Ur -o -Xs -o -O2 -o -n -o -Cg -o -Sg -o -vw-n-h-l-d-u-t-p-c- -o -dx86_64 -o -dRELEASE --compiler=/home/user/Applications/FPCUPdeluxe/stable/fpcsrc/compiler/ppcx64 -bu -o -XX -o -CX`

Now, to my eye, the `ppcx64` at the end of the path there stands out as being blatantly wrong, but what do I know about build systems? Next to nothing, and I'd ideally like for it to remain that way.

Is this really the recommended way of installing FPC/Lazarus? What have I done wrong?

Thank you kindly in advance.

dbannon

  • Hero Member
  • *****
  • Posts: 3015
    • tomboy-ng, a rewrite of the classic Tomboy
Re: FPCUPdeluxe hangs on `fpmake`
« Reply #1 on: March 12, 2024, 12:04:30 pm »
fpupdeluxe is a recommended way to install FPC/Lazarus. There are others.

Your U22.04 has the current compiler, FPC322 available in its repo. If its just a superficial "trying out" even the Lazarus in the repo would be OK. But I'd recommend you update it if and when you are convinced its a good thing.

With your repo installed FPC, you could very easily install Lazarus 3.2 from source, remove the Repo lazarus, download the source, one command. Maybe a few more to set things up.

You can also get deb packages from source forge. So lots of options. https://wiki.freepascal.org/Installing_Lazarus_on_Linux

(And you can bet fpudeluxe will be fixed soon and it will be a good option again.)

Davo

Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

TRon

  • Hero Member
  • *****
  • Posts: 3141
Re: FPCUPdeluxe hangs on `fpmake`
« Reply #2 on: March 12, 2024, 01:03:18 pm »
I'm interested in  trying out FreePascal, so for the last few days (not a good sign) I have been trying to install the thing, and it straight up doesn't work.
Not that it matter much or is of interest to you but "it works for me" tm

Code: [Select]
info: FPC Native Installer (GetModule: FPC): Start checkout/update of FPC sources.
info: FPC Native Installer (GitClient: FPC): Running GIT checkout or update of tag release_3_2_2.
info: Performing SVN/GIT/HG/FTP/URL checkout/download. Please wait, could take some time.
Start of compile error summary.
fatal: No annotated tags can describe '0d122c49534b480be9284c21bd60b53d99904346'.
Executing: /usr/bin/git describe HEAD (working dir: /media/ramdisk/install/fpcsrc)
info: FPC Native Installer (GitClient: FPC): Current commit name: release_3_2_2.
info: FPC Native Installer (GitClient: FPC): Current commit message: requiredversion to 3.2.0 and 3.2.2git-svn-id: tags/release_3_2_2@49371 -.
info: FPC Native Installer (GetModule: FPC): FPC was at revision/hash: FRET_UNKNOWN_REVISION.
info: FPC Native Installer (GetModule: FPC): FPC is now at revision/hash: 0d122c49.
Start of compile error summary.
fatal: No annotated tags can describe '0d122c49534b480be9284c21bd60b53d99904346'.
Executing: /usr/bin/git describe HEAD (working dir: /media/ramdisk/install/fpcsrc)
info: FPC Native Installer (GetModule: FPC): No FPC patches defined.
info: FPC Native Installer (BuildModule: FPC): Going to build FPC.
info: FPC Native Installer (BuildModule: FPC): Detected source version FPC (source): 3.2.2.
info: FPC Native Installer (BuildModule: FPC): To compile this FPC, we need (required) a compiler with version 3.2.0 or 3.2.2.
info: FPC Native Installer (BuildModule: FPC): FPCUP bootstrapper was not available. Found another one. Going to it: /home/scripts/fpc.
info: FPC Native Installer (BuildModule: FPC): To compile this FPC, we will use the (already available) compiler with version : 3.2.2.
info: FPC Native Installer (BuildModuleCustom: FPC): Using FPC bootstrap compiler with version: 3.2.2.
info: FPC Native Installer (BuildModuleCustom: FPC): Running CleanModule once more, due to previous clean failure.
info: FPC Native Installer (CleanModule: FPC): Running make distclean twice.
info: FPC Native Installer (CleanModule: FPC): Removal of stale build files and directories for x86_64-linux. May take a while.
info: FPC Native Installer (BuildModule: FPC): Now building FPC.
info: FPC Native Installer (CreateFPCScript): Creating fpc script:.
info: FPC Native Installer (CreateFPCScript): Created launcher script for FPC:/media/ramdisk/install/fpc/bin/x86_64-linux/fpc.sh.
info: FPC Native Installer (BuildModule: FPC): Found valid fpcmkcfg executable in /media/ramdisk/install/fpc/bin/x86_64-linux.
info: FPC Native Installer (BuildModule: FPC): Creating /media/ramdisk/install/fpc/bin/x86_64-linux/fp.cfg.
info: FPC Native Installer (BuildModule: FPC): Creating /media/ramdisk/install/fpc/bin/x86_64-linux/fp.ini.
info: FPC Native Installer (BuildModule: FPC): Creating /media/ramdisk/install/fpcpkgconfig/fppkg.cfg.
info: FPC Native Installer (BuildModule: FPC): Creating /media/ramdisk/install/packages.fppkg/config/default.
info: FPC Native Installer (BuildModule: FPC): Creating /media/ramdisk/install/fpc/bin/x86_64-linux/fpc.cfg.
info: FPC Native Installer (BuildModule: FPC): Creating/checking default configuration file(s) success.
info: FPC Native Installer (BuildModule: FPC): Going to tune fpc.cfg to our needs.
info: FPC Native Installer (BuildModule: FPC): Removal of stale build files and directories for x86_64-linux. May take a while.
info: Lazarus Native Installer (CheckModule: Lazarus): Checking Lazarus sources with Git Client.
info: Lazarus Native Installer (GetModule: Lazarus): Start checkout/update of Lazarus sources.
info: Lazarus Native Installer (GitClient: Lazarus): Running GIT checkout or update of tag lazarus_3_2.
info: Performing SVN/GIT/HG/FTP/URL checkout/download. Please wait, could take some time.
info: Lazarus Native Installer (GitClient: Lazarus): Current commit name: lazarus_3_2.
info: Lazarus Native Installer (GitClient: Lazarus): Current commit message: LazUtils: Remove WriteLn() from TStringListUTF8Fast.InsertItem. Causes trouble on Windows.(cherry picked from commit 2c81dff5d9d1b945cc15bb7420e343420e89ce63).
info: Lazarus Native Installer (GetModule: Lazarus): Lazarus was at revision/hash: FRET_UNKNOWN_REVISION.
info: Lazarus Native Installer (GetModule: Lazarus): Lazarus is now at revision/hash: 9c6333cd.
info: Lazarus Native Installer (GetModule: Lazarus): No Lazarus patches defined.
info: Lazarus Native Installer (ConfigModule: Lazarus): Created Lazarus primary config directory: /media/ramdisk/install/config_lazarus.
info: Lazarus Native Installer (BuildModuleCustom: Lazbuild): Running: make lazbuild.
info: Lazarus Native Installer (BuildModuleCustom: UserIDE): Now building UserIDE.
info: Lazarus Native Installer (BuildModuleCustom: UserIDE): Running lazbuild to get IDE with user-specified packages.
info: Lazarus Native Installer (BuildModuleCustom: StartLazarus): Running: make starter.
info: Universal Installer (GetModule: suggestedpackages): Getting module suggestedpackages.
info: Universal Installer (GetModule: suggestedpackages): No suggestedpackages patches defined.
info: Universal Installer (ConfigModule: suggestedpackages): Packages were installed.
info: Universal Installer (ConfigModule: suggestedpackages): Going to rebuild Lazarus.
info: Universal Installer (ConfigModule: suggestedpackages): Running lazbuild to get IDE with user-specified packages.
info: Universal Installer (BuildModule: suggestedpackages): Going to build suggestedpackages running all InstallExecute commands in:
Name=suggestedpackages,"Description=""Selection of various IDE packages that can be handy when developing""",Enabled=1,AddPackage1=$(lazarusdir)/components/tdbf/dbflaz.lpk,AddPackage2=$(lazarusdir)/components/fpcunit/ide/fpcunitide.lpk,AddPackage3=$(lazarusdir)/components/daemon/lazdaemon.lpk,AddPackage4=$(lazarusdir)/components/leakview/leakview.lpk,AddPackage5=$(lazarusdir)/components/tachart/tachartlazaruspkg.lpk,AddPackage6=$(lazarusdir)/components/codetools/ide/cody.lpk,AddPackage7=$(lazarusdir)/components/sdf/sdflaz.lpk,AddPackage8=$(lazarusdir)/components/projecttemplates/projtemplates.lpk,AddPackage9=$(lazarusdir)/components/sqldb/sqldblaz.lpk,AddPackage10=$(lazarusdir)/components/memds/memdslaz.lpk,AddPackage12=$(lazarusdir)/components/jcf2/IdePlugin/lazarus/jcfidelazarus.lpk,AddPackage13=$(lazarusdir)/components/chmhelp/packages/idehelp/chmhelppkg.lpk,AddPackage14=$(lazarusdir)/components/instantfpc/instantfpclaz.lpk,AddPackage15=$(lazarusdir)/components/externhelp/externhelp.lpk,AddPackage16=$(lazarusdir)/components/datetimectrls/datetimectrls.lpk,AddPackage17=$(lazarusdir)/components/datetimectrls/design/datetimectrlsdsgn.lpk,AddPackage18=$(lazarusdir)/components/lazcontrols/design/lazcontroldsgn.lpk,Category=miscellaneous.
info: Universal Installer (GetModule: fpdebug): Getting module fpdebug.
info: Universal Installer (GetModule: fpdebug): No fpdebug patches defined.
info: Universal Installer (ConfigModule: fpdebug): Packages were installed.
info: Universal Installer (ConfigModule: fpdebug): Going to rebuild Lazarus.
info: Universal Installer (ConfigModule: fpdebug): Running lazbuild to get IDE with user-specified packages.
info: Universal Installer (BuildModule: fpdebug): Going to build fpdebug running all InstallExecute commands in:
Name=fpdebug,"Description=""FpDebug is a debugger written in Pascal for Pascal.""",Enabled=1,AddPackage=$(lazarusdir)/components/lazdebuggers/lazdebuggerfp/lazdebuggerfp.lpk,Category=miscellaneous.
info: Lazarus Native Installer (BuildModuleCustom: InstallLazarus): Skipping install step: Lazarus source and install locations are the same.
fpcupdeluxe: Done !!

Quote
Attempting to install FPC and Lazarus "stable" on Ubuntu 22.04 with FPCUPdeluxe (v2.4.0d build 492) does a bunch of stuff then hangs indefinitely (and, yes, I mean indefinitely, unless there is some planet where compiling should take more than 12 hours) on the following line:
Debian bookworm here and no it does not take 12 hours, just a couple of minutes.

Quote
`./fpmake compile --threads=16 --localunitdir=.. --os=linux --cpu=x86_64 -o -Ur -o -Xs -o -O2 -o -n -o -Cg -o -Sg -o -vw-n-h-l-d-u-t-p-c- -o -dx86_64 -o -dRELEASE --compiler=/home/user/Applications/FPCUPdeluxe/stable/fpcsrc/compiler/ppcx64 -bu -o -XX -o -CX`
I got the same line:
Quote
./fpmake compile --threads=4 --localunitdir=.. --os=linux --cpu=x86_64 -o -Ur -o -Xs -o -O2 -o -n -o -Cg -o -Sg -o -vw-n-h-l-d-u-t-p-c- -o -dx86_64 -o -dRELEASE --compiler=/media/ramdisk/install/fpcsrc/compiler/ppcx64 -bu -o -XX -o -CX
Since you made it clear that you prefer to not want to know anything about the buildsystem there is no use explaining.

Quote
Now, to my eye, the `ppcx64` at the end of the path there stands out as being blatantly wrong, but what do I know about build systems? Next to nothing, and I'd ideally like for it to remain that way.
In that case it is not recommended to use fpcupdeluxe, rather use the prebuild package(s) instead.

Quote
What have I done wrong?
Not enough memory/diskspace assigned to your VM ?
All software is open source (as long as you can read assembler)

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1756
Re: FPCUPdeluxe hangs on `fpmake`
« Reply #3 on: March 12, 2024, 02:09:34 pm »
Quote
Now, to my eye, the `ppcx64` at the end of the path there stands out as being blatantly wrong
Would be interesting to know why this is supposed to be wrong.

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11731
  • FPC developer.
Re: FPCUPdeluxe hangs on `fpmake`
« Reply #4 on: March 12, 2024, 02:32:25 pm »
Does fpcdeluxe check development essentials ?

Afaik fpmake is the first dynamically linked binary in the process, so missing glibc related files (that are then silently omitted) might cause problems?

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1756
Re: FPCUPdeluxe hangs on `fpmake`
« Reply #5 on: March 12, 2024, 02:46:06 pm »
Quote
Does fpcdeluxe check development essentials ?
Some. But only to my best of knowledge.
You might give some advice about this. Thanks.

yay

  • New Member
  • *
  • Posts: 24
Re: FPCUPdeluxe hangs on `fpmake`
« Reply #6 on: March 12, 2024, 03:25:49 pm »
Quote
Now, to my eye, the `ppcx64` at the end of the path there stands out as being blatantly wrong
Would be interesting to know why this is supposed to be wrong.

PPC to me means "PowerPC". But again, I know nothing about build systems.

Despite my admittedly combative initial tone, I'm still interested in FreePascal, and curious to know why this install process didn't work. Toolchain management is a beautiful thing, hence why I was excited to see this kind of tool available, especially as my interests in Pascal lie strongly in the embedded domain (Arduino, ESP32, RISC V, &c.), which I will most likely start another topic for.

For now, I've installed the .deb files as per dbannon's suggestion and am playing around in Lazarus now. It's interesting.

In addition to getting to the bottom of this specific issue, I would appreciate any nudges toward getting things working for Arduino, if indeed that is possible.

Thank you all so far for your time and attention.

TRon

  • Hero Member
  • *****
  • Posts: 3141
Re: FPCUPdeluxe hangs on `fpmake`
« Reply #7 on: March 12, 2024, 03:29:55 pm »
Does fpcdeluxe check development essentials ?
Aren't the mentioned prerequisites not sufficient enough to have that covered ?
All software is open source (as long as you can read assembler)

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11731
  • FPC developer.
Re: FPCUPdeluxe hangs on `fpmake`
« Reply #8 on: March 12, 2024, 03:57:12 pm »
Does fpcdeluxe check development essentials ?
Aren't the mentioned prerequisites not sufficient enough to have that covered ?

Build-essentials meta package is enough I think. That afaik includes glibc-devel. But does fpcdeluxe check these requirements, or are they only requirements to start fpcdeluxe (rather than support building with it) ?

Thaddy

  • Hero Member
  • *****
  • Posts: 15525
  • Censorship about opinions does not belong here.
Re: FPCUPdeluxe hangs on `fpmake`
« Reply #9 on: March 12, 2024, 04:28:31 pm »
build-essentials are afaik in every FPC distribution. It contains things like gnu make, external linker. etc, etc.
It may be not literally in the distribution but e.g. on linux it is installed as a dependency.
« Last Edit: March 12, 2024, 04:31:40 pm by Thaddy »
My great hero has found the key to the highway. Rest in peace John Mayall.
Playing: "Broken Wings" in your honour. As well as taking out some mouth organs.

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11731
  • FPC developer.
Re: FPCUPdeluxe hangs on `fpmake`
« Reply #10 on: March 12, 2024, 04:54:11 pm »
The OP doesn't state that he installed a standalone FPC before attempting to run fpcdeluxe.

So the question is did he install build-essentials ?

yay

  • New Member
  • *
  • Posts: 24
Re: FPCUPdeluxe hangs on `fpmake`
« Reply #11 on: March 12, 2024, 05:18:35 pm »
The OP doesn't state that he installed a standalone FPC before attempting to run fpcdeluxe.

I didn't. Though now that I do have 3.2.2 installed via the .deb as stated above, nothing has changed in FPCUPdeluxe.

So the question is did he install build-essentials ?

Yes, many, many moons ago.

Also, for posterity, all options and combinations (of the many that I have tried by now out of curiosity) in FPCUPdeluxe stall at the exact same place, i.e. invocation of `./fpmake compile`.
« Last Edit: March 12, 2024, 05:20:44 pm by this-sucks »

yay

  • New Member
  • *
  • Posts: 24
Re: FPCUPdeluxe hangs on `fpmake`
« Reply #12 on: March 12, 2024, 05:23:58 pm »
Perhaps it is worth mentioning that I am using FPCUPdeluxe via the binary available at https://github.com/LongDirtyAnimAlf/fpcupdeluxe/releases/tag/v2.4.0d, in case there is some extra instruction required that I somehow keep missing.

TRon

  • Hero Member
  • *****
  • Posts: 3141
Re: FPCUPdeluxe hangs on `fpmake`
« Reply #13 on: March 12, 2024, 05:28:50 pm »
Also, for posterity, all options and combinations (of the many that I have tried by now out of curiosity) in FPCUPdeluxe stall at the exact same place, i.e. invocation of `./fpmake compile`.
If you are truly running on a normal system (not VM, not building on/at a remote drive etc) then you could try (not even sure if you can indicate it with FPCUpDeluxe) to run in single thread instead of the 16 it is now, and only for testing purpose (the normal buildsystem did had issues with that in the past).

And to make sure are you absolutely positively certain that you have selected stable/stable ?  (other combinations not being stable might fail and for whatever reason though a complete hang is rare in my experience).

Note that in case FPCUpDeluxe was ever used before and setting were changed that it might be possible that new/fresh used FPCUpdeluxe pick up on older settings so try and make certain that the settings are configured to use the default options because there are a couple of things you can configure in the setup+ that might influence things (for the worse).

Perhaps it is worth mentioning that I am using FPCUPdeluxe via the binary available at https://github.com/LongDirtyAnimAlf/fpcupdeluxe/releases/tag/v2.4.0d, in case there is some extra instruction required that I somehow keep missing.
Same binary here.

Select the one that matches your system, select a proper destination to install to, select stable, stable from the lists at the left and press the install FPC and Lazarus button. That is normally enough to get things going.

That is assuming you installed all the mentioned prerequisites (and as stated you did).
« Last Edit: March 12, 2024, 05:34:39 pm by TRon »
All software is open source (as long as you can read assembler)

yay

  • New Member
  • *
  • Posts: 24
Re: FPCUPdeluxe hangs on `fpmake`
« Reply #14 on: March 12, 2024, 05:42:31 pm »
Yes, I am absolutely, positively certain that I have selected stable/stable, though also making sure to select literally anything else makes no difference.

I've tried nuking all files created by FPCUPdeluxe (at least all that I'm aware of), which also seems not to make any difference.

Any other suggestions as to what is fundamentally causing this problem are welcome. Only thing I won't do is nuke the whole system, as this is my production machine and I need it to eat.

 

TinyPortal © 2005-2018