Open MPI logo

Hardware Locality Users' Mailing List Archives

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

Subject: [hwloc-users] Getting the cache hierarchy
From: Olivier Cessenat (cessenat_at_[hidden])
Date: 2010-06-06 12:14:35


Hello,

I get in troubles on my i686 system when compiling hwloc:
<<
Making all in src
make[1]: Entering directory `/tmp/hwloc-1.0.1/src'
  CC topology.lo
In file included from topology.c:17:
/opt/gfortran/irun/bin/../lib/gcc/i386-pc-linux-gnu/4.3.0/include-fixed/sys/stat.h:345: error: expected ',' or ';' before '__wur'
In file included from /tmp/hwloc-1.0.1/include/hwloc.h:17,
                 from topology.c:21:
/tmp/hwloc-1.0.1/include/hwloc/config.h:115:2: error: #error "unknown
size for unsigned long."
/tmp/hwloc-1.0.1/include/hwloc/config.h:119:2: error: #error "unknown
size for unsigned int."
topology.c: In function 'hwloc_get_sysctl':
topology.c:66: warning: implicit declaration of function 'sysctl'
make[1]: *** [topology.lo] Erreur 1
make[1]: Leaving directory `/tmp/hwloc-1.0.1/src'
make: *** [all-recursive] Erreur 1
>>

I removed "/opt/gfortran/irun/bin" from my PATH environment, and
compilation passed.

I now get infos such as
<<
hwloc-info
depth 0: 1 Machine (type #1)
 depth 1: 1 PU (type #6)
>>
and my cache sizes are not detected.

My system is Mandriva 2006.0, uname -a provides:
Linux papitou 2.6.12-12mdk #1 Fri Sep 9 18:15:22 CEST 2005 i686 Pentium
III (Katmai) unknown GNU/Linux
and gcc -dumpversion is 4.3.0, 4.0.1 and 4.2.2 - I've got a few systems.

What do you think ?

Cheers,

Olivier Cessenat.