[mvapich-discuss] OSU MVAPICH2 1.4-RC1-3378 (06/02/09) VPATH build and "debug" static?

Jonathan Perkins perkinjo at cse.ohio-state.edu
Wed Jul 15 14:23:57 EDT 2009


Brad:
Sorry for the late reply, my responses are inline.

On Tue, Jul 07, 2009 at 11:29:02PM -0700, Brad Penoff wrote:
> hey,
> 
> I'm not sure if these is are known or legitimate issues or if it's
> particular to my system, but I was not able to do a VPATH build with
> your latest MVAPICH2 tarball nor build my application.  These were
> fixed after two work-arounds.  I wondered if these work-arounds were
> known or if I did something wrong in the first place.
> 
> ----Issue #1----
> 
> I downloaded http://mvapich.cse.ohio-state.edu/download/mvapich2/mvapich2-1.4rc1-3378.tgz
>  and then tar zxf, cd mvapich2-1.4rc1, and then mkdir build.  From
> inside build, I did a VPATH build by configuring to create 32-bit
> libraries the following way on my 64-bit machine (Red Hat Enterprise
> Linux Server release 5.1 (Tikanga)):
> 
>   $ ../configure CFLAGS=-m32 CPPFLAGS=-m32 FC=gfortran F90=gfortran
> FFLAGS=-m32 F90FLAGS=-m32 LDFLAGS=-m32
> --prefix=/home/penoff/installs/mvapich2-1.4rc1
> 
> Eventually the "make" died with the error below.  When I did the same
> configure line but instead did not to a VPATH build (so from
> mvapich2-1.4rc1), the build succeeded as did the "make install". I was
> just wondering if this was a known issue.  The error I saw is below.

I'll see if I can reproduce this and if so, resolve it.

> 
> ----- Issue #2 ----
> Once installed, we compiled our code.  We have a function called
> debug() in our code somewhere. It was conflicting when compiling with
> an internal variable of your code.  I'm not sure who is at fault here,
> but instead of renaming our function and adjusting all of our code in
> countless places, instead to fix this, I just made the long variable
> "debug" in src/mpid/ch3/channels/mrail/src/gen2/ibv_channel_manager.c:503
>  to be static by putting that keyword at the beginning of the line.

I don't think this is anyone's "fault" but can probably be avoided to
you and other users on our side if we can avoid unnecessary namespace
pollution.

> 
> 
> 
> Are these fixes necessary or am I doing something wrong to begin with?

It looks like it is in your case.  I'll double check that there aren't
any unwanted side effects of marking debug as static and get back to
you.

> 
> Thanks,
> brad
> 
> 
> make[3]: Entering directory
> `/home/penoff/src/mvapich2-1.4rc1/build/src/pm/mpirun'
> gcc -DHAVE_CONFIG_H -I. -I../../../../src/pm/mpirun
> -I/home/penoff/src/mvapich2-1.4rc1/build/src/pm/mpirun/../../../../src/pm/mpirun/include
> -m32 -DNDEBUG -O2 -m32
> -I/home/penoff/src/mvapich2-1.4rc1/build/src/mpid/ch3/include
> -I/home/penoff/src/mvapich2-1.4rc1/src/mpid/ch3/include
> -I/home/penoff/src/mvapich2-1.4rc1/build/src/mpid/common/datatype
> -I/home/penoff/src/mvapich2-1.4rc1/src/mpid/common/datatype
> -I/home/penoff/src/mvapich2-1.4rc1/build/src/mpid/common/locks
> -I/home/penoff/src/mvapich2-1.4rc1/src/mpid/common/locks
> -I/home/penoff/src/mvapich2-1.4rc1/build/src/mpid/ch3/channels/mrail/include
> -I/home/penoff/src/mvapich2-1.4rc1/src/mpid/ch3/channels/mrail/include
> -I/home/penoff/src/mvapich2-1.4rc1/build/src/mpid/ch3/channels/mrail/src/gen2
> -I/home/penoff/src/mvapich2-1.4rc1/src/mpid/ch3/channels/mrail/src/gen2
> -I/home/penoff/src/mvapich2-1.4rc1/build/src/mpid/common/locks
> -I/home/penoff/src/mvapich2-1.4rc1/src/mpid/common/locks -c
> ../../../../src/pm/mpirun/mpirun_rsh.c
> ../../../../src/pm/mpirun/mpirun_rsh.c:27:24: error: mpirunconf.h: No
> such file or directory
> ../../../../src/pm/mpirun/mpirun_rsh.c:272: error: expected identifier
> or ‘(’ before ‘__extension__’
> make[3]: *** [mpirun_rsh.o] Error 1
> make[3]: Leaving directory
> `/home/penoff/src/mvapich2-1.4rc1/build/src/pm/mpirun'
> make[2]: *** [all-redirect] Error 2
> make[2]: Leaving directory `/home/penoff/src/mvapich2-1.4rc1/build/src/pm'
> make[1]: *** [all-redirect] Error 2
> make[1]: Leaving directory `/home/penoff/src/mvapich2-1.4rc1/build/src'
> make: *** [all-redirect] Error 2
> [penoff at hpc0001 build]$ find .. -name mpirunconf.h
> ../build/src/pm/mpirun/include/mpirunconf.h
> [penoff at hpc0001 build]$
> 
> _______________________________________________
> mvapich-discuss mailing list
> mvapich-discuss at cse.ohio-state.edu
> http://mail.cse.ohio-state.edu/mailman/listinfo/mvapich-discuss

-- 
Jonathan Perkins
http://www.cse.ohio-state.edu/~perkinjo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
Url : http://mail.cse.ohio-state.edu/pipermail/mvapich-discuss/attachments/20090715/80e7dd9e/attachment-0001.bin


More information about the mvapich-discuss mailing list