[Lazarus] IDE rebuild failure on MAC OS

Giuliano Colla giuliano.colla at fastwebnet.it
Wed Apr 5 09:45:05 CEST 2023

I have updated Lazarus to 2.2.6 on Mac OS (Apple Silicon M1 processor).

As I'm using some extra packages, I needed to rebuild the IDE in order 
to install those packages. But to my dismay, building of the normal IDE, 
without touching the original settings, failed with a rather unexpected 

(9022) Compiling resource /Applications/Lazarus/units/x86_64-darwin/cocoa/lazarus.or
Warning: (9011) Object lazaruspackageintf.o not found, Linking may fail !
(9015) Linking ../lazarus
ld: file not found: lazaruspackageintf.o
make[2]: *** [lazarus] Error 1
make[1]: *** [idepkg] Error 2
make: *** [idepkg] Error 2
An error occurred while linking

After some fiddling trying to make it find lazaruspackageintf, I tried 
to rebuild in a different setup, i.e. debug IDE. It worked just fine. 
Then I tried to build again as normal IDE, and this time it did work. 
Notice that I didn't touch neither the settings for normal IDE, nor 
those for the debug IDE. Some invisible parameter which has been reset 
switching from normal to debug and back? A strange hiccup of Mac?

There is another strange issue. While fighting with the IDE rebuild I 
had tampered with the Project Options of the project which was open, 
because I had seen in the past that sometimes the current Project 
Options have an influence on the IDE build. I had deleted the dependency 
from LCL, which made impossible to compile, of course. But when trying 
to add the dependency, I discovered that I was unable to enter upper 
case characters. My upper case LCL was entered as a lower case lcl. The 
only way has been to add an LCL file to the project, and confirm that I 
wanted all the package and not just one file. Any idea of how to solve 
that issue?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20230405/63ad394d/attachment.htm>

More information about the lazarus mailing list