Hi,

I tried to build Open MPI 1.5 on Linux x86_64 with the Oracle/Sun Studio C
compiler in 64-bit mode. Unfortunately "make" breaks.


linpc4 openmpi-1.5-Linux.x86_64.64_cc 107 cc -V
cc: Sun C 5.10 Linux_i386 2009/06/03
usage: cc [ options] files.  Use 'cc -flags' for details

linpc4 openmpi-1.5-Linux.x86_64.64_cc 108 uname -a
Linux linpc4 2.6.27.45-0.1-default #1 SMP 2010-02-22 16:49:47 +0100 x86_64
  x86_64 x86_64 GNU/Linux

I used the following command to build the package.

../openmpi-1.5/configure --prefix=/usr/local/openmpi-1.5_64_cc \
  --libdir=/usr/local/openmpi-1.5_64_cc/lib64 \
  CFLAGS="-m64" CXXFLAGS="-m64" FFLAGS="-m64" FCFLAGS="-m64" \
  CXXLDFLAGS="-m64" CPPFLAGS="" \
  LDFLAGS="-m64" \
  C_INCL_PATH="" C_INCLUDE_PATH="" CPLUS_INCLUDE_PATH="" \
  OBJC_INCLUDE_PATH="" MPICHHOME="" \
  CC="cc" CXX="CC" F77="f95" FC="f95" \
  --without-udapl  --with-threads=posix --enable-mpi-threads \
  --enable-shared --enable-heterogeneous --enable-cxx-exceptions \
  |& tee log.configure.$SYSTEM_ENV.$MACHINE_ENV.64_cc


linpc4 openmpi-1.5-Linux.x86_64.64_cc 110 grep -i warning:
  log.configure.Linux.x86_64.64_cc 
configure: WARNING: MPI_REAL16 and MPI_COMPLEX32 support have been disabled
configure: WARNING: valgrind.h not found
configure: WARNING: Unknown architecture ... proceeding anyway
configure: WARNING: File locks may not work with NFS.  See the Installation and
configure: WARNING:  -xldscope=hidden has been added to CFLAGS

linpc4 openmpi-1.5-Linux.x86_64.64_cc 111 grep -i error:
  log.configure.Linux.x86_64.64_cc
configure: error: no vtf3.h found; check path for VTF3 package first...
configure: error: no BPatch.h found; check path for Dyninst package first...
configure: error: no f2c.h found; check path for CLAPACK package first...
configure: error: MPI Correctness Checking support cannot be built inside Open 
MPI
configure: error: no papi.h found; check path for PAPI package first...
configure: error: no libcpc.h found; check path for CPC package first...
configure: error: no ctool/ctool.h found; check path for CTool package first...


linpc4 openmpi-1.5-Linux.x86_64.64_cc 112 grep -i warning:
  log.make.Linux.x86_64.64_cc 

linpc4 openmpi-1.5-Linux.x86_64.64_cc 113 grep -i error:
  log.make.Linux.x86_64.64_cc 
cc1: error: unrecognized command line option "-fno-directives-only"


linpc4 openmpi-1.5-Linux.x86_64.64_cc 118 tail -15 log.make.Linux.x86_64.64_cc
make[3]: Leaving directory `.../opal/libltdl'
make[2]: Leaving directory `.../opal/libltdl'
Making all in asm
make[2]: Entering directory `.../opal/asm'
  CC     asm.lo
rm -f atomic-asm.S
ln -s "../../../openmpi-1.5/opal/asm/generated/atomic-amd64-linux-nongas.s"
  atomic-asm.S
  CPPAS  atomic-asm.lo
cc1: error: unrecognized command line option "-fno-directives-only"
cc: cpp failed for atomic-asm.S
make[2]: *** [atomic-asm.lo] Error 1
make[2]: Leaving directory `.../opal/asm'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `.../opal'
make: *** [all-recursive] Error 1


I have also built it with gcc-4.2.0 in 64-bit mode and it seems that
that version works.

linpc4 small_prog 110 mpicc -show
gcc -I/usr/local/openmpi-1.5_64_gcc/include -fexceptions -pthread
  -L/usr/local/openmpi-1.5_64_gcc/lib64 -lmpi -ldl -Wl,--export-dynamic
  -lnsl -lutil -lm -ldl

linpc4 small_prog 111 mpicc -m64 rank_size.c
linpc4 small_prog 112 mpiexec -np 2 a.out
I'm process 0 of 2 available processes running on linpc4.
MPI standard 2.1 is supported.
I'm process 1 of 2 available processes running on linpc4.
MPI standard 2.1 is supported.



Thank you very much for any help to solve the problem with the
Oracle/Sun C compiler in advance.


Best regards

Siegmar

Reply via email to