Open MPI logo

Hardware Locality Development Mailing List Archives

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

Subject: Re: [hwloc-devel] -lpthread in LIBS and REQUIRES?
From: Brice Goglin (Brice.Goglin_at_[hidden])
Date: 2011-08-04 11:46:45


Le 04/08/2011 17:03, Samuel Thibault a écrit :
> Brice Goglin, le Thu 04 Aug 2011 16:58:19 +0200, a écrit :
>> While playing with static hwloc libraries and binaries [1], I had to
>> manually add -lpthread to LIBS to get the fully-static binaries to link
>> properly.
> What was the missing reference?

  CCLD lstopo
/home/bgoglin/SOFT/hwloc/branch-1.2/build/src/.libs/libhwloc.a(topology-linux.o):
In function `hwloc_linux_set_thread_cpubind':
topology-linux.c:(.text+0x1070): undefined reference to `pthread_self'
/home/bgoglin/SOFT/hwloc/branch-1.2/build/src/.libs/libhwloc.a(topology-linux.o):
In function `hwloc_linux_get_thread_cpubind':
topology-linux.c:(.text+0x124d): undefined reference to `pthread_self'
collect2: ld returned 1 exit status

Same on Debian testing and SLES11.

Brice