This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Build problem with gcc 3.4 on Mac OS X
- From: Davide Angelocola <riavulo at slackit dot org>
- To: gcc at gcc dot gnu dot org, gcc-help at gcc dot gnu dot org
- Date: Sun, 20 Jun 2004 13:43:09 +0200
- Subject: Build problem with gcc 3.4 on Mac OS X
Hello,
I'm getting a weird error with the build process under Mac OS X
Panther while configuring gcc 3.4.
$ cd gcc-3.4.0
$ mkdir BUILD
$ cd BUILD
$ ../configure --prefix=/usr --program-suffix="-3.4" --with-cpu=ppc
--enable-altivec ppc --target=i686
...
checking how to run the C preprocessor... /lib/cpp
configure: error: C preprocessor "/lib/cpp" fails sanity check
$ grep cpp gcc/config.log
/Users/davang/gcc-3.4.0/gcc/configure: line 1: /lib/cpp: No such file
or directory
configure:2814: /lib/cpp conftest.c
...
Ok, I've no /lib/cpp binary!
$ CPP="/usr/bin/cpp" make
...
checking how to run the C preprocessor... /lib/cpp
configure: error: C preprocessor "/lib/cpp" fails sanity check
$ grep cpp gcc/config.log
configure:2896: result: /usr/bin/cpp3
configure:2921: /usr/bin/cpp3 conftest.c
cpp-precomp: warning: errors during smart preprocessing, retrying in
basic mode
configure:2921: /usr/bin/cpp3 conftest.c
cpp-precomp: warning: errors during smart preprocessing, retrying in
basic mode
configure:2995: error: C preprocessor "/usr/bin/cpp3" fails sanity check
ac_cv_env_CPP_value=/usr/bin/cpp3
ac_cv_prog_CPP=/usr/bin/cpp3
CPP='/usr/bin/cpp3'
cpp_install_dir=''
So I've tried to turning off smart processing:
$ CPP="/usr/bin/cpp" CPPFLAGS="-no-cpp-precomp" make
...
checking how to run the C preprocessor... /lib/cpp
configure: error: C preprocessor "/lib/cpp" fails sanity check
$ grep -i cpp gcc/config.log
configure:2111: gcc -g -O2 -no-cpp-precomp conftest.c >&5
configure:2205: gcc -o conftest -g -O2 -no-cpp-precomp conftest.c >&5
configure:2261: gcc -c -g -O2 -no-cpp-precomp conftest.c >&5
configure:2315: gcc -c -g -O2 -no-cpp-precomp conftest.c >&5
configure:2365: gcc -c -g -no-cpp-precomp conftest.c >&5
configure:2463: gcc -c -g -O2 -no-cpp-precomp conftest.c >&5
configure:2508: gcc -c -g -O2 -no-cpp-precomp conftest.c >&5
configure:2749: gcc -c -Wno-long-long -no-cpp-precomp conftest.c >&5
configure:2896: result: /usr/bin/cpp
configure:2921: /usr/bin/cpp -no-cpp-precomp conftest.c
configure:2921: /usr/bin/cpp -no-cpp-precomp conftest.c
configure:2995: error: C preprocessor "/usr/bin/cpp" fails sanity check
ac_cv_env_CPPFLAGS_set=set
ac_cv_env_CPPFLAGS_value=-no-cpp-precomp
ac_cv_env_CPP_set=set
ac_cv_env_CPP_value=/usr/bin/cpp
ac_cv_prog_CPP=/usr/bin/cpp
CPP='/usr/bin/cpp'
CPPFLAGS='-no-cpp-precomp'
cpp_install_dir=''
$ cpp --version
cpp --version
cpp (GCC) 3.3 20030304 (Apple Computer, Inc. build 1495)
...
Thanks for any input.
-- Davide Angelocola