clang-cpp sanity check Fehler

klimaschreck

Well-Known Member
Hallo zusammen,

ich erhalte in letzter Zeit immer häufiger beim Compilieren der Ports die folgende Fehlermeldung:

Code:
configure: error: C preprocessor "clang-cpp" fails sanity check

Aktuell sind die Ports gobject-introspection, linphone-base, apache22 etc. betroffen.


Ich muss dazu sagen, dass ich noch ein altes FBSD 8.2 auf amd64 am Laufen habe. Vielleicht könnte es auch damit zu tun haben. Vielleicht gibt es aber auch eine Konfigurationsänderung, so dass der Fehler nicht mehr auftritt.
 
Habe ich um ehrlich zu sein noch nie gesehen? Benutzt du clang aus den Ports? Der sollte ziemlich aktuell sein!
 
ja, ich nutze clang aus den Ports:

Code:
pkg_info|grep clang
clang-3.1_2         C, Objective-C, and (alpha-quality) C++ compiler

Vielleicht hilft ein größerer Auszug aus dem configure...

Code:
checking for clang option to accept ISO C89... none needed
checking dependency style of clang... gcc3
checking for strerror in -lcposix... no
checking for gcc... (cached) clang
checking whether we are using the GNU C compiler... (cached) yes
checking whether clang accepts -g... (cached) yes
checking for clang option to accept ISO C89... (cached) none needed
checking dependency style of clang... (cached) gcc3
checking for inline... inline
checking for gcc... (cached) clang
checking whether we are using the GNU C compiler... (cached) yes
checking whether clang accepts -g... (cached) yes
checking for clang option to accept ISO C89... (cached) none needed
checking dependency style of clang... (cached) gcc3
checking how to run the C preprocessor... clang-cpp
configure: error: in `/usr/ports/net/linphone-base/work/linphone-3.2.1':
configure: error: C preprocessor "clang-cpp" fails sanity check
See `config.log' for more details.
===>  Script "configure" failed unexpectedly.
Please report the problem to sylvio@FreeBSD.org [maintainer] and attach the
"/usr/ports/net/linphone-base/work/linphone-3.2.1/config.log" including the
output of the failure of your make command. Also, it might be a good idea to
provide an overview of all packages installed on your system (e.g. a
/usr/sbin/pkg_info -Ea).
*** Error code 1
 
anbei noch ein Ausschnitt aus dem configure.log für apache22

Code:
configure:5257: checking how to run the C preprocessor
configure:5327: result: clang-cpp
configure:5347: clang-cpp   conftest.c
clang-cpp: not found
configure:5347: $? = 127
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
|                    Syntax error
 
bei mir funktioniert es jetzt wieder. Die Ursache lag in der Datei make.conf. Ich hatte dort Einträge zu clang, die ich irgendwo aus dem Web herauskopiert hatte. Dort gab es auch Einträge zu clang-cpp. Die habe ich auskommentiert. Jetzt läuft das configure bei apache22 zumindest durch.

Code:
###                          
### CLANG                    
###                          
.if !defined(NO_CLANG)       
.if !defined(CC) || ${CC} == "cc"
CC= clang                    
.endif                       
.if !defined(CXX) || ${CXX} == "c++"
CXX= clang++                 
.endif                       
.if !defined(CPP) || ${CPP} == "cpp"
#CPP= clang-cpp              
#.if !defined(CXXCPP) || ${CXXCPP} == "cpp"
#CXXCPP= clang-cpp
#.endif
.endif
 
Back
Top