On Oct 31, 2014, at 9:24 AM, RichardT <tunnard....@gmail.com> wrote:

> Alexander Hansen-2 wrote
>> Probably.  Mucking around with things under the hood can indeed make it
>> difficult to build new packages  unless you neutralize the changes, and
>> this is especially true when using a package manager since it expects
>> things to be a certain way.
> 
> Yeah...it was a pre-release needed for a specific course which needed a
> workaround for a bug in the Apple compiler. I thought I'd undone all of the
> changes, but it looks like perhaps not.
> 
> 
> Alexander Hansen-2 wrote
>> ^ is not standard for your listed Xcode CLI tools.  That’s supposed to be
>> a real file (and I don’t know of any ‘llvn-g++’ :-) )
> 
> I had completely reinstalled Xcode and the CLI tools and found that gcc
> worked but g++ wasn't linked to anything. The llvn-g++ was the only g++ I
> could find on the system and set a quick symlink to it.
> 

There’s never been such an animal that I know of.  “llvm-g++”, on the other 
hand, used to be a separate compiler option, but now it’s just an alias to 
clang++.

$ ls -l /usr/bin/llvm-g++
lrwxr-xr-x 1 root wheel 7 Mar  3  2014 /usr/bin/llvm-g++ -> clang++

> 
> Alexander Hansen-2 wrote
>> I get the following different outputs when building nurses on 10.9 with
>> the Xcode 6.1 tools:
>> 
>> checking whether gcc understands -c and -o together... yes
>> checking how to run the C preprocessor... gcc -E
>> 
>> You may well _have_ a /lib/cpp from something you installed earlier, along
>> with some non-Xcode compiler elsewhere in your PATH.
>> 
>> What do you get from the following (before doing any changes):
>> 
>> /sw/var/lib/fink/path-prefix-libcxx/g++ --version
>> /lib/cpp --version
>> 
>> ?  It would also be useful to see a relevant portion of the config.log
>> file from your ncurses build directory.
> 
> /sw/var/lib/fink/path-prefix-libcxx/g++ --version
> /sw/var/lib/fink/path-prefix-libcxx/g++: line 23: exec: g++: not found
> 
> /lib/cpp --version
> -bash: /lib/cpp: No such file or directory
> 
> So this looks problematic!
> 
> Extract from the config.log:
> %%%%
> Syntax error
> configure:17345: /lib/cpp   -D_DARWIN_C_SOURCE -DNDEBUG conftest.cc
> ./configure: line 17346: /lib/cpp: No such file or directory
> configure:17351: $? = 127
> configure: failed program was:
> #line 17340 "configure"
> #include "confdefs.h"
> #include <assert.h>
>                     Syntax error
> configure:17412: error: C++ preprocessor "/lib/cpp" fails sanity check
> %%%%
> 
> All of the errors throughout the log are it not being able to find g++ or
> /lib/cpp...
> 
> Thank you for your extremely rapid response!
> 
> 
> 


I’d start by having a g++ which isn’t a dangling symlink. :-)  The build might 
be falling back to /lib/cpp because of that.  You might be able to get away 
with just having /usr/bin/g++ be a symlink to /usr/bin/clang++ .

-- 
Alexander Hansen, Ph.D.
Fink User Liaison


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

Reply via email to