Re: [OMPI users] minor program build problem

2006-07-31 Thread Jeff Squyres
On 7/26/06 10:51 AM, "Borenstein, Bernard S"
 wrote:

> ld: Warning: size of symbol `mpi_fortran_argv_null_' changed from 1 in
> chimera/discmo.o to 16 in
> /home/bsb3227/openmpi_1.1.1b3/lib/libmpi.a(test_constants_f.o)
> ld: Warning: size of symbol `mpi_fortran_argvs_null_' changed from 4 in
> chimera/discmo.o to 16 in
> /home/bsb3227/openmpi_1.1.1b3/lib/libmpi.a(test_constants_f.o)
> ld: Warning: size of symbol `mpi_fortran_status_ignore_' changed from 20
> in chimera/discmo.o to 16 in
> /home/bsb3227/openmpi_1.1.1b3/lib/libmpi.a(test_constants_f.o)
> ld: Warning: size of symbol `mpi_fortran_errcodes_ignore_' changed from
> 4 in chimera/discmo.o to 16 in
> /home/bsb3227/openmpi_1.1.1b3/lib/libmpi.a(test_constants_f.o)

Rats.  It took me several days of hunting, but I finally figured this one
out.  It seems like this only showed up in static builds of some compilers
(intel and gfortran, in my testing).

This is due to something we introduced in 1.1b3 as a fix for OSX.  It's a
long, horrid story of Fortran, linkers, and bears.

I committed a fix to the trunk at r11057, and included a lengthy log message
explaining what I did to fix the problem
(https://svn.open-mpi.org/trac/ompi/changeset/11057).  It works on all the
configurations that I could try -- could you verify that it works for you?
Here's what I tested (static and dynamic builds for all):

- Linux
  - AMD, gfortran 4.0
  - AMD, intel 9.0
  - AMD, pgi 6.1
  - AMD, pathscale 2.3
- OSX
  - x86, gfortran 4.2

-- 
Jeff Squyres
Server Virtualization Business Unit
Cisco Systems


[OMPI users] Compiling MPI with pgf90

2006-07-31 Thread James McManus
I'm trying to compile MPI with pgf90. I use the following configure 
settings:


./configure --prefix=/usr/local/mpi F90=pgf90 F77=pgf77

However, the compiler is set to gfortran:

*** Fortran 90/95 compiler
checking for gfortran... gfortran
checking whether we are using the GNU Fortran compiler... yes
checking whether gfortran accepts -g... yes
checking if Fortran compiler works... yes
checking whether pgf90 and gfortran compilers are compatible... no
configure: WARNING: *** Fortran 77 and Fortran 90 compilers are not link 
compatible


I do have gfortran, with its binary in /usr/bin/gfortran, However, I 
have removed all path information to it, in .bash_profile and .bashrc, 
and have replaced it with path information to pgf90. MPI is still 
configured with gfortran and the FC compiler.


I am using a evaluation version of the pgi compilers.

Jim


Re: [OMPI users] Compiling MPI with pgf90

2006-07-31 Thread Brian Barrett
On Mon, 2006-07-31 at 13:12 -0400, James McManus wrote:
> I'm trying to compile MPI with pgf90. I use the following configure 
> settings:
> 
> ./configure --prefix=/usr/local/mpi F90=pgf90 F77=pgf77
> 
> However, the compiler is set to gfortran:
> 
> *** Fortran 90/95 compiler
> checking for gfortran... gfortran
> checking whether we are using the GNU Fortran compiler... yes
> checking whether gfortran accepts -g... yes
> checking if Fortran compiler works... yes
> checking whether pgf90 and gfortran compilers are compatible... no
> configure: WARNING: *** Fortran 77 and Fortran 90 compilers are not link 
> compatible
> 
> I do have gfortran, with its binary in /usr/bin/gfortran, However, I 
> have removed all path information to it, in .bash_profile and .bashrc, 
> and have replaced it with path information to pgf90. MPI is still 
> configured with gfortran and the FC compiler.
> 
> I am using a evaluation version of the pgi compilers.


Try:

 ./configure --prefix=/usr/local/mpi FC=pgf90 F77=pgf77

Autoconf looks at the FC variable to choose the modern Fortran compiler,
not the F90 variable.

Brian




Re: [OMPI users] Compiling MPI with pgf90

2006-07-31 Thread Michael Kluskens


On Jul 31, 2006, at 1:12 PM, James McManus wrote:


I'm trying to compile MPI with pgf90. I use the following configure
settings:

./configure --prefix=/usr/local/mpi F90=pgf90 F77=pgf77


Besides the other issue about the wrong env. variable, if you have  
further trouble I'm using the following:


./configure --with-gnu-ld F77=pgf77 FFLAGS=-fastsse FC=pgf90 FCFLAGS=- 
fastsse



"--with-gnu-ld " might be important.

Michael



Re: [OMPI users] Compiling MPI with pgf90

2006-07-31 Thread James McManus

Thanks! The build went went well with FC=pgf90.

Michael Kluskens wrote:

On Jul 31, 2006, at 1:12 PM, James McManus wrote:

  

I'm trying to compile MPI with pgf90. I use the following configure
settings:

./configure --prefix=/usr/local/mpi F90=pgf90 F77=pgf77



Besides the other issue about the wrong env. variable, if you have  
further trouble I'm using the following:


./configure --with-gnu-ld F77=pgf77 FFLAGS=-fastsse FC=pgf90 FCFLAGS=- 
fastsse



"--with-gnu-ld " might be important.

Michael

___
users mailing list
us...@open-mpi.org
http://www.open-mpi.org/mailman/listinfo.cgi/users

  




Re: [OMPI users] minor program build problem

2006-07-31 Thread Jeff Squyres
I just released 1.1.1b4 with this update.  Could you give this tarball a
whirl and let me know if it fixes your problem?

http://www.open-mpi.org/software/ompi/v1.1/


On 7/31/06 11:09 AM, "Jeff Squyres"  wrote:

> On 7/26/06 10:51 AM, "Borenstein, Bernard S" 
> wrote:
> 
>> ld: Warning: size of symbol `mpi_fortran_argv_null_' changed from 1 in
>> chimera/discmo.o to 16 in
>> /home/bsb3227/openmpi_1.1.1b3/lib/libmpi.a(test_constants_f.o)
>> ld: Warning: size of symbol `mpi_fortran_argvs_null_' changed from 4 in
>> chimera/discmo.o to 16 in
>> /home/bsb3227/openmpi_1.1.1b3/lib/libmpi.a(test_constants_f.o)
>> ld: Warning: size of symbol `mpi_fortran_status_ignore_' changed from 20
>> in chimera/discmo.o to 16 in
>> /home/bsb3227/openmpi_1.1.1b3/lib/libmpi.a(test_constants_f.o)
>> ld: Warning: size of symbol `mpi_fortran_errcodes_ignore_' changed from
>> 4 in chimera/discmo.o to 16 in
>> /home/bsb3227/openmpi_1.1.1b3/lib/libmpi.a(test_constants_f.o)
> 
> Rats.  It took me several days of hunting, but I finally figured this one out.
> It seems like this only showed up in static builds of some compilers (intel
> and gfortran, in my testing).
> 
> This is due to something we introduced in 1.1b3 as a fix for OSX.  It's a
> long, horrid story of Fortran, linkers, and bears.
> 
> I committed a fix to the trunk at r11057, and included a lengthy log message
> explaining what I did to fix the problem
> (https://svn.open-mpi.org/trac/ompi/changeset/11057).  It works on all the
> configurations that I could try -- could you verify that it works for you?
> Here's what I tested (static and dynamic builds for all):
> 
> - Linux
>   - AMD, gfortran 4.0
>   - AMD, intel 9.0
>   - AMD, pgi 6.1
>   - AMD, pathscale 2.3
> - OSX
>   - x86, gfortran 4.2


-- 
Jeff Squyres
Server Virtualization Business Unit
Cisco Systems