Lazarus
Programming => Widgetset => Cocoa => Topic started by: emhartner on August 05, 2019, 11:40:52 pm
-
I am now getting the following error when trying to build fpc:
ld: file not found: /usr/lib/crt1.10.5.o
An error occurred while linking
pp.pas(263,36) Error: Error while linking
pp.pas(263,36) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
make[5]: *** [ppcx64] Error 1
make[4]: *** [next] Error 2
make[3]: *** [ppc1] Error 2
make[2]: *** [cycle] Error 2
make[1]: *** [compiler_cycle] Error 2
make: *** [build-stamp.x86_64-darwin] Error 2
I have even uninstalled an reinstalled XCode an also downloaded Command Line Tools from the following location and performed a reinstall:
https://download.developer.apple.com/Developer_Tools/Command_Line_Tools_macOS_10.14_for_Xcode_10.3/Command_Line_Tools_macOS_10.14_for_Xcode_10.3.dmg
Any idea how to get around this error?
Thank you,
Eric
-
try to install fpc3.0.4a, rather than fpc3.0.4
"a" version has actually the issue resolved.
-
Thank you for your reply. However, I've already tried installing fpc 3.0.4a. I even deleted the fpc.cfg prior to the installation to ensure a new configuration file would be created. The result is the exact same error:
ld: file not found: /usr/lib/crt1.10.5.o
-
The reason it doesn't help is that FPC is instructed to ignore fpc.cfg while building itself. The easiest workaround is to add OPT="-WM10.8" to build for Mac OS X 10.8 or later, which don't use this file anymore.
-
Thank you Jonas.
Where do I use this OPT="-WM10.8"? On the command line when issuing the make command?
Thank you,
Eric
-
Where do I use this OPT="-WM10.8"? On the command line when issuing the make command?
Yes
-
Excellent! I use the following to build FPC and it works great now:
make OPT="-WM10.8" clean all
Many thanks,
Eric