From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id BECEB139082 for ; Mon, 27 Nov 2017 17:49:16 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 69E1DE0F76; Mon, 27 Nov 2017 17:48:51 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 14BEBE0F6F for ; Mon, 27 Nov 2017 17:48:51 +0000 (UTC) Received: from mail-wr0-f169.google.com (mail-wr0-f169.google.com [209.85.128.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: floppym) by smtp.gentoo.org (Postfix) with ESMTPSA id 286CC33BEC7 for ; Mon, 27 Nov 2017 17:48:50 +0000 (UTC) Received: by mail-wr0-f169.google.com with SMTP id o14so27266744wrf.9 for ; Mon, 27 Nov 2017 09:48:50 -0800 (PST) X-Gm-Message-State: AJaThX4Wp00yEZIbv0ZZ4UFDv1JQhdwPGv4Ach5Hx9CmZQEk1Wh1hre3 6YUr6+p1wUrlybPEJvDTBpbKfqwU0KdsyTKDhhA= X-Google-Smtp-Source: AGs4zMbLtt0mzr/btOrPoE+ZL4D0tE45bRazHWxRH8mb44vXVj6MVecMgIP8s77ZIyFncrdz1SYg5DETKtQQjPA2y78= X-Received: by 10.223.161.210 with SMTP id v18mr26595112wrv.170.1511804927394; Mon, 27 Nov 2017 09:48:47 -0800 (PST) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Received: by 10.223.136.74 with HTTP; Mon, 27 Nov 2017 09:48:26 -0800 (PST) In-Reply-To: <20171127164723.GA29271@waltdnes.org> References: <20171011041659.GA15678@waltdnes.org> <20171012021550.GA20368@waltdnes.org> <20171127164723.GA29271@waltdnes.org> From: Mike Gilbert Date: Mon, 27 Nov 2017 12:48:26 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [gentoo-user] python build fail; undefined reference to pthread_* and sem_* To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset="UTF-8" X-Archives-Salt: a19b82b2-e01d-4cf9-b447-75912d141a88 X-Archives-Hash: 41f642f51763b8ddaa3c8aa712d30ba0 On Mon, Nov 27, 2017 at 11:47 AM, Walter Dnes wrote: > On Wed, Oct 11, 2017 at 10:15:50PM -0400, Walter Dnes wrote >> On Wed, Oct 11, 2017 at 11:56:21AM -0400, Mike Gilbert wrote >> >> > I can reproduce the issue by adding -fopenmp to my CFLAGS. You can >> > work around it by adding -fopenmp to LDFLAGS as well. >> >> Thanks. The following workaround makes python build properly. >> >> LDFLAGS="-fopenmp" emerge =dev-lang/python-2.7.12 =dev-lang/python-3.4.5 >> >> > This is probably a bug in the Python build system; it should probably >> > be passing CFLAGS to gcc when linking libpython. >> >> Bug https://bugs.gentoo.org/634064 filed. > > Bump; I had to... > > LDFLAGS="-fopenmp" emerge -1 =dev-lang/python-2.7.14 =dev-lang/python-3.5.4 > > ..to get the latest pythons to build properly. Just stick it in make.conf and call it fixed. You can track further updates via the bug report.