Recent

Author Topic: Fpcupdeluxe  (Read 789409 times)

BosseB

  • Sr. Member
  • ****
  • Posts: 468
Re: Fpcupdeluxe
« Reply #2355 on: November 15, 2023, 09:15:54 pm »
Seems like I might be forced to build Lazarus from sources instead. But then I need a current fpc compiler first, where can I get one for RPi4B with PiOS 64 bit?

Or maybe the fpc available via apt is OK so I can get a 64 bit seed compiler that way?
I checked like this:

Code: Text  [Select][+][-]
  1. $ apt policy fpc
  2. fpc:
  3.   Installed: (none)
  4.   Candidate: 3.2.2+dfsg-20
  5.   Version table:
  6.      3.2.2+dfsg-20 500
  7.         500 http://deb.debian.org/debian bookworm/main arm64 Packages
  8.         500 http://deb.debian.org/debian bookworm/main armhf Packages
  9.  
  10. $ apt policy lazarus
  11. lazarus:
  12.   Installed: (none)
  13.   Candidate: 2.2.6+dfsg2-2
  14.   Version table:
  15.      2.2.6+dfsg2-2 500
  16.         500 http://deb.debian.org/debian bookworm/main arm64 Packages
  17.         500 http://deb.debian.org/debian bookworm/main armhf Packages

Looks like I will get fpc 3.2.2  and lazarus 2.2.6 here.
I will try that route next.

After seeing a newer post here:

Or first try with aarch64 version (I always thought that RPi4 was arm-based...
--
Bo Berglund
Sweden

BosseB

  • Sr. Member
  • ****
  • Posts: 468
Re: Fpcupdeluxe
« Reply #2356 on: November 15, 2023, 09:21:22 pm »
Quote
After seeing a newer post here:

Or first try with aarch64 version (I always thought that RPi4 was arm-based...
Yes box! This is the case, I have used the wrong version.
aarch64 is what succeeds to start fpcupdeluxe, so now I am on my way!

THANKS FOR THAT LAST REMARK!!!!
 :P 8-) :) :D
« Last Edit: November 15, 2023, 09:47:36 pm by BosseB »
--
Bo Berglund
Sweden

BosseB

  • Sr. Member
  • ****
  • Posts: 468
Re: Fpcupdeluxe
« Reply #2357 on: November 15, 2023, 09:41:59 pm »
Now ran fpcupdeluxe for aarch64 on my RPi4B with PiOS 64 bit.

It seemed to work for a while until I got this in the console window:

Code: Text  [Select][+][-]
  1. /usr/bin/make packages_smart FPC=/home/bosse/devtools/lazarus/2.2.6/fpcsrc/compiler/ppca64 FPCFPMAKE=/home/bosse/devtools/lazarus/2.2.6/fpcsrc/compiler/ppca64 RELEASE=1 'OPT=-Sg -vw-n-h-l-d-u-t-p-c-'
  2. /usr/bin/make -C packages smart
  3. /usr/bin/make -C fpmkunit bootstrap
  4. /home/bosse/devtools/lazarus/2.2.6/fpcsrc/compiler/ppca64 src/fpmkunit.pp  -Fu/home/bosse/devtools/lazarus/2.2.6/fpcsrc/rtl/units/aarch64-linux -FUunits_bs/aarch64-linux -Fu../paszlib/src -Fu../hash/src -Fi../paszlib/src  -Fi../fcl-process/src/unix -Fu../fcl-process/src -Fi../fcl-process/src/linux -Fi../fcl-process/src/dummy -Fu../libtar/src -Sg -vw-n-h-l-d-u-t-p-c-
  5. /home/bosse/devtools/lazarus/2.2.6/fpcsrc/compiler/ppca64 fpmake.pp  -Fu/home/bosse/devtools/lazarus/2.2.6/fpcsrc/packages/fpmkunit/units_bs/aarch64-linux -Fu/home/bosse/devtools/lazarus/2.2.6/fpcsrc/rtl/units/aarch64-linux  -Sg -vw-n-h-l-d-u-t-p-c-
  6. /bin/ld: /home/bosse/devtools/lazarus/2.2.6/fpcsrc/rtl/units/aarch64-linux/cprt0.o: in function `_start':
  7. (.text+0x54): undefined reference to `__libc_csu_init'
  8. /bin/ld: (.text+0x58): undefined reference to `__libc_csu_init'
  9. /bin/ld: (.text+0x5c): undefined reference to `__libc_csu_fini'
  10. /bin/ld: (.text+0x60): undefined reference to `__libc_csu_fini'
  11. make[1]: *** [Makefile:2682: packages_smart] Error 2
  12. make: *** [Makefile:2837: build-stamp.aarch64-linux] Error 2
  13. fpmake.pp(60) Error: Error while linking
  14. fpmake.pp(60) Fatal: There were 1 errors compiling module, stopping
  15. Fatal: Compilation aborted
  16.  
  17. fpcupdeluxe: ERROR: FPC Native Installer (BuildModule: FPC): Error running /usr/bin/make for FPC failed with exit code 512
  18. . Details: .
  19.  
  20.  
  21. ERROR: Fpcupdeluxe fatal error !
  22. Sequencer (FPC): Failure running fpcupdeluxe: error executing sequence FPC
  23. Sequencer (Default): Failure running fpcupdeluxe: error executing sequence Default

And this brings me down since I have no idea what is the cause or what to do about it...
Code: Text  [Select][+][-]
  1. undefined reference to `__libc_csu_init'


--
Bo Berglund
Sweden

cdbc

  • Hero Member
  • *****
  • Posts: 974
    • http://www.cdbc.dk
Re: Fpcupdeluxe
« Reply #2358 on: November 15, 2023, 10:34:53 pm »
Hi
I've read recently on this forum, that the libc devs changed the names of "__libc_csu_init" and colleague "__libc_csu_fini" symbols to "__libc_init" and "__libc_fini", or something like that. You can search the forum, it was yesterday or two days ago, also regarding aarch64...
edit: it's even got a ticket: https://gitlab.com/freepascal.org/fpc/source/-/issues/39295
edit2:
Quote
from Fred vS; OK, compiling fpc from branch /source-fixes_3_2/ for i386 and using it fixe the problems.
Linking is ok now.
See also: https://forum.lazarus.freepascal.org/index.php/topic,65092.msg495570.html#msg495570
Regards Benny
« Last Edit: November 15, 2023, 10:52:31 pm by cdbc »
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE5 -> FPC 3.2.2 -> Lazarus 2.2.6 up until Jan 2024 from then on it's: KDE5/QT5 -> FPC 3.3.1 -> Lazarus 3.0

BosseB

  • Sr. Member
  • ****
  • Posts: 468
Re: Fpcupdeluxe
« Reply #2359 on: November 15, 2023, 11:10:48 pm »
I found that ticket so I thought that using fpc 3.3.1 would help, but no, same error.
Next I am going to try trunk just as a test...
Might bring up all kinds of other issues of course.

LATER:
Nope, now I have moved up all the way to FPC trunk and still it won't build the FPC sources because of the same problem:
Code: Text  [Select][+][-]
  1. /bin/ld: /home/bosse/devtools/lazarus/2.2.6/fpcsrc/rtl/units/aarch64-linux/cprt0.o: in function `_start':
  2. (.text+0x54): undefined reference to `__libc_csu_init'
  3. /bin/ld: (.text+0x58): undefined reference to `__libc_csu_init'
  4. /bin/ld: (.text+0x5c): undefined reference to `__libc_csu_fini'
  5. /bin/ld: (.text+0x60): undefined reference to `__libc_csu_fini'
  6. make[1]: *** [Makefile:2682: packages_smart] Error 2
  7. make: *** [Makefile:2837: build-stamp.aarch64-linux] Error 2
  8. fpmake.pp(60) Error: Error while linking
  9. fpmake.pp(60) Fatal: There were 1 errors compiling module, stopping
  10. Fatal: Compilation aborted
  11.  
So I can only conclude that contrary to the ticket wording the fpc sources have not included a fix for this linker error...
« Last Edit: November 15, 2023, 11:21:36 pm by BosseB »
--
Bo Berglund
Sweden

TRon

  • Hero Member
  • *****
  • Posts: 2283
Re: Fpcupdeluxe
« Reply #2360 on: November 15, 2023, 11:43:13 pm »
So I can only conclude that contrary to the ticket wording the fpc sources have not included a fix for this linker error...
It did, but not for your target. The commit only seem to have addressed powerpc.

I have not read the ticket thread so there might have been a reason for that.

If there is no obvious reason as of why it was omitted for the other (mentioned) targets then you could consider re-opening the ticket.
« Last Edit: November 15, 2023, 11:45:36 pm by TRon »

BosseB

  • Sr. Member
  • ****
  • Posts: 468
Re: Fpcupdeluxe
« Reply #2361 on: November 16, 2023, 10:16:15 am »
So I can only conclude that contrary to the ticket wording the fpc sources have not included a fix for this linker error...
It did, but not for your target. The commit only seem to have addressed powerpc.

I have not read the ticket thread so there might have been a reason for that.

If there is no obvious reason as of why it was omitted for the other (mentioned) targets then you could consider re-opening the ticket.
I don't know how to do that, but I have posted to the free-pascal_devel mail list, hopefully someone there will see it and pick up the problem.
--
Bo Berglund
Sweden

BosseB

  • Sr. Member
  • ****
  • Posts: 468
Re: Fpcupdeluxe
« Reply #2362 on: November 16, 2023, 11:04:48 am »
Is it possible to use fpcupdeluxe to *only* install/maintain Lazarus?
The reason I ask is that I have found that there is an fpc compiler 3.2.2 available via apt, so I have installed that and it seems to run just fine (at least no exceptions when checking its version).
So I tried fpcupdeluxe to install "Only Lazarus", but it failed to pick up the globally installed fpc...
Can this be set in some config for fpcupdeluxe?

LATER AFTER TESTING
I have now done this:
1) Used apt to install fpc, I got 3.2.2 for aarch64
2) Retrieved the sources for Lazarus 2.2.6 from GitLab
3) Installed the needed dependencies on my system via apt
4) make clean && make bigide inside the folder whare I had unpacked the Lazarus sources

This created a working Lazarus IDE for which I created a .desktop file so it appeared in the Programming section of the main menu.

And now I have run it and configured the extra stuff I always install on a new Lazarus via OnLine PackageManager and subversion from our svn server.
This all worked as normal except for one VERY irritating issue:
Every time I start up Lazarus it gets to the dialog where it asks for the location of fppkg.cfg, which cannot be found on this device...

So what creates this file and where should it reside?
« Last Edit: November 16, 2023, 06:47:59 pm by BosseB »
--
Bo Berglund
Sweden

TRon

  • Hero Member
  • *****
  • Posts: 2283
Re: Fpcupdeluxe
« Reply #2363 on: November 17, 2023, 04:55:07 am »
Is it possible to use fpcupdeluxe to *only* install/maintain Lazarus?
As you figured you yourself already, yes.

Quote
The reason I ask is that I have found that there is an fpc compiler 3.2.2 available via apt, so I have installed that and it seems to run just fine (at least no exceptions when checking its version).
Seems to run fine does not necessarily means that you have that compiler configured correctly.

Quote
This created a working Lazarus IDE for which I created a .desktop file so it appeared in the Programming section of the main menu.
Any lingering files from old/earlier Lazarus installations ? Or perhaps you have multiple Lazarus version installed (or want to do so in the future) ?

Then note the --pcp option, see wiki multiple Lazarus installations. Even if you do not have multiple installations or really don't care about it: Always use the --pcp option (or lazarus.cfg).


Quote
This all worked as normal except for one VERY irritating issue:
Every time I start up Lazarus it gets to the dialog where it asks for the location of fppkg.cfg, which cannot be found on this device...
possible causes:
- you do not have your fpc.cfg file configured correctly, the path to the fppkg files are missing or
- you are using a fppkg.cfg file that is too old (from an earlier installation)
- you do not have a fppkg.cfg at all or you have one but not accessible by Lazarus (From memory I believe read and write).

Quote
So what creates this file and where should it reside?
It is created by the Free Pascal PacKaGe manager.


PS: Note that there are many reports in the bugtracker about this issue and it is usually safe to ignore the error. even when configured everything correct it is still possible to trigger the dialog. Ignoring "the error" will not brake your Lazarus installation (or FPC for that matter), it is just annoying to need to click it away (if not mistaken then I've read somewhere once that there is a solution for that but I seem unable to find it. It was either a commandline option or setting in the lazarus.cfg file from what I remember),

Newer Lazarus releases do not come shipped with that error (anymore).
« Last Edit: November 17, 2023, 05:01:48 am by TRon »

BosseB

  • Sr. Member
  • ****
  • Posts: 468
Re: Fpcupdeluxe
« Reply #2364 on: November 17, 2023, 07:59:57 am »
Quote
Newer Lazarus releases do not come shipped with that error (anymore).
I did a source install of the 3.0RC2 Lazarus candidate and that did not pop up this dialog, so they have removed this in upcoming release.

Regarding most of your comments above I have already done that without any solution.

Re the comment that you can use fpcupdeluxe to only maintain the Lazarus install and keep fpc as is from apt install, I find this to not work. There may be a way to do it but I have not found out how...

Fpcupdeluxe complains that there is no fpc compiler, that was mentioned in one of my posts.
And I think the main objective to use fpcupdeluxe is to isolate the installations such that changes elsewhere do not affect the operation of the Lazarus/Fpc installed versions. That requires the fpc compiler to be located within one fpcupdeluxe install tree and not use global accesses. And it works fine on all of the other installations I have done, but requires fpc to be possible to build from sources, which it is not in this case.
--
Bo Berglund
Sweden

Mathias

  • Jr. Member
  • **
  • Posts: 88
Re: Fpcupdeluxe
« Reply #2365 on: November 22, 2023, 01:53:01 pm »
Would it be possible to install CheckBoxes instead of RadioButtons in Subarch, so that you can install several SubArchs at once?

AlexTP

  • Hero Member
  • *****
  • Posts: 2357
    • UVviewsoft
Re: Fpcupdeluxe
« Reply #2366 on: November 22, 2023, 01:56:13 pm »
I would like to install several 'crosses' as well.
What I use:

Quote
Found crosscompiler for  i386-windows
Found crosscompiler for  x86_64-windows
Found crosscompiler for  arm-linux
Found crosscompiler for  aarch64-linux
Found crosscompiler for  x86_64-freebsd
Found crosscompiler for  x86_64-openbsd
Found crosscompiler for  x86_64-dragonfly
Found crosscompiler for  x86_64-solaris
Found crosscompiler for  i386-openbsd
Found crosscompiler for  i386-netbsd
Found crosscompiler for  x86_64-netbsd
Found crosscompiler for  x86_64-darwin
Found crosscompiler for  aarch64-darwin

Tony Stone

  • Full Member
  • ***
  • Posts: 214
Re: Fpcupdeluxe
« Reply #2367 on: December 01, 2023, 11:56:54 pm »
I've encountered an issue while upgrading Lazarus through FPCupDeluxe. My current setup was installed using FPCupDeluxe with the Trunk versions for both FPC and Lazarus. However, after a recently trying to update Lazarus to the 3.99 option, Lazarus still shows version 2.3.0.

Attempting to change the Lazarus version to the newly available 3.99 option doesn't seem to work for my existing installation; it continues to display version 2.3.0. Interestingly, when I perform a fresh installation and select version 3.99, Lazarus correctly shows version 3.99.

Is it not possible to change the Lazarus version selection for an existing installation set up by FPCupDeluxe?

nouzi

  • Sr. Member
  • ****
  • Posts: 294
Re: Fpcupdeluxe
« Reply #2368 on: December 02, 2023, 10:13:22 am »
@Tony Stone
If your system linux , delete folder "~/.lazarus" and try again use Fpcupdeluxe
My English is  bad
Lazarus last version free pascal last version
Lazarus trunk  free pascal trunk 
System : Linux mint  64bit  Windows 7 64bit

fabiopesaju

  • Jr. Member
  • **
  • Posts: 93
Re: Fpcupdeluxe
« Reply #2369 on: December 02, 2023, 02:09:38 pm »
Code: Pascal  [Select][+][-]
  1. /home/usuario/fpcupdeluxe/lazarus/components/lazutils/uitypes.pas(105,14) Error: (3285) Expected another 2 array elements
  2. make[1]: *** [Makefile:3394: lazutils.ppu] Erro 1
  3. make: *** [Makefile:3802: lazutils] Erro 2
  4. /home/usuario/fpcupdeluxe/lazarus/components/lazutils/uitypes.pas(93,58) Fatal: (10026) There were 1 errors compiling module, stopping
  5. Fatal: (1018) Compilation aborted
  6. Error: /home/usuario/fpcupdeluxe/fpc/bin/x86_64-linux/ppcx64 returned an error exitcode
  7. make[1]: Saindo do diretório '/home/usuario/fpcupdeluxe/lazarus/components/lazutils'
  8. make: Saindo do diretório '/home/usuario/fpcupdeluxe/lazarus'
  9. fpcupdeluxe: ERROR: Lazarus Native Installer (BuildModuleCustom: Lazbuild): make returned exit status #512.
  10.  
  11.  
  12. ERROR: Fpcupdeluxe fatal error !
  13. Sequencer (UserIDE): Failure running fpcupdeluxe: error executing sequence UserIDE
  14. Sequencer (Lazarus): Failure running fpcupdeluxe: error executing sequence Lazarus
  15. Sequencer (Default): Failure running fpcupdeluxe: error executing sequence Default

clean install, I just chose the "fixes" for fpc and lazarus. im using fedora

 

TinyPortal © 2005-2018