Recent

Author Topic: Error while linking TAChart  (Read 877 times)

mm7

  • Full Member
  • ***
  • Posts: 231
  • PDP-11 RSX Pascal, Turbo Pascal, Delphi, Lazarus
Error while linking TAChart
« on: August 31, 2025, 09:04:45 pm »
I am working on project for quite a long period. All was Ok.
But starting from recent Rebuild throws errors.

Warning: linker: /usr/bin/ld: /home/mark/.lazarus/lib/TAChartLazarusPkg/lib/x86_64-linux/gtk2/tadrawutils.o: in function `.La2':
Error: tadrawutils.pas:(.debug_info+0x528): undefined reference to `DBG2_$SYSTEM_$$_IUNKNOWN'

Similar errors thrown for other TAChart files.

I tried build with Automatic Debugger, Dwarf2, Dwarf3, Stabs.
Nothing helps.

How to fix?

OS is Ubuntu "22.04.5 LTS (Jammy Jellyfish)"
« Last Edit: August 31, 2025, 11:20:57 pm by mm7 »

wp

  • Hero Member
  • *****
  • Posts: 13489
Re: Error whilke linking TAChart
« Reply #1 on: August 31, 2025, 11:22:50 pm »
I happen to have a VM with Ubuntu 24.04.3 LTS/gtk2. Trying to compile and run the "ChartEditor" demo of TAChart - no issue (using Laz4.0+FPC3.2.2, and Laz/main+FPC3.2.2).

Did you try a clean rebuild of the IDE? "Tools" > "Configure Build Lazarus" > in the "Clean up" box check "Clean all" and "Switch to automatic mode after building" > "Build".

mm7

  • Full Member
  • ***
  • Posts: 231
  • PDP-11 RSX Pascal, Turbo Pascal, Delphi, Lazarus
Re: Error while linking TAChart
« Reply #2 on: September 01, 2025, 02:22:43 am »
Yes it works without debug info turned on.
Could you try with Dwarf2 or Dwarf3?

I tried to do "Tools" > "Configure Build Lazarus" > in the "Clean up" box check "Clean all" and "Switch to automatic mode after building" > "Build".

Build fails:
lazarus.pp(57,3) Error: Cannot find Interfaces used by Lazarus, incompatible ppu=/home/mark/.lazarus/lib/units/x86_64-linux/gtk2/interfaces.ppu, package LCL
« Last Edit: September 01, 2025, 02:33:10 am by mm7 »

wp

  • Hero Member
  • *****
  • Posts: 13489
Re: Error while linking TAChart
« Reply #3 on: September 01, 2025, 10:54:42 am »
No idea what's wrong here, this should not happen. Did you break your IDE? Exit the IDE, delete (or better: rename) your config folder /home/mark/.lazarus, and restart the IDE - it should use default parameters. But note that you will lose all your settings and manually installed components this way. When the new IDE starts for the first time make sure to keep the default debugger backend (FPDebug). Test the issue with the new IDE

Lutz Mändle

  • Jr. Member
  • **
  • Posts: 87
Re: Error while linking TAChart
« Reply #4 on: September 01, 2025, 11:13:32 am »
@mm7

If you are on Linux it can be helpful to manually delete the folders lib and units in /home/<user>/.lazarus before you rebuild the IDE. The Clean All build mode should do this, but sometimes is doesnt work as expected.

Edit: fix typo.

mm7

  • Full Member
  • ***
  • Posts: 231
  • PDP-11 RSX Pascal, Turbo Pascal, Delphi, Lazarus
Re: Error while linking TAChart
« Reply #5 on: September 01, 2025, 02:58:07 pm »
Removing of /home/mark/.lazarus did not help.
I uninstalled all packages, fpc-laz, fpc-src and lazarus.
Removed libs that were left in /usr/lib/fpc/3.2.2, files in /usr/share/fpcsrc/3.2.2
Removed /etc/fpc.cfg and /etc/fppkg.cfg
Installed fpc-laz, fpc-src and lazarus 4.
All works now.

Previously I compiled RTL and FPC packages with Dwarf3. And it was working well till yesterday. No idea what happened. It was just linux update.


 

TinyPortal © 2005-2018