Opened 5 years ago

Closed 5 years ago

#296 closed bug (fixed)

mpich2 make error

Reported by: "jagan TNAU" <jagan@…> Owned by:
Priority: major Milestone:
Component: mpich Keywords:
Cc:

Description

 Hello,
I have compiled mpich2-1.1.1a2 version in MAC book intel core2 duo,
2.4 GHz,  MAC OSX 10.5.4 (Leopard), Darwin 9.4.0 using the following env
settings as per suggestion of Anthony Chan

 export F77=ifort

 export F90=ifort

 export CC=/usr/bin/gcc

 export CXX=/usr/bin/c++

 export FFLAGS="-i4 -O3 -xT -align all -fno-alias -m64"
export F90FLAGS="-i4 -O3 -xT -align all -fno-alias -m64"

 export CFLAGS="-arch x86_64 -mmacosx-version-min=10.5 -m64 -O3
 -DMACOS  -isysroot /Developer/SDKs/MacOSX10.5.sdk"

 CXXFLAGS="-m64 -O3 -DMACOS -isysroot /Developer/SDKs/MacOSX10.5.sdk"

 ./configure --prefix=/usr/local/mpich --enable-f90

Still I got the same error as got for mpich2-1.1.0a1 version. I am attaching
configure log and make log for further help.


--

With regards

Dr.R.Jagannathan
Professor and Head
Agro Climate Research Centre,
Tamil Nadu Agricultural University,
Coimbatore - 641 003 India

PHONE: Off: 91-422-6611519 Res: 91-422-2453600
      Fax: 91-422-2430657 Mob: 91-94438 89891

Attachments (4)

1conflog (82.8 KB) - added by jagan TNAU 5 years ago.
Added by email2trac
1mklog (853.8 KB) - added by jagan TNAU 5 years ago.
Added by email2trac
part0001.html (1.7 KB) - added by jagan TNAU 5 years ago.
Added by email2trac
part0001.2.html (7.1 KB) - added by jagan TNAU 5 years ago.
Added by email2trac

Download all attachments as: .zip

Change History (7)

Changed 5 years ago by jagan TNAU

Added by email2trac

comment:1 Changed 5 years ago by jagan TNAU

  • id set to 296

This message has 3 attachment(s)

comment:2 Changed 5 years ago by Rajeev Thakur

You should still be able to do "make install" and then compile and run your
application.

Rajeev

> -----Original Message-----
> From: mpich2-bugs-bounces@mcs.anl.gov
> [mailto:mpich2-bugs-bounces@mcs.anl.gov] On Behalf Of mpich2
> Sent: Thursday, November 20, 2008 7:40 AM
> To: undisclosed-recipients:
> Subject: [mpich2-maint] #296: mpich2 make error
>
> ---------------------------------------------+----------------
> ----------
> ---------------------------------------------+----
>  Reporter:  "jagan TNAU" <jagan@tnau.ac.in>  |        Type:  bug
>    Status:  new                              |    Priority:  major
> Milestone:                                   |   Component:  mpich2
> ---------------------------------------------+----------------
> ----------
> ---------------------------------------------+----
>
>
>  {{{
>
>   Hello,
>  I have compiled mpich2-1.1.1a2 version in MAC book intel core2 duo,
>  2.4 GHz,  MAC OSX 10.5.4 (Leopard), Darwin 9.4.0 using the
> following env  settings as per suggestion of Anthony Chan
>
>   export F77=ifort
>
>   export F90=ifort
>
>   export CC=/usr/bin/gcc
>
>   export CXX=/usr/bin/c++
>
>   export FFLAGS="-i4 -O3 -xT -align all -fno-alias -m64"
>  export F90FLAGS="-i4 -O3 -xT -align all -fno-alias -m64"
>
>   export CFLAGS="-arch x86_64 -mmacosx-version-min=10.5 -m64 -O3
>   -DMACOS  -isysroot /Developer/SDKs/MacOSX10.5.sdk"
>
>   CXXFLAGS="-m64 -O3 -DMACOS -isysroot /Developer/SDKs/MacOSX10.5.sdk"
>
>   ./configure --prefix=/usr/local/mpich --enable-f90
>
>  Still I got the same error as got for mpich2-1.1.0a1
> version. I am  attaching  configure log and make log for further help.
>
>
>  --
>
>  With regards
>
>  Dr.R.Jagannathan
>  Professor and Head
>  Agro Climate Research Centre,
>  Tamil Nadu Agricultural University,
>  Coimbatore - 641 003 India
>
>  PHONE: Off: 91-422-6611519 Res: 91-422-2453600
>        Fax: 91-422-2430657 Mob: 91-94438 89891  }}}
>
>
> --
> Ticket URL: <https://trac.mcs.anl.gov/projects/mpich2/ticket/296>
>

comment:3 Changed 5 years ago by Anthony Chan


It appears that the trace_rlog doesn't pass CFLAGS
to libtool's linker.  That can be easily fixed, but the
real issue is if the generated shared library works with
the java (virtual machine) since you modified the ABI
of the object files ?  Since I don't have access to any
intel MacOSX, I can't confirm this.  In any case, try modify
mpich2-xxx/src/mpe2/src/slog2sdk/trace_rlog/src/Makefile.in
as follows:

Replace:
$(LIBTOOL) --mode=link $(CC) -o $(LIB_TRACE) $(LOBJ) $(LDFLAGS)
as:
$(LIBTOOL) --mode=link $(CC) $(CFLAGS) -o $(LIB_TRACE) $(LOBJ) $(LDFLAGS)

There should be 4 instances in the Makefile.in. Then rebuild
everything, i.e. make distclean, configure, make, make install.

BTW, what does -isysroot in CFLAGS do ?  (gcc manpage on our old
Power MacOSX does not have that option)

A.Chan

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

> ---------------------------------------------+------------------------------
>  Reporter:  "jagan TNAU" <jagan@tnau.ac.in>  |        Type:  bug
>    Status:  new                              |    Priority:  major
> Milestone:                                   |   Component:  mpich2
> ---------------------------------------------+------------------------------
>
>
>  {{{
>
>   Hello,
>  I have compiled mpich2-1.1.1a2 version in MAC book intel core2 duo,
>  2.4 GHz,  MAC OSX 10.5.4 (Leopard), Darwin 9.4.0 using the following
> env
>  settings as per suggestion of Anthony Chan
>
>   export F77=ifort
>
>   export F90=ifort
>
>   export CC=/usr/bin/gcc
>
>   export CXX=/usr/bin/c++
>
>   export FFLAGS="-i4 -O3 -xT -align all -fno-alias -m64"
>  export F90FLAGS="-i4 -O3 -xT -align all -fno-alias -m64"
>
>   export CFLAGS="-arch x86_64 -mmacosx-version-min=10.5 -m64 -O3
>   -DMACOS  -isysroot /Developer/SDKs/MacOSX10.5.sdk"
>
>   CXXFLAGS="-m64 -O3 -DMACOS -isysroot
> /Developer/SDKs/MacOSX10.5.sdk"
>
>   ./configure --prefix=/usr/local/mpich --enable-f90
>
>  Still I got the same error as got for mpich2-1.1.0a1 version. I am
>  attaching
>  configure log and make log for further help.
>
>
>  --
>
>  With regards
>
>  Dr.R.Jagannathan
>  Professor and Head
>  Agro Climate Research Centre,
>  Tamil Nadu Agricultural University,
>  Coimbatore - 641 003 India
>
>  PHONE: Off: 91-422-6611519 Res: 91-422-2453600
>        Fax: 91-422-2430657 Mob: 91-94438 89891
>  }}}
>
>
> --
> Ticket URL: <https://trac.mcs.anl.gov/projects/mpich2/ticket/296>

Changed 5 years ago by jagan TNAU

Added by email2trac

comment:4 Changed 5 years ago by jagan TNAU

Dear Anthony Chan,

Thanks for the input. I have compiled mpich2 without error as per your
suggestions.

The -isysroot is connects the directory path which follows it. Actually I
got this through google. An option called -isystem os there in the man gcc.
Actually when I remove -isysroot before the directory path mpich configure
fails. I was able to compile without
-isysroot /Developer/SDKs/MacOSX10.5.sdk also. Hence apart from the env
settings the following two things require for compilation in mac leopard
1. Provide malloc.h in src/include
2.  Modify mpich2-xxx/src/mpe2/src/slog2sdk/trace_rlog/src/Makefile.in as
suggested by A.Chan:

Replace: (4 instances)
$(LIBTOOL) --mode=link $(CC) -o $(LIB_TRACE) $(LOBJ) $(LDFLAGS)
as:
$(LIBTOOL) --mode=link $(CC) $(CFLAGS) -o $(LIB_TRACE) $(LOBJ) $(LDFLAGS)



On 11/21/08, mpich2 <mpich2-maint@mcs.anl.gov> wrote:
>
>
> ---------------------------------------------+------------------------------
> Reporter:  "jagan TNAU" <jagan@tnau.ac.in>  |        Owner:
>     Type:  bug                              |       Status:  new
> Priority:  major                            |    Milestone:
> Component:  mpich2                           |   Resolution:
> Keywords:                                   |
>
> ---------------------------------------------+------------------------------
>
>
> Comment (by Anthony Chan):
>
> {{{
>
>
> It appears that the trace_rlog doesn't pass CFLAGS
> to libtool's linker.  That can be easily fixed, but the
> real issue is if the generated shared library works with
> the java (virtual machine) since you modified the ABI
> of the object files ?  Since I don't have access to any
> intel MacOSX, I can't confirm this.  In any case, try modify
> mpich2-xxx/src/mpe2/src/slog2sdk/trace_rlog/src/Makefile.in
> as follows:
>
> Replace:
> $(LIBTOOL) --mode=link $(CC) -o $(LIB_TRACE) $(LOBJ) $(LDFLAGS)
> as:
> $(LIBTOOL) --mode=link $(CC) $(CFLAGS) -o $(LIB_TRACE) $(LOBJ) $(LDFLAGS)
>
> There should be 4 instances in the Makefile.in. Then rebuild
> everything, i.e. make distclean, configure, make, make install.
>
> BTW, what does -isysroot in CFLAGS do ?  (gcc manpage on our old
> Power MacOSX does not have that option)
>
> A.Chan
>
> ----- "mpich2" <mpich2-maint@mcs.anl.gov> wrote:
>
> >
>
> ---------------------------------------------+------------------------------
> >  Reporter:  "jagan TNAU" <jagan@tnau.ac.in>  |        Type:  bug
> >    Status:  new                              |    Priority:  major
> > Milestone:                                   |   Component:  mpich2
> >
>
> ---------------------------------------------+------------------------------
> >
> >
> >  {{{
> >
> >   Hello,
> >  I have compiled mpich2-1.1.1a2 version in MAC book intel core2 duo,
> >  2.4 GHz,  MAC OSX 10.5.4 (Leopard), Darwin 9.4.0 using the following
> > env
> >  settings as per suggestion of Anthony Chan
> >
> >   export F77=ifort
> >
> >   export F90=ifort
> >
> >   export CC=/usr/bin/gcc
> >
> >   export CXX=/usr/bin/c++
> >
> >   export FFLAGS="-i4 -O3 -xT -align all -fno-alias -m64"
> >  export F90FLAGS="-i4 -O3 -xT -align all -fno-alias -m64"
> >
> >   export CFLAGS="-arch x86_64 -mmacosx-version-min=10.5 -m64 -O3
> >   -DMACOS  -isysroot /Developer/SDKs/MacOSX10.5.sdk"
> >
> >   CXXFLAGS="-m64 -O3 -DMACOS -isysroot
> > /Developer/SDKs/MacOSX10.5.sdk"
> >
> >   ./configure --prefix=/usr/local/mpich --enable-f90
> >
> >  Still I got the same error as got for mpich2-1.1.0a1 version. I am
> >  attaching
> >  configure log and make log for further help.
> >
> >
> >  --
> >
> >  With regards
> >
> >  Dr.R.Jagannathan
> >  Professor and Head
> >  Agro Climate Research Centre,
> >  Tamil Nadu Agricultural University,
> >  Coimbatore - 641 003 India
> >
> >  PHONE: Off: 91-422-6611519 Res: 91-422-2453600
> >        Fax: 91-422-2430657 Mob: 91-94438 89891
> >  }}}
> >
> >
> > --
> > Ticket URL: <https://trac.mcs.anl.gov/projects/mpich2/ticket/296>
> }}}
>
> --
> Ticket URL: <https://trac.mcs.anl.gov/projects/mpich2/ticket/296#comment:>
>



--
Please visit our Agri Weather Bulletin page
http://agmet.tnau.ac.in/acrc/index.html

With regards

Dr.R.Jagannathan
Professor and Head
Agro Climate Research Centre,
Tamil Nadu Agricultural University,
Coimbatore - 641 003 India

PHONE: Off: 91-422-6611519 Res: 91-422-2453600
       Fax: 91-422-2430657 Mob: 91-94438 89891

comment:5 Changed 5 years ago by thakur

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.