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/
|