[mvapich-discuss] Error while compiling mvapich-1.1 with sunstudio

Thomas Bach bachth at uni-mainz.de
Mon Nov 24 10:46:14 EST 2008


Hi all,

I'm trying to compile mvapich-1.1 with the sunstudio compiler (version
12.0 - most current patch level).
See attached files for error messages.

# rpm -q -a | egrep 'sun-(f90|cc)-12'
sun-cc-12.0-8
sun-f90-12.0-5

# cat /etc/SuSE-release
SUSE Linux Enterprise Server 10 (x86_64)
VERSION = 10
PATCHLEVEL = 1

# suncc -V
cc: Sun C 5.9 Linux_i386 Patch 124871-07 2008/10/08
# sunCC -V
sunCC: Sun C++ 5.9 Linux_i386 Patch 124865-06 2008/08/22
# sunf77 -V
f90: Sun Fortran 95 8.3 Linux_i386 Patch 127145-04 2008/04/17

Any suggestions how to solve this?

Greets,
	Thomas Bach.
-------------- next part --------------
 
cleaning directory mpi-io
 
cleaning directory adio/common
 
cleaning directory mpi-io/glue/mpich1
 
cleaning directory adio/ad_testfs
 
cleaning directory adio/ad_ufs
 
cleaning directory adio/ad_nfs
 
cleaning directory mpi-io/fortran
 
cleaning directory test
rm -f .P* PI* *.o 
rm -f simple perf async coll_test coll_perf misc file_info excl large_array atomicity noncontig i_noncontig noncontig_coll split_coll shared_fp large_file psimple error status noncontig_coll2 fcoll_test fperf fmisc pfcoll_test 
 
cleaning src/pt2pt
rm -f *.o *~ /usr/local/cluster/src/mvapich/mvapich-1.1-sun/src/pt2pt/*.o
cleaning src/env
rm -f *.o *~ /usr/local/cluster/src/mvapich/mvapich-1.1-sun/src/env/*.o
cleaning src/dmpi
rm -f *.o *~ /usr/local/cluster/src/mvapich/mvapich-1.1-sun/src/dmpi/*.o
cleaning src/util
rm -f *.o *~ /usr/local/cluster/src/mvapich/mvapich-1.1-sun/src/util/*.o
cleaning src/context
rm -f *.o *~ /usr/local/cluster/src/mvapich/mvapich-1.1-sun/src/context/*.o
cleaning src/coll
rm -f *.o *~ /usr/local/cluster/src/mvapich/mvapich-1.1-sun/src/coll/*.o
cleaning src/topol
rm -f *.o *~ /usr/local/cluster/src/mvapich/mvapich-1.1-sun/src/topol/*.o
cleaning src/profile
rm -f *.o *~ /usr/local/cluster/src/mvapich/mvapich-1.1-sun/src/profile/*.o
cleaning src/misc2
rm -f *.o *~ /usr/local/cluster/src/mvapich/mvapich-1.1-sun/src/misc2/*.o
cleaning src/external
rm -f *.o *~ /usr/local/cluster/src/mvapich/mvapich-1.1-sun/src/external/*.o
cleaning mpid/ch_gen2
/bin/rm -f *.o *.d *~ viainit.o viasend.o viarecv.o viacheck.o viapriv.o viaparam.o viutil.o vbuf.o cm_user.o mpid_init.o mpid_send.o mpid_recv.o cm.o mpid_hsend.o mpid_hrecv.o mpid_pack.o cmnargs.o mpid_misc.o dreg.o mpid_smpi.o collutils.o intra_rdma_barrier.o mpid_mcast.o mcst_grp.o ibmcgrp.o crc32h.o avl.o mem_hooks.o viacoalesce.o shmem_coll.o async_progress.o calltrace.o objtrace.o \
    queue.o sbcnst2.o tr2.o queue.c sbcnst2.c tr2.c sbcnst2.h tr2.h core ibmcgrp/*.o ibmcgrp/ibmcgrp \
    /usr/local/cluster/src/mvapich/mvapich-1.1-sun/bin/ibmcgrp
make --no-print-directory -C process clean
rm -f *.o mpirun_rsh mpispawn minidaemon_client pmgr_collective_client.o pmgr_collective_common.o minidaemon.o mpirun_util.o
cleaning examples
rm -f sendchar *.o
 
Making clean in directory test
 
Making clean in directory pt2pt
 
Making clean in directory coll
 
Making clean in directory topol
 
Making clean in directory env
 
Making clean in directory context
 
Making clean in directory profile
 
Making clean in directory io
 
Making clean in directory perftest
cd /usr/local/cluster/src/mvapich/mvapich-1.1-sun/examples/perftest && true --foreign --include-deps Makefile
cd /usr/local/cluster/src/mvapich/mvapich-1.1-sun/examples/perftest && true
test -z "mpptest goptest buflimit " || rm -f mpptest goptest buflimit 
rm -f *.o core *.core
rm -f tunepkt pktuse copytest vectest stress ctest cluster tcomm
rm -f work.pc work.pcl
cleaning examples/basic
rm -f work.pc work.pcl
rm -f *.o *~ PI* cpi systest srtest  fpi cpilog cpi_autolog hello++ iotest pi3f90  upshot rdb.* startup.* core
rm -f hello++.ti hello++.ii
cleaning examples/test/pt2pt
cleaning examples/test/coll
cleaning examples/test/topol
cleaning examples/test/context
cleaning examples/test/env
cleaning examples/test/profile
cleaning examples/test
 
Making clean in directory pt2pt
 
Making clean in directory coll
 
Making clean in directory topol
 
Making clean in directory env
 
Making clean in directory context
 
Making clean in directory profile
 
Making clean in directory io
cleaning examples/perftest
cd /usr/local/cluster/src/mvapich/mvapich-1.1-sun/examples/perftest && true --foreign --include-deps Makefile
cd /usr/local/cluster/src/mvapich/mvapich-1.1-sun/examples/perftest && true
test -z "mpptest goptest buflimit " || rm -f mpptest goptest buflimit 
rm -f *.o core *.core
rm -f tunepkt pktuse copytest vectest stress ctest cluster tcomm
rm -f work.pc work.pcl
cleaning src/infoexport
rm -f *.o
rm -f *.i
rm -f *.s
rm -f *.cxx.log
rm -f *.cxx.errors
rm -f libtvmpich.so.1.0
rm -f libtvmpich.so*
rm -f /usr/local/cluster/src/mvapich/mvapich-1.1-sun/src/infoexport/*.o
rm -f *~ *.o aditest1 aditest2 aditest3 aditest4 aditest5 aditest6 aditest7 aditest8 aditest9 aditest10 aditest11 aditest12 aditest13 timers trunc 
rm -f /usr/local/cluster/src/mvapich/mvapich-1.1-sun/lib/lib*.a 
rm -f /usr/local/cluster/src/mvapich/mvapich-1.1-sun/lib/shared/lib*.so*
make --no-print-directory mpi-modules
make --no-print-directory mpilib
for file in queue.c sbcnst2.c tr2.c sbcnst2.h tr2.h ; do  \
    if [ ! -s $file ] ; then   \
       ln -s ../util/$file;    \
    fi;                         \
done
 
making mpir in directory mpid/ch_gen2
for file in queue.c sbcnst2.c tr2.c sbcnst2.h tr2.h ; do  \
    if [ ! -s $file ] ; then   \
       ln -s ../util/$file;    \
    fi;                         \
done
suncc -DHAVE_CONFIG_H -I. -I/usr/local/cluster/src/mvapich/mvapich-1.1-sun/mpid/ch_gen2 -I/usr/local/cluster/src/mvapich/mvapich-1.1-sun/include -I/usr/local/cluster/src/mvapich/mvapich-1.1-sun/include -I/usr/local/cluster/src/mvapich/mvapich-1.1-sun/mpid/ch_gen2 -I/usr/local/cluster/src/mvapich/mvapich-1.1-sun/mpid/util -DMPID_DEVICE_CODE  -DHAVE_UNAME=1 -DHAVE_NETDB_H=1 -DHAVE_GETHOSTBYNAME=1  -DMPID_DEBUG_NONE -DMPID_STAT_NONE  -D_GNU_SOURCE -D_X86_64_   -DEARLY_SEND_COMPLETION -DMEMORY_SCALE -DVIADEV_RPUT_SUPPORT -D_SMP_ -D_SMP_RNDV_ -DXRC -DCH_GEN2 -D_GNU_SOURCE   -I/opt/ofed//include -O3 -DHAVE_MPICHCONF_H -I/usr/local/cluster/src/mvapich/mvapich-1.1-sun -I/usr/local/cluster/src/mvapich/mvapich-1.1-sun/mpid/ch_gen2 -I.   -c viainit.c 
"ib_init.h", line 15: warning: initializer does not fit or is out of range: -1
"ib_init.h", line 37: warning: improper pointer/integer combination: op "<"
"viainit.c", line 426: warning: implicit function declaration: ibv_create_xrc_srq
"viainit.c", line 427: warning: improper pointer/integer combination: op "="
"viainit.c", line 428: undefined struct/union member: xrc_srq_num
"viainit.c", line 428: improper member use: xrc_srq_num
"viainit.c", line 692: warning: argument #3 is incompatible with prototype:
	prototype: pointer to function(pointer to void) returning pointer to void : "/usr/include/pthread.h", line 221
	argument : pointer to void
"viainit.c", line 1134: warning: argument mismatch
"viainit.c", line 1144: undefined symbol: IBV_DEVICE_XRC
"viainit.c", line 1160: warning: implicit function declaration: ibv_open_xrc_domain
"viainit.c", line 1161: warning: improper pointer/integer combination: op "="
"viainit.c", line 1417: warning: argument #3 is incompatible with prototype:
	prototype: pointer to function(pointer to void) returning pointer to void : "/usr/include/pthread.h", line 221
	argument : pointer to void
"viainit.c", line 1541: warning: argument mismatch
"viainit.c", line 1836: warning: implicit function declaration: ibv_close_xrc_domain
cc: acomp failed for viainit.c
make[3]: *** [viainit.o] Error 2
Exit status from make was 2
make[2]: *** [mpilib] Error 1
make[1]: *** [mpi-modules] Error 2
make: *** [mpi] Error 2
-------------- next part --------------
configure:suncc -D_X86_64_ -DEARLY_SEND_COMPLETION -DMEMORY_SCALE -DVIADEV_RPUT_SUPPORT -D_SMP_ -D_SMP_RNDV_ -DXRC -DCH_GEN2 -D_GNU_SOURCE -I/opt/ofed//include -O3 conftest.c -o conftest -L/opt/ofed/lib64 -Wl,-rpath=/opt/ofed/lib64 -libverbs -libumad -lpthread
configure: failed program was:

#define MPE_USE_EXTENSIONS 1
#define HAS_VOLATILE 1
#include "confdefs.h"
#include <ctype.h>
int main() { exit(0); }
int t() { 
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_gethrtime) || defined (__stub___gethrtime)
choke me
#else
/* Override any gcc2 internal prototype to avoid an error.  */
extern char gethrtime(); gethrtime();
#endif
 }
"conftest.c", line 3: warning: implicit function declaration: exit
conftest.o: In function `t':
conftest.c:(.text+0x28): undefined reference to `gethrtime'
configure:suncc -D_X86_64_ -DEARLY_SEND_COMPLETION -DMEMORY_SCALE -DVIADEV_RPUT_SUPPORT -D_SMP_ -D_SMP_RNDV_ -DXRC -DCH_GEN2 -D_GNU_SOURCE -I/opt/ofed//include -O3 conftest.c -o conftest -L/opt/ofed/lib64 -Wl,-rpath=/opt/ofed/lib64 -libverbs -libumad -lpthread
configure: failed program was:

#define MPE_USE_EXTENSIONS 1
#define HAS_VOLATILE 1
#include "confdefs.h"
#include <ctype.h>
int main() { exit(0); }
int t() { 
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_clock_gettime) || defined (__stub___clock_gettime)
choke me
#else
/* Override any gcc2 internal prototype to avoid an error.  */
extern char clock_gettime(); clock_gettime();
#endif
 }
"conftest.c", line 3: warning: implicit function declaration: exit
conftest.o: In function `t':
conftest.c:(.text+0x28): undefined reference to `clock_gettime'
configure:suncc -D_X86_64_ -DEARLY_SEND_COMPLETION -DMEMORY_SCALE -DVIADEV_RPUT_SUPPORT -D_SMP_ -D_SMP_RNDV_ -DXRC -DCH_GEN2 -D_GNU_SOURCE -I/opt/ofed//include -O3 conftest.c -o conftest -L/opt/ofed/lib64 -Wl,-rpath=/opt/ofed/lib64 -libverbs -libumad -lpthread
configure: failed program was:

#define MPE_USE_EXTENSIONS 1
#define HAS_VOLATILE 1
#include "confdefs.h"
#include <ctype.h>
int main() { exit(0); }
int t() { 
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_clock_gettime) || defined (__stub___clock_gettime)
choke me
#else
/* Override any gcc2 internal prototype to avoid an error.  */
extern char clock_gettime(); clock_gettime();
#endif
 }
"conftest.c", line 3: warning: implicit function declaration: exit
conftest.o: In function `t':
conftest.c:(.text+0x28): undefined reference to `clock_gettime'
configure:suncc -D_X86_64_ -DEARLY_SEND_COMPLETION -DMEMORY_SCALE -DVIADEV_RPUT_SUPPORT -D_SMP_ -D_SMP_RNDV_ -DXRC -DCH_GEN2 -D_GNU_SOURCE -I/opt/ofed//include -O3 conftest.c -o conftest -L/opt/ofed/lib64 -Wl,-rpath=/opt/ofed/lib64 -libverbs -libumad -lpthread
configure: failed program was:

#define MPE_USE_EXTENSIONS 1
#define HAS_VOLATILE 1
#include "confdefs.h"
#include <ctype.h>
int main() { exit(0); }
int t() { 
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_clock_getres) || defined (__stub___clock_getres)
choke me
#else
/* Override any gcc2 internal prototype to avoid an error.  */
extern char clock_getres(); clock_getres();
#endif
 }
"conftest.c", line 3: warning: implicit function declaration: exit
conftest.o: In function `t':
conftest.c:(.text+0x28): undefined reference to `clock_getres'
configure:suncc -D_X86_64_ -DEARLY_SEND_COMPLETION -DMEMORY_SCALE -DVIADEV_RPUT_SUPPORT -D_SMP_ -D_SMP_RNDV_ -DXRC -DCH_GEN2 -D_GNU_SOURCE -I/opt/ofed//include -O3 conftest.c -o conftest -L/opt/ofed/lib64 -Wl,-rpath=/opt/ofed/lib64 -libverbs -libumad -lpthread
configure: failed program was:

#define MPE_USE_EXTENSIONS 1
#define HAS_VOLATILE 1
#include "confdefs.h"
#include <ctype.h>
int main() { exit(0); }
int t() { 
/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_clock_getres) || defined (__stub___clock_getres)
choke me
#else
/* Override any gcc2 internal prototype to avoid an error.  */
extern char clock_getres(); clock_getres();
#endif
 }
"conftest.c", line 3: warning: implicit function declaration: exit
conftest.o: In function `t':
conftest.c:(.text+0x28): undefined reference to `clock_getres'
"conftest1.c", line 4: warning: implicit function declaration: gethostbyname
NOTICE: Invoking /opt/sunstudio/sunstudio12/bin/f90 -f77 -ftrap=%none -o conftest conftest.f conftest1.o
conftest.f:
 MAIN main:
#include "confdefs.h"
#include <stdio.h>
#include <stdarg.h>
int func( int a, ... ){
int b;
va_list ap;
va_start( ap );
b = va_arg(ap, int);
printf( "%d-%d\n", a, b );
va_end(ap);
fflush(stdout);
return 0;
}
int main() { func( 1, 2 ); return 0;}
"conftest.c", line 7: warning: argument mismatch
configure:suncc -D_X86_64_ -DEARLY_SEND_COMPLETION -DMEMORY_SCALE -DVIADEV_RPUT_SUPPORT -D_SMP_ -D_SMP_RNDV_ -DXRC -DCH_GEN2 -D_GNU_SOURCE -I/opt/ofed//include -O3 conftest.c -o conftest -L/opt/ofed/lib64 -Wl,-rpath=/opt/ofed/lib64 -libverbs -libumad -lpthread
configure: failed program was:

#define MPE_USE_EXTENSIONS 1
#define HAS_VOLATILE 1
#define HAVE_SIGNAL_H 1
#define HAVE_SIGACTION 1
#define HAVE_PRAGMA_WEAK 1
#define HAVE_WEAK_SYMBOLS 1
#define HAVE_UNAME 1
#define HAVE_NETDB_H 1
#define HAVE_GETHOSTBYNAME 1
#define HAVE_CATOPEN 1
#define HAVE_CATCLOSE 1
#define HAVE_CATGETS 1
#define HAVE_GENCAT 1
#define HAVE_NL_TYPES_H 1
#define STDC_HEADERS 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
#define HAVE_UNISTD_H 1
#define HAVE_STDARG_H 1
#define USE_STDARG 1
#define MALLOC_RET_VOID 1
#define HAVE_SYSTEM 1
#define HAVE_NICE 1
#define HAVE_STRDUP 1
#define HAVE_MEMORY_H 1
#define HAVE_SYS_IOCTL_H 1
#include "confdefs.h"

#include <sys/sockio.h>
int main() { exit(0); }
int t() { main(); }
"conftest.c", line 3: cannot find include file: <sys/sockio.h>
"conftest.c", line 4: warning: implicit function declaration: exit
cc: acomp failed for conftest.c
suncc -D_X86_64_   -DEARLY_SEND_COMPLETION -DMEMORY_SCALE -DVIADEV_RPUT_SUPPORT -D_SMP_ -D_SMP_RNDV_ -DXRC -DCH_GEN2 -D_GNU_SOURCE   -I/opt/ofed//include -O3 ... test for quotes in defn
"conftest.c", line 3: warning: old-style declaration or incorrect type for: main
suncc -D_X86_64_ -DEARLY_SEND_COMPLETION -DMEMORY_SCALE -DVIADEV_RPUT_SUPPORT -D_SMP_ -D_SMP_RNDV_ -DXRC -DCH_GEN2 -D_GNU_SOURCE -I/opt/ofed//include -O3 conftest.o -o conftest foo.a -L/opt/ofed/lib64 -Wl,-rpath=/opt/ofed/lib64 -libverbs -libumad -lpthread


More information about the mvapich-discuss mailing list