The `ls -l` command shows "clang" in neither of the two paths.

I have now idea where the version of clang in /Developer/usr/bin came from (I can't imagine other than from Apple). Nevertheless, when I copy it to /usr/local/bin, where fink presumably can find it, I still get the "C compiler cannot create executables" error.

I've used fink for years, and never had this problem. The only connection I can think of is that I probably upgraded to Xcode 6.2 since I had prexiously done a "fink update-all". (Apple says Xcode 6.4 is not compatible with OS 10.9.5. That is, 6.2 is the most up-to-date version for my OS.)

I am to infer from yor comments that clang is not a part of the Xcode package?

Bob W.

On 7/25/15 5:04 PM, Hanspeter Niederstrasser wrote:
On 7/25/2015 1:53 PM, Robert Wohlhueter wrote:
Dear Mr. Hansen.

Responses to both your emails are here:

[summer:libidn-1.31-1/libidn-1.31]6 bobw% gcc --version
i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3)
Copyright (C) 2007 Free Software Foundation, Inc.

The config.log file associated with libidn-1.31 gives the same complaint
about not finding clang:

[summer:libidn-1.31-1/libidn-1.31]4 bobw% more config.log
..
configure:4353: gcc -v >&5
clang: error: unable to find utility "clang", not a developer tool or in
PATH

But I notice an important point in that file:

There are several lines in that log-file beginning "PATH:" , but none of
which contain the path to the `clang` executable -- namely
/Developer/usr/bin -- as I see  with:

There is no /Developer on 10.9/Xcode 6.2. Any clang there is not part of Apple's default build tools setup. Apple's clang lives in /usr/bin/clang, which is a stub for /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang.

[summer:libidn-1.31-1/libidn-1.31]7 bobw% echo $path
/Users/bobw /Developer/usr/bin /usr/local/bin /usr/X11R6/bin /sw/bin
/Applications /Applications/mol_structure/VMD
/Applications/mol_structure/VMD/NAMD_2.7b1_MacOSX-x86
/Applications/android-sdk/android-sdk-mac_x86/platform-tools /sw/bin
/sw/sbin /bin /sbin /usr/bin /usr/sbin
/usr/local/teTeX/bin/i386-apple-darwin-current /usr/local/bin
/usr/X11R6/bin

That apparently accounts for the error.  But leavea me with further
questions:  Why is the path seen by fink different than that seen by the
shell?  And how do I set the former?

Fink on purpose is designed to ignore as much as it can of a user's local setup, especially things like PATH and other ENVVARS. However, it can't deal with actual changes to the filesystem.

What is the output of (this is a one line command):

ls -l /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang /usr/bin/clang

and

/usr/bin/clang --version

Hanspeter



------------------------------------------------------------------------------
_______________________________________________
Fink-users mailing list
Fink-users@lists.sourceforge.net
List archive:
http://news.gmane.org/gmane.os.macosx.fink.user
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to