From owner-freebsd-python@FreeBSD.ORG Sun Aug 24 08:52:32 2014 Return-Path: Delivered-To: python@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 59372D7F for ; Sun, 24 Aug 2014 08:52:32 +0000 (UTC) Received: from mail-pa0-x22d.google.com (mail-pa0-x22d.google.com [IPv6:2607:f8b0:400e:c03::22d]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2CEBF3731 for ; Sun, 24 Aug 2014 08:52:32 +0000 (UTC) Received: by mail-pa0-f45.google.com with SMTP id eu11so19017940pac.18 for ; Sun, 24 Aug 2014 01:52:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:reply-to:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=EMTlptN/iMBVOm4XwgVUoMenQzkfDVGYLkbQJYx4Pp8=; b=VZ9085/RZB/YW2097jCBw2dv7sTGzX7zz9r8ZSV/auJCyvECvrbfvrkJEP5KtajlXg fDfaX0Ml7vvW8CMP//BV/VJoeDiFMtvSKgLPLlIFrNDMeOQOp6reEdxUx9g1+nzHShnl ezWHzwSL4maVSWTz2ZM2LNYXpjqFec/b1ic8NoOUdtNw5ZcxvMckcEp8PsDwnc2lUQ/j VmMZD6jhiMVGZhncCYa64DVtm535Tqcq0edBXHBrXUQF3cLvwQJVC1w0AktyhGCOy6qk +JcxjRIpkZH0sP6lsQs5yLFHx8erTlfX3l09qSz74ApgNRl6oq60ysV9ybRSgTzI6kLj PIlQ== X-Received: by 10.68.69.71 with SMTP id c7mr19089617pbu.43.1408870351827; Sun, 24 Aug 2014 01:52:31 -0700 (PDT) Received: from [192.168.1.7] (ppp59-167-128-11.static.internode.on.net. [59.167.128.11]) by mx.google.com with ESMTPSA id cr2sm33894683pbc.35.2014.08.24.01.52.30 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 24 Aug 2014 01:52:31 -0700 (PDT) Sender: Kubilay Kocak Message-ID: <53F9A7C5.70706@FreeBSD.org> Date: Sun, 24 Aug 2014 18:52:21 +1000 From: Kubilay Kocak Reply-To: koobs@FreeBSD.org User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:32.0) Gecko/20100101 Thunderbird/32.0 MIME-Version: 1.0 To: larry@larryhynes.com, python@FreeBSD.org Subject: Re: Failed to build Python 2.7.8 on FreeBSD for PowerPC References: <20140820161404.GK95293@larryhynes.com> In-Reply-To: <20140820161404.GK95293@larryhynes.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Aug 2014 08:52:32 -0000 On 21/08/2014 2:14 AM, Larry Hynes wrote: > Hi > > I'm not sure if I'm bothering anyone - I hope not - but I'm having > difficulty building Python 2.7.8 for FreeBSD (10) on PowerPC. > > Ports are up to date, just today, and previous versions of Python have > built without issue. > > The problem seems to be here: > > LD_LIBRARY_PATH=/usr/ports/lang/python27/work/Python-2.7.8 ./python > -E -S -m sysconfig --generate-posix-vars > building dbm using ndbm > cc: _struct.c: No such file or directory > > Hi Larry, thanks for getting in touch :) Can you try the following and report back please: In the python27 port directory: 1) make extract 2) cd into WRKSRC (work/Python-2.7.8/) 3) ./configure --enable-shared && make Let me know how the symptoms are different, or if it fails in the same way. 4) Attach build log in your reply If the above sequences highlights nothing interesting, and you want to further isolate: Ghange the previous step (1) to `make patch` (which will bring in our local port patches) and follow steps 3-4 again, giving us two build logs. fwiw, googling "_struct.c: No such file or directory" returns a few old upstream Python bugs, so right now we want to go about isolating the Python port from the underlying distribution to identify the minimal reproduction case The FreeBSD Python team is also available at #freebsd-python on freenode IRC, see you there! Koobs