[OMPI users] error configuring OpenMPI 1.6.4 with gcc 4.7.2

2013-04-01 Thread Alan Sayre
I have exactly the same problem as reported by Paul Hutton and David O
Gunter (2012-12-06)

tail of configure output

checking Fortran 90 kind of MPI_INTEGER_KIND (selected_int_kind(9))...
configure: error: Could not determine kind of
selected_int_kind(MPI_INTEGER_KIND)

selection from config.log

configure:53602: gfortran   -o conftest conftestf.f90
configure:53609: $? = 0
configure:53649: ./conftest
./conftest: /usr/lib64/libgfortran.so.3: version `GFORTRAN_1.4' not found
(required by ./conftest)
configure:53656: $? = 1
configure:53665: error: Could not determine kind of
selected_int_kind(MPI_INTEGER_KIND)

Unfortunately I don't understand how this was resolved. I checked and the
/usr/local/gcc-4.7.2/lib64 directory is populated with shared objects
(including libgfortran.so.3)..

I used the following commands in a script:

LD_LIBRARY_PATH=/usr/local/gcc-4.7.2/lib64:$LD_LIBRARY_PATH

PATH=/usr/local/gcc-4.7.2/bin:$PATH

./configure --prefix=/usr/local/openmpi-1.6.4 \
--enable-static

If it is useful I can attach config.log...

Thanks,

Alan


Re: [OMPI users] error configuring OpenMPI 1.6.4 with gcc 4.7.2

2013-04-01 Thread Alan Sayre
The problem was easily resolved by adding the missing export statements in
the shell script which was calling configure.


[OMPI users] configure problem

2013-04-04 Thread Alan Sayre
I'm trying to build v 1.6.4 with a local install of gcc 4.7.2.

I am trying to use the following script


OWD=$PWD
GMPD=$OWD/gmp-4.3.2
MPFRD=$OWD/mpfr-2.4.2
MPCD=$OWD/mpc-0.8.1
PPLD=$OWD/ppl-0.11
CLOOG=$OWD/cloog-ppl-0.15.9
GCC=$OWD/gcc-4.7.2-rhel5

export
LD_LIBRARY_PATH=$GCC/lib64:$GMPD/lib:$MPFRD/lib:$MPCD/lib:$PPLD/lib:$CLOOG/lib:$LD_LIBRARY_PATH
export PATH=$GCC/bin:/usr/bin:/bin
export CFLAGS='-I/nm/programs/third-party/gcc-4.7.2-rhel5/include
-I/nm/programs/third-party/gcc-4.7.2-rhel5/include/c++
-I/nm/programs/third-party/gcc-4.7.2-rhel5/include/c++/4.7.2'

#mkdir tmp-install >& /dev/null
cdtmp-install

rm -rf openmpi-1.6.4-$1
cp ../downloads/openmpi-1.6.4.tar.gz .
tar -xvf openmpi-1.6.4.tar.gz

mv openmpi-1.6.4 openmpi-1.6.4-$1
cd openmpi-1.6.4-$1

./configure \
--prefix=$OWD/openmpi-1.6.4-$1 \
--enable-static

#make
#make install
cd $OWD



The gcc executable is tested in test.sh:

OWD=$PWD
GMPD=$OWD/gmp-4.3.2
MPFRD=$OWD/mpfr-2.4.2
MPCD=$OWD/mpc-0.8.1
PPLD=$OWD/ppl-0.11
CLOOG=$OWD/cloog-ppl-0.15.9

export
LD_LIBRARY_PATH=$GMPD/lib:$MPFRD/lib:$MPCD/lib:$PPLD/lib:$CLOOG/lib:$OWD/gcc-4.7.2-rhel5/lib64
export PATH=$OWD/gcc-4.7.2-rhel5/bin:/bin:/usr/bin

which gcc
which g++

rm -r test >& /dev/null
c++ -o test test.c
./test

the test code test.c

include 

int
main(const int argc, const char* argv[])
 {
  bool bar;
  bool foo = true;
  bar = foo;

   printf("Hello World!\n");
   printf("sizeof bool %i\n", sizeof(bool));
   return 0;
 }

The output  test.out>
/nm/programs/third_party/gcc-4.7.2-rhel5/bin/gcc
/nm/programs/third_party/gcc-4.7.2-rhel5/bin/g++
Hello World!
sizeof bool 1

The configure steps with message that bool size is zero (at least I think
that's why it stops). The config.log.gz is attached.

The compiling system is RHEL5.

Thanks,

Alan


config.log.bz2
Description: BZip2 compressed data


configure_openmpi-1.6.4-xxx.sh
Description: Bourne shell script
#include 

int
main(const int argc, const char* argv[])
 {
  bool bar;
  bool foo = true; 
  bar = foo;
   
   printf("Hello World!\n");
   printf("sizeof bool %i\n", sizeof(bool));
   return 0;
 }



test.out
Description: Binary data


test.sh
Description: Bourne shell script


[OMPI users] problems building openmpi v 1.6.4 using a local build of gcc 4.7.2 on rhel6

2013-04-04 Thread Alan Sayre
I'm trying to build openmpi v.1.6.4 using a local build of gcc 4.7.2 on
rhel6.

The configure and build scripts are attached. The config.log and
build.output are attached.

The last few lines of the build output is:

make[3]: Entering directory
`/nm/programs/third_party/tmp-install/openmpi-1.6.4-blgwap02/ompi/mpi/f77'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory
`/nm/programs/third_party/tmp-install/openmpi-1.6.4-blgwap02/ompi/mpi/f77'
make[2]: Leaving directory
`/nm/programs/third_party/tmp-install/openmpi-1.6.4-blgwap02/ompi/mpi/f77'
Making all in mpi/f90
make[2]: Entering directory
`/nm/programs/third_party/tmp-install/openmpi-1.6.4-blgwap02/ompi/mpi/f90'
make  all-recursive
make[3]: Entering directory
`/nm/programs/third_party/tmp-install/openmpi-1.6.4-blgwap02/ompi/mpi/f90'
Making all in scripts
make[4]: Entering directory
`/nm/programs/third_party/tmp-install/openmpi-1.6.4-blgwap02/ompi/mpi/f90/scripts'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory
`/nm/programs/third_party/tmp-install/openmpi-1.6.4-blgwap02/ompi/mpi/f90/scripts'
make[4]: Entering directory
`/nm/programs/third_party/tmp-install/openmpi-1.6.4-blgwap02/ompi/mpi/f90'
  FC mpi.lo
 In file mpi-f90-interfaces.h:1586

 Included at mpi.f90:37

  real*16, intent(in) :: x
1
Error: Old-style type declaration REAL*16 not supported at (1)
 In file mpi-f90-interfaces.h:1607

 Included at mpi.f90:37

  complex*32, intent(in) :: x
   1
Error: Old-style type declaration COMPLEX*32 not supported at (1)
 In file mpi-f90-interfaces.h:1670

 Included at mpi.f90:37

  real*16, dimension(*), intent(in) :: x
1
Error: Old-style type declaration REAL*16 not supported at (1)
 In file mpi-f90-interfaces.h:1691

 Included at mpi.f90:37

  complex*32, dimension(*), intent(in) :: x
   1
Error: Old-style type declaration COMPLEX*32 not supported at (1)
 In file mpi-f90-interfaces.h:1754

 Included at mpi.f90:37

  real*16, dimension(1,*), intent(in) :: x
1
Error: Old-style type declaration REAL*16 not supported at (1)
 In file mpi-f90-interfaces.h:1775

 Included at mpi.f90:37

  complex*32, dimension(1,*), intent(in) :: x
   1
Error: Old-style type declaration COMPLEX*32 not supported at (1)
 In file mpi-f90-interfaces.h:1838

 Included at mpi.f90:37

  real*16, dimension(1,1,*), intent(in) :: x
1
Error: Old-style type declaration REAL*16 not supported at (1)
 In file mpi-f90-interfaces.h:1859

 Included at mpi.f90:37

  complex*32, dimension(1,1,*), intent(in) :: x
   1
Error: Old-style type declaration COMPLEX*32 not supported at (1)
 In file mpi-f90-interfaces.h:1922

 Included at mpi.f90:37

  real*16, dimension(1,1,1,*), intent(in) :: x
1
Error: Old-style type declaration REAL*16 not supported at (1)
 In file mpi-f90-interfaces.h:1943

 Included at mpi.f90:37

  complex*32, dimension(1,1,1,*), intent(in) :: x
   1
Error: Old-style type declaration COMPLEX*32 not supported at (1)
 In file mpi-f90-interfaces.h:1946

 Included at mpi.f90:37

end subroutine MPI_Sizeof4DC32
 1
Error: Ambiguous interfaces 'mpi_sizeof4dc32' and 'mpi_sizeof4dr16' in
generic interface 'mpi_sizeof' at (1)
make[4]: *** [mpi.lo] Error 1
make[4]: Leaving directory
`/nm/programs/third_party/tmp-install/openmpi-1.6.4-blgwap02/ompi/mpi/f90'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/nm/programs/third_party/tmp-install/openmpi-1.6.4-blgwap02/ompi/mpi/f90'
make[2]: *** [all] Error 2
make[2]: Leaving directory
`/nm/programs/third_party/tmp-install/openmpi-1.6.4-blgwap02/ompi/mpi/f90'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/nm/programs/third_party/tmp-install/openmpi-1.6.4-blgwap02/ompi'
make: *** [all-recursive] Error 1


What I am doing wrong?

Thanks,

Alan


build.out.bz2
Description: BZip2 compressed data


config.log.bz2
Description: BZip2 compressed data


configure_openmpi-1.6.4-xxx.sh
Description: Bourne shell script


make_openmpi-1.6.4-xxx.sh
Description: Bourne shell script


tail.out
Description: Binary data
#include 

int
main(const int argc, const char* argv[])
 {
  bool bar;
  bool foo = true; 
  bar = foo;
   
   printf("Hello World!\n");
   printf("sizeof bool %i\n", sizeof(bool));
   return 0;
 }



test.out
Description: Binary data


test.sh
Description: Bourne shell script


[OMPI users] minor change request

2013-05-20 Thread Alan Sayre
To quiet VS compile time warnings can the following (very) minor change be made:

c:\program files
(x86)\openmpi_v1.6-x64\include\openmpi/ompi/mpi/cxx/op_inln.h(148):
warning C4800: 'int' : forcing value to bool 'true' or 'false'
(performance warning)

from:

inline bool
MPI::Op::Is_commutative(void) const
{
int commute;
(void)MPI_Op_commutative(mpi_op, &commute);
return (bool) commute;
}

to:

inline bool
MPI::Op::Is_commutative(void) const
{
int commute;
(void)MPI_Op_commutative(mpi_op, &commute);
return (commute != 0);
}

Thanks,

Alan