Error while linking TAChart lazarus / 12-Debugger ---------------------------------------------------------------------- mm7 · 2025-08-31 19:04 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/TAChartLazarusPk g/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)" ---------------------------------------------------------------------- wp · 2025-08-31 21:22 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 · 2025-09-01 00:22 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 ---------------------------------------------------------------------- wp · 2025-09-01 08:54 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 · 2025-09-01 09:13 @mm7 If you are on Linux it can be helpful to manually delete the folders lib and units in /home//.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 · 2025-09-01 12:58 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.