Skip to content

./configure does not look into hwloc's "lib" directory #471

@eschnett

Description

@eschnett

I configured OpenMPI 1.8.4 with a self-built hwloc library using the command

/Users/eschnett/src/cc/FunHPC.cxx/external/openmpi-1.8.4/configure --prefix=/Users/eschnett/src/cc/FunHPC.cxx/openmpi-1.8.4 --disable-shared --with-hwloc=/Users/eschnett/src/cc/FunHPC.cxx/hwloc-1.10.1 CC=clang CXX=clang++ CFLAGS=-march=native -Wall -g -O3 CXXFLAGS=-march=native -Wall -g -O3

This was on OS X; I also tried Linux.

The configure stage aborted with the error (taken from config.log):

configure:76897: result: no
configure:77822: checking if MCA component hwloc:external can compile
configure:77824: result: no
configure:78090: WARNING: Did not find a suitable static opal hwloc component
configure:78092: error: Cannot continue

A few lines further up I see

configure:76888: clang -o conftest -DNDEBUG -march=native -Wall -g -O3 -finline-functions -fno-strict-aliasing    -I/Users/eschnett/src/cc/FunHPC.cxx/hwloc-1.10.1/include  -Wl,-flat_namespace  -L/Users/eschnett/src/cc/FunHPC.cxx/hwloc-1.10.1/lib64 conftest.c -lhwloc    >&5

This indicates that OpenMPI does not look into hwloc's lib directory, but only into its lib64 directory. Unfortunately, there is no lib64 directory, and hwloc's libraries are installed into the lib directory. (This is how hwloc installed itself; I did not modify the install procedure.)

As a workaround, I can specify --with-hwloc-libdir to make things work.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions