- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi all, apologies if this is not the correct forum. I am trying to compile mvapich-2.2b with the intel 2015 compiler (15.0.4) and I am getting the following error during make:
make[2]: Entering directory `/app/mvapich2-2.2b/intel-15.0.4/src/mvapich2-2.2b'
CC src/mpi/attr/lib_libmpi_la-attr_delete.lo
In file included from ./src/mpid/ch3/channels/mrail/src/gen2/vbuf.h(33),
from ./src/mpid/ch3/channels/mrail/src/gen2/mpidi_ch3_rdma_pre.h(23),
from ./src/mpid/ch3/channels/mrail/include/mpidi_ch3_pre.h(23),
from ./src/mpid/ch3/include/mpidpre.h(60),
from ./src/include/mpiimpl.h(200),
from src/mpi/attr/attr_delete.c(8):
/app/mvapich2-2.2b/intel-15.0.4/src/mvapich2-2.2b/src/mpid/ch3/channels/common/include/mv2_clock.h(58): error: identifier "asm" is undefined
asm volatile ("rdtsc" : "=a" (low), "=d" (high));
^In file included from ./src/mpid/ch3/channels/mrail/src/gen2/vbuf.h(33),
from ./src/mpid/ch3/channels/mrail/src/gen2/mpidi_ch3_rdma_pre.h(23),
from ./src/mpid/ch3/channels/mrail/include/mpidi_ch3_pre.h(23),
from ./src/mpid/ch3/include/mpidpre.h(60),
from ./src/include/mpiimpl.h(200),
from src/mpi/attr/attr_delete.c(8):
/app/mvapich2-2.2b/intel-15.0.4/src/mvapich2-2.2b/src/mpid/ch3/channels/common/include/mv2_clock.h(58): error: expected a ";"
asm volatile ("rdtsc" : "=a" (low), "=d" (high));
^compilation aborted for src/mpi/attr/attr_delete.c (code 2)
make[2]: *** [src/mpi/attr/lib_libmpi_la-attr_delete.lo] Error 1
make[2]: Leaving directory `/app/mvapich2-2.2b/intel-15.0.4/src/mvapich2-2.2b'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/app/mvapich2-2.2b/intel-15.0.4/src/mvapich2-2.2b'
make: *** [all] Error 2
Has anyone come across this error? I am running a Redhat Scientific Linux 7.2 system.
Thanks, Dom
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, I solved the problem by replacing acm volatile with __acm__ __volatile__ to comply with cstd=c99. Might be useful for others, too.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page