Open MPI logo

Hardware Locality Users' Mailing List Archives

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

Subject: Re: [hwloc-users] build issue with CFLAGS='-mcmodel=medium'
From: Brice Goglin (Brice.Goglin_at_[hidden])
Date: 2012-01-31 04:25:14


Le 30/01/2012 19:00, Samuel Thibault a écrit :
> Devendar Bureddy, le Mon 30 Jan 2012 18:59:11 +0100, a écrit :
>> /home/bureddy/hwloc-1.4/include/private/cpuid.h: In function 'hwloc_cpuid':
>> /home/bureddy/hwloc-1.4/include/private/cpuid.h:54: error: can't find
>> a register in class 'BREG' while reloading 'asm'
> Could you check in the config.log that the test for buildability of
> cpuid.h includes your -mcmodel option and (would be surprising) doesn't
> fail?

The build failure goes away when I remove -fPIC from my command line.
Obviously this option is not passed to configure, so it doesn't fail there.

Building the static lib only seems to work as well.
    ./configure CFLAGS=-mcmodel=medium --enable-static --disable-shared

No idea what to do now :)
Brice