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

> Hello again,
> 
> Apologies if this has been answered: I searched and couldn't find a fix.
> 
> I recently found, after a very happy year of using fink, that all of my fink
> package updates and new builds were crashing for a range of reasons which
> seemed to be linked to fink looking for libraries in the wrong locations
> (this may have been related to some jury-rigging that had been necessary to
> install a different program without fink).

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.

> I then decided to attempt a
> complete reinstall of fink, deleting /Applications/Fink/* and moving /sw to
> /sw2 as a backup.
> 
> When trying to install fink I receive the following error message:
> 
> %%%%%%%%%%%%%%%%%%%%%%%%%
> 
> checking whether /sw/var/lib/fink/path-prefix-libcxx/g++ understands -c and
> -o together... no
> checking how to run the C++ preprocessor... /lib/cpp
> configure: error: C++ preprocessor "/lib/cpp" fails sanity check
> ### execution of ./configure failed, exit code 1
> phase compiling: ncurses-5.9-20110507-1 failed
> 
> 
> Package manager version: 0.38.2
> Distribution version: selfupdate-point (bootstrap), 10.9, x86_64
> Trees: local/main stable/main
> Xcode.app: 6.1
> Xcode command-line tools: 6.1.0.0.1.1413057044
> Max. Fink build jobs:  1
> 
> ERROR: Bootstrap phase 2 failed!
> 
> %%%%%%%%%%%%%%%%%%%%%%%%%
> 
> 
> For reference:
> ls -l /usr/bin/gcc /usr/bin/g++ /usr/bin/cpp /usr/bin/c++
> lrwxr-xr-x  1 root  wheel      7 23 Sep  2013 /usr/bin/c++ -> clang++
> -rwxr-xr-x  1 root  wheel  14224 23 Sep  2013 /usr/bin/cpp
> lrwxr-xr-x  1 root  wheel      8 31 Oct 14:34 /usr/bin/g++ -> llvn-g++

^ 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++’ :-) )

> -rwxr-xr-x  1 root  wheel  14224 23 Sep  2013 /usr/bin/gcc
> 

I get:

$ ls -l /usr/bin/gcc /usr/bin/g++ /usr/bin/cpp /usr/bin/c++
lrwxr-xr-x 1 root wheel     7 Mar  3  2014 /usr/bin/c++ -> clang++
-rwxr-xr-x 1 root wheel 14224 Mar  3  2014 /usr/bin/cpp
-rwxr-xr-x 1 root wheel 14224 Mar  3  2014 /usr/bin/g++
-rwxr-xr-x 1 root wheel 14224 Mar  3  2014 /usr/bin/gcc

> and
> 
> which cpp c++
> /usr/bin/cpp
> /usr/bin/c++
> 
> gcc, c++ and g++ successfully compile a hello world.
> 
> One concern is that fink seems to be looking for cpp in /lib/cpp and not
> /usr/bin/cpp: is this the problem? If so, should it just be fixed with a
> symlink?
> 
> Many thanks,
> 
> 
> 
> --
> View this message in context: 
> http://fink.9193.n7.nabble.com/Fink-install-fail-cpp-fails-sanity-check-tp47031.html
> Sent from the fink-beginners mailing list archive at Nabble.com.
> 

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.

—AKH
------------------------------------------------------------------------------
_______________________________________________
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