[mpich-discuss] misc.h(28): catastrophic error: #error directive: "unknown size forunsigned int."

Gilles Gouaillardet gilles.gouaillardet at iferc.org
Sun Apr 6 21:05:21 CDT 2014


Hi,

i cannot reproduce this in my environment, this should be something
specific to yours

can you please run
grep HWLOC_SIZEOF_UNSIGNED_INT
src/pm/hydra/tools/topo/hwloc/hwloc/include/private/autogen/config.h
this should return
#define HWLOC_SIZEOF_UNSIGNED_INT 4


then in src/pm/hydra/tools/topo/hwloc/hwloc/include/private/misc.h, at
line 23, add the following four lines

#define STRINGIFY(s) XSTRINGIFY(s)
#define XSTRINGIFY(s) #s
#pragma message ("HWLOC_SIZEOF_UNSIGNED_INT "
STRINGIFY(HWLOC_SIZEOF_UNSIGNED_INT))
#pragma message ("HWLOC_BITS_PER_INT " STRINGIFY(HWLOC_BITS_PER_INT))

and then recompile :
cd src/pm/hydra/tools/topo/hwloc/hwloc/src
make traversal.o

this should return
/.../src/pm/hydra/tools/topo/hwloc/hwloc/include/private/misc.h:25:
note: #pragma message: HWLOC_SIZEOF_UNSIGNED_INT 4
/.../src/pm/hydra/tools/topo/hwloc/hwloc/include/private/misc.h:26:
note: #pragma message: HWLOC_BITS_PER_INT (4 * 8)

Cheers,

Gilles

On 2014/04/06 21:53, 童伟 wrote:
> I tried with gcc, got errors during make, too.
>
> [weitong at magnetics tmp_GNU]$ ../configure --prefix=/usr/local/mpich3_GNU CC=gcc CXX=g++ FC=gfortran --enable-threads=multiple --with-pm=mpd:hydra  2>&1 | tee c.txt
> [weitong at magnetics tmp_GNU]$  make 2>&1 | tee m.txt
>
> make[4]: Entering directory `/home/weitong/setup/mpich/mpich-3.1/tmp_GNU/src/pm/hydra/tools/topo/hwloc/hwloc/src'
>   CC       topology.lo
>   CC       traversal.lo
> In file included from ../../../../../../../../../src/pm/hydra/tools/topo/hwloc/hwloc/src/traversal.c:12:
> /home/weitong/setup/mpich/mpich-3.1/src/pm/hydra/tools/topo/hwloc/hwloc/include/private/misc.h:28:2: error: #error "unknown size for unsigned int."
>




More information about the discuss mailing list