Recent

Author Topic: Fpcupdeluxe  (Read 908022 times)

dbannon

  • Hero Member
  • *****
  • Posts: 3305
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Fpcupdeluxe
« Reply #2550 on: March 04, 2025, 08:13:23 am »
Hello,
I am using the Lazarus cross compiler to compile from Windows 64 to ARM Linux. I have successfully used FPC stable and Lazarus stable to make a working installation. Problem is that my prog doesn't work properly on a recent tiny core rpi linux installation.

Petex, silly question time. Your application that you cross compiled to Arm, is it a GUI app ?  If it is, my guess is you will need a lot (and I mean a lot!) of extra packages installed in Tiny Core to get it running. Tiny Core is tiny because it uses a very basic GUI, no gtk or Qt tool kits.  If, on the other hand, its a command line app, yep, declare my question silly !
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

ydd

  • Jr. Member
  • **
  • Posts: 82
Re: Fpcupdeluxe
« Reply #2551 on: March 12, 2025, 06:39:15 pm »
tried fpcupdeluxe-x86_64-win64, latest ver: v2.4.0f
for stable FPC version
installed w/o errors
tried to compile project, which has dependency for LazUtils package, got error during build:
Quote
lazutf8.pas(228,3) Error: Cannot find Translations used by LazUTF8,
incompatible ppu=C:\Lazarus\250312_Stable\lazarus\components\lazutils\lib\x86_64-win64\translations.ppu, package LazUtils

Installed trunk version. Same error:
Quote
lazutf8.pas(231,3) Fatal: Cannot find Translations used by LazUTF8, incompatible ppu=C:\Lazarus\250312_Trunk\lazarus\components\lazutils\lib\x86_64-win64\translations.ppu, package LazUtils

TRon

  • Hero Member
  • *****
  • Posts: 4296
Re: Fpcupdeluxe
« Reply #2552 on: March 12, 2025, 08:45:14 pm »
for stable FPC version
... and what does that mean exactly ? There are many stable versions of FPC all of which can be build by FPCUpDeluxe.
nevermind, it is FPC 3.2.2

Quote
tried to compile project, which has dependency for LazUtils package, got error during build:
Above wrote for stable FPC version. Did that installation also included Lazarus or did you only installed FPC using FPCUpDeluxe (and as a result used an already existing installation for Lazarus) ? Which version of Lazarus ?

And yes I can guess from the message posted but that is it /a guess/ not a certainty.
« Last Edit: March 13, 2025, 01:42:42 am by TRon »
Today is tomorrow's yesterday.

ydd

  • Jr. Member
  • **
  • Posts: 82
Re: Fpcupdeluxe
« Reply #2553 on: March 13, 2025, 03:30:03 am »
Above wrote for stable FPC version. Did that installation also included Lazarus or did you only installed FPC using FPCUpDeluxe (and as a result used an already existing installation for Lazarus) ? Which version of Lazarus ?

I installed into new folder using FPCUpDeluxe, selected Stable/Stable on Basic tab, pressed button to install FPC + Lazarus
after installation FPCUpDeluxe created desktop link, which I use to start Lazarus. Error as I described.

Made same but with Trunk/Trunk - also into new folder - got same error.

I installed same way Lazarus many times, and they are still working wo errors.

TRon

  • Hero Member
  • *****
  • Posts: 4296
Re: Fpcupdeluxe
« Reply #2554 on: March 13, 2025, 03:46:46 am »
Made same but with Trunk/Trunk - also into new folder - got same error.
Could you try with FPC stable but instead with Lazarus 3.8 (or perhaps even 4.0 RC1 or 4.0 RC2).

FPCUpDeluxe v2.4.0f seem to be using 3.6 for "stable" Lazarus.

The posted error states that the ppu is incompatible, which usually suggest that there was some residue left from a previous installation (or at least a Lazarus installation that was compiled with another version of the FPC compiler or that lazutils was at one time build for another platform and the translations unit somehow ended up at the wrong location).

As an alternative you could try rebuild the Lazarus IDE and see if that is able to help out.

Always install each (individual) Lazarus + FPC installation into a separate folder when using FPCUpDeluxe. In case having multiple installations of FPC on the machine make sure that Lazarus picks up on the correct one.
Today is tomorrow's yesterday.

ydd

  • Jr. Member
  • **
  • Posts: 82
Re: Fpcupdeluxe
« Reply #2555 on: March 13, 2025, 10:53:33 am »
I was able to solve problem - removed all search paths from project. Strange that other installations did not have such problem on same project.

Could you try with FPC stable but instead with Lazarus 3.8 (or perhaps even 4.0 RC1 or 4.0 RC2).

I do not see such option to select - I added screenshot with possible options.

As an alternative you could try rebuild the Lazarus IDE and see if that is able to help out.

I tried this - did not help

Always install each (individual) Lazarus + FPC installation into a separate folder when using FPCUpDeluxe. In case having multiple installations of FPC on the machine make sure that Lazarus picks up on the correct one.

I'm doing so

TRon

  • Hero Member
  • *****
  • Posts: 4296
Re: Fpcupdeluxe
« Reply #2556 on: March 14, 2025, 11:54:47 am »
@ydd:
Thank you for reporting back.

I was able to solve problem - removed all search paths from project. Strange that other installations did not have such problem on same project.
That is indeed a situation I can't remember having seen before, at least not with FPCUpDeluxe. I'll keep it in mind so thank you for reporting on that.

I do not see such option to select - I added screenshot with possible options.
The RC versions of Lazarus can be added manually to the basic lazarus installation tab from the tags tab. From that tab it is possible to manually select "tags" to be added to the installation list.

You are correct on the 3.8 version, as it is not specifically listed. That requires either a manual edit of one of the FPCUpDeluxe ini files or by setting  the tag manually in the setup+ dialog.

Instead the 3.0 fixes should correspond to the latest Lazarus release (3.8) but with fixes on top.


I tried this - did not help
Ok, thank you for trying and reporting. The 'fix' you applied is reason this does not work as the used path would still be wrong, even for/on a rebuild so in hindsight expected behaviour.

I'm doing so
Unable to tell but have no reason to doubt that. I mention it to just make sure the install path is properly set (and not install into a previously used install path). I personally forget to do that when using FPCUpDeluxe simply because I overlook it 9 out of 10 times (and I am therefor assuming others might (sometimes) forget to do so as well).
Today is tomorrow's yesterday.

ydd

  • Jr. Member
  • **
  • Posts: 82
Re: Fpcupdeluxe
« Reply #2557 on: March 22, 2025, 12:27:24 am »
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. Such way I can share same Lazarus installation between virtual machines. See settings for Shared Folder in screenshot.
I'm getting error:

I just tried to install Lazarus into VirtualBox "Shared Folder" - and it worked! (fpcupdeluxe-x86_64-linux v2.4.0f)
in past I had problems with this

such way I can install & test different Lazarus versions and do not grow my VM
also I think I can share the same installation between many VMs (haven't tested yet)

TRon

  • Hero Member
  • *****
  • Posts: 4296
Re: Fpcupdeluxe
« Reply #2558 on: March 22, 2025, 12:41:04 am »
I just tried to install Lazarus into VirtualBox "Shared Folder" - and it worked! (fpcupdeluxe-x86_64-linux v2.4.0f)
Just be aware that shared folders uses VBox's own written (file-system) driver and as such is not supported. In case of issues please report to Virtual Box forums and not FPC/Lazarus.
Today is tomorrow's yesterday.

Hartmut

  • Hero Member
  • *****
  • Posts: 905
Re: Fpcupdeluxe
« Reply #2559 on: March 26, 2025, 06:24:37 pm »
This is a bug report: fpcupdeluxe crashed during install of Lazarus 2.0.6 and FCP 3.0.4:

I tried to install Lazarus 2.0.6 and FCP 3.0.4 in a new blank folder. After a short time fpcupdeluxe crashed with:

Code: Text  [Select][+][-]
  1. ...
  2. /opt/lazarus_206n/fpcsrc/compiler/ppc1 -Ur -Ur -Xs -O2 -n -Fi../inc -Fi../x86_64 -Fi../unix -Fix86_64 -FE. -FU/opt/lazarus_206n/fpcsrc/rtl/units/x86_64-linux -Cg -Sg -vw-n-h-l-d-u-t-p-c- -dx86_64 -dRELEASE -Us -Sg system.pp
  3. make[7]: *** [Makefile:3489: system.ppu] Speicherzugriffsfehler  // "Speicherzugriffsfehler" means "memory access error"
  4. make[6]: *** [Makefile:1928: linux_all] Fehler 2                 // "Fehler" means "error"
  5. make[5]: *** [Makefile:4077: rtl] Fehler 2
  6. make[4]: *** [Makefile:3970: next] Fehler 2
  7. make[3]: *** [Makefile:3979: ppc2] Fehler 2
  8. make[2]: *** [Makefile:3987: cycle] Fehler 2
  9. make[1]: *** [Makefile:2780: compiler_cycle] Fehler 2
  10. make: *** [Makefile:2812: build-stamp.x86_64-linux] Fehler 2
  11. ...
  12. fpcupdeluxe: ERROR: FPC Native Installer (BuildModule: FPC): Error running /usr/bin/make for FPC failed with exit code 512
  13. . Details: .
  14. ERROR: Fpcupdeluxe fatal error !
  15. Sequencer (FPC): Failure running fpcupdeluxe: error executing sequence FPC
  16. Sequencer (Default): Failure running fpcupdeluxe: error executing sequence Default

More Details:
fpcupdeluxe version: 2.4.0f "fpcupdeluxe-x86_64-linux"
My OS is Linux Ubuntu 22.04 64 bit.
My computer has 8 GB Memory.

I attached the complete outputs of the black and the white windows of fpcupdeluxe.
Can please somebody help?

Fred vS

  • Hero Member
  • *****
  • Posts: 3531
    • StrumPract is the musicians best friend
Re: Fpcupdeluxe
« Reply #2560 on: March 26, 2025, 06:34:06 pm »
This is a bug report: fpcupdeluxe crashed during install of Lazarus 2.0.6 and FCP 3.0.4:

Last x86_64-linux distros need fpc >= 3.2.0.
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

Hartmut

  • Hero Member
  • *****
  • Posts: 905
Re: Fpcupdeluxe
« Reply #2561 on: March 26, 2025, 06:46:09 pm »
This is a bug report: fpcupdeluxe crashed during install of Lazarus 2.0.6 and FCP 3.0.4:

Last x86_64-linux distros need fpc >= 3.2.0.

Thanks Fred vS.
But my distro is not a "last distro". It is 3 years old.
And another FCP 3.0.4 installation runs on my distro.

Do you want to say, that it is impossible, to install Lazarus 2.0.6 and FCP 3.0.4 with fpcupdeluxe on Linux Ubuntu 22.04 64 bit?
Are you sure?

Fred vS

  • Hero Member
  • *****
  • Posts: 3531
    • StrumPract is the musicians best friend
Re: Fpcupdeluxe
« Reply #2562 on: March 26, 2025, 08:55:58 pm »
This is a bug report: fpcupdeluxe crashed during install of Lazarus 2.0.6 and FCP 3.0.4:

Last x86_64-linux distros need fpc >= 3.2.0.

Thanks Fred vS.
But my distro is not a "last distro". It is 3 years old.
And another FCP 3.0.4 installation runs on my distro.

Do you want to say, that it is impossible, to install Lazarus 2.0.6 and FCP 3.0.4 with fpcupdeluxe on Linux Ubuntu 22.04 64 bit?
Are you sure?

Nothing is impossible with fpc.  ;)
But for example in Ubuntu 24.04, I am sure I get error at compilation of fpc himself (see picture in attach).
And it seems to me that I had the same error with 22.04 but for this I am not sure.  :-X

Maybe you will have more chance to install fpc 3.0.4. via his binary release:

Here binary release of fpc 3.0.4. https://sourceforge.net/projects/freepascal/files/Linux/3.0.4/
For Lazarus + fpc: https://sourceforge.net/projects/lazarus/files/Lazarus%20Linux%20amd64%20DEB/Lazarus%202.0.6/
« Last Edit: March 26, 2025, 09:11:59 pm by Fred vS »
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

TRon

  • Hero Member
  • *****
  • Posts: 4296
Re: Fpcupdeluxe
« Reply #2563 on: March 26, 2025, 11:07:43 pm »
Do you want to say, that it is impossible, to install Lazarus 2.0.6 and FCP 3.0.4 with fpcupdeluxe on Linux Ubuntu 22.04 64 bit?
Are you sure?
Not a 100% sure but very positive that you or anyone else is unable to build fpc 3.0.4 on your version of Linux because the fact that it requires a bootstrap compiler and which is one that either does not run on that linux distro or produces executables that fail to run on that linux version.

Note that this does not mean that 3.0.4 would be unable to run on your linux version, only that it will not be able to build it. Though, even that I have no doubt in your statement that it runs,  I find it odd as in my experience I have been unable to run 3.0.4 for a long while now.

Just checked, 22.04 is jellyfish, to my knowledge based on Bookworm which does not run any FPC below 3.2.0 (let alone be able to build it).
Today is tomorrow's yesterday.

Hartmut

  • Hero Member
  • *****
  • Posts: 905
Re: Fpcupdeluxe
« Reply #2564 on: March 27, 2025, 09:26:50 am »
Thanks to Fred vS and TRon for your replies.
I understood that FPC 3.0.4 can run on my Ubuntu 22.04 but can not be build on that distro.
BTW it seems that the picture of Fred vS shows an installation of FPC 2.0.4 and not 3.0.4 (but this seems to be on Ubuntu 24.04, so it does not matter).

 

TinyPortal © 2005-2018