Opened 5 years ago

Closed 5 years ago

#293 closed bug (fixed)

Compiling error with MPI

Reported by: "Vemuri, Aparna" <avemuri@…> Owned by:
Priority: major Milestone:
Component: mpich Keywords:
Cc:

Description

Hi



I am trying to compile an executable that uses MPICH2 library and I have
been getting the following error:



/share/apps/mpich2-1.0.3/lib/libmpich.a(ch3u_connect_sock.o): In
function `MPIDI_CH3U_Get_business_card_sock':

ch3u_connect_sock.c:(.text+0x9b5): warning: Using 'gethostbyname' in
statically linked applications requires at runtime the shared libraries
from the glibc version used for linking



followed by a lot of  "undefined reference to ....."  type of errors. Is
this an MPICH error? I would appreciate any hints for this.



Thanks

Aparna

Attachments (12)

part0001.html (2.7 KB) - added by Vemuri, Aparna 5 years ago.
Added by email2trac
part0001.2.html (17.0 KB) - added by Vemuri, Aparna 5 years ago.
Added by email2trac
config.log (116.3 KB) - added by Vemuri, Aparna 5 years ago.
Added by email2trac
install.log (68.2 KB) - added by Vemuri, Aparna 5 years ago.
Added by email2trac
make.log (388.2 KB) - added by Vemuri, Aparna 5 years ago.
Added by email2trac
make.log.1.0.8 (454.0 KB) - added by Vemuri, Aparna 5 years ago.
Added by email2trac
config.log-1.0.8 (165.9 KB) - added by Vemuri, Aparna 5 years ago.
Added by email2trac
install.log.1.0.8 (64.3 KB) - added by Vemuri, Aparna 5 years ago.
Added by email2trac
config.2.log (85.1 KB) - added by Vemuri, Aparna 5 years ago.
Added by email2trac
configure.log (67.7 KB) - added by Vemuri, Aparna 5 years ago.
Added by email2trac
install.2.log (68.1 KB) - added by Vemuri, Aparna 5 years ago.
Added by email2trac
make.2.log (388.2 KB) - added by Vemuri, Aparna 5 years ago.
Added by email2trac

Download all attachments as: .zip

Change History (27)

Changed 5 years ago by Vemuri, Aparna

Added by email2trac

comment:1 Changed 5 years ago by Vemuri, Aparna

  • id set to 293

This message has 1 attachment(s)

comment:2 Changed 5 years ago by Anthony Chan

MPICH2-1.0.3 is very old.  The latest stable release is 1.0.8,
could you upgrade to the latest.  If the problem persists,
send us your configure and make outputs as stated in the mpich2's
installer's guide in mpich2-1.0.8/doc/installguide

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

> -------------------------------------------------+--------------------------
>  Reporter:  "Vemuri, Aparna" <avemuri@epri.com>  |        Type:  bug
>
>    Status:  new                                  |    Priority:  major
>
> Milestone:                                       |   Component:
> mpich2
> -------------------------------------------------+--------------------------
>
>
>  {{{
>
>  Hi
>
>
>
>  I am trying to compile an executable that uses MPICH2 library and I
> have
>  been getting the following error:
>
>
>
>  /share/apps/mpich2-1.0.3/lib/libmpich.a(ch3u_connect_sock.o): In
>  function `MPIDI_CH3U_Get_business_card_sock':
>
>  ch3u_connect_sock.c:(.text+0x9b5): warning: Using 'gethostbyname' in
>  statically linked applications requires at runtime the shared
> libraries
>  from the glibc version used for linking
>
>
>
>  followed by a lot of  "undefined reference to ....."  type of errors.
> Is
>  this an MPICH error? I would appreciate any hints for this.
>
>
>
>  Thanks
>
>  Aparna
>
>  }}}
>
>
> --
> Ticket URL: <https://trac.mcs.anl.gov/projects/mpich2/ticket/293>

Changed 5 years ago by Vemuri, Aparna

Added by email2trac

comment:3 Changed 5 years ago by Vemuri, Aparna

Anthony,



Unfortunately I cannot upgrade to 1.0.8 because we are trying to compare
two runs and the previous run used MPICH2 1.0.3 and we are planning to
keep everything consistent.



I have attached the config, make and install log for the 1.0.3 install
in case you want to look at them.



While trying to build the executable, I tried a couple of things.

1.    I tried removing the Bstatic link flag.

2.    I tried adding the line -lpthread to the MPICH library path.



None of these worked.



Thanks

Aparna



-----Original Message-----
From: owner-mpich2-bugs@mcs.anl.gov
[mailto:owner-mpich2-bugs@mcs.anl.gov] On Behalf Of mpich2
Sent: Tuesday, November 18, 2008 10:43 PM
Subject: Re: [mpich2-maint] #293: Compiling error with MPI



-------------------------------------------------+----------------------
----

 Reporter:  "Vemuri, Aparna" <avemuri@epri.com>  |        Owner:

     Type:  bug                                  |       Status:  new

 Priority:  major                                |    Milestone:

Component:  mpich2                               |   Resolution:

 Keywords:                                       |

-------------------------------------------------+----------------------
----





Comment (by Anthony Chan):



 {{{



 MPICH2-1.0.3 is very old.  The latest stable release is 1.0.8,

 could you upgrade to the latest.  If the problem persists,

 send us your configure and make outputs as stated in the mpich2's

 installer's guide in mpich2-1.0.8/doc/installguide



 A.Chan

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



 >


-------------------------------------------------+----------------------
----

 >  Reporter:  "Vemuri, Aparna" <avemuri@epri.com>  |        Type:  bug

 >

 >    Status:  new                                  |    Priority:
major

 >

 > Milestone:                                       |   Component:

 > mpich2

 >


-------------------------------------------------+----------------------
----

 >

 >

 >  {{{

 >

 >  Hi

 >

 >

 >

 >  I am trying to compile an executable that uses MPICH2 library and I

 > have

 >  been getting the following error:

 >

 >

 >

 >  /share/apps/mpich2-1.0.3/lib/libmpich.a(ch3u_connect_sock.o): In

 >  function `MPIDI_CH3U_Get_business_card_sock':

 >

 >  ch3u_connect_sock.c:(.text+0x9b5): warning: Using 'gethostbyname' in

 >  statically linked applications requires at runtime the shared

 > libraries

 >  from the glibc version used for linking

 >

 >

 >

 >  followed by a lot of  "undefined reference to ....."  type of
errors.

 > Is

 >  this an MPICH error? I would appreciate any hints for this.

 >

 >

 >

 >  Thanks

 >

 >  Aparna

 >

 >  }}}

 >

 >

 > --

 > Ticket URL: <https://trac.mcs.anl.gov/projects/mpich2/ticket/293>

 }}}



--

Ticket URL:
<https://trac.mcs.anl.gov/projects/mpich2/ticket/293#comment:>

comment:4 Changed 5 years ago by Anthony Chan

I don't see any attachment, could you please resend the output
files again.  Also, we need configure output, c.txt, as seen
on your screen (not config.log which is generated automatically
by configure), e.g.

    for csh and tcsh:

      ./configure --prefix=/home/you/mpich2-install |& tee c.txt

    for bash and sh:

      ./configure --prefix=/home/you/mpich2-install 2>&1 | tee c.txt

    Bourne-like shells, sh and bash, accept "2>&1 |".  Csh-like shell,
    csh and tcsh, accept "|&".  File c.txt is used to store all messages
    generated configure command and is useful for diagnosis if something
    goes wrong.

A.Chan

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

> -------------------------------------------------+--------------------------
>  Reporter:  "Vemuri, Aparna" <avemuri@epri.com>  |        Owner:
>      Type:  bug                                  |       Status:  new
>  Priority:  major                                |    Milestone:
> Component:  mpich2                               |   Resolution:
>  Keywords:                                       |
> -------------------------------------------------+--------------------------
>
>
> Comment (by Vemuri, Aparna):
>
>  {{{
>
>  Anthony,
>
>
>
>  Unfortunately I cannot upgrade to 1.0.8 because we are trying to
> compare
>  two runs and the previous run used MPICH2 1.0.3 and we are planning
> to
>  keep everything consistent.
>
>
>
>  I have attached the config, make and install log for the 1.0.3
> install
>  in case you want to look at them.
>
>
>
>  While trying to build the executable, I tried a couple of things.
>
>  1.    I tried removing the Bstatic link flag.
>
>  2.    I tried adding the line -lpthread to the MPICH library path.
>
>
>
>  None of these worked.
>
>
>
>  Thanks
>
>  Aparna
>
>
>
>  -----Original Message-----
>  From: owner-mpich2-bugs@mcs.anl.gov
>  [mailto:owner-mpich2-bugs@mcs.anl.gov] On Behalf Of mpich2
>  Sent: Tuesday, November 18, 2008 10:43 PM
>  Subject: Re: [mpich2-maint] #293: Compiling error with MPI
>
>
>
>
> -------------------------------------------------+----------------------
>  ----
>
>   Reporter:  "Vemuri, Aparna" <avemuri@epri.com>  |        Owner:
>
>       Type:  bug                                  |       Status:
> new
>
>   Priority:  major                                |    Milestone:
>
>  Component:  mpich2                               |   Resolution:
>
>   Keywords:                                       |
>
>
> -------------------------------------------------+----------------------
>  ----
>
>
>
>
>
>  Comment (by Anthony Chan):
>
>
>
>   {{{
>
>
>
>   MPICH2-1.0.3 is very old.  The latest stable release is 1.0.8,
>
>   could you upgrade to the latest.  If the problem persists,
>
>   send us your configure and make outputs as stated in the mpich2's
>
>   installer's guide in mpich2-1.0.8/doc/installguide
>
>
>
>   A.Chan
>
>   ----- "mpich2" <mpich2-maint@mcs.anl.gov> wrote:
>
>
>
>   >
>
>
>
> -------------------------------------------------+----------------------
>  ----
>
>   >  Reporter:  "Vemuri, Aparna" <avemuri@epri.com>  |        Type:
> bug
>
>   >
>
>   >    Status:  new                                  |    Priority:
>  major
>
>   >
>
>   > Milestone:                                       |   Component:
>
>   > mpich2
>
>   >
>
>
>
> -------------------------------------------------+----------------------
>  ----
>
>   >
>
>   >
>
>   >  {{{
>
>   >
>
>   >  Hi
>
>   >
>
>   >
>
>   >
>
>   >  I am trying to compile an executable that uses MPICH2 library and
> I
>
>   > have
>
>   >  been getting the following error:
>
>   >
>
>   >
>
>   >
>
>   >  /share/apps/mpich2-1.0.3/lib/libmpich.a(ch3u_connect_sock.o): In
>
>   >  function `MPIDI_CH3U_Get_business_card_sock':
>
>   >
>
>   >  ch3u_connect_sock.c:(.text+0x9b5): warning: Using 'gethostbyname'
> in
>
>   >  statically linked applications requires at runtime the shared
>
>   > libraries
>
>   >  from the glibc version used for linking
>
>   >
>
>   >
>
>   >
>
>   >  followed by a lot of  "undefined reference to ....."  type of
>  errors.
>
>   > Is
>
>   >  this an MPICH error? I would appreciate any hints for this.
>
>   >
>
>   >
>
>   >
>
>   >  Thanks
>
>   >
>
>   >  Aparna
>
>   >
>
>   >  }}}
>
>   >
>
>   >
>
>   > --
>
>   > Ticket URL: <https://trac.mcs.anl.gov/projects/mpich2/ticket/293>
>
>   }}}
>
>
>
>  --
>
>  Ticket URL:
>  <https://trac.mcs.anl.gov/projects/mpich2/ticket/293#comment:>
>
>  }}}
>
> --
> Ticket URL:
> <https://trac.mcs.anl.gov/projects/mpich2/ticket/293#comment:>

comment:5 Changed 5 years ago by Vemuri, Aparna

I am sorry I forgot to attach the log files. Here they are. Also, I
tried installing v1.0.8 and get the same error as before while trying to
compile.

I have attached the log files from both 1.0.3 and 1.0.8 installations.

Aparna

-----Original Message-----
From: owner-mpich2-bugs@mcs.anl.gov
[mailto:owner-mpich2-bugs@mcs.anl.gov] On Behalf Of mpich2
Sent: Wednesday, November 19, 2008 8:55 AM
Subject: Re: [mpich2-maint] #293: Compiling error with MPI

-------------------------------------------------+----------------------
----
 Reporter:  "Vemuri, Aparna" <avemuri@epri.com>  |        Owner:
     Type:  bug                                  |       Status:  new
 Priority:  major                                |    Milestone:
Component:  mpich2                               |   Resolution:
 Keywords:                                       |
-------------------------------------------------+----------------------
----


Comment (by Anthony Chan):

 {{{

 I don't see any attachment, could you please resend the output
 files again.  Also, we need configure output, c.txt, as seen
 on your screen (not config.log which is generated automatically
 by configure), e.g.

     for csh and tcsh:

       ./configure --prefix=/home/you/mpich2-install |& tee c.txt

     for bash and sh:

       ./configure --prefix=/home/you/mpich2-install 2>&1 | tee c.txt

     Bourne-like shells, sh and bash, accept "2>&1 |".  Csh-like shell,
     csh and tcsh, accept "|&".  File c.txt is used to store all
messages
     generated configure command and is useful for diagnosis if
something
     goes wrong.

 A.Chan

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

 >

-------------------------------------------------+----------------------
----
 >  Reporter:  "Vemuri, Aparna" <avemuri@epri.com>  |        Owner:
 >      Type:  bug                                  |       Status:  new
 >  Priority:  major                                |    Milestone:
 > Component:  mpich2                               |   Resolution:
 >  Keywords:                                       |
 >

-------------------------------------------------+----------------------
----
 >
 >
 > Comment (by Vemuri, Aparna):
 >
 >  {{{
 >
 >  Anthony,
 >
 >
 >
 >  Unfortunately I cannot upgrade to 1.0.8 because we are trying to
 > compare
 >  two runs and the previous run used MPICH2 1.0.3 and we are planning
 > to
 >  keep everything consistent.
 >
 >
 >
 >  I have attached the config, make and install log for the 1.0.3
 > install
 >  in case you want to look at them.
 >
 >
 >
 >  While trying to build the executable, I tried a couple of things.
 >
 >  1.    I tried removing the Bstatic link flag.
 >
 >  2.    I tried adding the line -lpthread to the MPICH library path.
 >
 >
 >
 >  None of these worked.
 >
 >
 >
 >  Thanks
 >
 >  Aparna
 >
 >
 >
 >  -----Original Message-----
 >  From: owner-mpich2-bugs@mcs.anl.gov
 >  [mailto:owner-mpich2-bugs@mcs.anl.gov] On Behalf Of mpich2
 >  Sent: Tuesday, November 18, 2008 10:43 PM
 >  Subject: Re: [mpich2-maint] #293: Compiling error with MPI
 >
 >
 >
 >
 >
-------------------------------------------------+----------------------
 >  ----
 >
 >   Reporter:  "Vemuri, Aparna" <avemuri@epri.com>  |        Owner:
 >
 >       Type:  bug                                  |       Status:
 > new
 >
 >   Priority:  major                                |    Milestone:
 >
 >  Component:  mpich2                               |   Resolution:
 >
 >   Keywords:                                       |
 >
 >
 >
-------------------------------------------------+----------------------
 >  ----
 >
 >
 >
 >
 >
 >  Comment (by Anthony Chan):
 >
 >
 >
 >   {{{
 >
 >
 >
 >   MPICH2-1.0.3 is very old.  The latest stable release is 1.0.8,
 >
 >   could you upgrade to the latest.  If the problem persists,
 >
 >   send us your configure and make outputs as stated in the mpich2's
 >
 >   installer's guide in mpich2-1.0.8/doc/installguide
 >
 >
 >
 >   A.Chan
 >
 >   ----- "mpich2" <mpich2-maint@mcs.anl.gov> wrote:
 >
 >
 >
 >   >
 >
 >
 >
 >
-------------------------------------------------+----------------------
 >  ----
 >
 >   >  Reporter:  "Vemuri, Aparna" <avemuri@epri.com>  |        Type:
 > bug
 >
 >   >
 >
 >   >    Status:  new                                  |    Priority:
 >  major
 >
 >   >
 >
 >   > Milestone:                                       |   Component:
 >
 >   > mpich2
 >
 >   >
 >
 >
 >
 >
-------------------------------------------------+----------------------
 >  ----
 >
 >   >
 >
 >   >
 >
 >   >  {{{
 >
 >   >
 >
 >   >  Hi
 >
 >   >
 >
 >   >
 >
 >   >
 >
 >   >  I am trying to compile an executable that uses MPICH2 library
and
 > I
 >
 >   > have
 >
 >   >  been getting the following error:
 >
 >   >
 >
 >   >
 >
 >   >
 >
 >   >  /share/apps/mpich2-1.0.3/lib/libmpich.a(ch3u_connect_sock.o): In
 >
 >   >  function `MPIDI_CH3U_Get_business_card_sock':
 >
 >   >
 >
 >   >  ch3u_connect_sock.c:(.text+0x9b5): warning: Using
'gethostbyname'
 > in
 >
 >   >  statically linked applications requires at runtime the shared
 >
 >   > libraries
 >
 >   >  from the glibc version used for linking
 >
 >   >
 >
 >   >
 >
 >   >
 >
 >   >  followed by a lot of  "undefined reference to ....."  type of
 >  errors.
 >
 >   > Is
 >
 >   >  this an MPICH error? I would appreciate any hints for this.
 >
 >   >
 >
 >   >
 >
 >   >
 >
 >   >  Thanks
 >
 >   >
 >
 >   >  Aparna
 >
 >   >
 >
 >   >  }}}
 >
 >   >
 >
 >   >
 >
 >   > --
 >
 >   > Ticket URL: <https://trac.mcs.anl.gov/projects/mpich2/ticket/293>
 >
 >   }}}
 >
 >
 >
 >  --
 >
 >  Ticket URL:
 >  <https://trac.mcs.anl.gov/projects/mpich2/ticket/293#comment:>
 >
 >  }}}
 >
 > --
 > Ticket URL:
 > <https://trac.mcs.anl.gov/projects/mpich2/ticket/293#comment:>
 }}}

--
Ticket URL:
<https://trac.mcs.anl.gov/projects/mpich2/ticket/293#comment:>

Changed 5 years ago by Vemuri, Aparna

Added by email2trac

Changed 5 years ago by Vemuri, Aparna

Added by email2trac

comment:6 Changed 5 years ago by Anthony Chan


You didn't send us the configure output files!
The config.log file that you sent is only
from the top-level config.log (there are many
config.log in MPICH2), so in general we really
need configure output as seen on your screen
(NOT config.log) if there is really any error in
building mpich2.

In your case, all make and install outputs
suggest your mpich2 are built OK.  Just a quick
check, you can do "make installcheck" in your build
directory.  BTW, if you are installing 1.0.3 and 1.0.8
on the same machine, the last install version overwrites
the old version.

How do you get link or compile your application ?
you should be using MPI compiler wrappers, mpicc or mpif90...

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

> -------------------------------------------------+--------------------------
>  Reporter:  "Vemuri, Aparna" <avemuri@epri.com>  |        Owner:
>      Type:  bug                                  |       Status:  new
>  Priority:  major                                |    Milestone:
> Component:  mpich2                               |   Resolution:
>  Keywords:                                       |
> -------------------------------------------------+--------------------------
>
>
> Comment (by Vemuri, Aparna):
>
>  {{{
>
>  I am sorry I forgot to attach the log files. Here they are. Also, I
>  tried installing v1.0.8 and get the same error as before while trying
> to
>  compile.
>
>  I have attached the log files from both 1.0.3 and 1.0.8
> installations.
>
>  Aparna
>
>  -----Original Message-----
>  From: owner-mpich2-bugs@mcs.anl.gov
>  [mailto:owner-mpich2-bugs@mcs.anl.gov] On Behalf Of mpich2
>  Sent: Wednesday, November 19, 2008 8:55 AM
>  Subject: Re: [mpich2-maint] #293: Compiling error with MPI
>
>
> -------------------------------------------------+----------------------
>  ----
>   Reporter:  "Vemuri, Aparna" <avemuri@epri.com>  |        Owner:
>       Type:  bug                                  |       Status:
> new
>   Priority:  major                                |    Milestone:
>  Component:  mpich2                               |   Resolution:
>   Keywords:                                       |
>
> -------------------------------------------------+----------------------
>  ----
>
>
>  Comment (by Anthony Chan):
>
>   {{{
>
>   I don't see any attachment, could you please resend the output
>   files again.  Also, we need configure output, c.txt, as seen
>   on your screen (not config.log which is generated automatically
>   by configure), e.g.
>
>       for csh and tcsh:
>
>         ./configure --prefix=/home/you/mpich2-install |& tee c.txt
>
>       for bash and sh:
>
>         ./configure --prefix=/home/you/mpich2-install 2>&1 | tee
> c.txt
>
>       Bourne-like shells, sh and bash, accept "2>&1 |".  Csh-like
> shell,
>       csh and tcsh, accept "|&".  File c.txt is used to store all
>  messages
>       generated configure command and is useful for diagnosis if
>  something
>       goes wrong.
>
>   A.Chan
>
>   ----- "mpich2" <mpich2-maint@mcs.anl.gov> wrote:
>
>   >
>
>
> -------------------------------------------------+----------------------
>  ----
>   >  Reporter:  "Vemuri, Aparna" <avemuri@epri.com>  |        Owner:
>   >      Type:  bug                                  |       Status:
> new
>   >  Priority:  major                                |    Milestone:
>   > Component:  mpich2                               |   Resolution:
>   >  Keywords:                                       |
>   >
>
>
> -------------------------------------------------+----------------------
>  ----
>   >
>   >
>   > Comment (by Vemuri, Aparna):
>   >
>   >  {{{
>   >
>   >  Anthony,
>   >
>   >
>   >
>   >  Unfortunately I cannot upgrade to 1.0.8 because we are trying to
>   > compare
>   >  two runs and the previous run used MPICH2 1.0.3 and we are
> planning
>   > to
>   >  keep everything consistent.
>   >
>   >
>   >
>   >  I have attached the config, make and install log for the 1.0.3
>   > install
>   >  in case you want to look at them.
>   >
>   >
>   >
>   >  While trying to build the executable, I tried a couple of
> things.
>   >
>   >  1.    I tried removing the Bstatic link flag.
>   >
>   >  2.    I tried adding the line -lpthread to the MPICH library
> path.
>   >
>   >
>   >
>   >  None of these worked.
>   >
>   >
>   >
>   >  Thanks
>   >
>   >  Aparna
>   >
>   >
>   >
>   >  -----Original Message-----
>   >  From: owner-mpich2-bugs@mcs.anl.gov
>   >  [mailto:owner-mpich2-bugs@mcs.anl.gov] On Behalf Of mpich2
>   >  Sent: Tuesday, November 18, 2008 10:43 PM
>   >  Subject: Re: [mpich2-maint] #293: Compiling error with MPI
>   >
>   >
>   >
>   >
>   >
>
> -------------------------------------------------+----------------------
>   >  ----
>   >
>   >   Reporter:  "Vemuri, Aparna" <avemuri@epri.com>  |        Owner:
>   >
>   >       Type:  bug                                  |       Status:
>   > new
>   >
>   >   Priority:  major                                |    Milestone:
>   >
>   >  Component:  mpich2                               |   Resolution:
>   >
>   >   Keywords:                                       |
>   >
>   >
>   >
>
> -------------------------------------------------+----------------------
>   >  ----
>   >
>   >
>   >
>   >
>   >
>   >  Comment (by Anthony Chan):
>   >
>   >
>   >
>   >   {{{
>   >
>   >
>   >
>   >   MPICH2-1.0.3 is very old.  The latest stable release is 1.0.8,
>   >
>   >   could you upgrade to the latest.  If the problem persists,
>   >
>   >   send us your configure and make outputs as stated in the
> mpich2's
>   >
>   >   installer's guide in mpich2-1.0.8/doc/installguide
>   >
>   >
>   >
>   >   A.Chan
>   >
>   >   ----- "mpich2" <mpich2-maint@mcs.anl.gov> wrote:
>   >
>   >
>   >
>   >   >
>   >
>   >
>   >
>   >
>
> -------------------------------------------------+----------------------
>   >  ----
>   >
>   >   >  Reporter:  "Vemuri, Aparna" <avemuri@epri.com>  |
> Type:
>   > bug
>   >
>   >   >
>   >
>   >   >    Status:  new                                  |
> Priority:
>   >  major
>   >
>   >   >
>   >
>   >   > Milestone:                                       |
> Component:
>   >
>   >   > mpich2
>   >
>   >   >
>   >
>   >
>   >
>   >
>
> -------------------------------------------------+----------------------
>   >  ----
>   >
>   >   >
>   >
>   >   >
>   >
>   >   >  {{{
>   >
>   >   >
>   >
>   >   >  Hi
>   >
>   >   >
>   >
>   >   >
>   >
>   >   >
>   >
>   >   >  I am trying to compile an executable that uses MPICH2
> library
>  and
>   > I
>   >
>   >   > have
>   >
>   >   >  been getting the following error:
>   >
>   >   >
>   >
>   >   >
>   >
>   >   >
>   >
>   >   >  /share/apps/mpich2-1.0.3/lib/libmpich.a(ch3u_connect_sock.o):
> In
>   >
>   >   >  function `MPIDI_CH3U_Get_business_card_sock':
>   >
>   >   >
>   >
>   >   >  ch3u_connect_sock.c:(.text+0x9b5): warning: Using
>  'gethostbyname'
>   > in
>   >
>   >   >  statically linked applications requires at runtime the
> shared
>   >
>   >   > libraries
>   >
>   >   >  from the glibc version used for linking
>   >
>   >   >
>   >
>   >   >
>   >
>   >   >
>   >
>   >   >  followed by a lot of  "undefined reference to ....."  type
> of
>   >  errors.
>   >
>   >   > Is
>   >
>   >   >  this an MPICH error? I would appreciate any hints for this.
>   >
>   >   >
>   >
>   >   >
>   >
>   >   >
>   >
>   >   >  Thanks
>   >
>   >   >
>   >
>   >   >  Aparna
>   >
>   >   >
>   >
>   >   >  }}}
>   >
>   >   >
>   >
>   >   >
>   >
>   >   > --
>   >
>   >   > Ticket URL:
> <https://trac.mcs.anl.gov/projects/mpich2/ticket/293>
>   >
>   >   }}}
>   >
>   >
>   >
>   >  --
>   >
>   >  Ticket URL:
>   >  <https://trac.mcs.anl.gov/projects/mpich2/ticket/293#comment:>
>   >
>   >  }}}
>   >
>   > --
>   > Ticket URL:
>   > <https://trac.mcs.anl.gov/projects/mpich2/ticket/293#comment:>
>   }}}
>
>  --
>  Ticket URL:
>  <https://trac.mcs.anl.gov/projects/mpich2/ticket/293#comment:>
>  }}}
>
> --
> Ticket URL:
> <https://trac.mcs.anl.gov/projects/mpich2/ticket/293#comment:>

Changed 5 years ago by Vemuri, Aparna

Added by email2trac

comment:7 Changed 5 years ago by Vemuri, Aparna

Here is the config log file for 1.0.3

To build the executable, the script first creates Pgf object files from
existing .f scripts. The to create the executable I use the line:

$(MODEL): $(OBJECTS) $(FC) $(LINK_FLAGS) $(OBJECTS) $(LIBRARIES) -o $@

where LINK_Flags is Bstatic, and libraries include -lmpich and
-lpthread.

The script also asks for MPICH include files and used
$MPICH/src/include/mpif.h

Aparna


-----Original Message-----
From: owner-mpich2-bugs@mcs.anl.gov
[mailto:owner-mpich2-bugs@mcs.anl.gov] On Behalf Of mpich2
Sent: Wednesday, November 19, 2008 10:43 AM
Subject: Re: [mpich2-maint] #293: Compiling error with MPI

-------------------------------------------------+----------------------
----
 Reporter:  "Vemuri, Aparna" <avemuri@epri.com>  |        Owner:
     Type:  bug                                  |       Status:  new
 Priority:  major                                |    Milestone:
Component:  mpich2                               |   Resolution:
 Keywords:                                       |
-------------------------------------------------+----------------------
----


Comment (by Anthony Chan):

 {{{


 You didn't send us the configure output files!
 The config.log file that you sent is only
 from the top-level config.log (there are many
 config.log in MPICH2), so in general we really
 need configure output as seen on your screen
 (NOT config.log) if there is really any error in
 building mpich2.

 In your case, all make and install outputs
 suggest your mpich2 are built OK.  Just a quick
 check, you can do "make installcheck" in your build
 directory.  BTW, if you are installing 1.0.3 and 1.0.8
 on the same machine, the last install version overwrites
 the old version.

 How do you get link or compile your application ?
 you should be using MPI compiler wrappers, mpicc or mpif90...

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

 >

-------------------------------------------------+----------------------
----
 >  Reporter:  "Vemuri, Aparna" <avemuri@epri.com>  |        Owner:
 >      Type:  bug                                  |       Status:  new
 >  Priority:  major                                |    Milestone:
 > Component:  mpich2                               |   Resolution:
 >  Keywords:                                       |
 >

-------------------------------------------------+----------------------
----
 >
 >
 > Comment (by Vemuri, Aparna):
 >
 >  {{{
 >
 >  I am sorry I forgot to attach the log files. Here they are. Also, I
 >  tried installing v1.0.8 and get the same error as before while
trying
 > to
 >  compile.
 >
 >  I have attached the log files from both 1.0.3 and 1.0.8
 > installations.
 >
 >  Aparna
 >
 >  -----Original Message-----
 >  From: owner-mpich2-bugs@mcs.anl.gov
 >  [mailto:owner-mpich2-bugs@mcs.anl.gov] On Behalf Of mpich2
 >  Sent: Wednesday, November 19, 2008 8:55 AM
 >  Subject: Re: [mpich2-maint] #293: Compiling error with MPI
 >
 >
 >
-------------------------------------------------+----------------------
 >  ----
 >   Reporter:  "Vemuri, Aparna" <avemuri@epri.com>  |        Owner:
 >       Type:  bug                                  |       Status:
 > new
 >   Priority:  major                                |    Milestone:
 >  Component:  mpich2                               |   Resolution:
 >   Keywords:                                       |
 >
 >
-------------------------------------------------+----------------------
 >  ----
 >
 >
 >  Comment (by Anthony Chan):
 >
 >   {{{
 >
 >   I don't see any attachment, could you please resend the output
 >   files again.  Also, we need configure output, c.txt, as seen
 >   on your screen (not config.log which is generated automatically
 >   by configure), e.g.
 >
 >       for csh and tcsh:
 >
 >         ./configure --prefix=/home/you/mpich2-install |& tee c.txt
 >
 >       for bash and sh:
 >
 >         ./configure --prefix=/home/you/mpich2-install 2>&1 | tee
 > c.txt
 >
 >       Bourne-like shells, sh and bash, accept "2>&1 |".  Csh-like
 > shell,
 >       csh and tcsh, accept "|&".  File c.txt is used to store all
 >  messages
 >       generated configure command and is useful for diagnosis if
 >  something
 >       goes wrong.
 >
 >   A.Chan
 >
 >   ----- "mpich2" <mpich2-maint@mcs.anl.gov> wrote:
 >
 >   >
 >
 >
 >
-------------------------------------------------+----------------------
 >  ----
 >   >  Reporter:  "Vemuri, Aparna" <avemuri@epri.com>  |        Owner:
 >   >      Type:  bug                                  |       Status:
 > new
 >   >  Priority:  major                                |    Milestone:
 >   > Component:  mpich2                               |   Resolution:
 >   >  Keywords:                                       |
 >   >
 >
 >
 >
-------------------------------------------------+----------------------
 >  ----
 >   >
 >   >
 >   > Comment (by Vemuri, Aparna):
 >   >
 >   >  {{{
 >   >
 >   >  Anthony,
 >   >
 >   >
 >   >
 >   >  Unfortunately I cannot upgrade to 1.0.8 because we are trying to
 >   > compare
 >   >  two runs and the previous run used MPICH2 1.0.3 and we are
 > planning
 >   > to
 >   >  keep everything consistent.
 >   >
 >   >
 >   >
 >   >  I have attached the config, make and install log for the 1.0.3
 >   > install
 >   >  in case you want to look at them.
 >   >
 >   >
 >   >
 >   >  While trying to build the executable, I tried a couple of
 > things.
 >   >
 >   >  1.    I tried removing the Bstatic link flag.
 >   >
 >   >  2.    I tried adding the line -lpthread to the MPICH library
 > path.
 >   >
 >   >
 >   >
 >   >  None of these worked.
 >   >
 >   >
 >   >
 >   >  Thanks
 >   >
 >   >  Aparna
 >   >
 >   >
 >   >
 >   >  -----Original Message-----
 >   >  From: owner-mpich2-bugs@mcs.anl.gov
 >   >  [mailto:owner-mpich2-bugs@mcs.anl.gov] On Behalf Of mpich2
 >   >  Sent: Tuesday, November 18, 2008 10:43 PM
 >   >  Subject: Re: [mpich2-maint] #293: Compiling error with MPI
 >   >
 >   >
 >   >
 >   >
 >   >
 >
 >
-------------------------------------------------+----------------------
 >   >  ----
 >   >
 >   >   Reporter:  "Vemuri, Aparna" <avemuri@epri.com>  |        Owner:
 >   >
 >   >       Type:  bug                                  |       Status:
 >   > new
 >   >
 >   >   Priority:  major                                |    Milestone:
 >   >
 >   >  Component:  mpich2                               |   Resolution:
 >   >
 >   >   Keywords:                                       |
 >   >
 >   >
 >   >
 >
 >
-------------------------------------------------+----------------------
 >   >  ----
 >   >
 >   >
 >   >
 >   >
 >   >
 >   >  Comment (by Anthony Chan):
 >   >
 >   >
 >   >
 >   >   {{{
 >   >
 >   >
 >   >
 >   >   MPICH2-1.0.3 is very old.  The latest stable release is 1.0.8,
 >   >
 >   >   could you upgrade to the latest.  If the problem persists,
 >   >
 >   >   send us your configure and make outputs as stated in the
 > mpich2's
 >   >
 >   >   installer's guide in mpich2-1.0.8/doc/installguide
 >   >
 >   >
 >   >
 >   >   A.Chan
 >   >
 >   >   ----- "mpich2" <mpich2-maint@mcs.anl.gov> wrote:
 >   >
 >   >
 >   >
 >   >   >
 >   >
 >   >
 >   >
 >   >
 >
 >
-------------------------------------------------+----------------------
 >   >  ----
 >   >
 >   >   >  Reporter:  "Vemuri, Aparna" <avemuri@epri.com>  |
 > Type:
 >   > bug
 >   >
 >   >   >
 >   >
 >   >   >    Status:  new                                  |
 > Priority:
 >   >  major
 >   >
 >   >   >
 >   >
 >   >   > Milestone:                                       |
 > Component:
 >   >
 >   >   > mpich2
 >   >
 >   >   >
 >   >
 >   >
 >   >
 >   >
 >
 >
-------------------------------------------------+----------------------
 >   >  ----
 >   >
 >   >   >
 >   >
 >   >   >
 >   >
 >   >   >  {{{
 >   >
 >   >   >
 >   >
 >   >   >  Hi
 >   >
 >   >   >
 >   >
 >   >   >
 >   >
 >   >   >
 >   >
 >   >   >  I am trying to compile an executable that uses MPICH2
 > library
 >  and
 >   > I
 >   >
 >   >   > have
 >   >
 >   >   >  been getting the following error:
 >   >
 >   >   >
 >   >
 >   >   >
 >   >
 >   >   >
 >   >
 >   >   >
/share/apps/mpich2-1.0.3/lib/libmpich.a(ch3u_connect_sock.o):
 > In
 >   >
 >   >   >  function `MPIDI_CH3U_Get_business_card_sock':
 >   >
 >   >   >
 >   >
 >   >   >  ch3u_connect_sock.c:(.text+0x9b5): warning: Using
 >  'gethostbyname'
 >   > in
 >   >
 >   >   >  statically linked applications requires at runtime the
 > shared
 >   >
 >   >   > libraries
 >   >
 >   >   >  from the glibc version used for linking
 >   >
 >   >   >
 >   >
 >   >   >
 >   >
 >   >   >
 >   >
 >   >   >  followed by a lot of  "undefined reference to ....."  type
 > of
 >   >  errors.
 >   >
 >   >   > Is
 >   >
 >   >   >  this an MPICH error? I would appreciate any hints for this.
 >   >
 >   >   >
 >   >
 >   >   >
 >   >
 >   >   >
 >   >
 >   >   >  Thanks
 >   >
 >   >   >
 >   >
 >   >   >  Aparna
 >   >
 >   >   >
 >   >
 >   >   >  }}}
 >   >
 >   >   >
 >   >
 >   >   >
 >   >
 >   >   > --
 >   >
 >   >   > Ticket URL:
 > <https://trac.mcs.anl.gov/projects/mpich2/ticket/293>
 >   >
 >   >   }}}
 >   >
 >   >
 >   >
 >   >  --
 >   >
 >   >  Ticket URL:
 >   >  <https://trac.mcs.anl.gov/projects/mpich2/ticket/293#comment:>
 >   >
 >   >  }}}
 >   >
 >   > --
 >   > Ticket URL:
 >   > <https://trac.mcs.anl.gov/projects/mpich2/ticket/293#comment:>
 >   }}}
 >
 >  --
 >  Ticket URL:
 >  <https://trac.mcs.anl.gov/projects/mpich2/ticket/293#comment:>
 >  }}}
 >
 > --
 > Ticket URL:
 > <https://trac.mcs.anl.gov/projects/mpich2/ticket/293#comment:>
 }}}

--
Ticket URL:
<https://trac.mcs.anl.gov/projects/mpich2/ticket/293#comment:>

comment:8 Changed 5 years ago by Anthony Chan


your config.log (i.e. 1.0.3) shows that pgf77 and pgf90 were
detected by configure, but make.log did not compile any
fortran related files.  Something wrong....
Either your make.log and config.log that you sent do not belong
to the same version of mpich2 or some other weird reasons.....
send us the output of <full_to_mpich2_install_dir>/bin/mpich2version ?

Comment inlined below:

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

> -------------------------------------------------+--------------------------
>  Reporter:  "Vemuri, Aparna" <avemuri@epri.com>  |        Owner:
>      Type:  bug                                  |       Status:  new
>  Priority:  major                                |    Milestone:
> Component:  mpich2                               |   Resolution:
>  Keywords:                                       |
> -------------------------------------------------+--------------------------
>
>
> Comment (by Vemuri, Aparna):
>
>  {{{
>
>  Here is the config log file for 1.0.3
>
>  To build the executable, the script first creates Pgf object files
> from
>  existing .f scripts. The to create the executable I use the line:
>
>  $(MODEL): $(OBJECTS) $(FC) $(LINK_FLAGS) $(OBJECTS) $(LIBRARIES) -o
> $@
>

Should the above line be actually 2 lines in your Makefile ? i.e.

$(MODEL): $(OBJECTS)
          $(FC) $(LINK_FLAGS) $(OBJECTS) $(LIBRARIES) -o $@

If so, what is FC ?  It should be <fullpath_to_mpich2_install_dir>/bin/mpif90

>  where LINK_Flags is Bstatic, and libraries include -lmpich and
>  -lpthread.

You should not need to link in -lmpich or -lpthread explicitly,
mpif90 will take care of all linking in all mpich2 version
(there may be bugs in older version that you may need to link in -lpthread,
but you don't need to link in mpich2 needed component).

>  The script also asks for MPICH include files and used
>  $MPICH/src/include/mpif.h

If you use mpif90 to compile, you don't need to specify
where mpif.h is located.  "mpif90 -c foo.f" will take
care of include file as well.

BTW, your 1.0.8 installation does not have fortran compiler
detected, so mpif90

>  Aparna
>
>
>  -----Original Message-----
>  From: owner-mpich2-bugs@mcs.anl.gov
>  [mailto:owner-mpich2-bugs@mcs.anl.gov] On Behalf Of mpich2
>  Sent: Wednesday, November 19, 2008 10:43 AM
>  Subject: Re: [mpich2-maint] #293: Compiling error with MPI
>
>
> -------------------------------------------------+----------------------
>  ----
>   Reporter:  "Vemuri, Aparna" <avemuri@epri.com>  |        Owner:
>       Type:  bug                                  |       Status:
> new
>   Priority:  major                                |    Milestone:
>  Component:  mpich2                               |   Resolution:
>   Keywords:                                       |
>
> -------------------------------------------------+----------------------
>  ----
>
>
>  Comment (by Anthony Chan):
>
>   {{{
>
>
>   You didn't send us the configure output files!
>   The config.log file that you sent is only
>   from the top-level config.log (there are many
>   config.log in MPICH2), so in general we really
>   need configure output as seen on your screen
>   (NOT config.log) if there is really any error in
>   building mpich2.
>
>   In your case, all make and install outputs
>   suggest your mpich2 are built OK.  Just a quick
>   check, you can do "make installcheck" in your build
>   directory.  BTW, if you are installing 1.0.3 and 1.0.8
>   on the same machine, the last install version overwrites
>   the old version.
>
>   How do you get link or compile your application ?
>   you should be using MPI compiler wrappers, mpicc or mpif90...
>
>   A.Chan
>   ----- "mpich2" <mpich2-maint@mcs.anl.gov> wrote:
>
>   >
>
>
> -------------------------------------------------+----------------------
>  ----
>   >  Reporter:  "Vemuri, Aparna" <avemuri@epri.com>  |        Owner:
>   >      Type:  bug                                  |       Status:
> new
>   >  Priority:  major                                |    Milestone:
>   > Component:  mpich2                               |   Resolution:
>   >  Keywords:                                       |
>   >
>
>
> -------------------------------------------------+----------------------
>  ----
>   >
>   >
>   > Comment (by Vemuri, Aparna):
>   >
>   >  {{{
>   >
>   >  I am sorry I forgot to attach the log files. Here they are. Also,
> I
>   >  tried installing v1.0.8 and get the same error as before while
>  trying
>   > to
>   >  compile.
>   >
>   >  I have attached the log files from both 1.0.3 and 1.0.8
>   > installations.
>   >
>   >  Aparna
>   >
>   >  -----Original Message-----
>   >  From: owner-mpich2-bugs@mcs.anl.gov
>   >  [mailto:owner-mpich2-bugs@mcs.anl.gov] On Behalf Of mpich2
>   >  Sent: Wednesday, November 19, 2008 8:55 AM
>   >  Subject: Re: [mpich2-maint] #293: Compiling error with MPI
>   >
>   >
>   >
>
> -------------------------------------------------+----------------------
>   >  ----
>   >   Reporter:  "Vemuri, Aparna" <avemuri@epri.com>  |        Owner:
>   >       Type:  bug                                  |       Status:
>   > new
>   >   Priority:  major                                |    Milestone:
>   >  Component:  mpich2                               |   Resolution:
>   >   Keywords:                                       |
>   >
>   >
>
> -------------------------------------------------+----------------------
>   >  ----
>   >
>   >
>   >  Comment (by Anthony Chan):
>   >
>   >   {{{
>   >
>   >   I don't see any attachment, could you please resend the output
>   >   files again.  Also, we need configure output, c.txt, as seen
>   >   on your screen (not config.log which is generated automatically
>   >   by configure), e.g.
>   >
>   >       for csh and tcsh:
>   >
>   >         ./configure --prefix=/home/you/mpich2-install |& tee
> c.txt
>   >
>   >       for bash and sh:
>   >
>   >         ./configure --prefix=/home/you/mpich2-install 2>&1 | tee
>   > c.txt
>   >
>   >       Bourne-like shells, sh and bash, accept "2>&1 |".  Csh-like
>   > shell,
>   >       csh and tcsh, accept "|&".  File c.txt is used to store all
>   >  messages
>   >       generated configure command and is useful for diagnosis if
>   >  something
>   >       goes wrong.
>   >
>   >   A.Chan
>   >
>   >   ----- "mpich2" <mpich2-maint@mcs.anl.gov> wrote:
>   >
>   >   >
>   >
>   >
>   >
>
> -------------------------------------------------+----------------------
>   >  ----
>   >   >  Reporter:  "Vemuri, Aparna" <avemuri@epri.com>  |
> Owner:
>   >   >      Type:  bug                                  |
> Status:
>   > new
>   >   >  Priority:  major                                |
> Milestone:
>   >   > Component:  mpich2                               |
> Resolution:
>   >   >  Keywords:                                       |
>   >   >
>   >
>   >
>   >
>
> -------------------------------------------------+----------------------
>   >  ----
>   >   >
>   >   >
>   >   > Comment (by Vemuri, Aparna):
>   >   >
>   >   >  {{{
>   >   >
>   >   >  Anthony,
>   >   >
>   >   >
>   >   >
>   >   >  Unfortunately I cannot upgrade to 1.0.8 because we are trying
> to
>   >   > compare
>   >   >  two runs and the previous run used MPICH2 1.0.3 and we are
>   > planning
>   >   > to
>   >   >  keep everything consistent.
>   >   >
>   >   >
>   >   >
>   >   >  I have attached the config, make and install log for the
> 1.0.3
>   >   > install
>   >   >  in case you want to look at them.
>   >   >
>   >   >
>   >   >
>   >   >  While trying to build the executable, I tried a couple of
>   > things.
>   >   >
>   >   >  1.    I tried removing the Bstatic link flag.
>   >   >
>   >   >  2.    I tried adding the line -lpthread to the MPICH library
>   > path.
>   >   >
>   >   >
>   >   >
>   >   >  None of these worked.
>   >   >
>   >   >
>   >   >
>   >   >  Thanks
>   >   >
>   >   >  Aparna
>   >   >
>   >   >
>   >   >
>   >   >  -----Original Message-----
>   >   >  From: owner-mpich2-bugs@mcs.anl.gov
>   >   >  [mailto:owner-mpich2-bugs@mcs.anl.gov] On Behalf Of mpich2
>   >   >  Sent: Tuesday, November 18, 2008 10:43 PM
>   >   >  Subject: Re: [mpich2-maint] #293: Compiling error with MPI
>   >   >
>   >   >
>   >   >
>   >   >
>   >   >
>   >
>   >
>
> -------------------------------------------------+----------------------
>   >   >  ----
>   >   >
>   >   >   Reporter:  "Vemuri, Aparna" <avemuri@epri.com>  |
> Owner:
>   >   >
>   >   >       Type:  bug                                  |
> Status:
>   >   > new
>   >   >
>   >   >   Priority:  major                                |
> Milestone:
>   >   >
>   >   >  Component:  mpich2                               |
> Resolution:
>   >   >
>   >   >   Keywords:                                       |
>   >   >
>   >   >
>   >   >
>   >
>   >
>
> -------------------------------------------------+----------------------
>   >   >  ----
>   >   >
>   >   >
>   >   >
>   >   >
>   >   >
>   >   >  Comment (by Anthony Chan):
>   >   >
>   >   >
>   >   >
>   >   >   {{{
>   >   >
>   >   >
>   >   >
>   >   >   MPICH2-1.0.3 is very old.  The latest stable release is
> 1.0.8,
>   >   >
>   >   >   could you upgrade to the latest.  If the problem persists,
>   >   >
>   >   >   send us your configure and make outputs as stated in the
>   > mpich2's
>   >   >
>   >   >   installer's guide in mpich2-1.0.8/doc/installguide
>   >   >
>   >   >
>   >   >
>   >   >   A.Chan
>   >   >
>   >   >   ----- "mpich2" <mpich2-maint@mcs.anl.gov> wrote:
>   >   >
>   >   >
>   >   >
>   >   >   >
>   >   >
>   >   >
>   >   >
>   >   >
>   >
>   >
>
> -------------------------------------------------+----------------------
>   >   >  ----
>   >   >
>   >   >   >  Reporter:  "Vemuri, Aparna" <avemuri@epri.com>  |
>   > Type:
>   >   > bug
>   >   >
>   >   >   >
>   >   >
>   >   >   >    Status:  new                                  |
>   > Priority:
>   >   >  major
>   >   >
>   >   >   >
>   >   >
>   >   >   > Milestone:                                       |
>   > Component:
>   >   >
>   >   >   > mpich2
>   >   >
>   >   >   >
>   >   >
>   >   >
>   >   >
>   >   >
>   >
>   >
>
> -------------------------------------------------+----------------------
>   >   >  ----
>   >   >
>   >   >   >
>   >   >
>   >   >   >
>   >   >
>   >   >   >  {{{
>   >   >
>   >   >   >
>   >   >
>   >   >   >  Hi
>   >   >
>   >   >   >
>   >   >
>   >   >   >
>   >   >
>   >   >   >
>   >   >
>   >   >   >  I am trying to compile an executable that uses MPICH2
>   > library
>   >  and
>   >   > I
>   >   >
>   >   >   > have
>   >   >
>   >   >   >  been getting the following error:
>   >   >
>   >   >   >
>   >   >
>   >   >   >
>   >   >
>   >   >   >
>   >   >
>   >   >   >
>  /share/apps/mpich2-1.0.3/lib/libmpich.a(ch3u_connect_sock.o):
>   > In
>   >   >
>   >   >   >  function `MPIDI_CH3U_Get_business_card_sock':
>   >   >
>   >   >   >
>   >   >
>   >   >   >  ch3u_connect_sock.c:(.text+0x9b5): warning: Using
>   >  'gethostbyname'
>   >   > in
>   >   >
>   >   >   >  statically linked applications requires at runtime the
>   > shared
>   >   >
>   >   >   > libraries
>   >   >
>   >   >   >  from the glibc version used for linking
>   >   >
>   >   >   >
>   >   >
>   >   >   >
>   >   >
>   >   >   >
>   >   >
>   >   >   >  followed by a lot of  "undefined reference to ....."
> type
>   > of
>   >   >  errors.
>   >   >
>   >   >   > Is
>   >   >
>   >   >   >  this an MPICH error? I would appreciate any hints for
> this.
>   >   >
>   >   >   >
>   >   >
>   >   >   >
>   >   >
>   >   >   >
>   >   >
>   >   >   >  Thanks
>   >   >
>   >   >   >
>   >   >
>   >   >   >  Aparna
>   >   >
>   >   >   >
>   >   >
>   >   >   >  }}}
>   >   >
>   >   >   >
>   >   >
>   >   >   >
>   >   >
>   >   >   > --
>   >   >
>   >   >   > Ticket URL:
>   > <https://trac.mcs.anl.gov/projects/mpich2/ticket/293>
>   >   >
>   >   >   }}}
>   >   >
>   >   >
>   >   >
>   >   >  --
>   >   >
>   >   >  Ticket URL:
>   >   >
> <https://trac.mcs.anl.gov/projects/mpich2/ticket/293#comment:>
>   >   >
>   >   >  }}}
>   >   >
>   >   > --
>   >   > Ticket URL:
>   >   >
> <https://trac.mcs.anl.gov/projects/mpich2/ticket/293#comment:>
>   >   }}}
>   >
>   >  --
>   >  Ticket URL:
>   >  <https://trac.mcs.anl.gov/projects/mpich2/ticket/293#comment:>
>   >  }}}
>   >
>   > --
>   > Ticket URL:
>   > <https://trac.mcs.anl.gov/projects/mpich2/ticket/293#comment:>
>   }}}
>
>  --
>  Ticket URL:
>  <https://trac.mcs.anl.gov/projects/mpich2/ticket/293#comment:>
>  }}}
>
> --
> Ticket URL:
> <https://trac.mcs.anl.gov/projects/mpich2/ticket/293#comment:>

comment:9 Changed 5 years ago by Vemuri, Aparna

I am sorry, I did not understand:

<full_to_mpich2_install_dir>/bin/mpich2version ?

comment:10 Changed 5 years ago by Rajeev Thakur

You need to build MPICH2 with the same compilers that you need to run your
application with. If you need to use the Portland Group compilers, set the
environment variables CC, CXX, F77, and F90 to the names of the compilers
before running configure.

> -----Original Message-----
> From: mpich2-bugs-bounces@mcs.anl.gov
> [mailto:mpich2-bugs-bounces@mcs.anl.gov] On Behalf Of mpich2
> Sent: Wednesday, November 19, 2008 1:46 PM
> To: undisclosed-recipients:
> Subject: Re: [mpich2-maint] #293: Compiling error with MPI
>
> -------------------------------------------------+------------
> ----------
> -------------------------------------------------+----
>  Reporter:  "Vemuri, Aparna" <avemuri@epri.com>  |        Owner:
>      Type:  bug                                  |       Status:  new
>  Priority:  major                                |    Milestone:
> Component:  mpich2                               |   Resolution:
>  Keywords:                                       |
> -------------------------------------------------+------------
> ----------
> -------------------------------------------------+----
>
>
> Comment (by Vemuri, Aparna):
>
>  {{{
>
>  I am sorry, I did not understand:
>
>  <full_to_mpich2_install_dir>/bin/mpich2version ?
>
>  }}}
>
> --
> Ticket URL:
> <https://trac.mcs.anl.gov/projects/mpich2/ticket/293#comment:>
>

comment:11 Changed 5 years ago by Vemuri, Aparna

Yes, I did that. I used the same PGF90 compiler to build MPICH2 and the
executable. And I am using the default /usr/bin/cc as the C compiler.


Comment (by Rajeev Thakur):

 {{{

 You need to build MPICH2 with the same compilers that you need to run
your
 application with. If you need to use the Portland Group compilers, set
the
 environment variables CC, CXX, F77, and F90 to the names of the
compilers
 before running configure.
}}}

comment:12 Changed 5 years ago by Rajeev Thakur

The 1.0.8 configure step did not use the PG compilers. The 1.0.3 did.


> -----Original Message-----
> From: mpich2-bugs-bounces@mcs.anl.gov
> [mailto:mpich2-bugs-bounces@mcs.anl.gov] On Behalf Of mpich2
> Sent: Wednesday, November 19, 2008 1:53 PM
> To: undisclosed-recipients:
> Subject: Re: [mpich2-maint] #293: Compiling error with MPI
>
> -------------------------------------------------+------------
> ----------
> -------------------------------------------------+----
>  Reporter:  "Vemuri, Aparna" <avemuri@epri.com>  |        Owner:
>      Type:  bug                                  |       Status:  new
>  Priority:  major                                |    Milestone:
> Component:  mpich2                               |   Resolution:
>  Keywords:                                       |
> -------------------------------------------------+------------
> ----------
> -------------------------------------------------+----
>
>
> Comment (by Vemuri, Aparna):
>
>  {{{
>
>  Yes, I did that. I used the same PGF90 compiler to build
> MPICH2 and the  executable. And I am using the default
> /usr/bin/cc as the C compiler.
>
>
>  Comment (by Rajeev Thakur):
>
>   {{{
>
>   You need to build MPICH2 with the same compilers that you
> need to run  your
>   application with. If you need to use the Portland Group
> compilers, set  the
>   environment variables CC, CXX, F77, and F90 to the names of
> the  compilers
>   before running configure.
>  }}}
>
> --
> Ticket URL:
> <https://trac.mcs.anl.gov/projects/mpich2/ticket/293#comment:>
>

comment:13 Changed 5 years ago by Anthony Chan


mpich2version is command, run it and let us know
what it said.

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

> -------------------------------------------------+--------------------------
>  Reporter:  "Vemuri, Aparna" <avemuri@epri.com>  |        Owner:
>      Type:  bug                                  |       Status:  new
>  Priority:  major                                |    Milestone:
> Component:  mpich2                               |   Resolution:
>  Keywords:                                       |
> -------------------------------------------------+--------------------------
>
>
> Comment (by Vemuri, Aparna):
>
>  {{{
>
>  I am sorry, I did not understand:
>
>  <full_to_mpich2_install_dir>/bin/mpich2version ?
>
>  }}}
>
> --
> Ticket URL:
> <https://trac.mcs.anl.gov/projects/mpich2/ticket/293#comment:>

comment:14 Changed 5 years ago by Anthony Chan


Hi Rajeev,

1.0.3 config.log indicated that configure sees pgf77 and pgf90
but the make.log (NOT make.log.1.0.8) didn't compile any fortran
binding files. So we need to see if the install version has fortran
binding binding built.

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

> -------------------------------------------------+--------------------------
>  Reporter:  "Vemuri, Aparna" <avemuri@epri.com>  |        Owner:
>      Type:  bug                                  |       Status:  new
>  Priority:  major                                |    Milestone:
> Component:  mpich2                               |   Resolution:
>  Keywords:                                       |
> -------------------------------------------------+--------------------------
>
>
> Comment (by Rajeev Thakur):
>
>  {{{
>
>  The 1.0.8 configure step did not use the PG compilers. The 1.0.3
> did.
>
>
>  > -----Original Message-----
>  > From: mpich2-bugs-bounces@mcs.anl.gov
>  > [mailto:mpich2-bugs-bounces@mcs.anl.gov] On Behalf Of mpich2
>  > Sent: Wednesday, November 19, 2008 1:53 PM
>  > To: undisclosed-recipients:
>  > Subject: Re: [mpich2-maint] #293: Compiling error with MPI
>  >
>  > -------------------------------------------------+------------
>  > ----------
>  > -------------------------------------------------+----
>  >  Reporter:  "Vemuri, Aparna" <avemuri@epri.com>  |        Owner:
>  >      Type:  bug                                  |       Status:
> new
>  >  Priority:  major                                |    Milestone:
>  > Component:  mpich2                               |   Resolution:
>  >  Keywords:                                       |
>  > -------------------------------------------------+------------
>  > ----------
>  > -------------------------------------------------+----
>  >
>  >
>  > Comment (by Vemuri, Aparna):
>  >
>  >  {{{
>  >
>  >  Yes, I did that. I used the same PGF90 compiler to build
>  > MPICH2 and the  executable. And I am using the default
>  > /usr/bin/cc as the C compiler.
>  >
>  >
>  >  Comment (by Rajeev Thakur):
>  >
>  >   {{{
>  >
>  >   You need to build MPICH2 with the same compilers that you
>  > need to run  your
>  >   application with. If you need to use the Portland Group
>  > compilers, set  the
>  >   environment variables CC, CXX, F77, and F90 to the names of
>  > the  compilers
>  >   before running configure.
>  >  }}}
>  >
>  > --
>  > Ticket URL:
>  > <https://trac.mcs.anl.gov/projects/mpich2/ticket/293#comment:>
>  >
>
>  }}}
>
> --
> Ticket URL:
> <https://trac.mcs.anl.gov/projects/mpich2/ticket/293#comment:>

comment:15 Changed 5 years ago by Vemuri, Aparna

mpich2version returns:

Version:           1.0.3
Device:            ch3:sock
Configure Options:

which mpd returns:
/share/apps/mpich2-1.0.3/bin/mpd


I noticed that the program begins to fail in the parallel version. Here
are some more specific error messages:

par_init.o: In function `par_init_':
par_init.F:(.text+0xdb): undefined reference to `mpi_init_'
par_init.F:(.text+0x145): undefined reference to `mpi_wtime_'
par_init.F:(.text+0x164): undefined reference to `mpi_comm_size_'
par_init.F:(.text+0x1db): undefined reference to `mpi_comm_rank_'
par_term.o: In function `par_term_':
par_term.F:(.text+0x28): undefined reference to `mpi_wtime_'
par_term.F:(.text+0xd0): undefined reference to `mpi_comm_rank_'
par_term.F:(.text+0x4e1): undefined reference to `mpi_finalize_'

Of course, I checked to make sure the path to MPICH directory is correct
and the libmpich.a file exists in the path.



-----Original Message-----
From: owner-mpich2-bugs@mcs.anl.gov
[mailto:owner-mpich2-bugs@mcs.anl.gov] On Behalf Of mpich2
Sent: Wednesday, November 19, 2008 12:23 PM
Subject: Re: [mpich2-maint] #293: Compiling error with MPI

-------------------------------------------------+----------------------
----
 Reporter:  "Vemuri, Aparna" <avemuri@epri.com>  |        Owner:
     Type:  bug                                  |       Status:  new
 Priority:  major                                |    Milestone:
Component:  mpich2                               |   Resolution:
 Keywords:                                       |
-------------------------------------------------+----------------------
----


Comment (by Anthony Chan):

 {{{


 mpich2version is command, run it and let us know
 what it said.

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

 >

-------------------------------------------------+----------------------
----
 >  Reporter:  "Vemuri, Aparna" <avemuri@epri.com>  |        Owner:
 >      Type:  bug                                  |       Status:  new
 >  Priority:  major                                |    Milestone:
 > Component:  mpich2                               |   Resolution:
 >  Keywords:                                       |
 >

-------------------------------------------------+----------------------
----
 >
 >
 > Comment (by Vemuri, Aparna):
 >
 >  {{{
 >
 >  I am sorry, I did not understand:
 >
 >  <full_to_mpich2_install_dir>/bin/mpich2version ?
 >
 >  }}}
 >
 > --
 > Ticket URL:
 > <https://trac.mcs.anl.gov/projects/mpich2/ticket/293#comment:>
 }}}

--
Ticket URL:
<https://trac.mcs.anl.gov/projects/mpich2/ticket/293#comment:>

comment:16 Changed 5 years ago by Anthony Chan

1.0.3's mpich2version is too old to be useful.
It seems something is messed up in building the
fortran binding.  I suggest you to do the following:

A) remove everything and start all over again by
   untarring the mpich2-1.0.x.tar.gz, be sure to
   save the output of configure, make and
   make install in files (c.txt, m.txt, mi.txt)
   so we can check if things are built correctly.
   See below.  Send us all the .txt files.

B) Also, change the FC defined in your app's makefile
   to <fullpath_mpich2_install_dir>/bin/mpif90

A.Chan


Extracted from README:

3.  Choose an installation directory (the default is /usr/local/bin),
    /home/you/mpich2-install which is assumed to non-existent or empty.
    It will be most convenient if this directory is shared by all of the
    machines where you intend to run processes.  If not, you will have
    to duplicate it on the other machines after installation.

4.  Configure MPICH2 (The steps described here are called inpath-build,
    we recommend user to do vpath build if possible), specifying the
    installation directory:

    for csh and tcsh:

      ./configure --prefix=/home/you/mpich2-install |& tee c.txt

    for bash and sh:

      ./configure --prefix=/home/you/mpich2-install 2>&1 | tee c.txt

    Bourne-like shells, sh and bash, accept "2>&1 |".  Csh-like shell,
    csh and tcsh, accept "|&".  File c.txt is used to store all messages
    generated configure command and is useful for diagnosis if something
    goes wrong.  Other configure options are described below.  You might
    also prefer to do a VPATH build (see below).  Check the c.txt file
    to make sure everything went will.  Problems should be self-explanatory,
    but if not, sent c.txt to mpich2-maint@mcs.anl.gov.

5.  Build MPICH2:

    for csh and tcsh:

      make |& tee m.txt

    for bash and sh:

      make 2>&1 | tee m.txt

    This step should succeed if there were no problems with the
    preceding step.  Check file m.txt.  If there were problems, send
    m.txt to mpich2-maint@mcs.anl.gov.

6.  Install the MPICH2 commands:

    for csh and tcsh:

      make install |& tee mi.txt

    for bash and sh:

      make install 2>&1 | tee mi.txt


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

> -------------------------------------------------+--------------------------
>  Reporter:  "Vemuri, Aparna" <avemuri@epri.com>  |        Owner:
>      Type:  bug                                  |       Status:  new
>  Priority:  major                                |    Milestone:
> Component:  mpich2                               |   Resolution:
>  Keywords:                                       |
> -------------------------------------------------+--------------------------
>
>
> Comment (by Vemuri, Aparna):
>
>  {{{
>
>  mpich2version returns:
>
>  Version:           1.0.3
>  Device:            ch3:sock
>  Configure Options:
>
>  which mpd returns:
>  /share/apps/mpich2-1.0.3/bin/mpd
>
>
>  I noticed that the program begins to fail in the parallel version.
> Here
>  are some more specific error messages:
>
>  par_init.o: In function `par_init_':
>  par_init.F:(.text+0xdb): undefined reference to `mpi_init_'
>  par_init.F:(.text+0x145): undefined reference to `mpi_wtime_'
>  par_init.F:(.text+0x164): undefined reference to `mpi_comm_size_'
>  par_init.F:(.text+0x1db): undefined reference to `mpi_comm_rank_'
>  par_term.o: In function `par_term_':
>  par_term.F:(.text+0x28): undefined reference to `mpi_wtime_'
>  par_term.F:(.text+0xd0): undefined reference to `mpi_comm_rank_'
>  par_term.F:(.text+0x4e1): undefined reference to `mpi_finalize_'
>
>  Of course, I checked to make sure the path to MPICH directory is
> correct
>  and the libmpich.a file exists in the path.
>
>
>
>  -----Original Message-----
>  From: owner-mpich2-bugs@mcs.anl.gov
>  [mailto:owner-mpich2-bugs@mcs.anl.gov] On Behalf Of mpich2
>  Sent: Wednesday, November 19, 2008 12:23 PM
>  Subject: Re: [mpich2-maint] #293: Compiling error with MPI
>
>
> -------------------------------------------------+----------------------
>  ----
>   Reporter:  "Vemuri, Aparna" <avemuri@epri.com>  |        Owner:
>       Type:  bug                                  |       Status:
> new
>   Priority:  major                                |    Milestone:
>  Component:  mpich2                               |   Resolution:
>   Keywords:                                       |
>
> -------------------------------------------------+----------------------
>  ----
>
>
>  Comment (by Anthony Chan):
>
>   {{{
>
>
>   mpich2version is command, run it and let us know
>   what it said.
>
>   ----- "mpich2" <mpich2-maint@mcs.anl.gov> wrote:
>
>   >
>
>
> -------------------------------------------------+----------------------
>  ----
>   >  Reporter:  "Vemuri, Aparna" <avemuri@epri.com>  |        Owner:
>   >      Type:  bug                                  |       Status:
> new
>   >  Priority:  major                                |    Milestone:
>   > Component:  mpich2                               |   Resolution:
>   >  Keywords:                                       |
>   >
>
>
> -------------------------------------------------+----------------------
>  ----
>   >
>   >
>   > Comment (by Vemuri, Aparna):
>   >
>   >  {{{
>   >
>   >  I am sorry, I did not understand:
>   >
>   >  <full_to_mpich2_install_dir>/bin/mpich2version ?
>   >
>   >  }}}
>   >
>   > --
>   > Ticket URL:
>   > <https://trac.mcs.anl.gov/projects/mpich2/ticket/293#comment:>
>   }}}
>
>  --
>  Ticket URL:
>  <https://trac.mcs.anl.gov/projects/mpich2/ticket/293#comment:>
>  }}}
>
> --
> Ticket URL:
> <https://trac.mcs.anl.gov/projects/mpich2/ticket/293#comment:>

Changed 5 years ago by Vemuri, Aparna

Added by email2trac

comment:17 Changed 5 years ago by Vemuri, Aparna

Attached are the log files from the install.

Also, my application needs to use mpif.h file during compilation. After
the reinstallation, there is no $MPICH/src/include/mpif.h file.

There is no <fullpath_mpich2_install_dir>/bin/mpif90 file either!!


-----Original Message-----
From: owner-mpich2-bugs@mcs.anl.gov
[mailto:owner-mpich2-bugs@mcs.anl.gov] On Behalf Of mpich2
Sent: Wednesday, November 19, 2008 3:09 PM
Subject: Re: [mpich2-maint] #293: Compiling error with MPI

-------------------------------------------------+----------------------
----
 Reporter:  "Vemuri, Aparna" <avemuri@epri.com>  |        Owner:
     Type:  bug                                  |       Status:  new
 Priority:  major                                |    Milestone:
Component:  mpich2                               |   Resolution:
 Keywords:                                       |
-------------------------------------------------+----------------------
----


Comment (by Anthony Chan):

 {{{

 1.0.3's mpich2version is too old to be useful.
 It seems something is messed up in building the
 fortran binding.  I suggest you to do the following:

 A) remove everything and start all over again by
    untarring the mpich2-1.0.x.tar.gz, be sure to
    save the output of configure, make and
    make install in files (c.txt, m.txt, mi.txt)
    so we can check if things are built correctly.
    See below.  Send us all the .txt files.

 B) Also, change the FC defined in your app's makefile
    to <fullpath_mpich2_install_dir>/bin/mpif90

 A.Chan


 Extracted from README:

 3.  Choose an installation directory (the default is /usr/local/bin),
     /home/you/mpich2-install which is assumed to non-existent or empty.
     It will be most convenient if this directory is shared by all of
the
     machines where you intend to run processes.  If not, you will have
     to duplicate it on the other machines after installation.

 4.  Configure MPICH2 (The steps described here are called inpath-build,
     we recommend user to do vpath build if possible), specifying the
     installation directory:

     for csh and tcsh:

       ./configure --prefix=/home/you/mpich2-install |& tee c.txt

     for bash and sh:

       ./configure --prefix=/home/you/mpich2-install 2>&1 | tee c.txt

     Bourne-like shells, sh and bash, accept "2>&1 |".  Csh-like shell,
     csh and tcsh, accept "|&".  File c.txt is used to store all
messages
     generated configure command and is useful for diagnosis if
something
     goes wrong.  Other configure options are described below.  You
might
     also prefer to do a VPATH build (see below).  Check the c.txt file
     to make sure everything went will.  Problems should be self-
 explanatory,
     but if not, sent c.txt to mpich2-maint@mcs.anl.gov.

 5.  Build MPICH2:

     for csh and tcsh:

       make |& tee m.txt

     for bash and sh:

       make 2>&1 | tee m.txt

     This step should succeed if there were no problems with the
     preceding step.  Check file m.txt.  If there were problems, send
     m.txt to mpich2-maint@mcs.anl.gov.

 6.  Install the MPICH2 commands:

     for csh and tcsh:

       make install |& tee mi.txt

     for bash and sh:

       make install 2>&1 | tee mi.txt


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

 >

-------------------------------------------------+----------------------
----
 >  Reporter:  "Vemuri, Aparna" <avemuri@epri.com>  |        Owner:
 >      Type:  bug                                  |       Status:  new
 >  Priority:  major                                |    Milestone:
 > Component:  mpich2                               |   Resolution:
 >  Keywords:                                       |
 >

-------------------------------------------------+----------------------
----
 >
 >
 > Comment (by Vemuri, Aparna):
 >
 >  {{{
 >
 >  mpich2version returns:
 >
 >  Version:           1.0.3
 >  Device:            ch3:sock
 >  Configure Options:
 >
 >  which mpd returns:
 >  /share/apps/mpich2-1.0.3/bin/mpd
 >
 >
 >  I noticed that the program begins to fail in the parallel version.
 > Here
 >  are some more specific error messages:
 >
 >  par_init.o: In function `par_init_':
 >  par_init.F:(.text+0xdb): undefined reference to `mpi_init_'
 >  par_init.F:(.text+0x145): undefined reference to `mpi_wtime_'
 >  par_init.F:(.text+0x164): undefined reference to `mpi_comm_size_'
 >  par_init.F:(.text+0x1db): undefined reference to `mpi_comm_rank_'
 >  par_term.o: In function `par_term_':
 >  par_term.F:(.text+0x28): undefined reference to `mpi_wtime_'
 >  par_term.F:(.text+0xd0): undefined reference to `mpi_comm_rank_'
 >  par_term.F:(.text+0x4e1): undefined reference to `mpi_finalize_'
 >
 >  Of course, I checked to make sure the path to MPICH directory is
 > correct
 >  and the libmpich.a file exists in the path.
 >
 >
 >
 >  -----Original Message-----
 >  From: owner-mpich2-bugs@mcs.anl.gov
 >  [mailto:owner-mpich2-bugs@mcs.anl.gov] On Behalf Of mpich2
 >  Sent: Wednesday, November 19, 2008 12:23 PM
 >  Subject: Re: [mpich2-maint] #293: Compiling error with MPI
 >
 >
 >
-------------------------------------------------+----------------------
 >  ----
 >   Reporter:  "Vemuri, Aparna" <avemuri@epri.com>  |        Owner:
 >       Type:  bug                                  |       Status:
 > new
 >   Priority:  major                                |    Milestone:
 >  Component:  mpich2                               |   Resolution:
 >   Keywords:                                       |
 >
 >
-------------------------------------------------+----------------------
 >  ----
 >
 >
 >  Comment (by Anthony Chan):
 >
 >   {{{
 >
 >
 >   mpich2version is command, run it and let us know
 >   what it said.
 >
 >   ----- "mpich2" <mpich2-maint@mcs.anl.gov> wrote:
 >
 >   >
 >
 >
 >
-------------------------------------------------+----------------------
 >  ----
 >   >  Reporter:  "Vemuri, Aparna" <avemuri@epri.com>  |        Owner:
 >   >      Type:  bug                                  |       Status:
 > new
 >   >  Priority:  major                                |    Milestone:
 >   > Component:  mpich2                               |   Resolution:
 >   >  Keywords:                                       |
 >   >
 >
 >
 >
-------------------------------------------------+----------------------
 >  ----
 >   >
 >   >
 >   > Comment (by Vemuri, Aparna):
 >   >
 >   >  {{{
 >   >
 >   >  I am sorry, I did not understand:
 >   >
 >   >  <full_to_mpich2_install_dir>/bin/mpich2version ?
 >   >
 >   >  }}}
 >   >
 >   > --
 >   > Ticket URL:
 >   > <https://trac.mcs.anl.gov/projects/mpich2/ticket/293#comment:>
 >   }}}
 >
 >  --
 >  Ticket URL:
 >  <https://trac.mcs.anl.gov/projects/mpich2/ticket/293#comment:>
 >  }}}
 >
 > --
 > Ticket URL:
 > <https://trac.mcs.anl.gov/projects/mpich2/ticket/293#comment:>
 }}}

--
Ticket URL:
<https://trac.mcs.anl.gov/projects/mpich2/ticket/293#comment:>

comment:18 Changed 5 years ago by Anthony Chan

The configure output shows that you don't have pgf77 and
pgf90 in your path.  You should configure mpich2 by specifying
the full path of pgf77 and pgf90 with F77 and F90 as follows:

1) make distclean
2) ./configure F77=<...>/bin/pgf77 F90=<...>/bin/pgf90 --prefix=...
3) make
4) make distclean

Be sure to pipe the output of these commands to some files just
in case something wrong.

A.Chan


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

> -------------------------------------------------+--------------------------
>  Reporter:  "Vemuri, Aparna" <avemuri@epri.com>  |        Owner:
>      Type:  bug                                  |       Status:  new
>  Priority:  major                                |    Milestone:
> Component:  mpich2                               |   Resolution:
>  Keywords:                                       |
> -------------------------------------------------+--------------------------
>
>
> Comment (by Vemuri, Aparna):
>
>  {{{
>
>  Attached are the log files from the install.
>
>  Also, my application needs to use mpif.h file during compilation.
> After
>  the reinstallation, there is no $MPICH/src/include/mpif.h file.
>
>  There is no <fullpath_mpich2_install_dir>/bin/mpif90 file either!!
>
>
>  -----Original Message-----
>  From: owner-mpich2-bugs@mcs.anl.gov
>  [mailto:owner-mpich2-bugs@mcs.anl.gov] On Behalf Of mpich2
>  Sent: Wednesday, November 19, 2008 3:09 PM
>  Subject: Re: [mpich2-maint] #293: Compiling error with MPI
>
>
> -------------------------------------------------+----------------------
>  ----
>   Reporter:  "Vemuri, Aparna" <avemuri@epri.com>  |        Owner:
>       Type:  bug                                  |       Status:
> new
>   Priority:  major                                |    Milestone:
>  Component:  mpich2                               |   Resolution:
>   Keywords:                                       |
>
> -------------------------------------------------+----------------------
>  ----
>
>
>  Comment (by Anthony Chan):
>
>   {{{
>
>   1.0.3's mpich2version is too old to be useful.
>   It seems something is messed up in building the
>   fortran binding.  I suggest you to do the following:
>
>   A) remove everything and start all over again by
>      untarring the mpich2-1.0.x.tar.gz, be sure to
>      save the output of configure, make and
>      make install in files (c.txt, m.txt, mi.txt)
>      so we can check if things are built correctly.
>      See below.  Send us all the .txt files.
>
>   B) Also, change the FC defined in your app's makefile
>      to <fullpath_mpich2_install_dir>/bin/mpif90
>
>   A.Chan
>
>
>   Extracted from README:
>
>   3.  Choose an installation directory (the default is
> /usr/local/bin),
>       /home/you/mpich2-install which is assumed to non-existent or
> empty.
>       It will be most convenient if this directory is shared by all
> of
>  the
>       machines where you intend to run processes.  If not, you will
> have
>       to duplicate it on the other machines after installation.
>
>   4.  Configure MPICH2 (The steps described here are called
> inpath-build,
>       we recommend user to do vpath build if possible), specifying
> the
>       installation directory:
>
>       for csh and tcsh:
>
>         ./configure --prefix=/home/you/mpich2-install |& tee c.txt
>
>       for bash and sh:
>
>         ./configure --prefix=/home/you/mpich2-install 2>&1 | tee
> c.txt
>
>       Bourne-like shells, sh and bash, accept "2>&1 |".  Csh-like
> shell,
>       csh and tcsh, accept "|&".  File c.txt is used to store all
>  messages
>       generated configure command and is useful for diagnosis if
>  something
>       goes wrong.  Other configure options are described below.  You
>  might
>       also prefer to do a VPATH build (see below).  Check the c.txt
> file
>       to make sure everything went will.  Problems should be self-
>   explanatory,
>       but if not, sent c.txt to mpich2-maint@mcs.anl.gov.
>
>   5.  Build MPICH2:
>
>       for csh and tcsh:
>
>         make |& tee m.txt
>
>       for bash and sh:
>
>         make 2>&1 | tee m.txt
>
>       This step should succeed if there were no problems with the
>       preceding step.  Check file m.txt.  If there were problems,
> send
>       m.txt to mpich2-maint@mcs.anl.gov.
>
>   6.  Install the MPICH2 commands:
>
>       for csh and tcsh:
>
>         make install |& tee mi.txt
>
>       for bash and sh:
>
>         make install 2>&1 | tee mi.txt
>
>
>   ----- "mpich2" <mpich2-maint@mcs.anl.gov> wrote:
>
>   >
>
>
> -------------------------------------------------+----------------------
>  ----
>   >  Reporter:  "Vemuri, Aparna" <avemuri@epri.com>  |        Owner:
>   >      Type:  bug                                  |       Status:
> new
>   >  Priority:  major                                |    Milestone:
>   > Component:  mpich2                               |   Resolution:
>   >  Keywords:                                       |
>   >
>
>
> -------------------------------------------------+----------------------
>  ----
>   >
>   >
>   > Comment (by Vemuri, Aparna):
>   >
>   >  {{{
>   >
>   >  mpich2version returns:
>   >
>   >  Version:           1.0.3
>   >  Device:            ch3:sock
>   >  Configure Options:
>   >
>   >  which mpd returns:
>   >  /share/apps/mpich2-1.0.3/bin/mpd
>   >
>   >
>   >  I noticed that the program begins to fail in the parallel
> version.
>   > Here
>   >  are some more specific error messages:
>   >
>   >  par_init.o: In function `par_init_':
>   >  par_init.F:(.text+0xdb): undefined reference to `mpi_init_'
>   >  par_init.F:(.text+0x145): undefined reference to `mpi_wtime_'
>   >  par_init.F:(.text+0x164): undefined reference to
> `mpi_comm_size_'
>   >  par_init.F:(.text+0x1db): undefined reference to
> `mpi_comm_rank_'
>   >  par_term.o: In function `par_term_':
>   >  par_term.F:(.text+0x28): undefined reference to `mpi_wtime_'
>   >  par_term.F:(.text+0xd0): undefined reference to `mpi_comm_rank_'
>   >  par_term.F:(.text+0x4e1): undefined reference to `mpi_finalize_'
>   >
>   >  Of course, I checked to make sure the path to MPICH directory is
>   > correct
>   >  and the libmpich.a file exists in the path.
>   >
>   >
>   >
>   >  -----Original Message-----
>   >  From: owner-mpich2-bugs@mcs.anl.gov
>   >  [mailto:owner-mpich2-bugs@mcs.anl.gov] On Behalf Of mpich2
>   >  Sent: Wednesday, November 19, 2008 12:23 PM
>   >  Subject: Re: [mpich2-maint] #293: Compiling error with MPI
>   >
>   >
>   >
>
> -------------------------------------------------+----------------------
>   >  ----
>   >   Reporter:  "Vemuri, Aparna" <avemuri@epri.com>  |        Owner:
>   >       Type:  bug                                  |       Status:
>   > new
>   >   Priority:  major                                |    Milestone:
>   >  Component:  mpich2                               |   Resolution:
>   >   Keywords:                                       |
>   >
>   >
>
> -------------------------------------------------+----------------------
>   >  ----
>   >
>   >
>   >  Comment (by Anthony Chan):
>   >
>   >   {{{
>   >
>   >
>   >   mpich2version is command, run it and let us know
>   >   what it said.
>   >
>   >   ----- "mpich2" <mpich2-maint@mcs.anl.gov> wrote:
>   >
>   >   >
>   >
>   >
>   >
>
> -------------------------------------------------+----------------------
>   >  ----
>   >   >  Reporter:  "Vemuri, Aparna" <avemuri@epri.com>  |
> Owner:
>   >   >      Type:  bug                                  |
> Status:
>   > new
>   >   >  Priority:  major                                |
> Milestone:
>   >   > Component:  mpich2                               |
> Resolution:
>   >   >  Keywords:                                       |
>   >   >
>   >
>   >
>   >
>
> -------------------------------------------------+----------------------
>   >  ----
>   >   >
>   >   >
>   >   > Comment (by Vemuri, Aparna):
>   >   >
>   >   >  {{{
>   >   >
>   >   >  I am sorry, I did not understand:
>   >   >
>   >   >  <full_to_mpich2_install_dir>/bin/mpich2version ?
>   >   >
>   >   >  }}}
>   >   >
>   >   > --
>   >   > Ticket URL:
>   >   >
> <https://trac.mcs.anl.gov/projects/mpich2/ticket/293#comment:>
>   >   }}}
>   >
>   >  --
>   >  Ticket URL:
>   >  <https://trac.mcs.anl.gov/projects/mpich2/ticket/293#comment:>
>   >  }}}
>   >
>   > --
>   > Ticket URL:
>   > <https://trac.mcs.anl.gov/projects/mpich2/ticket/293#comment:>
>   }}}
>
>  --
>  Ticket URL:
>  <https://trac.mcs.anl.gov/projects/mpich2/ticket/293#comment:>
>  }}}
>
> --
> Ticket URL:
> <https://trac.mcs.anl.gov/projects/mpich2/ticket/293#comment:>

comment:19 Changed 5 years ago by Rajeev Thakur

Step 4 below should be "make install"


> -----Original Message-----
> From: mpich2-bugs-bounces@mcs.anl.gov
> [mailto:mpich2-bugs-bounces@mcs.anl.gov] On Behalf Of mpich2
> Sent: Wednesday, November 19, 2008 8:35 PM
> To: undisclosed-recipients:
> Subject: Re: [mpich2-maint] #293: Compiling error with MPI
>
> -------------------------------------------------+------------
> ----------
> -------------------------------------------------+----
>  Reporter:  "Vemuri, Aparna" <avemuri@epri.com>  |        Owner:
>      Type:  bug                                  |       Status:  new
>  Priority:  major                                |    Milestone:
> Component:  mpich2                               |   Resolution:
>  Keywords:                                       |
> -------------------------------------------------+------------
> ----------
> -------------------------------------------------+----
>
>
> Comment (by Anthony Chan):
>
>  {{{
>
>  The configure output shows that you don't have pgf77 and
> pgf90 in your path.  You should configure mpich2 by
> specifying  the full path of pgf77 and pgf90 with F77 and F90
> as follows:
>
>  1) make distclean
>  2) ./configure F77=<...>/bin/pgf77 F90=<...>/bin/pgf90 --prefix=...
>  3) make
>  4) make distclean
>
>  Be sure to pipe the output of these commands to some files
> just  in case something wrong.

comment:20 Changed 5 years ago by Vemuri, Aparna

Thanks that worked!

-----Original Message-----
From: owner-mpich2-bugs@mcs.anl.gov
[mailto:owner-mpich2-bugs@mcs.anl.gov] On Behalf Of mpich2
Sent: Wednesday, November 19, 2008 8:23 PM
Subject: Re: [mpich2-maint] #293: Compiling error with MPI

-------------------------------------------------+----------------------
----
 Reporter:  "Vemuri, Aparna" <avemuri@epri.com>  |        Owner:
     Type:  bug                                  |       Status:  new
 Priority:  major                                |    Milestone:
Component:  mpich2                               |   Resolution:
 Keywords:                                       |
-------------------------------------------------+----------------------
----


Comment (by Rajeev Thakur):

 {{{

 Step 4 below should be "make install"


 > -----Original Message-----
 > From: mpich2-bugs-bounces@mcs.anl.gov
 > [mailto:mpich2-bugs-bounces@mcs.anl.gov] On Behalf Of mpich2
 > Sent: Wednesday, November 19, 2008 8:35 PM
 > To: undisclosed-recipients:
 > Subject: Re: [mpich2-maint] #293: Compiling error with MPI
 >
 > -------------------------------------------------+------------
 > ----------
 > -------------------------------------------------+----
 >  Reporter:  "Vemuri, Aparna" <avemuri@epri.com>  |        Owner:
 >      Type:  bug                                  |       Status:  new
 >  Priority:  major                                |    Milestone:
 > Component:  mpich2                               |   Resolution:
 >  Keywords:                                       |
 > -------------------------------------------------+------------
 > ----------
 > -------------------------------------------------+----
 >
 >
 > Comment (by Anthony Chan):
 >
 >  {{{
 >
 >  The configure output shows that you don't have pgf77 and
 > pgf90 in your path.  You should configure mpich2 by
 > specifying  the full path of pgf77 and pgf90 with F77 and F90
 > as follows:
 >
 >  1) make distclean
 >  2) ./configure F77=<...>/bin/pgf77 F90=<...>/bin/pgf90 --prefix=...
 >  3) make
 >  4) make distclean
 >
 >  Be sure to pipe the output of these commands to some files
 > just  in case something wrong.

 }}}

--
Ticket URL:
<https://trac.mcs.anl.gov/projects/mpich2/ticket/293#comment:>

comment:21 Changed 5 years ago by thakur

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