Gentoo Archives: gentoo-user

From: Walter Dnes <waltdnes@××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] python build fail; undefined reference to pthread_* and sem_*
Date: Thu, 12 Oct 2017 02:16:01
Message-Id: 20171012021550.GA20368@waltdnes.org
In Reply to: Re: [gentoo-user] python build fail; undefined reference to pthread_* and sem_* by Mike Gilbert
1 On Wed, Oct 11, 2017 at 11:56:21AM -0400, Mike Gilbert wrote
2
3 > I can reproduce the issue by adding -fopenmp to my CFLAGS. You can
4 > work around it by adding -fopenmp to LDFLAGS as well.
5
6 Thanks. The following workaround makes python build properly.
7
8 LDFLAGS="-fopenmp" emerge =dev-lang/python-2.7.12 =dev-lang/python-3.4.5
9
10 > This is probably a bug in the Python build system; it should probably
11 > be passing CFLAGS to gcc when linking libpython.
12
13 Bug https://bugs.gentoo.org/634064 filed.
14
15 --
16 Walter Dnes <waltdnes@××××××××.org>
17 I don't run "desktop environments"; I run useful applications

Replies

Subject Author
Re: [gentoo-user] python build fail; undefined reference to pthread_* and sem_* Walter Dnes <waltdnes@××××××××.org>