Opened 8 years ago

Last modified 5 years ago

#640 new bug

MacOS rlog shared library build error

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

Description (last modified by balaji)

Hello,


I am trying to compile MPICH2-1.1 (downloaded on 05.06.09) in Mac OS X
Server 2x3 GHz Quad-Core Intel Xeon OS 10.5.7 Darwin 9.7. Compiler intel
11.056 with following env settings with plans to run a Mac cluster.


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="-m64 -O3  -DMACOS"

export CXXFLAGS="-m64 -O3 -DMACOS"

./configure --prefix=/usr/local/mpich --enable-f90 >& 1conflog &

make >& 1log &

make install


I had the following error during make

----------------

See any operating system documentation about shared libraries for

more information, such as the ld(1) and ld.so(8) manual pages.

----------------------------------------------------------------------

/usr/bin/gcc -I..
-I/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home/include
-I../../src/logformat/trace -m64 -O3 -DMACOS -c trace_input.c

/usr/bin/gcc -I..
-I/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home/include
-I../../src/logformat/trace -m64 -O3 -DMACOS -c rlogutil.c

/usr/bin/gcc -I..
-I/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home/include
-I../../src/logformat/trace -m64 -O3 -DMACOS -c
../../src/logformat/trace/trace_print.c

/usr/bin/gcc -m64 -O3 -DMACOS -o
/var/root/Desktop/meso/mpich2-1.1/src/mpe2/src/slog2sdk/trace_rlog/bin/rlog_prin
t
trace_input.o rlogutil.o trace_print.o    -shrext .jnilib

i686-apple-darwin9-gcc-4.0.1: .jnilib: No such file or directory

make[5]: ***
[/var/root/Desktop/meso/mpich2-1.1/src/mpe2/src/slog2sdk/trace_rlog/bin/rlog_pri
nt]
Error 1

make[4]: *** [all] Error 2

make[3]: [all] Error 2 (ignored)

---------------------------


I am also attaching the configure.log make.log and instal.log.


As the installation was successful without error I have checked the mpd &
but I could see the following error.

---------------

acrc:~ root# mpd &

[1] 19462

acrc:~ root# mpd failed: gethostbyname_ex failed for acrc.local

------------------


I have successfully built mpich2-1.1a2 in the same system without error but
I got the same failure. This I have done it based on your previous help. Now
we are establishing 20 node (80 core) Mac xserve cluster for WRF model
running.


Request your 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 (5)

1conflog (110.9 KB) - added by jagan TNAU 8 years ago.
Added by email2trac
1installog (71.1 KB) - added by jagan TNAU 8 years ago.
Added by email2trac
1makelog (457.6 KB) - added by jagan TNAU 8 years ago.
Added by email2trac
part0001.html (6.5 KB) - added by jagan TNAU 8 years ago.
Added by email2trac
part0001.2.html (4.1 KB) - added by jagan TNAU 8 years ago.
Added by email2trac

Download all attachments as: .zip

Change History (12)

Changed 8 years ago by jagan TNAU

Added by email2trac

comment:1 Changed 8 years ago by jagan TNAU

  • id set to 640

This message has 4 attachment(s)

comment:2 Changed 8 years ago by anonymous


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

...
>  export CC=/usr/bin/gcc
>  export CFLAGS="-m64 -O3  -DMACOS"
...
>  /usr/bin/gcc -I..
> -I/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home/include
>  -I../../src/logformat/trace -m64 -O3 -DMACOS -c
>  ../../src/logformat/trace/trace_print.c
...
>  /usr/bin/gcc -m64 -O3 -DMACOS -o
> /var/root/Desktop/meso/mpich2-1.1/src/mpe2/src/slog2sdk/trace_rlog/bin/rlog_pr
int
>  trace_input.o rlogutil.o trace_print.o    -shrext .jnilib
>
>  i686-apple-darwin9-gcc-4.0.1: .jnilib: No such file or directory
>

Can you do the following and send me the output ?

cd to /var/root/Desktop/meso/mpich2-1.1/src/mpe2/src/slog2sdk/trace_rlog/src

/usr/bin/gcc -m64 -O3 -DMACOS -o rlog_print trace_input.o rlogutil.o
trace_print.o

>
>  acrc:~ root# mpd &
>
>  [1] 19462
>
>  acrc:~ root# mpd failed: gethostbyname_ex failed for acrc.local

I am not familar with Mac's networking.  It seems there is networking
problem for root of getting hostname for acrc.local

A.Chan

Changed 8 years ago by jagan TNAU

Added by email2trac

comment:3 Changed 8 years ago by jagan TNAU

Hello Chan,
I did cd to

/var/root/Desktop/meso/mpich2-1.1/src/mpe2/src/slog2sdk/trace_rlog/src

and did

/usr/bin/gcc -m64 -O3 -DMACOS -o rlog_print trace_input.o rlogutil.o
trace_print.o

and found that the rlog_print (32KB) created originally was replaced with
same size rlog_print.

Again while doing so I noticed a problem. Actual error is given below

--------------
/usr/bin/gcc -m64 -O3 -DMACOS -o
/var/root/Desktop/meso/mpich2-1.1/src/mpe2/src/slog2sdk/trace_rlog/bin/rlog_prin
t
trace_input.o rlogutil.o trace_print.o    -shrext .jnilib
i686-apple-darwin9-gcc-4.0.1: .jnilib: No such file or directory
make[5]: ***
[/var/root/Desktop/meso/mpich2-1.1/src/mpe2/src/slog2sdk/trace_rlog/bin/rlog_pri
nt]
Error 1
make[4]: *** [all] Error 2
make[3]: [all] Error 2 (ignored)
-----------------

In the error above the directory  src/mpe2/src/slog2sdk/trace_rlog/bin/
should have a file named rlog_print but I could see only a file called
rlogprint (4kb) ie without underscore as indicated in the error message.

Please provide further inputs.



On Mon, Jun 8, 2009 at 9:46 PM, 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 ):
>
>  {{{
>
>
>  ----- "mpich2" <mpich2-maint@mcs.anl.gov> wrote:
>
>  ...
>  >  export CC=/usr/bin/gcc
>  >  export CFLAGS="-m64 -O3  -DMACOS"
>  ...
>  >  /usr/bin/gcc -I..
>  >
>
>
-I/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home/include
>  >  -I../../src/logformat/trace -m64 -O3 -DMACOS -c
>  >  ../../src/logformat/trace/trace_print.c
>  ...
>  >  /usr/bin/gcc -m64 -O3 -DMACOS -o
>  >
>
>
/var/root/Desktop/meso/mpich2-1.1/src/mpe2/src/slog2sdk/trace_rlog/bin/rlog_pr
>  int
>  >  trace_input.o rlogutil.o trace_print.o    -shrext .jnilib
>  >
>  >  i686-apple-darwin9-gcc-4.0.1: .jnilib: No such file or directory
>  >
>
>  Can you do the following and send me the output ?
>
>  cd to
>  /var/root/Desktop/meso/mpich2-1.1/src/mpe2/src/slog2sdk/trace_rlog/src
>
>  /usr/bin/gcc -m64 -O3 -DMACOS -o rlog_print trace_input.o rlogutil.o
>  trace_print.o
>
>  >
>  >  acrc:~ root# mpd &
>  >
>  >  [1] 19462
>  >
>  >  acrc:~ root# mpd failed: gethostbyname_ex failed for acrc.local
>
>  I am not familar with Mac's networking.  It seems there is networking
>  problem for root of getting hostname for acrc.local
>
>  A.Chan
>  }}}
>
> --
> Ticket URL: <https://trac.mcs.anl.gov/projects/mpich2/ticket/640#comment:>
>



--
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:4 Changed 8 years ago by thakur

To debug the mpd problem, you can run the mpdcheck tool as described in the Appendix of the installation guide. For the other compilation problem, you can configure with --disable-mpe for now.

comment:5 Changed 8 years ago by Anthony Chan


> For the other compilation problem,
>  you can configure with --disable-mpe for now.

Instead of disabling the whole MPE, you can disable
rlog subpackage in MPE with --disable-rlog for now.

A.Chan

comment:6 Changed 8 years ago by chan

  • Milestone set to mpich2-1.1.1
  • Owner set to chan

comment:7 Changed 8 years ago by chan

  • Milestone changed from mpich2-1.1.1 to mpich2-1.1.2

comment:8 Changed 8 years ago by balaji

  • Milestone changed from mpich2-1.1.2 to mpich2-1.2

Milestone mpich2-1.1.2 deleted

comment:9 Changed 8 years ago by chan

  • Description modified (diff)
  • Milestone changed from mpich2-1.2.1 to future
  • Summary changed from MPICH2-1.1 compilation & execution error to MacOS rlog shared library build error

comment:10 Changed 5 years ago by balaji

  • Description modified (diff)
  • Owner chan deleted
Note: See TracTickets for help on using tickets.