Open MPI logo

Hardware Locality Users' Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Hardware Locality Users mailing list

Subject: [hwloc-users] hwloc-1.6.1rc2 Build failure with Cray compiler
From: Erik Schnetter (schnetter_at_[hidden])
Date: 2013-01-17 13:19:25

hwloc-1.6.1rc2 fails to build with the Cray compiler

Cray C : Version 8.1.2 Thu Jan 17, 2013 12:18:54

The error message is

  CC bitmap.lo
CC-147 craycc: ERROR
  Declaration is incompatible with "int ffsl(long)" (declared at line 526 of

(Yes, there is no line number with the error message.)

This seems to be caused by the fact that the Cray compiler sets __GNUC__,
but is not quite compatible. A work-around is to change line 56 of
include/private/misc.h from

#elif defined(__GNUC__)


#elif defined(__GNUC__) && !defined(_CRAYC)


Erik Schnetter <schnetter_at_[hidden]>