From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23445 invoked by alias); 20 Jun 2004 11:43:05 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 23430 invoked from network); 20 Jun 2004 11:43:02 -0000 Received: from unknown (HELO ibook.local) (81.211.161.189) by sourceware.org with SMTP; 20 Jun 2004 11:43:02 -0000 Received: from [127.0.0.1] (localhost [127.0.0.1]) by ibook.local (Postfix) with ESMTP id D18C4D4E2A; Sun, 20 Jun 2004 13:43:10 +0200 (CEST) Mime-Version: 1.0 (Apple Message framework v618) Content-Transfer-Encoding: 7bit Message-Id: <0108E64B-C2AF-11D8-98A0-000D9327FB0A@slackit.org> Content-Type: text/plain; charset=US-ASCII; format=flowed To: gcc@gcc.gnu.org, gcc-help@gcc.gnu.org From: Davide Angelocola Subject: Build problem with gcc 3.4 on Mac OS X Date: Sun, 20 Jun 2004 11:43:00 -0000 X-SW-Source: 2004-06/txt/msg00202.txt.bz2 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