I have a peculiar problem that surfaced on a fresh install of the Developer tools on a G4 laptop. The first time I used AppleScript studio on this machine I recived the following error:
“can’t locate file for: -lcrtl.o”
This occurs for any of the example AppleScript Studio projects as well as my own (projects that successfully built on my old machine).
I tried a re-install of all the Dev. tools to no avail. Any ideas as to how this error can be fixed?
I thought I remembered seeing a post here about this before, but can’t seem to find it now. The lcrtl.o file is a system file, not necessarily a developer file. There was some mention at another site about some files being installed by xcode, but I believe it is part of the basic osx install package. Depending on how your system software was installed it may have been a random oversight by the installer, it may be part of the xcode install package, or it may just be corrupt. What OS are you under, and what version of xcode are you using? Perhaps a reinstall of xcode might help, and if not then a reinstall of the OS. If you could get your hands on a copy of the file itself, say from a machine of comparable setup, perhaps a copy/paste of it would work… assuming you found out where to put it.
One more thing… If you go to the apple developer website and log in, you can download the most recent gcc compiler update. I have NO IDEA if this would help, but installing it is recommended anyways as it brings you up to date.
I also found this page, in a google search for “lcrtl”.
Sorry I couldn’t be of more help, but this seems to only randomly affect a few people so I can’t give you a cut and dry answer. Good luck,
Apple switched who is responsible for installing the files crt1.o, bundle.o plus a few others (a OS install or a development tools install). The l in front refers to the files being library files and is not part of their name.
If you running Panther - you should have a directory:
/Applications/Installers/Developer Tools/
If you reinstall the develop tools from the Developer package in that folder it should install the appropriate development tools for your system.
I think what has happened (why this error is so rare) is that most people have been updating old versions of their OS with newer versions and as a result have kept these files which used to be installed by the system. The problem has occurred when somebody gets a new Macintosh and then installs the developer tools from a seperate disk when they should be installing from the package already set up on their Macintosh.
I thought I would post what I found when battling this problem in case anyone else needs this info for the future.
I completely reinstalled the developer tools and recieved the same error. After reading many posts of people having similar problems and no solution presenting itself I re-installed the system. Here is where this gets interesting…
The OS I had problems on was 10.3 on the DVD that came with my G4 laptop - and this is the same disk I re-installed from. After a complete wipe of the drive, re-install of the OS, and re-install of the developer tools I had the SAME PROBLEM!!! The lcrt1.o file was missing. So, I found the retail 3-CD set for the same 10.3 OS, installed it, and problem was solved!
Was it coincidence or solar flares? Not sure. But the install/restore disk that came with my laptop SEEMS to be the culprit that was failing to install that one file.
Apparantly if you have an older version of Panther, there is a number of files which weren’t included on the OS, but were present on Xcode. As Panther evolved they started adding those files to the OS and removed them from Xcode. So if you have Panther, you should download and install Xcode 1.5 and then upgrade to 2.0.