Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |  

This web mail archive is frozen.

This page is part of a frozen web archive of this mailing list.

You can still navigate around this archive, but know that no new mails have been added to it since July of 2016.

Click here to be taken to the new web archives of this list; it includes all the mails that are in this frozen archive plus all new mails that have been sent to the list since it was migrated to the new archives.

From: Brian Barrett (brbarret_at_[hidden])
Date: 2006-03-30 09:31:23


On Mar 30, 2006, at 9:24 AM, Adams Samuel D Contr AFRL/HEDR wrote:

> Here is the log.
>
> -----Original Message-----
> From: users-bounces_at_[hidden]
> To: Open MPI Users
> Sent: 3/29/2006 10:57 AM
> Subject: Re: [OMPI users] OMPI 1.0.1, CentOS 4.2 and gcc4
>
> On Mar 29, 2006, at 11:35 AM, Adams Samuel D Contr AFRL/HEDR wrote:
>
>> dIt seems like this should be a simple problem. I am trying to get
>> OpenMPI
>> to compile on a CentOS 4.2 (like Redhat EL 4.2) box. It has
>> installed gcc
>> 3.4, and gcc 4.0. I want to compile OMPI with gcc4, but I am
>> getting this
>> error. What am I doing wrong?
>>
>> checking how to run the C preprocessor... gcc4
>> configure: error: C preprocessor "gcc4" fails sanity check
>> See `config.log' for more details.
>> [root_at_Cent01 openmpi-1.0.1]#
>
> Could you include the config.log file -- it will have the information
> we need to help you.

It looks like you have the environment variable CPP set to gcc4,
which is what is causing the problems. Without arguments, gcc4 runs
both the C preprocessor *and* the compiler. CPP should be set to
something that will run *only* the C preprocessor. I think you would
want to set CPP to either the C preprocessor installed with your gcc4
setup (I'll admit I dont' know what it is called when program
suffixes are added) or to something like "gcc4 -E".

Hope this helps,

Brian

-- 
   Brian Barrett
   Open MPI developer
   http://www.open-mpi.org/