public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jim Wilson <wilson@specifixinc.com>
To: Davide Angelocola <riavulo@slackit.org>
Cc: gcc@gcc.gnu.org,  gcc-help@gcc.gnu.org
Subject: Re: Build problem with gcc 3.4 on Mac OS X
Date: Sat, 26 Jun 2004 02:51:00 -0000	[thread overview]
Message-ID: <40DCE477.8010508@specifixinc.com> (raw)
In-Reply-To: <0108E64B-C2AF-11D8-98A0-000D9327FB0A@slackit.org>

Davide Angelocola wrote:
> 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

If you look at the gcc/config.log file instead of grepping it, you 
should see some useful info that might explain the failure.

configure will try "$CC -E" first, if this doesn't work, then I might 
wonder if something is wrong with the value of CC in your environment.

I don't know why /lib/cpp would be used unless perhaps you have the CPP 
environment variable set to it, but then that begs the question of why 
that environment variable is set.  It should not be set normally.

> $ CPP="/usr/bin/cpp" make

You may need to delete some config.cache files, and it is probably 
better to rerun configure than run make.  Actually, it is probably best 
to rm -rf your entire build tree and try again, just to make sure you 
are getting a clean build.

I would suggest trying CPP="cc -E", or whatever $CC is set to instead of 
using /usr/bin/cpp directly.  Or better yet, just set it to an empty 
string, and let configure determine which program to use as the C 
preprocessor.
-- 
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com

  parent reply	other threads:[~2004-06-26  2:51 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-20 11:43 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 [this message]
2004-06-26  3:03   ` Phil Edwards
2004-06-27 17:27   ` Davide Angelocola
2004-06-28 18:12     ` Jim Wilson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=40DCE477.8010508@specifixinc.com \
    --to=wilson@specifixinc.com \
    --cc=gcc-help@gcc.gnu.org \
    --cc=gcc@gcc.gnu.org \
    --cc=riavulo@slackit.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).