|
From: Kevin H. <kho...@gm...> - 2012-08-05 01:40:42
|
On 2012-08-04, at 21:32 , Alexander Hansen <ale...@gm...> wrote: > On 8/4/12 6:28 PM, Kevin Horton wrote: >> I'm trying to get the latest cadabra to build on 10.8, and these efforts have run afoul of a configure failure with gcc47. >> >> Cadabra 1.31 won't compile with the Fink's default compilers - g++ complains about a syntax error. I tried gcc47 to see if that would work. I put "SetCXX: g++-4.7" in the info file, and added Depends and BuildDepends on gcc47-shlibs and gcc47 respectively. >> >> configure fails with: >> >> checking how to run the C++ preprocessor... /lib/cpp >> configure: error: C++ preprocessor "/lib/cpp" fails sanity check >> See `config.log' for more details. >> ### execution of /tmp/fink.ySYFx failed, exit code 1 >> ### execution of /tmp/fink.zSk50 failed, exit code 1 >> Removing runtime build-lock... >> Removing build-lock package... >> /sw/bin/dpkg-lockwait -r fink-buildlock-cadabra-1.31-1 >> (Reading database ... 197960 files and directories currently installed.) >> Removing fink-buildlock-cadabra-1.31-1 ... >> Failed: phase compiling: cadabra-1.31-1 failed >> >> =========== >> config.log has: >> ## ---------------- ## >> ## Cache variables. ## >> ## ---------------- ## >> ac_cv_prog_CXXCPP=/lib/cpp >> >> ## ----------------- ## >> ## Output variables. ## >> ## ----------------- ## >> CXXCPP='/lib/cpp' >> >> | Syntax error >> configure:3505: /lib/cpp -I/sw/lib/pango-ft219/include/pango-1.0 -I/sw/lib/pango-ft219/include -I/sw/lib/freetype219/include/freetype2 -I/sw/lib/freetype219/include -I/sw/lib/fontconfig2/include -I/sw/include -DX_LOCALE -fnested-functions conftest.cpp >> ./configure: line 3506: /lib/cpp: No such file or directory >> >> >> =========== >> I don't have a /lib/cpp. I've got /usr/bin/cpp. Why is configure looking for /lib/cpp? >> >> Any advice is appreciated. >> >> Thanks, >> >> -- >> Kevin Horton >> Ottawa, Canada >> >> >> > > That'd be because "gcc-4.7" doesn't exist as an executable name. Try > "g++-fsf-4.7". Thanks, but I still get the same failure even with "SetCXX: g++-fsf-4.7": checking whether g++-fsf-4.7 accepts -g... no checking whether ln -s works... yes checking whether make sets $(MAKE)... yes checking for a BSD-compatible install... /sw/bin/ginstall -c checking CFLAGS for maximum warnings... -Wall checking for lie... yes checking how to run the C++ preprocessor... /lib/cpp configure: error: C++ preprocessor "/lib/cpp" fails sanity check See `config.log' for more details. ### execution of /tmp/fink.QIBab failed, exit code 1 ### execution of /tmp/fink.jr19R failed, exit code 1 Removing runtime build-lock... Removing build-lock package... /sw/bin/dpkg-lockwait -r fink-buildlock-cadabra-1.31-1 (Reading database ... 197960 files and directories currently installed.) Removing fink-buildlock-cadabra-1.31-1 ... Failed: phase compiling: cadabra-1.31-1 failed -- Kevin Horton Ottawa, Canada |