Ticket #199 (closed bug: fixed)

Opened 4 months ago

Last modified 3 months ago

Troubles compiling mpich2 on Mac OS X 10.5.5 with Intel Fortran

Reported by: "Archer, Cristina" <carcher@csuchico.edu> Assigned to: chan
Priority: major Milestone: mpich2-1.1a2
Component: mpich2 Keywords:
Cc:

Description

Hi!

I am trying to install MPICH2 on my Mac Pro that runs OS X 10.5.5 and
has 2 quad-core Intel processors. I also have the Intel fortran
compiler ifort.

My build directory is:
/usr/local/mpich2

My install directory is:
/usr/local/bin

The un-tarred files reside here for now:
/Users/carcher/Desktop/mpich2-1.0.7

I issued the following commands to make sure that the Intel compiler
would be picked (and not the g77):
setenv FC ifort
setenv F77 ifort
setenv F90 ifort

Things seem to go well with the configure part, but then, when I typed
'make', I got this error at the end:

ranlib: archive member: ../../../lib/libmpich.a(setbotf.o) cputype
(16777223) does not match previous archive members cputype
(7) (all members must match)
ranlib ../../../lib/libmpich.a
ranlib: archive member: ../../../lib/libmpich.a(setbotf.o) cputype
(16777223) does not match previous archive members cputype (7) (all
members must match)
ranlib: for architecture: i386 file: ../../../lib/libmpich.a(osserv.o)
has no symbols
make[3]: *** [.libstamp2] Error 1
make[2]: *** [all-redirect] Error 1
make[1]: *** [all-redirect] Error 2
make: *** [all-redirect] Error 2


Any ideas???

I am including make.log and configure.log.

Thank you for
*****************************************************
   Cristina L. Archer

   Assistant Professor
   Department of Geological and Environmental Sciences
   California State University, Chico
   Physical Sciences Building, Room 115
   Chico, CA 95929-0205
   Tel. +1 (530) 898 5618
   carcher@csuchico.edu

   Consulting Assistant Professor
   Department of Civil and Environmental Engineering
   Stanford University
   Stanford, CA 94305
   http://www.stanford.edu/~lozej
   lozej@stanford.edu
*****************************************************

Attachments

configure.log (77.9 kB) - added by Archer, Cristina on 10/09/08 20:45:01.
Added by email2trac
make.log (1.1 MB) - added by Archer, Cristina on 10/09/08 20:45:01.
Added by email2trac

Change History

10/09/08 20:45:01 changed by Archer, Cristina

  • attachment make.log added.

Added by email2trac

10/09/08 20:45:01 changed by Archer, Cristina

  • id set to 199.

This message has 2 attachment(s)

10/09/08 22:11:19 changed by Rajeev Thakur

It looks like your gcc creates 32-bit binaries and ifort creates 64-bit
binaries, or vice-versa.

Try setting CFLAGS to -m64 before running configure. If that doesn't work,
try setting CLFAGS to -m32 before running configure.

Rajeev


> -----Original Message-----
> From: owner-mpich2-bugs@mcs.anl.gov
> [mailto:owner-mpich2-bugs@mcs.anl.gov] On Behalf Of mpich2
> Sent: Thursday, October 09, 2008 8:45 PM
> To: undisclosed-recipients:
> Subject: [mpich2-maint] #199: Troubles compiling mpich2 on
> Mac OS X 10.5.5 with Intel Fortran
>
> -------------------------------------------------------+------
> ----------
> -------------------------------------------------------+----
>  Reporter:  "Archer, Cristina" <carcher@csuchico.edu>  |
>   Type:  bug
>    Status:  new                                        |
> Priority:  major
> Milestone:                                             |
> Component:  mpich2
> -------------------------------------------------------+------
> ----------
> -------------------------------------------------------+----
>
>
>  {{{
>
>  Hi!
>
>  I am trying to install MPICH2 on my Mac Pro that runs OS X
> 10.5.5 and  has 2 quad-core Intel processors. I also have the
> Intel fortran  compiler ifort.
>
>  My build directory is:
>  /usr/local/mpich2
>
>  My install directory is:
>  /usr/local/bin
>
>  The un-tarred files reside here for now:
>  /Users/carcher/Desktop/mpich2-1.0.7
>
>  I issued the following commands to make sure that the Intel
> compiler  would be picked (and not the g77):
>  setenv FC ifort
>  setenv F77 ifort
>  setenv F90 ifort
>
>  Things seem to go well with the configure part, but then,
> when I typed  'make', I got this error at the end:
>
>  ranlib: archive member: ../../../lib/libmpich.a(setbotf.o) cputype
>  (16777223) does not match previous archive members cputype
>  (7) (all members must match)
>  ranlib ../../../lib/libmpich.a
>  ranlib: archive member: ../../../lib/libmpich.a(setbotf.o) cputype
>  (16777223) does not match previous archive members cputype
> (7) (all  members must match)
>  ranlib: for architecture: i386 file:
> ../../../lib/libmpich.a(osserv.o)  has no symbols
>  make[3]: *** [.libstamp2] Error 1
>  make[2]: *** [all-redirect] Error 1
>  make[1]: *** [all-redirect] Error 2
>  make: *** [all-redirect] Error 2
>
>
>  Any ideas???
>
>  I am including make.log and configure.log.
>
>  Thank you for
>  *****************************************************
>     Cristina L. Archer
>
>     Assistant Professor
>     Department of Geological and Environmental Sciences
>     California State University, Chico
>     Physical Sciences Building, Room 115
>     Chico, CA 95929-0205
>     Tel. +1 (530) 898 5618
>     carcher@csuchico.edu
>
>     Consulting Assistant Professor
>     Department of Civil and Environmental Engineering
>     Stanford University
>     Stanford, CA 94305
>     http://www.stanford.edu/~lozej
>     lozej@stanford.edu
>  *****************************************************
>  }}}
>
>
> --
> Ticket URL: <https://trac.mcs.anl.gov/projects/mpich2/ticket/199>
>
>

10/10/08 13:24:31 changed by Cristina Archer

Dear Rajeev,

Thank you for your help! By setting the CFLAGS to -m32, make and make
install completed successfully.

Now I'll have to install MM5 ... another headache!

Regards,
Cristina
*****************************************************
    Cristina L. Archer

    Assistant Professor
    Department of Geological and Environmental Sciences
    California State University, Chico
    Physical Sciences Building, Room 115
    Chico, CA 95929-0205
    Tel. +1 (530) 898 5618
    carcher@csuchico.edu

    Consulting Assistant Professor
    Department of Civil and Environmental Engineering
    Stanford University
    Stanford, CA 94305
    http://www.stanford.edu/~lozej
    lozej@stanford.edu
*****************************************************

On Oct 9, 2008, at 8:11 PM, mpich2 wrote:

> -------------------------------------------------------
> +--------------------
> Reporter:  "Archer, Cristina" <carcher@csuchico.edu>  |        Owner:
>     Type:  bug                                        |
> Status:  new
> Priority:  major                                      |    Milestone:
> Component:  mpich2                                     |   Resolution:
> Keywords:                                             |
> -------------------------------------------------------
> +--------------------
>
>
> Comment (by Rajeev Thakur):
>
> {{{
>
> It looks like your gcc creates 32-bit binaries and ifort creates 64-
> bit
> binaries, or vice-versa.
>
> Try setting CFLAGS to -m64 before running configure. If that doesn't
> work,
> try setting CLFAGS to -m32 before running configure.
>
> Rajeev
>
>
>> -----Original Message-----
>> From: owner-mpich2-bugs@mcs.anl.gov
>> [mailto:owner-mpich2-bugs@mcs.anl.gov] On Behalf Of mpich2
>> Sent: Thursday, October 09, 2008 8:45 PM
>> To: undisclosed-recipients:
>> Subject: [mpich2-maint] #199: Troubles compiling mpich2 on
>> Mac OS X 10.5.5 with Intel Fortran
>>
>> -------------------------------------------------------+------
>> ----------
>> -------------------------------------------------------+----
>> Reporter:  "Archer, Cristina" <carcher@csuchico.edu>  |
>>  Type:  bug
>>   Status:  new                                        |
>> Priority:  major
>> Milestone:                                             |
>> Component:  mpich2
>> -------------------------------------------------------+------
>> ----------
>> -------------------------------------------------------+----
>>
>>
>> {{{
>>
>> Hi!
>>
>> I am trying to install MPICH2 on my Mac Pro that runs OS X
>> 10.5.5 and  has 2 quad-core Intel processors. I also have the
>> Intel fortran  compiler ifort.
>>
>> My build directory is:
>> /usr/local/mpich2
>>
>> My install directory is:
>> /usr/local/bin
>>
>> The un-tarred files reside here for now:
>> /Users/carcher/Desktop/mpich2-1.0.7
>>
>> I issued the following commands to make sure that the Intel
>> compiler  would be picked (and not the g77):
>> setenv FC ifort
>> setenv F77 ifort
>> setenv F90 ifort
>>
>> Things seem to go well with the configure part, but then,
>> when I typed  'make', I got this error at the end:
>>
>> ranlib: archive member: ../../../lib/libmpich.a(setbotf.o) cputype
>> (16777223) does not match previous archive members cputype
>> (7) (all members must match)
>> ranlib ../../../lib/libmpich.a
>> ranlib: archive member: ../../../lib/libmpich.a(setbotf.o) cputype
>> (16777223) does not match previous archive members cputype
>> (7) (all  members must match)
>> ranlib: for architecture: i386 file:
>> ../../../lib/libmpich.a(osserv.o)  has no symbols
>> make[3]: *** [.libstamp2] Error 1
>> make[2]: *** [all-redirect] Error 1
>> make[1]: *** [all-redirect] Error 2
>> make: *** [all-redirect] Error 2
>>
>>
>> Any ideas???
>>
>> I am including make.log and configure.log.
>>
>> Thank you for
>> *****************************************************
>>    Cristina L. Archer
>>
>>    Assistant Professor
>>    Department of Geological and Environmental Sciences
>>    California State University, Chico
>>    Physical Sciences Building, Room 115
>>    Chico, CA 95929-0205
>>    Tel. +1 (530) 898 5618
>>    carcher@csuchico.edu
>>
>>    Consulting Assistant Professor
>>    Department of Civil and Environmental Engineering
>>    Stanford University
>>    Stanford, CA 94305
>>    http://www.stanford.edu/~lozej
>>    lozej@stanford.edu
>> *****************************************************
>> }}}
>>
>>
>> --
>> Ticket URL: <https://trac.mcs.anl.gov/projects/mpich2/ticket/199>
>>
>>
>
> }}}
>
> --
> Ticket URL: <https://trac.mcs.anl.gov/projects/mpich2/ticket/199#comment:
> >

10/10/08 13:49:31 changed by thakur

  • status changed from new to closed.
  • resolution set to wontfix.

10/10/08 14:04:58 changed by Anthony Chan


An ABI compatibility test between C and Fortran compiler should be added in
mpich2.
I think the test can be done through a linking test.  Probably not enough time
for
1.0.8, but we should have this in 1.1.

A.Chan

----- "mpich2" <mpich2-maint@mcs.anl.gov> wrote:

> -------------------------------------------------------+--------------------
>  Reporter:  "Archer, Cristina" <carcher@csuchico.edu>  |        Owner:
>
>      Type:  bug                                        |       Status:
>  new
>  Priority:  major                                      |    Milestone:
>
> Component:  mpich2                                     |   Resolution:
>
>  Keywords:                                             |
> -------------------------------------------------------+--------------------
>
>
> Comment (by Cristina Archer):
>
>  {{{
>
>  Dear Rajeev,
>
>  Thank you for your help! By setting the CFLAGS to -m32, make and
> make
>  install completed successfully.
>
>  Now I'll have to install MM5 ... another headache!
>
>  Regards,
>  Cristina
>  *****************************************************
>      Cristina L. Archer
>
>      Assistant Professor
>      Department of Geological and Environmental Sciences
>      California State University, Chico
>      Physical Sciences Building, Room 115
>      Chico, CA 95929-0205
>      Tel. +1 (530) 898 5618
>      carcher@csuchico.edu
>
>      Consulting Assistant Professor
>      Department of Civil and Environmental Engineering
>      Stanford University
>      Stanford, CA 94305
>      http://www.stanford.edu/~lozej
>      lozej@stanford.edu
>  *****************************************************
>
>  On Oct 9, 2008, at 8:11 PM, mpich2 wrote:
>
>  > -------------------------------------------------------
>  > +--------------------
>  > Reporter:  "Archer, Cristina" <carcher@csuchico.edu>  |
> Owner:
>  >     Type:  bug                                        |
>  > Status:  new
>  > Priority:  major                                      |
> Milestone:
>  > Component:  mpich2                                     |
> Resolution:
>  > Keywords:                                             |
>  > -------------------------------------------------------
>  > +--------------------
>  >
>  >
>  > Comment (by Rajeev Thakur):
>  >
>  > {{{
>  >
>  > It looks like your gcc creates 32-bit binaries and ifort creates
> 64-
>  > bit
>  > binaries, or vice-versa.
>  >
>  > Try setting CFLAGS to -m64 before running configure. If that
> doesn't
>  > work,
>  > try setting CLFAGS to -m32 before running configure.
>  >
>  > Rajeev
>  >
>  >
>  >> -----Original Message-----
>  >> From: owner-mpich2-bugs@mcs.anl.gov
>  >> [mailto:owner-mpich2-bugs@mcs.anl.gov] On Behalf Of mpich2
>  >> Sent: Thursday, October 09, 2008 8:45 PM
>  >> To: undisclosed-recipients:
>  >> Subject: [mpich2-maint] #199: Troubles compiling mpich2 on
>  >> Mac OS X 10.5.5 with Intel Fortran
>  >>
>  >> -------------------------------------------------------+------
>  >> ----------
>  >> -------------------------------------------------------+----
>  >> Reporter:  "Archer, Cristina" <carcher@csuchico.edu>  |
>  >>  Type:  bug
>  >>   Status:  new                                        |
>  >> Priority:  major
>  >> Milestone:                                             |
>  >> Component:  mpich2
>  >> -------------------------------------------------------+------
>  >> ----------
>  >> -------------------------------------------------------+----
>  >>
>  >>
>  >> {{{
>  >>
>  >> Hi!
>  >>
>  >> I am trying to install MPICH2 on my Mac Pro that runs OS X
>  >> 10.5.5 and  has 2 quad-core Intel processors. I also have the
>  >> Intel fortran  compiler ifort.
>  >>
>  >> My build directory is:
>  >> /usr/local/mpich2
>  >>
>  >> My install directory is:
>  >> /usr/local/bin
>  >>
>  >> The un-tarred files reside here for now:
>  >> /Users/carcher/Desktop/mpich2-1.0.7
>  >>
>  >> I issued the following commands to make sure that the Intel
>  >> compiler  would be picked (and not the g77):
>  >> setenv FC ifort
>  >> setenv F77 ifort
>  >> setenv F90 ifort
>  >>
>  >> Things seem to go well with the configure part, but then,
>  >> when I typed  'make', I got this error at the end:
>  >>
>  >> ranlib: archive member: ../../../lib/libmpich.a(setbotf.o)
> cputype
>  >> (16777223) does not match previous archive members cputype
>  >> (7) (all members must match)
>  >> ranlib ../../../lib/libmpich.a
>  >> ranlib: archive member: ../../../lib/libmpich.a(setbotf.o)
> cputype
>  >> (16777223) does not match previous archive members cputype
>  >> (7) (all  members must match)
>  >> ranlib: for architecture: i386 file:
>  >> ../../../lib/libmpich.a(osserv.o)  has no symbols
>  >> make[3]: *** [.libstamp2] Error 1
>  >> make[2]: *** [all-redirect] Error 1
>  >> make[1]: *** [all-redirect] Error 2
>  >> make: *** [all-redirect] Error 2
>  >>
>  >>
>  >> Any ideas???
>  >>
>  >> I am including make.log and configure.log.
>  >>
>  >> Thank you for
>  >> *****************************************************
>  >>    Cristina L. Archer
>  >>
>  >>    Assistant Professor
>  >>    Department of Geological and Environmental Sciences
>  >>    California State University, Chico
>  >>    Physical Sciences Building, Room 115
>  >>    Chico, CA 95929-0205
>  >>    Tel. +1 (530) 898 5618
>  >>    carcher@csuchico.edu
>  >>
>  >>    Consulting Assistant Professor
>  >>    Department of Civil and Environmental Engineering
>  >>    Stanford University
>  >>    Stanford, CA 94305
>  >>    http://www.stanford.edu/~lozej
>  >>    lozej@stanford.edu
>  >> *****************************************************
>  >> }}}
>  >>
>  >>
>  >> --
>  >> Ticket URL: <https://trac.mcs.anl.gov/projects/mpich2/ticket/199>
>  >>
>  >>
>  >
>  > }}}
>  >
>  > --
>  > Ticket URL:
>  <https://trac.mcs.anl.gov/projects/mpich2/ticket/199#comment:
>  > >
>
>  }}}
>
> --
> Ticket URL:
> <https://trac.mcs.anl.gov/projects/mpich2/ticket/199#comment:>

10/10/08 14:24:13 changed by chan

  • status changed from closed to reopened.
  • resolution deleted.

This seems to happen pretty often, so we should have a configure test to warn user with a better message instead of a failure in make. I will reopen the ticket.

10/23/08 14:35:11 changed by balaji

  • owner set to chan.
  • status changed from reopened to new.
  • milestone set to mpich2-1.1a2.

Anthony -- can you take a look at it for a2?

10/23/08 15:55:50 changed by Anthony Chan

Sure.  is a2 before SC ?

----- "mpich2" <mpich2-maint@mcs.anl.gov> wrote:

> -------------------------------------------------------+--------------------
>  Reporter:  "Archer, Cristina" <carcher@csuchico.edu>  |        Owner:
>  chan
>      Type:  bug                                        |       Status:
>  new
>  Priority:  major                                      |    Milestone:
>  mpich2-1.1a2
> Component:  mpich2                                     |   Resolution:
>
>  Keywords:                                             |
> -------------------------------------------------------+--------------------
>
> Changes (by balaji):
>
>   * owner:  => chan
>   * status:  reopened => new
>   * milestone:  => mpich2-1.1a2
>
> Comment:
>
>  Anthony -- can you take a look at it for a2?
>
> --
> Ticket URL:
> <https://trac.mcs.anl.gov/projects/mpich2/ticket/199#comment:7>

11/24/08 16:19:01 changed by chan

  • status changed from new to closed.
  • resolution set to fixed.