Problems with cpp (in wxWidgets-devel)

Mojca Miklavec mojca.miklavec.lists at gmail.com
Tue May 29 03:12:38 PDT 2012


On Tue, May 29, 2012 at 11:57 AM, Mojca Miklavec wrote:
> Hello,
>
> if I try to build wxWidgets with a patch that enables building with
> clang. But if I try to build +universal, it seems that I hit the
> problem of "looks like it's using parts of QuickDraw that are gone in
> Lion", so I need to build with SDK for 10.6.
>
> But then it fails with an equivalent of
>    > touch a.c
>    > cpp -isysroot /Developer/SDKs/MacOSX10.6.sdk a.c
>    i686-apple-darwin11-llvm-gcc-4.2: c: No such file or directory
> (replacing with /Applications/Xcode.app/.../MacOSX10.6.sdk doesn't
> solve anything; a.c has some contents, but it doesn't make any
> difference to cpp either)
>
> My question is: does that work for others? I had Xcode 4.2 installed
> and installed 4.3 on top. Is only my system that is messed up or is
> there something else that I'm missing? The file /usr/bin/cpp is a
> shell script.

Here is the config.log:

configure:17196: checking how to run the C preprocessor
configure:17312: result: /usr/bin/cpp
configure:17341: /usr/bin/cpp -I/opt/local/include -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk
conftest.c
i686-apple-darwin11-llvm-gcc-4.2: c: No such file or directory
configure:17347: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "wxWidgets"
| #define PACKAGE_TARNAME "wxwidgets"
| #define PACKAGE_VERSION "2.9.3"
| #define PACKAGE_STRING "wxWidgets 2.9.3"
| #define PACKAGE_BUGREPORT "wx-dev at lists.wxwidgets.org"
| #define __BSD__ 1
| #define __DARWIN__ 1
| #define TARGET_CARBON 1
| /* end confdefs.h.  */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
|        Syntax error
configure:17341: /usr/bin/cpp -I/opt/local/include -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk
conftest.c
i686-apple-darwin11-llvm-gcc-4.2: c: No such file or directory
configure:17347: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "wxWidgets"
| #define PACKAGE_TARNAME "wxwidgets"
| #define PACKAGE_VERSION "2.9.3"
| #define PACKAGE_STRING "wxWidgets 2.9.3"
| #define PACKAGE_BUGREPORT "wx-dev at lists.wxwidgets.org"
| #define __BSD__ 1
| #define __DARWIN__ 1
| #define TARGET_CARBON 1
| /* end confdefs.h.  */
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
|        Syntax error
configure:17409: error: C preprocessor "/usr/bin/cpp" fails sanity check
See `config.log' for more details.

Mojca


More information about the macports-dev mailing list