Lazarus

Programming => Widgetset => Cocoa => Topic started by: emhartner on August 05, 2019, 11:40:52 pm

Title: Cannot Build FPC On Mac Due To Missing crt1.10.5.o
Post by: emhartner on August 05, 2019, 11:40:52 pm
I am now getting the following error when trying to build fpc:

Quote
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
Title: Re: Cannot Build FPC On Mac Due To Missing crt1.10.5.o
Post by: skalogryz on August 06, 2019, 12:17:03 am
try to install fpc3.0.4a, rather than fpc3.0.4
"a" version has actually the issue resolved.
Title: Re: Cannot Build FPC On Mac Due To Missing crt1.10.5.o
Post by: emhartner on August 06, 2019, 07:47:21 am
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
Title: Re: Cannot Build FPC On Mac Due To Missing crt1.10.5.o
Post by: Jonas Maebe on August 06, 2019, 08:41:45 am
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.
Title: Re: Cannot Build FPC On Mac Due To Missing crt1.10.5.o
Post by: emhartner on August 06, 2019, 09:36:28 am
Thank you Jonas.

Where do I use this OPT="-WM10.8"?  On the command line when issuing the make command?

Thank you,
Eric
Title: Re: Cannot Build FPC On Mac Due To Missing crt1.10.5.o
Post by: Jonas Maebe on August 06, 2019, 07:16:12 pm
Where do I use this OPT="-WM10.8"?  On the command line when issuing the make command?
Yes
Title: Re: Cannot Build FPC On Mac Due To Missing crt1.10.5.o
Post by: emhartner on August 06, 2019, 11:47:35 pm
Excellent!  I use the following to build FPC and it works great now:

make OPT="-WM10.8" clean all

Many thanks,
Eric
TinyPortal © 2005-2018