public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Build problem with gcc 3.4 on Mac OS X
@ 2004-06-20 11:43 Davide Angelocola
       [not found] ` <6.1.1.1.0.20040620082940.0327e008@iplan-mn.corp.adobe.com>
  2004-06-26  2:51 ` Jim Wilson
  0 siblings, 2 replies; 6+ messages in thread
From: Davide Angelocola @ 2004-06-20 11:43 UTC (permalink / raw)
  To: gcc, gcc-help

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-06-28 18:12 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-20 11:43 Build problem with gcc 3.4 on Mac OS X Davide Angelocola
     [not found] ` <6.1.1.1.0.20040620082940.0327e008@iplan-mn.corp.adobe.com>
     [not found]   ` <jeekoadw5w.fsf@sykes.suse.de>
2004-06-20 21:26     ` Davide Angelocola
2004-06-26  2:51 ` Jim Wilson
2004-06-26  3:03   ` Phil Edwards
2004-06-27 17:27   ` Davide Angelocola
2004-06-28 18:12     ` Jim Wilson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).