[fpc-devel] fpc compiler is unable to link on OSX Mavericks
Jonas Maebe
jonas.maebe at elis.ugent.be
Fri Oct 4 13:15:07 CEST 2013
On 04 Oct 2013, at 13:03, Michael Ring wrote:
> I today installed the GA of Mavericks, it seems that crt1.o was
> deleted from /usr/lib:
>
> [ring at macbookpro devel]$ fpc hello.pas
> Free Pascal Compiler version 2.6.2 [2013/02/03] for i386
> Copyright (c) 1993-2012 by Florian Klaempfl and others
> Target OS: Darwin for i386
> Compiling hello.pas
> Assembling (pipe) hello.s
> Linking hello
> ld: file not found: /usr/lib/crt1.o
> An error occurred while linking
> hello.pas(4,1) Error: Error while linking
> hello.pas(4,1) Fatal: There were 1 errors compiling module, stopping
>
> crt1.o can now be found in the following places:
>
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/
> Developer/SDKs/MacOSX10.8.sdk/usr/lib/crt1.o
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/
> Developer/SDKs/MacOSX10.9.sdk/usr/lib/crt1.o
If this is the case even after *re*installing the command line tools
in case you upgraded (which I assume you did, otherwise you'd
presumably get other errors), then you will have to explicitly specify
a location of an SDK via -XR/Applications/Xcode.app/Contents/Developer/
Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk or /
Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/
Developer/SDKs/MacOSX10.9.sdk
Jonas
More information about the fpc-devel
mailing list