Gentoo Archives: gentoo-user

From: Mike Gilbert <floppym@g.o>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] python build fail; undefined reference to pthread_* and sem_*
Date: Wed, 11 Oct 2017 15:51:05
Message-Id: CAJ0EP42AhzohqEDJ+xVyErt8cZHcc=y=qx=DsrG5SbDW7JzZiA@mail.gmail.com
In Reply to: [gentoo-user] python build fail; undefined reference to pthread_* and sem_* by Walter Dnes
1 On Wed, Oct 11, 2017 at 12:16 AM, Walter Dnes <waltdnes@××××××××.org> wrote:
2 > This is happening with both python 2.7.12 and 3.4.5 on a 32-bit x86
3 > system. Build logs are attached, along with "emerge --info" output. I
4 > can't find anything relevant in bugzilla.
5
6 From the build log for 3.4.5:
7
8 checking whether pthreads are available without options... yes
9
10 This is clearly a lie; glibc requires that you pass "-pthread" to gcc
11 to enable pthreads. For some reason, configure is mis-detecting this.
12
13 I would try rebuilding with minimal CFLAGS.

Replies