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@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
_______________________________________________
fpc-devel maillist  -  [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to