Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 02 Jul 2012 19:47:49 +0400
From:      Boris Samorodov <bsam@passap.ru>
To:        freebsd-ports@freebsd.org
Subject:   [clang from ports bug?] libreoffice and clang from ports: C preprocessor "/usr/local/bin/clang-cpp" fails sanity check
Message-ID:  <4FF1C2A5.3070708@passap.ru>

next in thread | raw e-mail | index | archive | help
Hi List,

with latest ports after installing devel/llvm and lang/clang I get:
-----
checking whether to include symbols... no
checking whether to strip the solver or not.... yes
checking whether cups support is present... checking for cupsPrintFiles 
in -lcups... yes
checking how to run the C preprocessor... /usr/local/bin/clang-cpp
configure: error: in 
`/usr/ports/editors/libreoffice/work/libreoffice-core-3.5.4.2':
configure: error: C preprocessor "/usr/local/bin/clang-cpp" fails sanity 
check
See `config.log' for more details.
===>  Script "configure" failed unexpectedly.
-----

 From config.log:
-----
[...]
configure:7956: checking how to run the C preprocessor
configure:8074: result: /usr/local/bin/clang-cpp
configure:8103: /usr/local/bin/clang-cpp -I/usr/local/include 
-I/usr/local/include/db42 conftest.c
eval: /usr/local/bin/clang-cpp: not found
configure:8110: $? = 127
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "LibreOffice"
| #define PACKAGE_TARNAME "libreoffice"
| #define PACKAGE_VERSION "3.5"
| #define PACKAGE_STRING "LibreOffice 3.5"
| #define PACKAGE_BUGREPORT ""
| #define HAVE_LIBCUPS 1
| /* end confdefs.h.  */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
|                    Syntax error
configure:8103: /usr/local/bin/clang-cpp -I/usr/local/include 
-I/usr/local/include/db42 conftest.c
eval: /usr/local/bin/clang-cpp: not found
[...]
-----

And clang-cpp does not exist at LOCALBASE:
-----
% ls -l /usr/local/bin/clang*
-rwxr-xr-x  1 root  wheel  39237392  2 июл 19:25 /usr/local/bin/clang
lrwxr-xr-x  1 root  wheel         5  2 июл 19:25 /usr/local/bin/clang++ 
-> clang
-rwxr-xr-x  1 root  wheel    896552  2 июл 19:24 /usr/local/bin/clang-tblgen
-----

Creating a symlink clang->clang-cpp helps to configure libreoffice.
Is it lang/clang bug?

The system:
-----
% uname -a
FreeBSD bsam.wart.ru 10.0-CURRENT FreeBSD 10.0-CURRENT #18 r237572M: Wed 
Jun 27 18:15:27 SAMT 2012     bsam@bsam.wart.ru:/usr/obj/usr/src/sys/BBX 
  i386
-----

It is built with clang and options:
-----
WITH_CLANG_IS_CC="YES"
WITH_LIBCPLUSPLUS="YES"
-----

-- 
WBR, Boris Samorodov (bsam)
FreeBSD Committer, http://www.FreeBSD.org The Power To Serve




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4FF1C2A5.3070708>