Travis, per the logs, the issue is the compiler does not find the definition of CLOCK_MONOTONIC nor clock_gettime(),
and this looks like a missing include header file. on my box, these are defined in <time.h>, but ubuntu could be different. can you please confirm <time.h> should be used (man clock_gettime should be enough for that) <time.h> might not be (indirectly) pulled on ubuntu, so what if you manually #include <time.h> at the beginning of opal/mca/timer/linux/timer_linux_component.c ? Cheers, Gilles ----- Original Message ----- Hello, I am attempting to build OpenMPI 1.10.6 (and also 2.0.x) on several different Ubuntu 16.04 workstations using the Oracle Developer 12.5 compilers. I have verified that the suncc, sunCC, and sunf95 compilers work by compiling non-MPI codes. The configure command is shown here: ../configure --enable-shared CC=suncc CXX=sunCC FC=sunf95 CXXFLAGS=-L/usr/lib/x86_64-linux-gnu --prefix=/home/SOFTWARE/openmpi/1. 10.6/sun/12.5 The build fails while trying to compile 'timer_linux_component.c': "../../../../../opal/include/opal/sys/amd64/atomic.h", line 136: warning: parameter in inline asm statement unused: %3 "../../../../../opal/include/opal/sys/amd64/atomic.h", line 182: warning: parameter in inline asm statement unused: %2 "../../../../../opal/include/opal/sys/amd64/atomic.h", line 203: warning: parameter in inline asm statement unused: %2 "../../../../../opal/include/opal/sys/amd64/atomic.h", line 224: warning: parameter in inline asm statement unused: %2 "../../../../../opal/include/opal/sys/amd64/atomic.h", line 245: warning: parameter in inline asm statement unused: %2 "../../../../../opal/include/opal/sys/amd64/timer.h", line 61: warning: initializer does not fit or is out of range: 0x80000007 "../../../../../opal/mca/timer/linux/timer_linux_component.c", line 166: warning: implicit function declaration: clock_getres "../../../../../opal/mca/timer/linux/timer_linux_component.c", line 166: undefined symbol: CLOCK_MONOTONIC "../../../../../opal/mca/timer/linux/timer_linux_component.c", line 188: warning: implicit function declaration: clock_gettime "../../../../../opal/mca/timer/linux/timer_linux_component.c", line 188: undefined symbol: CLOCK_MONOTONIC "../../../../../opal/mca/timer/linux/timer_linux_component.c", line 197: undefined symbol: CLOCK_MONOTONIC cc: acomp failed for ../../../../../opal/mca/timer/linux/timer_ linux_component.c Makefile:1691: recipe for target 'timer_linux_component.lo' failed make[2]: *** [timer_linux_component.lo] Error 1 make[2]: Leaving directory '/home/teb-admin/INSTALL/openmpi-1.10. 6/BUILD_SUN/opal/mca/timer/linux' Makefile:2234: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory '/home/teb-admin/INSTALL/openmpi-1.10. 6/BUILD_SUN/opal' Makefile:1777: recipe for target 'all-recursive' failed make: *** [all-recursive] Error 1 The compiler seems unable to find 'librt.so' which can be found in the following locations on the system: /lib/i386-linux-gnu/librt.so.1 /lib/x86_64-linux-gnu/librt.so.1 /lib32/librt.so.1 /libx32/librt.so.1 /usr/lib/x86_64-linux-gnu/librt.so /usr/lib32/librt.so /usr/libx32/librt.so I've tried various combinations of CFLAGS, LDFLAGS, and LIBS on the configure command with no luck. Any help is greatly appreciated.
_______________________________________________ users mailing list users@lists.open-mpi.org https://rfd.newmexicoconsortium.org/mailman/listinfo/users