Unable to install clang - ld64 fails

Ryan Schmidt ryandesign at macports.org
Sun Jun 19 12:57:21 PDT 2011


On Jun 19, 2011, at 11:07, Martin Gilday wrote:

> Ryan Schmidt wrote:

> 
>> On Jun 19, 2011, at 07:29, Martin Gilday wrote:
>> 
>>> I'm trying to install clang, but it fails when installing the dependency
>>> ld64.  I have the latest XCode 4 installed on Snow Leopard.
>> 
>> 
>> The relevant error in the log seems to be:
>> 
>> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_ld64/work/ld64-123.2/src/ld/parsers/archive_file.cpp:145:34:
>> error: use of undeclared identifier 'AR_EFMT1' [2]
>> 
>> It installs fine for me but I have Xcode 3.2.6 not Xcode 4.
>> 
>> You should file a bug report in our issue tracker.
> 
> I had the same error with XCode 3, I upgraded in the hope it would fix
> it.
> I'll file a bug, thanks.

Hmm. In that case, it's not an Xcode 4 problem. On my system, AR_EFMT1 is defined in /usr/include/ar.h, which is included at the top of archive_file.cpp, so I'm unclear why this identifier is allegedly undeclared on your system. Google turns up only one hit for "AR_EFMT1 undeclared" -- this thread. So this is not a general problem, and seems to be specific to something about your system. Is Xcode installed in a nonstandard location? Is there anything else unusual about your system that you can think of?





More information about the macports-users mailing list