From owner-freebsd-python@FreeBSD.ORG Wed Dec 4 14:59:23 2013 Return-Path: Delivered-To: python@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 90F23AAA for ; Wed, 4 Dec 2013 14:59:23 +0000 (UTC) Received: from mail-qc0-x22b.google.com (mail-qc0-x22b.google.com [IPv6:2607:f8b0:400d:c01::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4B63D16C4 for ; Wed, 4 Dec 2013 14:59:23 +0000 (UTC) Received: by mail-qc0-f171.google.com with SMTP id c9so2217559qcz.16 for ; Wed, 04 Dec 2013 06:59:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=J50/SCD04ADZtz/IZmBOZWczA1gLbuV2ASjz9WgWRYI=; b=xsnT7YNeV5qCMSmBGAo4h2alSWJ4bn+FrGlkO+05kLoAUxacVmysQ7ZStaHTVATY0E jInS8CxfRAscsPe/lwiXv+Qn5gjUJN5bBbpQkwh2rY0UMCpJGgOaNpQk7jq4jxX8ckbx DluHlxOK4P0rc9JDvcBv5ywWC7Tr8PD8wWBOZNajEaDZpoSkHNP2YjTNujD/WTDpA2vi TVXyXH+NO/SiS7itOtVD/uOpekR1oaWfrEaHXvAksakX1hqkGFAyXJLayKL36Cxm5DOw +gzyB3Z2zFxTWnoWtoXY4feQzJvmmaUlYATslZnepF2tdoKtH3Ylg9RgtjVYCYcmyiH5 B9Gw== MIME-Version: 1.0 X-Received: by 10.224.40.195 with SMTP id l3mr137762530qae.44.1386169162521; Wed, 04 Dec 2013 06:59:22 -0800 (PST) Received: by 10.140.81.233 with HTTP; Wed, 4 Dec 2013 06:59:22 -0800 (PST) In-Reply-To: References: <201311060508.rA658XmR012155@svn.freebsd.org> <20131106063906.GA1385@medusa.sysfault.org> <20131106070255.GE60770@FreeBSD.org> Date: Wed, 4 Dec 2013 12:59:22 -0200 Message-ID: Subject: Re: python packages struggling with GCC 4.7 From: William Grzybowski To: Gerald Pfeifer Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.17 Cc: python X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Dec 2013 14:59:23 -0000 On Wed, Dec 4, 2013 at 11:13 AM, Gerald Pfeifer wrote: > On Wed, 4 Dec 2013, William Grzybowski wrote: > > The main reason foe the python failures, if not all, is math/p-numpy. > > It is compiling just fine, but the package is not working: > > > > ImportError: /lib/libgcc_s.so.1: version GCC_4.6.0 required by > > /usr/local/lib/gcc47/libgfortran.so.3 not found > > > > Looks like it is linking to /lib/libgcc_s.so.1 and should use > > /usr/local/lib/gcc47/libgcc_s.so.1, am I right? > > #1, you rock. > > #2, you are right. Is it possible that math/p-numpy fails to use LDFLAGS > which would have added -Wl,rpath=/usr/local/lib/gcc47/libgcc_s.so.1 when > linking? > It looks like the build is not respecting FFLAGS, so no -Wl,rpath= for gfortran. As far as it working for gcc46, it looks like it fails to detect gfortran46 as a compiler and uses gcc46, which respects CFLAGS. > > Can you somehow fix this in/for math/p-numpy? > Can you try http://people.freebsd.org/~wg/py-numpy.patch ? -- William Grzybowski ------------------------------------------ Curitiba/PR - Brasil