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
On Wed, Oct 11, 2017 at 12:16 AM, Walter Dnes <waltdnes@××××××××.org> wrote:
> This is happening with both python 2.7.12 and 3.4.5 on a 32-bit x86 > system. Build logs are attached, along with "emerge --info" output. I > can't find anything relevant in bugzilla.
From the build log for 3.4.5: checking whether pthreads are available without options... yes This is clearly a lie; glibc requires that you pass "-pthread" to gcc to enable pthreads. For some reason, configure is mis-detecting this. I would try rebuilding with minimal CFLAGS.

Replies