Brice This worked earlier. Maybe "earlier" was version 1.5 of hwloc.
I agree with your statements regarding __GNUC__. Instead of testing for _CRAYC, one could introduce an autoconf check whether __builtin_ffsl works correctly. -erik On Thu, Jan 17, 2013 at 1:22 PM, Brice Goglin <brice.gog...@inria.fr> wrote: > Did this work in the past? I don't think we changed this code recently. > Can you run "make check" to make sure this change doesn't break anything? > Thanks > Brice > > > Le 17/01/2013 19:19, Erik Schnetter a écrit : > > 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 > "/opt/cray/xe-sysroot/4.1.20/usr/include/string.h"). > > (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__) > > to > > #elif defined(__GNUC__) && !defined(_CRAYC) > > -erik > > -- > Erik Schnetter <schnet...@gmail.com> > http://www.perimeterinstitute.ca/personal/eschnetter/ > > > _______________________________________________ > hwloc-users mailing > listhwloc-users@open-mpi.orghttp://www.open-mpi.org/mailman/listinfo.cgi/hwloc-users > > > -- Erik Schnetter <schnet...@gmail.com> http://www.perimeterinstitute.ca/personal/eschnetter/