Recent

Author Topic: Fpcupdeluxe  (Read 956978 times)

Cascade

  • Jr. Member
  • **
  • Posts: 65
Re: Fpcupdeluxe
« Reply #2610 on: August 21, 2025, 03:58:14 pm »
Just posting the errors I see when Emulation for 80bit floats is unchecked in Setup+ (same as before except additional assembler local symbols not defined)

Code: [Select]
make[1]: *** [darwin_all] Error 2
make: *** [rtl_all] Error 2
<stdin>:57101:1: error: assembler local symbol 'Ld23' not defined
<stdin>:57101:1: error: assembler local symbol 'Ld8' not defined
<stdin>:57101:1: error: assembler local symbol 'Ld59' not defined
<stdin>:57101:1: error: assembler local symbol 'Ld16' not defined
...lots more of these...
<stdin>:57101:1: error: assembler local symbol 'Ld51' not defined
<stdin>:57101:1: error: assembler local symbol 'Ld17' not defined
<stdin>:57101:1: error: assembler local symbol 'Ld46' not defined
genmath.inc(606,5) Fatal: Internal error 2014051001
Fatal: Compilation aborted
fpcupdeluxe: ERROR: FPC Cross Installer (BuildModuleCustom: FPC): Running cross compiler fpc /usr/bin/make for x86_64-darwin failed with an error code.


ERROR: Fpcupdeluxe fatal error !
Sequencer (FPCCleanBuildOnly): Failure running fpcupdeluxe: error executing sequence FPCCleanBuildOnly
Sequencer (Only): Failure running fpcupdeluxe: error executing sequence Only
ERROR: Building cross-tools failed. Aborting.

In the output I notice FpcUpDeluxe executes a few commands using the option -WM10.9 ...is there a way I can try specifying a newer target (e.g. -WM10.15 or -WM11.0) ?  Clutching at straws but macOS 11.0 was the first version to support aarch64.

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1844
Re: Fpcupdeluxe
« Reply #2611 on: August 21, 2025, 05:26:52 pm »
Use this pre-release.
https://github.com/LongDirtyAnimAlf/fpcupdeluxe/releases/download/v2.4.0gp/fpcupdeluxe-aarch64-darwin-cocoa.zip
It will NOT magically add -WM. So you need to add it yourself into the FPC options on Setup+.
It is reported that adding -WM10.15 does the trick.

Cascade

  • Jr. Member
  • **
  • Posts: 65
Re: Fpcupdeluxe
« Reply #2612 on: August 22, 2025, 12:56:23 pm »

Thank you - I’ve tested FpcUpDeluxe 2.4.0gp with -WM10.15 and -WM11.0 but no joy so far.  Here’s the output when I specify -WM10.15 with FPC 3.2.3

Code: [Select]
/Users/…/Documents/Developer/Lazarus/FixesB/fpc/bin/aarch64-darwin/ppcx64 -Ur -dFPC_USE_LIBC -Px86_64 -Ur -Xs -O2 -n -Fi../inc -Fi../x86_64 -Fi../unix -Fi../bsd -Fi../bsd/x86_64 -Fi../darwin/x86_64 -FD/Applications/Xcode.app/Contents/Developer/Platforms/macOSX.platform/Developer/usr/bin -FE. -FU/Users/…/Documents/Developer/Lazarus/FixesB/fpcsrc/rtl/units/x86_64-darwin -Fl/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib -XR/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -vw-n-h-l-d-u-t-p-c- -ap -dx86_64 -dRELEASE -WM10.15 -FD/Applications/Xcode.app/Contents/Developer/Platforms/macOSX.platform/Developer/usr/bin -XR/Applications/Xcode.app/Contents/Developer/Platforms/macOSX.platform/Developer/SDKs/macOSX.sdk -Fl/Applications/Xcode.app/Contents/Developer/Platforms/macOSX.platform/Developer/SDKs/macOSX.sdk/usr/lib -Fl/Applications/Xcode.app/Contents/Developer/Platforms/macOSX.platform/Developer/SDKs/macOSX.sdk/usr/lib/system  -Us -Sg ../bsd/system.pp
make[1]: *** [darwin_all] Error 2
make: *** [rtl_all] Error 2
genmath.inc(919,7) Fatal: Internal error 2014051001
Fatal: Compilation aborted
fpcupdeluxe: ERROR: FPC Cross Installer (BuildModuleCustom: FPC): Running cross compiler fpc /usr/bin/make for x86_64-darwin failed with an error code.

Tested both with and without ‘Emulation for 80bit floats’ option checked.  FPC 3.3.1 gives the same result, plus some additional assembler symbol errors.

Here’s the function in genmath.inc that the Fatal error refers too.  I don’t know whether the issue really lies here or elsewhere:

genmath.inc Line 919,7

Code: Pascal  [Select][+][-]
  1. 914  { Argument reduction of x:  z = x - n*Pi/2, |z| <= Pi/4, result = n mod 8.}
  2. 915     { Uses Payne/Hanek if |x| >= lossth, Cody/Waite otherwise}
  3. 916     function rem_pio2(x: double; out z: double): sizeint;
  4. 917     const
  5. 918       tol: double = 2.384185791015625E-7;  {lossth*eps_d}
  6. 919       DP1 = double(7.85398125648498535156E-1);
  7. 920       DP2 = double(3.77489470793079817668E-8);
  8. 921       DP3 = double(2.69515142907905952645E-15);
  9. 922     var

I did a quick search for error 2014051001 and it looks like the exact same error message came up 8 years ago in 2017: https://forum.lazarus.freepascal.org/index.php?topic=34645.615

Regression in FPC? 

BosseB

  • Sr. Member
  • ****
  • Posts: 483
Re: Fpcupdeluxe
« Reply #2613 on: September 17, 2025, 11:30:51 am »
I have problems finding out what is inside the latest fpcupdeluxe 2.4.0f-x86_64...
It is marked as "Latest" but it is from Dec 2024.
It would be nice if you could see on GitHub download which version of FPC and Lazarus will be installed using it.

I have just "upgraded" my only Windows PC (HP workstation laptop) to Windows 11, which in itself was a big hurdle.
My Lazarus/FPC install on that is Lazarus 3.4 with a corresponingly older FPC, I believe.
Since I usually on my Linux machines install from fpc and lazarus sources I can always be sure of the versions, but not so on Windows....
But I really need to get the latest Lazarus and FPC onto my Windows PC as well.

Please advice what to do.
TIA
--
Bo Berglund
Sweden

Josh

  • Hero Member
  • *****
  • Posts: 1425
Re: Fpcupdeluxe
« Reply #2614 on: September 17, 2025, 11:55:00 am »
Hi,

FPCUPDeluxe lets you install different Free Pascal and Lazarus versions, each inside its own "sandboxed" folder.

For example, you can create a main Development folder and within it set up subfolders like Fixes32, Fixes64, Stable, Trunk32, Trunk64, and so on. You can also add cross-compilers for other operating systems inside each of those folders.

Personally, I place the fpcupdeluxe executable directly into each of these folders — it keeps things simpler to manage.

It’s a good idea to store your extra components separately (for example, in a MyComponents folder under your main Development folder). That way, if something goes wrong, you can delete the broken setup while keeping your components safe.

Make sure to exclude the development folder and all of its subdirectories from your virus scanner.

Hope that helps!

If your after installing Lazarus 4 then look back earlier in the thread.
https://forum.lazarus.freepascal.org/index.php/topic,34645.msg560597.html#msg560597
« Last Edit: September 17, 2025, 12:36:56 pm by Josh »
The best way to get accurate information on the forum is to post something wrong and wait for corrections.

Thausand

  • Sr. Member
  • ****
  • Posts: 405
Re: Fpcupdeluxe
« Reply #2615 on: September 17, 2025, 12:07:11 pm »
It would be nice if you could see on GitHub download which version of FPC and Lazarus will be installed using it.
As write Josh, can have every version FreePascal and Lazarus. You have decide.

Version FPCUpDeluxe no matter. Is exception one: Support new platform for FPC have need most new FPCUpDeluxe and is delay (developer FPCUpDeluxe have need time for add support platform new).

Wiki:
https://wiki.freepascal.org/fpcupdeluxe

Picture:
https://wiki.freepascal.org/File:fpcupdeluxe.png

Video:
https://www.youtube.com/watch?v=Snf0xgdREOQ
https://www.youtube.com/watch?v=aOsFOa-zqXs
« Last Edit: September 17, 2025, 12:24:45 pm by Thausand »

BosseB

  • Sr. Member
  • ****
  • Posts: 483
Re: Fpcupdeluxe
« Reply #2616 on: September 17, 2025, 04:25:46 pm »
OK, thanks!
I had forgotten how it worked from the last time I used it (like 5 years ago or so)..
What triggered the question is that it did not show the latest Lazarus only the 3.x versions for install.
But using the link shown by user Josh above to earlier in this thread I could see that I could modify that behavior by editing the fpcupdeluxe.ini file and add Lazarus 4.0. So after that was done I could install Lazarus 4.0 on Windows 11.

I have now also added all of my extra packages and the next thing is to customize the IDE according to my notes that are valid wherever Lazarus runs (Linux or Windows) plus my own packages I get from svn.

So I am OK now!   8-)  :D
--
Bo Berglund
Sweden

ASBzone

  • Hero Member
  • *****
  • Posts: 733
  • Automation leads to relaxation...
    • Free Console Utilities for Windows (and a few for Linux) from BrainWaveCC
Re: Fpcupdeluxe
« Reply #2617 on: September 17, 2025, 06:08:43 pm »
I have problems finding out what is inside the latest fpcupdeluxe 2.4.0f-x86_64...
It is marked as "Latest" but it is from Dec 2024.
It would be nice if you could see on GitHub download which version of FPC and Lazarus will be installed using it.

Version 2.4f of FpcUpDeluxe is the latest "production" build of the tool, but it will download from source, and compile, whichever version of FPC and Lazarus you tell it to.   The version and date of the FpcUpDeluxe utility is not an impediment to getting the latest versions of FPC or Lazarus -- especially in this case.

You can forge ahead by running to tool and selecting what editions of the FPC/Lazarus environment you want to run.
-ASB: https://www.BrainWaveCC.com/

Lazarus v4.3.0.0 (bcf314a670) / FreePascal v3.2.3-46-g77716a79dc (aka fixes)
(Windows 64-bit install w/Win32 and Linux on ARM and x64 cross-compilers via FpcUpDeluxe)

My Systems: Windows 10/11 Pro x64 (Current)

BosseB

  • Sr. Member
  • ****
  • Posts: 483
Re: Fpcupdeluxe
« Reply #2618 on: September 17, 2025, 09:07:15 pm »
I just discovered on another list that 4.0 is *NOT* the latest version of Lazarus...
Today I spent a fair amount of time installing Lazarus 4.0 after editing the ini file but apparently I should have used 4.2 instead.  :o

QUESTION:
If I add 4.2 to the ini file for Lazarus is there then a possibility that fpcupdeluxe can *upgrade* the newly installed Lazarus to 4.2 while keeping all the customizations I have done or do I have to repeat what I just did today with the new ini setting into another clean directory?

And when I am at it:
What is the latest FPC version? Is that also something I have to edit into the ini file?  I got 3.2.2 with this version of the ini file.
« Last Edit: September 17, 2025, 09:09:20 pm by BosseB »
--
Bo Berglund
Sweden

Thausand

  • Sr. Member
  • ****
  • Posts: 405
Re: Fpcupdeluxe
« Reply #2619 on: September 17, 2025, 09:27:06 pm »
QUESTION:
If I add 4.2 to the ini file for Lazarus is there then a possibility that fpcupdeluxe can *upgrade* the newly installed Lazarus to 4.2 while keeping all the customizations I have done or do I have to repeat what I just did today with the new ini setting into another clean directory?
afaik last answer, but maybe question better answer someone have know more (DonAlfredo ?) I not have good know for custom package FPCUpDeluxe.

Quote
What is the latest FPC version? Is that also something I have to edit into the ini file?  I got 3.2.2 with this version of the ini file.
release: v3.2.2,
release candidate: v3.2.4RC1,
fixes v3.2.2: v3.2.3
main v3.3.1
« Last Edit: September 17, 2025, 09:30:01 pm by Thausand »

BosseB

  • Sr. Member
  • ****
  • Posts: 483
Re: Fpcupdeluxe
« Reply #2620 on: September 18, 2025, 07:49:16 am »
I just wander if fpcupdeluxe can refresh its fpcup.ini file from the source so that the latest stuff gets added in? It seems counter to the way it is designed that the user has to go on a search expedition every time he uses the tool...

I have a single fpcupdeluxe folder where I put the latest fpcupdeluxe exe file after I download it, so it will have access to the existing configuration data.
But that might be the wrong way to go about it?
If I put fpcupdeluxe in a new empty directory every time I get a new version, how does it work then?
Will it create its ini files anew by downloading from the Internet when it is missing?

Well, I did a test and copied the latest fpcupdeluxe into a new empty directory and when it was started inside that dir it came up offering this:
Here I have made a screenshot but I cannot find a way to show it in my post, there is no "insert image" in the forum posting menu...

So here is the text from the fpcup.ini file (only top part of each section):

Code: Pascal  [Select][+][-]
  1. [ALIASfpcTAG]
  2. stable.gitlab=release_3_2_2
  3. ; 3.2.4.gitlab=release_3_2_4
  4. 3.2.2.gitlab=release_3_2_2
  5. 3.2.0.gitlab=release_3_2_0
  6. 3.0.4.gitlab=release_3_0_4
  7. 3.0.2.gitlab=release_3_0_2
  8. 3.0.0.gitlab=release_3_0_0
  9. ...
  10.  
  11. [ALIASlazTAG]
  12. stable.gitlab=lazarus_3_6
  13. ; 4.0.gitlab=lazarus_4_0
  14. 3.6.gitlab=lazarus_3_6
  15. 3.4.gitlab=lazarus_3_4
  16. 3.2.gitlab=lazarus_3_2
  17. 3.2.gitlab=lazarus_3_2
  18. 3.0.gitlab=lazarus_3_0
  19. 2.2.6.gitlab=lazarus_2_2_6
  20. ...

As you can see the latest Lazarus is 4.0  :o

What gives here?

--
Bo Berglund
Sweden

Thausand

  • Sr. Member
  • ****
  • Posts: 405
Re: Fpcupdeluxe
« Reply #2621 on: September 18, 2025, 10:22:54 am »
I just wander if fpcupdeluxe can refresh its fpcup.ini file from the source so that the latest stuff gets added in?
FPCUpDeluxe make create ini when not exist. When is ini then try read ini for load configuration.

Quote
I have a single fpcupdeluxe folder where I put the latest fpcupdeluxe exe file after I download it, so it will have access to the existing configuration data.
But that might be the wrong way to go about it?
I same setup. But I no use FPCUpDeluxe many. I use FPCUpDeluxe when lazy :)

Quote
If I put fpcupdeluxe in a new empty directory every time I get a new version, how does it work then?
FPCUpDeluxe is start and try load ini for configuration. It have base configuration and is store (hardcode) inside FPCUpDeluxe exe and write ini when not exist. User can make ini change. When start new FPCUpDeluxe then when exist ini then load ini, when not exist ini then create ini. Ini configuration have store local (FPCUpDeluxe exe path) and global (depend platform/user) so can have differ configuration (can confuse if not know).

When start FPCUpDeluxe then after ini configuration FPCUpDeluxe load data internet (github) for show version etc. When make select choice for install then FPCUpDeluxe requirement/dependency is load from internet and install.

That why version FPC/Lazarus not last and is last update when make FPCUpDeluxe release (december 2024 ?). Can fix and add version manual configuration ini or make version set in FPCUpDeluxe configuration setup.

Quote
Will it create its ini files anew by downloading from the Internet when it is missing?
Let make understand easy say yes (not true complete but most).

Quote
What gives here?
Is answer simple: Don Alfredo not have update for last FPC and Lazarus. Don Alfredo make update when have new release and is stable. Last FPC and Lazarus many change and not platform for all support is work ok. Then Alfredo not make release FPCUpDeluxe.

PS: I think you have see can add picture for post ?

Cascade

  • Jr. Member
  • **
  • Posts: 65
Re: Fpcupdeluxe
« Reply #2622 on: September 18, 2025, 10:40:17 am »
Quote
If I add 4.2 to the ini file for Lazarus ...

You probably don't need to do that.  If you ask FpcUpDeluxe to install 'Stable', right at the top of the list, it will install the latest stable release (e.g. 4.2).  I usually select 'Fixes' instead, which is basically Stable+Bug Fixes.

When I selected 'Fixes' it installed Lazarus 4.3 and FPC 3.2.3

You can also just click the 'Fixes' button at the bottom of the window, which also installs/updates current fixes versions of Lazarus & FPC.

Thausand

  • Sr. Member
  • ****
  • Posts: 405
Re: Fpcupdeluxe
« Reply #2623 on: September 18, 2025, 10:53:42 am »
Quote
If I add 4.2 to the ini file for Lazarus ...

You probably don't need to do that.  If you ask FpcUpDeluxe to install 'Stable', right at the top of the list, it will install the latest stable release (e.g. 4.2).  I usually select 'Fixes' instead, which is basically Stable+Bug Fixes.

When I selected 'Fixes' it installed Lazarus 4.3 and FPC 3.2.3

You can also just click the 'Fixes' button at the bottom of the window, which also installs/updates current fixes versions of Lazarus & FPC.
FPCUpDeluxe 2.4.0f then stable FPC 3.2.2 and stable Lazarus 3.6. I not have test FPCUpDeluxe 2.4.0g or FPCUpDeluxe main.

Cascade

  • Jr. Member
  • **
  • Posts: 65
Re: Fpcupdeluxe
« Reply #2624 on: September 18, 2025, 03:08:07 pm »
It might be worth trying FPCUpDeluxe 2.4.0gp - it offers 3.8 4.0 4.2 (stable)

Here's what I get for each button with that version (screenshot attached):

 

TinyPortal © 2005-2018