Recent

Author Topic: IDE cannot be recompiled on macOS: duplicate identifier LAZDEBUGGERFP  (Read 613 times)

AlexTP

  • Hero Member
  • *****
  • Posts: 2402
    • UVviewsoft
The subj error is shown when I rebuild IDE (with 'clean all' before).
IDE opens the file 'staticpackages.inc' where it highlights 2 errors in 2 lines (of about total 8 lines). 2 lines which refer to 'lazdebuggerfp' and 'laz.virtualtreeview' (I write it by memory).

macOS El Capitan x64. Lazarus 'latest' from git. FPC 3.2 'fixes'.
« Last Edit: February 28, 2023, 07:35:29 pm by AlexTP »

ccrause

  • Hero Member
  • *****
  • Posts: 856
Re: IDE cannot be recompiled on macOS: duplicate identifier LAZDEBUGGERFP
« Reply #1 on: February 28, 2023, 07:41:37 pm »
I think I got a similar problem recently. Went back to make clean all from console.,then managed to get IDE to rebuild itself with packages.

AlexTP

  • Hero Member
  • *****
  • Posts: 2402
    • UVviewsoft
Re: IDE cannot be recompiled on macOS: duplicate identifier LAZDEBUGGERFP
« Reply #2 on: February 28, 2023, 07:44:50 pm »
Ok, how can I call 'clean all' from terminal?
Is it 'make clean all' from lazarus dir?

ccrause

  • Hero Member
  • *****
  • Posts: 856
Re: IDE cannot be recompiled on macOS: duplicate identifier LAZDEBUGGERFP
« Reply #3 on: February 28, 2023, 08:11:29 pm »
Yes, call make from the base Lazarus folder. There should be a file called Makefile which will tell make how to build Lazarus. Then execute make clean all from a terminal. Assuming FPC is in the path. If not, add the path to FPC as parameter:  make clean all FPC=path/to/fpc

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9868
  • Debugger - SynEdit - and more
    • wiki
Re: IDE cannot be recompiled on macOS: duplicate identifier LAZDEBUGGERFP
« Reply #4 on: February 28, 2023, 08:13:45 pm »
This happens once in a blue moon, that an older IDE (older by one single commit) can not compile a newer IDE.

In this case you can build from the IDE as follows (from memory):

- Add the package IdeDebugger
- open file Lazarus.pp, and from the uses comment out:
  // LazDebuggerFpLldb, LazDebuggerFp, laz.virtualtreeview_package,
  IIRC it is all three of them, but you need to check which ones to comment out
- before building, check "clean all"

Might be easier to build with the makefile.

AlexTP

  • Hero Member
  • *****
  • Posts: 2402
    • UVviewsoft
Re: IDE cannot be recompiled on macOS: duplicate identifier LAZDEBUGGERFP
« Reply #5 on: February 28, 2023, 08:44:45 pm »
Thanks people, 'make clean all' did the job.

 

TinyPortal © 2005-2018