Recent

Author Topic: Fpcupdeluxe  (Read 1059370 times)

AlexTP

  • Hero Member
  • *****
  • Posts: 2731
    • UVviewsoft
Re: Fpcupdeluxe
« Reply #2700 on: July 27, 2026, 03:39:06 pm »
Hi DonAlfredo

Since 1.5 months ago, I have problem to compile OpenBSD version of my text editor, on Linux x64.
Cross was installed ok. But compiling the app - gives an error.
https://github.com/LongDirtyAnimAlf/fpcupdeluxe/issues/818

Who is the culprit here, cross files? FPC 3.2.3 (fixes)?

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1903
Re: Fpcupdeluxe
« Reply #2701 on: July 27, 2026, 03:51:23 pm »
Fixes and trunk; t_bsd.pas:

Code: Pascal  [Select][+][-]
  1. { Force ld.lld usage for x86_64 openbsd system,
  2.     because GNU linker generates wrong executable's on x86_64 OpenBSD 7.5 }
  3.   if (cs_link_lld in current_settings.globalswitches) or (target_info.system = system_x86_64_openbsd) then
  4.     LdProgram:='ld.lld'

I need to look into this.

Thaddy

  • Hero Member
  • *****
  • Posts: 19614
  • Glad to be alive.
Re: Fpcupdeluxe
« Reply #2702 on: July 27, 2026, 04:23:24 pm »
I have you seen the Apple M4/5 > x86_64-win64 cross-compiler issue?
The compiler tries to pick up soft float - cross-compilation needs this to build x86_64-win64 - , but only the cross compiler should try that.
Any "programmer" that knows only one programming language is not a programmer

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1903
Re: Fpcupdeluxe
« Reply #2703 on: July 27, 2026, 04:33:14 pm »
Quote
I have you seen the Apple M4/5 > x86_64-win64 cross-compiler issue?
Yes. I saw it. Its very hard for me to solve due to non-availability of an Apple M4/5.
So, if anybody is able to (install and use) cross from Apple M4/5 to win64/win32, I am very interested in the commandline that is used to build and use this cross-compiler.

rca

  • Full Member
  • ***
  • Posts: 125
Re: Fpcupdeluxe
« Reply #2704 on: July 27, 2026, 07:41:00 pm »
I am not able to build cross compiler for windows 64bit from MacOS M4 processor

fpcupdeluxe version : 2.4.0jp

...

I have you seen the Apple M4/5 > x86_64-win64 cross-compiler issue?
The compiler tries to pick up soft float - cross-compilation needs this to build x86_64-win64 - , but only the cross compiler should try that.

I have a MacBook Air with an M4 chip, and I perform cross-compilation for Windows x86_64 without any issues using FPCUPdeluxe V2.4.0i

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1903
Re: Fpcupdeluxe
« Reply #2705 on: July 27, 2026, 07:52:37 pm »
That is good to know. I will compare V2.4.0i with current sources to find the regression.

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1903
Re: Fpcupdeluxe
« Reply #2706 on: July 29, 2026, 10:58:02 am »
A new full featured pre-release. As a many-bugger-fixer.
https://github.com/LongDirtyAnimAlf/fpcupdeluxe/releases/tag/v2.4.0jp
Welcome to test and just use.
If possible, binaries are now mostly gtk3. Build with Lazarus trunk.
Windows ARM64 is also included and fully working AFAIK.

AlexTP

  • Hero Member
  • *****
  • Posts: 2731
    • UVviewsoft
Re: Fpcupdeluxe
« Reply #2707 on: July 29, 2026, 11:48:20 am »
In the github commits I dont see any change for 'my OpenBSD bug', is it hard one to fix?

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1903
Re: Fpcupdeluxe
« Reply #2708 on: July 29, 2026, 01:30:24 pm »
I have created new binary tools for OpenBSD containing a symlinklink towards the native system ld.lld (install by: sudo apt install lld).
That should give you a working linker.

Please note that cross-compiling towards OpenBSD is a never ending hell of changing library versions.
I will NOT provide extra libraries due to this versioned linking hell.

https://github.com/LongDirtyAnimAlf/fpcupdeluxe/releases/download/linux_amd64_crossbins_all/OpenBSD_AMD64_OpenBSD_V217.zip

AlexTP

  • Hero Member
  • *****
  • Posts: 2731
    • UVviewsoft
Re: Fpcupdeluxe
« Reply #2709 on: August 05, 2026, 09:54:19 am »
I removed current symlink
'/home/user/fpcupdeluxe/cross/bin/x86_64-openbsd/x86_64-openbsd-ld.lld'
which pointed to some filename in OS dir (not present on my Linux). I made this symlink but pointing to
'/home/user/fpcupdeluxe/cross/bin/x86_64-openbsd/x86_64-openbsd-ld'
and now cross compilation works ok.
I cannot test the OpenBSD resulting binary so I ask: is my method ok?

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1903
Re: Fpcupdeluxe
« Reply #2710 on: August 06, 2026, 06:57:51 pm »
Why can't you test the binary ?

The method is ok. And working. But only due to the fact that I have changed the startup crt*.o files to work with this old linker.
Anyhow, I have made a better stub for ld.lld that will be included when I build the new binutils targetting OpenBSD.

Libraries and version hell.
I have written (and used) a tool to automagically extract the libs needed from online sources. That way, it is very easy to perform versioned linking with all OpenBSD versions out there.

7.4: https://github.com/LongDirtyAnimAlf/fpcupdeluxe/releases/download/crosslibs_all/OpenBSD_AMD64_OpenBSD_0704.zip
7.5: https://github.com/LongDirtyAnimAlf/fpcupdeluxe/releases/download/crosslibs_all/OpenBSD_AMD64_OpenBSD_0705.zip
7.6: https://github.com/LongDirtyAnimAlf/fpcupdeluxe/releases/download/crosslibs_all/OpenBSD_AMD64_OpenBSD_0706.zip
7.7: https://github.com/LongDirtyAnimAlf/fpcupdeluxe/releases/download/crosslibs_all/OpenBSD_AMD64_OpenBSD_0707.zip
7.8: https://github.com/LongDirtyAnimAlf/fpcupdeluxe/releases/download/crosslibs_all/OpenBSD_AMD64_OpenBSD_0708.zip
7.9: https://github.com/LongDirtyAnimAlf/fpcupdeluxe/releases/download/crosslibs_all/OpenBSD_AMD64_OpenBSD_0709.zip

If any request, I will add. Easy-peasy.

ap3000

  • New Member
  • *
  • Posts: 38
Re: Fpcupdeluxe
« Reply #2711 on: August 07, 2026, 09:46:01 pm »
I'm running fpcuodeluxe v2.4.0i (this is the file I downloaded fpcupdeluxe-x86_64-linux) on Linux Mint 22.3 - Cinnamon 64-bit and am trying to install fpc and Lazarus trunk, but fpcupdeluxe stops with an error installing Lazarus.

This the log:
Code: Text  [Select][+][-]
  1. info: FPC Native Installer (GetModule: FPC): Start checkout/update of FPC sources.
  2. info: FPC Native Installer (GitClient: FPC): Running GIT checkout or update of branch main.
  3. info: Performing SVN/GIT/HG/FTP/URL checkout/download. Please wait, could take some time.
  4. info: FPC Native Installer (GitClient: FPC): Current commit name: 3.3.1-20643-g51917d3193.
  5. info: FPC Native Installer (GitClient: FPC): Current commit message: fcl-report demo fixes * Fixed polygon positioning in PDF rendering * Modified initial definitions; now includes what's defined by demos.inc instead of defining your own.
  6. info: FPC Native Installer (GetModule: FPC): FPC was at revision/hash: FRET_UNKNOWN_REVISION.
  7. info: FPC Native Installer (GetModule: FPC): FPC is now at revision/hash: 51917d3193.
  8. info: FPC Native Installer (GetModule: FPC): No FPC patches defined.
  9. info: FPC Native Installer (BuildModule: FPC): Going to build FPC.
  10. info: FPC Native Installer (BuildModule: FPC): Detected source version FPC (source): 3.3.1.
  11. info: FPC Native Installer (BuildModule: FPC): To compile this FPC, we need (required) a compiler with version 3.2.0 or 3.2.2.
  12. info: FPC Native Installer (BuildModule: FPC): Looking for a bootstrap compiler from Github FPCUP(deluxe) releases.
  13. info: FPC Native Installer (BuildModule: FPC): Looking online for a FPCUP(deluxe) bootstrapper with name: fpcup-3_2_2-x86_64-linux-ppcx64.
  14. info: FPC Native Installer (BuildModule: FPC): Success: found a FPCUP(deluxe) bootstrapper with version 3.2.2.
  15. info: FPC Native Installer (BuildModule: FPC): Got a bootstrap compiler from FPCUP(deluxe) provided bootstrapper binaries.
  16. info: FPC Native Installer (BuildModule: FPC): Check if we already have a bootstrap compiler with version 3.2.2.
  17. info: FPC Native Installer (BuildModule: FPC): No correct bootstrapper. Going to download new bootstrapper.
  18. info: FPC Native Installer (GetFile): Downloading fpcup-3_2_2-x86_64-linux-ppcx64.
  19. info: FPC Native Installer (BuildModule: FPC): To compile this FPC, we will use a fresh compiler with version : 3.2.2.
  20. info: FPC Native Installer (BuildModuleCustom: FPC): Using FPC bootstrap compiler with version: 3.2.2.
  21. info: FPC Native Installer (BuildModuleCustom: FPC): Running CleanModule once more, due to previous clean failure.
  22. info: FPC Native Installer (CleanModule: FPC): Running make distclean twice.
  23. info: FPC Native Installer (CleanModule: FPC): Removal of stale build files and directories for x86_64-linux. May take a while.
  24. info: FPC Native Installer (BuildModule: FPC): Now building FPC.
  25. info: FPC Native Installer (BuildModule: FPC): Building FPC with [extra] options: -Sg -vw-n-h-l-d-u-t-p-c- -dREVINC.
  26. info: FPC Native Installer (CreateFPCScript): Created launcher script for FPC:/home/anders/fpc_install/trunk/fpc/bin/x86_64-linux/fpc.sh.
  27. info: FPC Native Installer (BuildModule: FPC): Found valid fpcmkcfg executable in /home/anders/fpc_install/trunk/fpc/bin/x86_64-linux.
  28. info: FPC Native Installer (BuildModule: FPC): Creating /home/anders/fpc_install/trunk/fpc/bin/x86_64-linux/fp.cfg.
  29. info: FPC Native Installer (BuildModule: FPC): Creating /home/anders/fpc_install/trunk/fpc/bin/x86_64-linux/fp.ini.
  30. info: FPC Native Installer (BuildModule: FPC): Creating /home/anders/fpc_install/trunk/fpcpkgconfig/fppkg.cfg.
  31. info: FPC Native Installer (BuildModule: FPC): Creating /home/anders/fpc_install/trunk/packages.fppkg/config/default.
  32. info: FPC Native Installer (BuildModule: FPC): Creating /home/anders/fpc_install/trunk/fpc/bin/x86_64-linux/fpc.cfg.
  33. info: FPC Native Installer (BuildModule: FPC): Creating/checking default configuration file(s) success.
  34. info: FPC Native Installer (BuildModule: FPC): Going to tune fpc.cfg to our needs.
  35. info: FPC Native Installer (BuildModule: FPC): Removal of stale build files and directories for x86_64-linux. May take a while.
  36. info: Lazarus Native Installer (CheckModule: Lazarus): Checking Lazarus sources with Git Client.
  37. info: Lazarus Native Installer (GetModule: Lazarus): Start checkout/update of Lazarus sources.
  38. info: Lazarus Native Installer (GitClient: Lazarus): Running GIT checkout or update of branch main.
  39. info: Performing SVN/GIT/HG/FTP/URL checkout/download. Please wait, could take some time.
  40. info: Lazarus Native Installer (GitClient: Lazarus): Current commit name: main_4_99-5856-g515efdde44.
  41. info: Lazarus Native Installer (GitClient: Lazarus): Current commit message: Packager: Update package editor when the package has changed on disk. Issue #42498.
  42. info: Lazarus Native Installer (GetModule: Lazarus): Lazarus was at revision/hash: FRET_UNKNOWN_REVISION.
  43. info: Lazarus Native Installer (GetModule: Lazarus): Lazarus is now at revision/hash: 515efdde44.
  44. info: Lazarus Native Installer (GetModule: Lazarus): No Lazarus patches defined.
  45. info: Lazarus Native Installer (ConfigModule: Lazarus): Created Lazarus primary config directory: /home/anders/fpc_install/trunk/config_lazarus.
  46. info: Lazarus Native Installer (BuildModuleCustom: Lazbuild): Running: make lazbuild.
  47. info: Lazarus Native Installer (BuildModuleCustom: UserIDE): Now building UserIDE.
  48. info: Lazarus Native Installer (BuildModuleCustom: UserIDE): Running lazbuild to get IDE with user-specified packages.
  49. Start of compile error summary.
  50. /home/anders/fpc_install/trunk/lazarus/ide/lazarus.pp(182,1) Error: (9013) Error while linking
  51. Start of compile error summary.
  52. /home/anders/fpc_install/trunk/lazarus/ide/lazarus.pp(182,1) Fatal: (10026) There were 1 errors compiling module, stopping
  53. /home/anders/fpc_install/trunk/lazarus/ide/lazarus.pp(182,1) Error: (9013) Error while linking
  54. Start of compile error summary.
  55. Fatal: (1018) Compilation aborted
  56. /home/anders/fpc_install/trunk/lazarus/ide/lazarus.pp(182,1) Fatal: (10026) There were 1 errors compiling module, stopping
  57. Start of compile error summary.
  58. Error: /home/anders/fpc_install/trunk/fpc/bin/x86_64-linux/ppcx64 returned an error exitcode
  59. Start of compile error summary.
  60. Error: (lazarus) Build IDE: stopped with exit code 1
  61. Start of compile error summary.
  62. Error: (lazbuild) Building IDE: Building IDE failed
  63. Start of compile error summary.
  64. ERROR: Lazarus Native Installer (BuildModuleCustom: UserIDE): lazbuild returned error code 512
  65. Details: .
  66. fpcupdeluxe: Done !!
  67.  
« Last Edit: August 07, 2026, 10:31:07 pm by Martin_fr »
Anders Pedersen

dsiders

  • Hero Member
  • *****
  • Posts: 1677
Re: Fpcupdeluxe
« Reply #2712 on: August 07, 2026, 11:36:13 pm »
Code: Text  [Select][+][-]
  1. /home/anders/fpc_install/trunk/lazarus/ide/lazarus.pp(182,1) Error: (9013) Error while linking
  2.  

The only time I've seen that message is when I did not have the developement libraries installed... in your case I'm assuming libgtk-3-dev.

ap3000

  • New Member
  • *
  • Posts: 38
Re: Fpcupdeluxe
« Reply #2713 on: August 07, 2026, 11:40:58 pm »
Yes you where right. Installed libgtk-3-dev and set some paths. AI was helping ;-)
Anders Pedersen

DonAlfredo

  • Hero Member
  • *****
  • Posts: 1903
Re: Fpcupdeluxe
« Reply #2714 on: August 10, 2026, 10:22:45 am »
Time for a new release.
Lazarus (trunk) now able to target GTK3.
FPC and Lazarus able to target Windows ARM64.

https://github.com/LongDirtyAnimAlf/fpcupdeluxe/releases/latest

 

TinyPortal © 2005-2018