Recent

Author Topic: [SOLVED] Can't build working Lazarus on Arch Linux  (Read 929 times)

PeterBB

  • New Member
  • *
  • Posts: 40
[SOLVED] Can't build working Lazarus on Arch Linux
« on: March 31, 2023, 10:44:18 pm »
Arch has not been updated yet for 2.2.6   Usually they are very quick.
I tried adapting the current PKGBUILD but ended up with a binary that was 30% smaller than previous, and lazbuild failed to build anything.

Has anyone here got a working PKGBUILD for 2.2.6?
« Last Edit: April 21, 2023, 12:17:49 pm by PeterBB »

PeterBB

  • New Member
  • *
  • Posts: 40
Re: 2.2.6 on Arch Linux
« Reply #1 on: March 31, 2023, 10:54:02 pm »
Seems to be a problem with DBG symbols,
getting lots of errors such as ....

Code: Pascal  [Select][+][-]
  1. /usr/bin/ld: CevoMapMain.pas:(.debug_info+0x19d): undefined reference to `DBG_$STDCTRLS_$$_TBUTTON'
  2. /usr/bin/ld: CevoMapMain.pas:(.debug_info+0x1ba): undefined reference to `DBG_$STDCTRLS_$$_TBUTTON'
  3. /usr/bin/ld: CevoMapMain.pas:(.debug_info+0x1ce): undefined reference to `DBG_$EXTCTRLS_$$_TIMAGE'
  4. /usr/bin/ld: CevoMapMain.pas:(.debug_info+0x1e7): undefined reference to `DBG_$STDCTRLS_$$_TLABEL'
  5. /usr/bin/ld: CevoMapMain.pas:(.debug_info+0x1fd): undefined reference to `DBG_$STDCTRLS_$$_TLABEL'
  6. /

but I'm not trying to build a debug package.

PeterBB

  • New Member
  • *
  • Posts: 40
Re: Can't build working Lazarus on Arch Linux
« Reply #2 on: April 18, 2023, 07:29:41 pm »
Changed the thread title as I can't build a working 2.2.4 either.

Problem is the same. Trying to build a project fails with lots of undefined references.
Also the object files in my build of Lazarus are about one half or one third of the ones in the official package.

Very strange!
FPC seems OK, ie with the official 2.2.4 Lazarus package everything works.

PeterBB

  • New Member
  • *
  • Posts: 40
Re: [SOLVED] Can't build working Lazarus on Arch Linux
« Reply #3 on: April 18, 2023, 11:52:31 pm »
Need to add '!strip' to the lazarus PKGBUILD options.

(so how did it work before without this?)
« Last Edit: May 09, 2023, 01:09:38 pm by PeterBB »

PeterBB

  • New Member
  • *
  • Posts: 40
Re: [SOLVED] Can't build working Lazarus on Arch Linux
« Reply #4 on: May 09, 2023, 01:08:34 pm »
Need to add '!strip' to the lazarus PKGBUILD options.

(so how did it work before without this?)

It did'nt work before, but is now fixed.
2.2.6-2 or higher on Arch is good to go

(Ignore the PKGBUILD I uploaded earlier)


 

TinyPortal © 2005-2018