From owner-freebsd-python@FreeBSD.ORG Mon Jan 31 11:07:07 2011 Return-Path: Delivered-To: freebsd-python@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D0F8D1065696 for ; Mon, 31 Jan 2011 11:07:07 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id A67DE8FC2F for ; Mon, 31 Jan 2011 11:07:07 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p0VB77Sh091863 for ; Mon, 31 Jan 2011 11:07:07 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p0VB77Ir091861 for freebsd-python@FreeBSD.org; Mon, 31 Jan 2011 11:07:07 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 31 Jan 2011 11:07:07 GMT Message-Id: <201101311107.p0VB77Ir091861@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-python@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-python@FreeBSD.org X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Jan 2011 11:07:07 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o ports/154366 python [patch] devel/py-pefile: update to 1.2.10-93 o ports/154209 python [PATCH] lang/python: Install symlink for ptags o ports/153952 python lang/python26 + pth fails to reconfigure cflags to inc o ports/153657 python [patch] make lang/python26 work on powerpc o ports/153167 python Problem with signals, threads, and subprocesses in lan o ports/152886 python databases/py-bsddb fails to build with databases/db51 o ports/152224 python [patch] fix installed permissions for lang/python27 o ports/151534 python lang/python26 + WITH_PTH doesn't install correctly f ports/150184 python cannot install ports/math/py-numpy o ports/149167 python lang/python26 fails to build _ctypes on Sheevaplug (AR o ports/148406 python [PATCH] lang/python26: fix build backage without threa o ports/147291 python lang/python* doesn't compile nis.so when WITHOUT_NIS s o ports/146957 python Mk/bsd.python.mk: PYTHONOPTIMIZE=1 in environ(7) break o ports/146823 python [patch] lang/python26: knob to build _ctypes module ag o ports/146644 python lang/python26: WITH_PTH option breaks most ports depen f ports/145460 python Unable to build /usr/ports/net-p2p/py-bittorrent-core a ports/144035 python ports/databases/py-sqlite3 does not start to build o ports/140968 python x11-toolkits/py-tkinter(devel/pth): py26-tkinter-2.6.4 o ports/136917 python [patch] lang/python26: gettext detection o ports/133081 python [bsd.python.mk] PYEASYINSTALL_ARCHDEP=yes makes broken o ports/118301 python devel/py-setuptools easy-install.pth contents lost on o ports/115940 python Missed one file in lang/python25 if NO_NIS defined 22 problems total. From owner-freebsd-python@FreeBSD.ORG Fri Feb 4 05:28:19 2011 Return-Path: Delivered-To: freebsd-python@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D73051065693 for ; Fri, 4 Feb 2011 05:28:19 +0000 (UTC) (envelope-from corky1951@comcast.net) Received: from qmta01.westchester.pa.mail.comcast.net (qmta01.westchester.pa.mail.comcast.net [76.96.62.16]) by mx1.freebsd.org (Postfix) with ESMTP id 95C368FC08 for ; Fri, 4 Feb 2011 05:28:19 +0000 (UTC) Received: from omta20.westchester.pa.mail.comcast.net ([76.96.62.71]) by qmta01.westchester.pa.mail.comcast.net with comcast id 3hEj1g0031YDfWL51hF4od; Fri, 04 Feb 2011 05:15:04 +0000 Received: from comcast.net ([98.203.142.76]) by omta20.westchester.pa.mail.comcast.net with comcast id 3hF21g0181f6R9u3ghF31l; Fri, 04 Feb 2011 05:15:04 +0000 Received: by comcast.net (sSMTP sendmail emulation); Thu, 03 Feb 2011 21:15:01 -0800 Date: Thu, 3 Feb 2011 21:15:00 -0800 From: Charlie Kester To: freebsd-python@freebsd.org Message-ID: <20110204051500.GA80820@comcast.net> Mail-Followup-To: freebsd-python@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline User-Agent: Mutt/1.4.2.3i X-Mailer: Mutt 1.4.2.3i X-Composer: Vim 7.3 Subject: py-numpy build failure, multiple definition of `__i686.get_pc_thunk.bx' X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Feb 2011 05:28:20 -0000 I've encountered the problem described in PR146801, which unfortunately was closed without getting to the root cause. (The problem seems to have gone away as mysteriously as when it appeared. No one seems to know why either event occurred.) py-numpy is, as you know, used by many other ports. So I'd really like to know how to fix this. FreeBSD 8.2-PRERELEASE #0: Thu Feb 3 17:45:33 PST 2011 Portstree also updated on Feb 3. Default python version is 2.7. (But pkg_add -r wants to install py26-numpy. So that solution is unavailable.) customize UnixCCompiler customize UnixCCompiler using build_ext customize Gnu95FCompiler customize Gnu95FCompiler using build_ext building 'numpy.core._sort' extension compiling C sources C compiler: gcc45 -DNDEBUG -mtune=generic -msse -msse2 -msse3 -mfpmath=sse -O2 -fno-strict-aliasing -pipe -D__wchar_t=wchar_t -DTHREAD_STACK_SIZE=0x20000 -mtune=generic -msse -msse2 -msse3 -mfpmath=sse -O2 -fno-strict-aliasing -pipe -Wl,-rpath=/usr/local/lib/gcc45 -fPIC compile options: '-Inumpy/core/include -Ibuild/src.freebsd-8.2-PRERELEASE-i386-2.7/numpy/core/include/numpy -Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/include -I/usr/local/include/python2.7 -Ibuild/src.freebsd-8.2-PRERELEASE-i386-2.7/numpy/core/src/multiarray -Ibuild/src.freebsd-8.2-PRERELEASE-i386-2.7/numpy/core/src/umath -c' gcc45: build/src.freebsd-8.2-PRERELEASE-i386-2.7/numpy/core/src/_sortmodule.c cc -shared -pthread -mtune=generic -msse -msse2 -msse3 -mfpmath=sse -O2 -fno-strict-aliasing -pipe -Wl,-rpath=/usr/local/lib/gcc45 build/temp.freebsd-8.2-PRERELEASE-i386-2.7/build/src.freebsd-8.2-PRERELEASE-i386-2.7/numpy/core/src/_sortmodule.o -Lbuild/temp.freebsd-8.2-PRERELEASE-i386-2.7 -lm -o build/lib.freebsd-8.2-PRERELEASE-i386-2.7/numpy/core/_sort.so build/temp.freebsd-8.2-PRERELEASE-i386-2.7/build/src.freebsd-8.2-PRERELEASE-i386-2.7/numpy/core/src/_sortmodule.o(.text.__i686.get_pc_thunk.bx+0x0): In function `__i686.get_pc_thunk.bx': : multiple definition of `__i686.get_pc_thunk.bx' /usr/lib/crtbeginS.o(.gnu.linkonce.t.__i686.get_pc_thunk.bx+0x0): first defined here build/temp.freebsd-8.2-PRERELEASE-i386-2.7/build/src.freebsd-8.2-PRERELEASE-i386-2.7/numpy/core/src/_sortmodule.o(.text.__i686.get_pc_thunk.bx+0x0): In function `__i686.get_pc_thunk.bx': : multiple definition of `__i686.get_pc_thunk.bx' /usr/lib/crtbeginS.o(.gnu.linkonce.t.__i686.get_pc_thunk.bx+0x0): first defined here error: Command "cc -shared -pthread -mtune=generic -msse -msse2 -msse3 -mfpmath=sse -O2 -fno-strict-aliasing -pipe -Wl,-rpath=/usr/local/lib/gcc45 build/temp.freebsd-8.2-PRERELEASE-i386-2.7/build/src.freebsd-8.2-PRERELEASE-i386-2.7/numpy/core/src/_sortmodule.o -Lbuild/temp.freebsd-8.2-PRERELEASE-i386-2.7 -lm -o build/lib.freebsd-8.2-PRERELEASE-i386-2.7/numpy/core/_sort.so" failed with exit status 1 *** Error code 1 Stop in /usr/ports/math/py-numpy. From owner-freebsd-python@FreeBSD.ORG Fri Feb 4 10:45:49 2011 Return-Path: Delivered-To: freebsd-python@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2D5A91065670 for ; Fri, 4 Feb 2011 10:45:49 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id C03728FC14 for ; Fri, 4 Feb 2011 10:45:48 +0000 (UTC) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id p14A5ivC087213 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 4 Feb 2011 12:05:44 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4) with ESMTP id p14A5iJ7055502 for ; Fri, 4 Feb 2011 12:05:44 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4/Submit) id p14A5i3s055501 for freebsd-python@freebsd.org; Fri, 4 Feb 2011 12:05:44 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Fri, 4 Feb 2011 12:05:44 +0200 From: Kostik Belousov To: freebsd-python@freebsd.org Message-ID: <20110204100544.GL78089@deviant.kiev.zoral.com.ua> References: <20110204051500.GA80820@comcast.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="IJAclU0AInkryoed" Content-Disposition: inline In-Reply-To: <20110204051500.GA80820@comcast.net> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-3.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, DNS_FROM_OPENWHOIS autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Subject: Re: py-numpy build failure, multiple definition of `__i686.get_pc_thunk.bx' X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Feb 2011 10:45:49 -0000 --IJAclU0AInkryoed Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Feb 03, 2011 at 09:15:00PM -0800, Charlie Kester wrote: =2E.. > customize UnixCCompiler > customize UnixCCompiler using build_ext > customize Gnu95FCompiler > customize Gnu95FCompiler using build_ext > building 'numpy.core._sort' extension > compiling C sources > C compiler: gcc45 -DNDEBUG -mtune=3Dgeneric -msse -msse2 -msse3 -mfpmath= =3Dsse=20 > -O2 -fno-strict-aliasing -pipe -D__wchar_t=3Dwchar_t=20 > -DTHREAD_STACK_SIZE=3D0x20000 -mtune=3Dgeneric -msse -msse2 -msse3 -mfpma= th=3Dsse=20 > -O2 -fno-strict-aliasing -pipe -Wl,-rpath=3D/usr/local/lib/gcc45 -fPIC >=20 > compile options: '-Inumpy/core/include=20 > -Ibuild/src.freebsd-8.2-PRERELEASE-i386-2.7/numpy/core/include/numpy=20 > -Inumpy/core/src/private -Inumpy/core/src -Inumpy/core=20 > -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/uma= th=20 > -Inumpy/core/include -I/usr/local/include/python2.7=20 > -Ibuild/src.freebsd-8.2-PRERELEASE-i386-2.7/numpy/core/src/multiarray=20 > -Ibuild/src.freebsd-8.2-PRERELEASE-i386-2.7/numpy/core/src/umath -c' > gcc45:=20 > build/src.freebsd-8.2-PRERELEASE-i386-2.7/numpy/core/src/_sortmodule.c > cc -shared -pthread -mtune=3Dgeneric -msse -msse2 -msse3 -mfpmath=3Dsse -= O2=20 > -fno-strict-aliasing -pipe -Wl,-rpath=3D/usr/local/lib/gcc45=20 > build/temp.freebsd-8.2-PRERELEASE-i386-2.7/build/src.freebsd-8.2-PRERELEA= SE-i386-2.7/numpy/core/src/_sortmodule.o -Lbuild/temp.freebsd-8.2-PRERELEAS= E-i386-2.7 -lm -o build/lib.freebsd-8.2-PRERELEASE-i386-2.7/numpy/core/_sor= t.so > build/temp.freebsd-8.2-PRERELEASE-i386-2.7/build/src.freebsd-8.2-PRERELEA= SE-i386-2.7/numpy/core/src/_sortmodule.o(.text.__i686.get_pc_thunk.bx+0x0):= In function `__i686.get_pc_thunk.bx': > : multiple definition of `__i686.get_pc_thunk.bx' > /usr/lib/crtbeginS.o(.gnu.linkonce.t.__i686.get_pc_thunk.bx+0x0): first= =20 > defined here > build/temp.freebsd-8.2-PRERELEASE-i386-2.7/build/src.freebsd-8.2-PRERELEA= SE-i386-2.7/numpy/core/src/_sortmodule.o(.text.__i686.get_pc_thunk.bx+0x0):= In function `__i686.get_pc_thunk.bx': > : multiple definition of `__i686.get_pc_thunk.bx' > /usr/lib/crtbeginS.o(.gnu.linkonce.t.__i686.get_pc_thunk.bx+0x0): first= =20 > defined here > error: Command "cc -shared -pthread -mtune=3Dgeneric -msse -msse2 -msse3= =20 > -mfpmath=3Dsse -O2 -fno-strict-aliasing -pipe -Wl,-rpath=3D/usr/local/lib= /gcc45=20 > build/temp.freebsd-8.2-PRERELEASE-i386-2.7/build/src.freebsd-8.2-PRERELEA= SE-i386-2.7/numpy/core/src/_sortmodule.o -Lbuild/temp.freebsd-8.2-PRERELEAS= E-i386-2.7 -lm -o build/lib.freebsd-8.2-PRERELEASE-i386-2.7/numpy/core/_sor= t.so" failed with exit status 1 > *** Error code 1 Can you show the actual invocation of the compiler driver for linking ? --IJAclU0AInkryoed Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iEYEARECAAYFAk1Lz3cACgkQC3+MBN1Mb4gbjQCfXXZi/H5F5xx+Luow0COd2Gsw BBAAnRPLtDA/MfV1t1a0rjtMGVQvrVf/ =Lghz -----END PGP SIGNATURE----- --IJAclU0AInkryoed-- From owner-freebsd-python@FreeBSD.ORG Fri Feb 4 18:55:17 2011 Return-Path: Delivered-To: freebsd-python@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C4FD4106566B for ; Fri, 4 Feb 2011 18:55:17 +0000 (UTC) (envelope-from corky1951@comcast.net) Received: from QMTA11.westchester.pa.mail.comcast.net (qmta11.westchester.pa.mail.comcast.net [76.96.59.211]) by mx1.freebsd.org (Postfix) with ESMTP id 857F98FC0C for ; Fri, 4 Feb 2011 18:55:17 +0000 (UTC) Received: from omta21.westchester.pa.mail.comcast.net ([76.96.62.72]) by QMTA11.westchester.pa.mail.comcast.net with comcast id 3u791g0071ZXKqc5BuvHWY; Fri, 04 Feb 2011 18:55:17 +0000 Received: from comcast.net ([98.203.142.76]) by omta21.westchester.pa.mail.comcast.net with comcast id 3uvD1g01Y1f6R9u3huvFpj; Fri, 04 Feb 2011 18:55:17 +0000 Received: by comcast.net (sSMTP sendmail emulation); Fri, 04 Feb 2011 10:55:12 -0800 Date: Fri, 4 Feb 2011 10:55:12 -0800 From: Charlie Kester To: freebsd-python@freebsd.org Message-ID: <20110204185512.GB80820@comcast.net> Mail-Followup-To: freebsd-python@freebsd.org References: <20110204051500.GA80820@comcast.net> <20110204100544.GL78089@deviant.kiev.zoral.com.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20110204100544.GL78089@deviant.kiev.zoral.com.ua> User-Agent: Mutt/1.4.2.3i X-Mailer: Mutt 1.4.2.3i X-Composer: Vim 7.3 Subject: Re: py-numpy build failure, multiple definition of `__i686.get_pc_thunk.bx' X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Feb 2011 18:55:17 -0000 On Fri 04 Feb 2011 at 02:05:44 PST Kostik Belousov wrote: >On Thu, Feb 03, 2011 at 09:15:00PM -0800, Charlie Kester wrote: >... >> customize UnixCCompiler >> customize UnixCCompiler using build_ext >> customize Gnu95FCompiler >> customize Gnu95FCompiler using build_ext >> building 'numpy.core._sort' extension >> compiling C sources >> C compiler: gcc45 -DNDEBUG -mtune=generic -msse -msse2 -msse3 -mfpmath=sse >> -O2 -fno-strict-aliasing -pipe -D__wchar_t=wchar_t >> -DTHREAD_STACK_SIZE=0x20000 -mtune=generic -msse -msse2 -msse3 -mfpmath=sse >> -O2 -fno-strict-aliasing -pipe -Wl,-rpath=/usr/local/lib/gcc45 -fPIC >> >> compile options: '-Inumpy/core/include >> -Ibuild/src.freebsd-8.2-PRERELEASE-i386-2.7/numpy/core/include/numpy >> -Inumpy/core/src/private -Inumpy/core/src -Inumpy/core >> -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath >> -Inumpy/core/include -I/usr/local/include/python2.7 >> -Ibuild/src.freebsd-8.2-PRERELEASE-i386-2.7/numpy/core/src/multiarray >> -Ibuild/src.freebsd-8.2-PRERELEASE-i386-2.7/numpy/core/src/umath -c' >> gcc45: >> build/src.freebsd-8.2-PRERELEASE-i386-2.7/numpy/core/src/_sortmodule.c >> cc -shared -pthread -mtune=generic -msse -msse2 -msse3 -mfpmath=sse -O2 >> -fno-strict-aliasing -pipe -Wl,-rpath=/usr/local/lib/gcc45 >> build/temp.freebsd-8.2-PRERELEASE-i386-2.7/build/src.freebsd-8.2-PRERELEASE-i386-2.7/numpy/core/src/_sortmodule.o -Lbuild/temp.freebsd-8.2-PRERELEASE-i386-2.7 -lm -o build/lib.freebsd-8.2-PRERELEASE-i386-2.7/numpy/core/_sort.so >> build/temp.freebsd-8.2-PRERELEASE-i386-2.7/build/src.freebsd-8.2-PRERELEASE-i386-2.7/numpy/core/src/_sortmodule.o(.text.__i686.get_pc_thunk.bx+0x0): In function `__i686.get_pc_thunk.bx': >> : multiple definition of `__i686.get_pc_thunk.bx' >> /usr/lib/crtbeginS.o(.gnu.linkonce.t.__i686.get_pc_thunk.bx+0x0): first >> defined here >> build/temp.freebsd-8.2-PRERELEASE-i386-2.7/build/src.freebsd-8.2-PRERELEASE-i386-2.7/numpy/core/src/_sortmodule.o(.text.__i686.get_pc_thunk.bx+0x0): In function `__i686.get_pc_thunk.bx': >> : multiple definition of `__i686.get_pc_thunk.bx' >> /usr/lib/crtbeginS.o(.gnu.linkonce.t.__i686.get_pc_thunk.bx+0x0): first >> defined here >> error: Command "cc -shared -pthread -mtune=generic -msse -msse2 -msse3 >> -mfpmath=sse -O2 -fno-strict-aliasing -pipe -Wl,-rpath=/usr/local/lib/gcc45 >> build/temp.freebsd-8.2-PRERELEASE-i386-2.7/build/src.freebsd-8.2-PRERELEASE-i386-2.7/numpy/core/src/_sortmodule.o -Lbuild/temp.freebsd-8.2-PRERELEASE-i386-2.7 -lm -o build/lib.freebsd-8.2-PRERELEASE-i386-2.7/numpy/core/_sort.so" failed with exit status 1 >> *** Error code 1 >Can you show the actual invocation of the compiler driver for linking ? Isn't that the line right before the first report of the error? cc -shared -pthread -mtune=generic -msse -msse2 -msse3 -mfpmath=sse -O2 -fno-strict-aliasing -pipe -Wl,-rpath=/usr/local/lib/gcc45 build/temp.freebsd-8.2-PRERELEASE-i386-2.7/build/src.freebsd-8.2-PRERELEASE-i386-2.7/numpy/core/src/_sortmodule.o -Lbuild/temp.freebsd-8.2-PRERELEASE-i386-2.7 -lm -o build/lib.freebsd-8.2-PRERELEASE-i386-2.7/numpy/core/_sort.so FWIW, I tried modifying my make.conf to remove the additional CFLAGS I'd added, like -fno-strict-aliasing. But the build still failed using only the CFLAGS provided by the ports system and py-numpy's configtests. I also checked for environment variables related to the linker and found none. (For this build I'm logged into the console, not a terminal emulator, as root and am not using a custom profile.) My PATH looks like this: /sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/root/bin I do have gcc45 installed, but only as a result of some other port that required it. I forget which one. Anyway, you can see that it's being used in the excerpt above. From owner-freebsd-python@FreeBSD.ORG Fri Feb 4 19:10:31 2011 Return-Path: Delivered-To: freebsd-python@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 44AAC1065673 for ; Fri, 4 Feb 2011 19:10:31 +0000 (UTC) (envelope-from corky1951@comcast.net) Received: from qmta01.westchester.pa.mail.comcast.net (qmta01.westchester.pa.mail.comcast.net [76.96.62.16]) by mx1.freebsd.org (Postfix) with ESMTP id 04B818FC17 for ; Fri, 4 Feb 2011 19:10:30 +0000 (UTC) Received: from omta19.westchester.pa.mail.comcast.net ([76.96.62.98]) by qmta01.westchester.pa.mail.comcast.net with comcast id 3up51g00727AodY51vAXry; Fri, 04 Feb 2011 19:10:31 +0000 Received: from comcast.net ([98.203.142.76]) by omta19.westchester.pa.mail.comcast.net with comcast id 3vAU1g0261f6R9u3fvAVvx; Fri, 04 Feb 2011 19:10:31 +0000 Received: by comcast.net (sSMTP sendmail emulation); Fri, 04 Feb 2011 11:10:27 -0800 Date: Fri, 4 Feb 2011 11:10:27 -0800 From: Charlie Kester To: freebsd-python@freebsd.org Message-ID: <20110204191027.GC80820@comcast.net> Mail-Followup-To: freebsd-python@freebsd.org References: <20110204051500.GA80820@comcast.net> <20110204100544.GL78089@deviant.kiev.zoral.com.ua> <20110204185512.GB80820@comcast.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20110204185512.GB80820@comcast.net> User-Agent: Mutt/1.4.2.3i X-Mailer: Mutt 1.4.2.3i X-Composer: Vim 7.3 Subject: Re: py-numpy build failure, multiple definition of `__i686.get_pc_thunk.bx' X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Feb 2011 19:10:31 -0000 On Fri 04 Feb 2011 at 10:55:12 PST Charlie Kester wrote: > >I do have gcc45 installed, but only as a result of some other port that >required it. I forget which one. Anyway, you can see that it's being >used in the excerpt above. D'oh. py-numpy itself has a requirement for gcc45, as I discovered just now after deinstalling gcc45 and attempting to build py-numpy using the compiler from base. From owner-freebsd-python@FreeBSD.ORG Fri Feb 4 19:54:07 2011 Return-Path: Delivered-To: freebsd-python@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4AE88106566B for ; Fri, 4 Feb 2011 19:54:07 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id DC8FA8FC13 for ; Fri, 4 Feb 2011 19:54:06 +0000 (UTC) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id p14Js2CS030559 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 4 Feb 2011 21:54:02 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4) with ESMTP id p14Js2DA071262 for ; Fri, 4 Feb 2011 21:54:02 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4/Submit) id p14Js03W071261 for freebsd-python@freebsd.org; Fri, 4 Feb 2011 21:54:00 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Fri, 4 Feb 2011 21:54:00 +0200 From: Kostik Belousov To: freebsd-python@freebsd.org Message-ID: <20110204195400.GP78089@deviant.kiev.zoral.com.ua> References: <20110204051500.GA80820@comcast.net> <20110204100544.GL78089@deviant.kiev.zoral.com.ua> <20110204185512.GB80820@comcast.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="DITGHUV3p5DjDsXt" Content-Disposition: inline In-Reply-To: <20110204185512.GB80820@comcast.net> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-3.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, DNS_FROM_OPENWHOIS autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Subject: Re: py-numpy build failure, multiple definition of `__i686.get_pc_thunk.bx' X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Feb 2011 19:54:07 -0000 --DITGHUV3p5DjDsXt Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Feb 04, 2011 at 10:55:12AM -0800, Charlie Kester wrote: > On Fri 04 Feb 2011 at 02:05:44 PST Kostik Belousov wrote: > >On Thu, Feb 03, 2011 at 09:15:00PM -0800, Charlie Kester wrote: > >... > >>customize UnixCCompiler > >>customize UnixCCompiler using build_ext > >>customize Gnu95FCompiler > >>customize Gnu95FCompiler using build_ext > >>building 'numpy.core._sort' extension > >>compiling C sources > >>C compiler: gcc45 -DNDEBUG -mtune=3Dgeneric -msse -msse2 -msse3=20 > >>-mfpmath=3Dsse -O2 -fno-strict-aliasing -pipe -D__wchar_t=3Dwchar_t=20 > >>-DTHREAD_STACK_SIZE=3D0x20000 -mtune=3Dgeneric -msse -msse2 -msse3=20 > >>-mfpmath=3Dsse -O2 -fno-strict-aliasing -pipe=20 > >>-Wl,-rpath=3D/usr/local/lib/gcc45 -fPIC > >> > >>compile options: '-Inumpy/core/include=20 > >>-Ibuild/src.freebsd-8.2-PRERELEASE-i386-2.7/numpy/core/include/numpy=20 > >>-Inumpy/core/src/private -Inumpy/core/src -Inumpy/core=20 > >>-Inumpy/core/src/npymath -Inumpy/core/src/multiarray=20 > >>-Inumpy/core/src/umath -Inumpy/core/include=20 > >>-I/usr/local/include/python2.7=20 > >>-Ibuild/src.freebsd-8.2-PRERELEASE-i386-2.7/numpy/core/src/multiarray= =20 > >>-Ibuild/src.freebsd-8.2-PRERELEASE-i386-2.7/numpy/core/src/umath -c' > >>gcc45:=20 > >>build/src.freebsd-8.2-PRERELEASE-i386-2.7/numpy/core/src/_sortmodule.c > >>cc -shared -pthread -mtune=3Dgeneric -msse -msse2 -msse3 -mfpmath=3Dsse= -O2=20 > >>-fno-strict-aliasing -pipe -Wl,-rpath=3D/usr/local/lib/gcc45=20 > >>build/temp.freebsd-8.2-PRERELEASE-i386-2.7/build/src.freebsd-8.2-PREREL= EASE-i386-2.7/numpy/core/src/_sortmodule.o -Lbuild/temp.freebsd-8.2-PRERELE= ASE-i386-2.7 -lm -o build/lib.freebsd-8.2-PRERELEASE-i386-2.7/numpy/core/_s= ort.so > >>build/temp.freebsd-8.2-PRERELEASE-i386-2.7/build/src.freebsd-8.2-PREREL= EASE-i386-2.7/numpy/core/src/_sortmodule.o(.text.__i686.get_pc_thunk.bx+0x0= ): In function `__i686.get_pc_thunk.bx': > >>: multiple definition of `__i686.get_pc_thunk.bx' > >>/usr/lib/crtbeginS.o(.gnu.linkonce.t.__i686.get_pc_thunk.bx+0x0): first= =20 > >>defined here > >>build/temp.freebsd-8.2-PRERELEASE-i386-2.7/build/src.freebsd-8.2-PREREL= EASE-i386-2.7/numpy/core/src/_sortmodule.o(.text.__i686.get_pc_thunk.bx+0x0= ): In function `__i686.get_pc_thunk.bx': > >>: multiple definition of `__i686.get_pc_thunk.bx' > >>/usr/lib/crtbeginS.o(.gnu.linkonce.t.__i686.get_pc_thunk.bx+0x0): first= =20 > >>defined here > >>error: Command "cc -shared -pthread -mtune=3Dgeneric -msse -msse2 -msse= 3=20 > >>-mfpmath=3Dsse -O2 -fno-strict-aliasing -pipe=20 > >>-Wl,-rpath=3D/usr/local/lib/gcc45=20 > >>build/temp.freebsd-8.2-PRERELEASE-i386-2.7/build/src.freebsd-8.2-PREREL= EASE-i386-2.7/numpy/core/src/_sortmodule.o -Lbuild/temp.freebsd-8.2-PRERELE= ASE-i386-2.7 -lm -o build/lib.freebsd-8.2-PRERELEASE-i386-2.7/numpy/core/_s= ort.so" failed with exit status 1 > >>*** Error code 1 >=20 > >Can you show the actual invocation of the compiler driver for linking ? >=20 > Isn't that the line right before the first report of the error? >=20 > cc -shared -pthread -mtune=3Dgeneric -msse -msse2 -msse3 -mfpmath=3Dsse -= O2=20 > -fno-strict-aliasing -pipe -Wl,-rpath=3D/usr/local/lib/gcc45=20 > build/temp.freebsd-8.2-PRERELEASE-i386-2.7/build/src.freebsd-8.2-PRERELEA= SE-i386-2.7/numpy/core/src/_sortmodule.o -Lbuild/temp.freebsd-8.2-PRERELEAS= E-i386-2.7 -lm -o build/lib.freebsd-8.2-PRERELEASE-i386-2.7/numpy/core/_sor= t.so >=20 > FWIW, I tried modifying my make.conf to remove the additional CFLAGS I'd > added, like -fno-strict-aliasing. But the build still failed using only > the CFLAGS provided by the ports system and py-numpy's configtests. >=20 > I also checked for environment variables related to the linker and found > none. (For this build I'm logged into the console, not a terminal > emulator, as root and am not using a custom profile.) >=20 > My PATH looks like this: > /sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/= root/bin >=20 > I do have gcc45 installed, but only as a result of some other port that > required it. I forget which one. Anyway, you can see that it's being > used in the excerpt above. I wanted the confirmation of exact command that failed. If your citation above is right, then port _does not_ use gcc45 to do linkage of the module. Generally, crtbegin/crtend.o come from the compiler installation, so I am suspicious at least to report of use of /usr/lib/crtbegin.So. Can you enter the port build directory and execute the same command manually, substituting "cc" with full path to gcc45 ? --DITGHUV3p5DjDsXt Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iEYEARECAAYFAk1MWVgACgkQC3+MBN1Mb4g5LwCfdT+JXneiF/A3qcYPvIDCL6NX ixkAnimNk904zVBj/SW89fNmXtukelCy =SC3B -----END PGP SIGNATURE----- --DITGHUV3p5DjDsXt-- From owner-freebsd-python@FreeBSD.ORG Fri Feb 4 21:22:25 2011 Return-Path: Delivered-To: freebsd-python@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 335921065670 for ; Fri, 4 Feb 2011 21:22:25 +0000 (UTC) (envelope-from corky1951@comcast.net) Received: from qmta06.westchester.pa.mail.comcast.net (qmta06.westchester.pa.mail.comcast.net [76.96.62.56]) by mx1.freebsd.org (Postfix) with ESMTP id E68288FC08 for ; Fri, 4 Feb 2011 21:22:24 +0000 (UTC) Received: from omta14.westchester.pa.mail.comcast.net ([76.96.62.60]) by qmta06.westchester.pa.mail.comcast.net with comcast id 3xHj1g0011HzFnQ56xNRZP; Fri, 04 Feb 2011 21:22:25 +0000 Received: from comcast.net ([98.203.142.76]) by omta14.westchester.pa.mail.comcast.net with comcast id 3xNM1g00q1f6R9u3axNNJG; Fri, 04 Feb 2011 21:22:23 +0000 Received: by comcast.net (sSMTP sendmail emulation); Fri, 04 Feb 2011 13:22:19 -0800 Date: Fri, 4 Feb 2011 13:22:19 -0800 From: Charlie Kester To: freebsd-python@freebsd.org Message-ID: <20110204212219.GE80820@comcast.net> Mail-Followup-To: freebsd-python@freebsd.org References: <20110204051500.GA80820@comcast.net> <20110204100544.GL78089@deviant.kiev.zoral.com.ua> <20110204185512.GB80820@comcast.net> <20110204195400.GP78089@deviant.kiev.zoral.com.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20110204195400.GP78089@deviant.kiev.zoral.com.ua> User-Agent: Mutt/1.4.2.3i X-Mailer: Mutt 1.4.2.3i X-Composer: Vim 7.3 Subject: Re: py-numpy build failure, multiple definition of `__i686.get_pc_thunk.bx' X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Feb 2011 21:22:25 -0000 On Fri 04 Feb 2011 at 11:54:00 PST Kostik Belousov wrote: >On Fri, Feb 04, 2011 at 10:55:12AM -0800, Charlie Kester wrote: >> On Fri 04 Feb 2011 at 02:05:44 PST Kostik Belousov wrote: >> >> >Can you show the actual invocation of the compiler driver for linking ? >> >> Isn't that the line right before the first report of the error? >> >> cc -shared -pthread -mtune=generic -msse -msse2 -msse3 -mfpmath=sse -O2 >> -fno-strict-aliasing -pipe -Wl,-rpath=/usr/local/lib/gcc45 >> build/temp.freebsd-8.2-PRERELEASE-i386-2.7/build/src.freebsd-8.2-PRERELEASE-i386-2.7/numpy/core/src/_sortmodule.o -Lbuild/temp.freebsd-8.2-PRERELEASE-i386-2.7 -lm -o build/lib.freebsd-8.2-PRERELEASE-i386-2.7/numpy/core/_sort.so >> >I wanted the confirmation of exact command that failed. If your >citation above is right, then port _does not_ use gcc45 to do linkage >of the module. Generally, crtbegin/crtend.o come from the compiler >installation, so I am suspicious at least to report of use of >/usr/lib/crtbegin.So. > >Can you enter the port build directory and execute the same command >manually, substituting "cc" with full path to gcc45 ? Done. Replacing "cc" with "gcc45" built the library without any error. (I didn't need to specify the full path to gcc45.) So the question is, why is cc being invoked in the first place? As far as I know, I'm not doing anything to force using it. Something seems to have gone wrong during py-numpy's configtests... From owner-freebsd-python@FreeBSD.ORG Sat Feb 5 03:03:11 2011 Return-Path: Delivered-To: freebsd-python@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AED2E106566B for ; Sat, 5 Feb 2011 03:03:11 +0000 (UTC) (envelope-from bf1783@googlemail.com) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id 6C2378FC14 for ; Sat, 5 Feb 2011 03:03:11 +0000 (UTC) Received: by gxk8 with SMTP id 8so1214919gxk.13 for ; Fri, 04 Feb 2011 19:03:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:reply-to:date:message-id:subject :from:to:cc:content-type; bh=1lNSX7mRITIqgfPwr+88dA2+yl6RuYWRcTLyUeYAFyo=; b=GQKWFS4F13ojhDp70iOzg1YC9R6LefaWQFurR3TJZ73DFysm7cnPm7OJLwQ6wrb/Bw Js7Nzb1QUaLsLp8yGBC1u687wqZnHI9GBfYWXxsOZnzrCKdF1wv2Q0FV4MjLRp+4TY0Y YIiu1i9xEfwp6AoaYug5GlTbGBmwQhFHKkzF0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:reply-to:date:message-id:subject:from:to:cc :content-type; b=ANXT9yADZ8P/nsi1QgDFyaxgPljIubb+DRWX/9sv/ogh/lyPmCGAgRcuLBpWtJKyGv TLla1A0bMr2nzx5Cn0gceS9ESezQavFxZb569oG804owW/AMqtSBxkajJxIqjAhbE6Re JXQuWpK6fnZFhWAZmrGWGQozQRsaIa3XE4U54= MIME-Version: 1.0 Received: by 10.236.95.17 with SMTP id o17mr2145035yhf.10.1296874226819; Fri, 04 Feb 2011 18:50:26 -0800 (PST) Received: by 10.236.105.197 with HTTP; Fri, 4 Feb 2011 18:50:26 -0800 (PST) Date: Fri, 4 Feb 2011 21:50:26 -0500 Message-ID: From: "b. f." To: Charlie Kester Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-python@FreeBSD.org Subject: Re: py-numpy build failure, multiple definition of `__i686.get_pc_thunk.bx' X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: bf1783@gmail.com List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Feb 2011 03:03:11 -0000 > Done. Replacing "cc" with "gcc45" built the library without any error. > (I didn't need to specify the full path to gcc45.) > > So the question is, why is cc being invoked in the first place? As far > as I know, I'm not doing anything to force using it. Something seems to > have gone wrong during py-numpy's configtests... By default, this port and some of its prerequisites are built with lang/gcc45 and devel/binutils, because they USE_FORTRAN, while other prerequisites are built with the older (and not completely compatible) base system compiler and base system toolchain. This has led to problems in the past, and they have not all been solved. So you should be alert when dealing with this port and any dependent ports, and make sure that they are using gcc45, /usr/local/bin/ld, etc., rather than their older base system counterparts, which may be cached in different files, e.g., /usr/local/lib/python*/config/Makefile, /usr/local/lib/python*/site-packages/numpy/distutils/site.cfg, or /usr/local/lib/python*/site-packages/numpy/distutils/system_info.py. Also, the ports should link with the appropriate LDFLAGS directing them to the newer shared libraries in /usr/local/lib/gcc45, rather than the older libraries in /usr/lib. b. From owner-freebsd-python@FreeBSD.ORG Sat Feb 5 03:30:25 2011 Return-Path: Delivered-To: freebsd-python@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 87B02106566C for ; Sat, 5 Feb 2011 03:30:25 +0000 (UTC) (envelope-from corky1951@comcast.net) Received: from qmta14.emeryville.ca.mail.comcast.net (qmta14.emeryville.ca.mail.comcast.net [76.96.27.212]) by mx1.freebsd.org (Postfix) with ESMTP id 48FBD8FC0A for ; Sat, 5 Feb 2011 03:30:25 +0000 (UTC) Received: from omta12.emeryville.ca.mail.comcast.net ([76.96.30.44]) by qmta14.emeryville.ca.mail.comcast.net with comcast id 43HB1g0030x6nqcAE3HD1K; Sat, 05 Feb 2011 03:17:13 +0000 Received: from comcast.net ([98.203.142.76]) by omta12.emeryville.ca.mail.comcast.net with comcast id 43HB1g0041f6R9u8Y3HBZK; Sat, 05 Feb 2011 03:17:12 +0000 Received: by comcast.net (sSMTP sendmail emulation); Fri, 04 Feb 2011 19:17:10 -0800 Date: Fri, 4 Feb 2011 19:17:10 -0800 From: Charlie Kester To: freebsd-python@freebsd.org Message-ID: <20110205031710.GG80820@comcast.net> Mail-Followup-To: freebsd-python@freebsd.org References: <20110204051500.GA80820@comcast.net> <20110204100544.GL78089@deviant.kiev.zoral.com.ua> <20110204185512.GB80820@comcast.net> <20110204195400.GP78089@deviant.kiev.zoral.com.ua> <20110204212219.GE80820@comcast.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20110204212219.GE80820@comcast.net> User-Agent: Mutt/1.4.2.3i X-Mailer: Mutt 1.4.2.3i X-Composer: Vim 7.3 Subject: Re: py-numpy build failure, multiple definition of `__i686.get_pc_thunk.bx' X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Feb 2011 03:30:25 -0000 On Fri 04 Feb 2011 at 13:22:19 PST Charlie Kester wrote: >On Fri 04 Feb 2011 at 11:54:00 PST Kostik Belousov wrote: >>On Fri, Feb 04, 2011 at 10:55:12AM -0800, Charlie Kester wrote: >>>On Fri 04 Feb 2011 at 02:05:44 PST Kostik Belousov wrote: >>> >>> >Can you show the actual invocation of the compiler driver for linking ? >>> >>>Isn't that the line right before the first report of the error? >>> >>>cc -shared -pthread -mtune=generic -msse -msse2 -msse3 -mfpmath=sse -O2 >>>-fno-strict-aliasing -pipe -Wl,-rpath=/usr/local/lib/gcc45 >>>build/temp.freebsd-8.2-PRERELEASE-i386-2.7/build/src.freebsd-8.2-PRERELEASE-i386-2.7/numpy/core/src/_sortmodule.o -Lbuild/temp.freebsd-8.2-PRERELEASE-i386-2.7 -lm -o build/lib.freebsd-8.2-PRERELEASE-i386-2.7/numpy/core/_sort.so >>> >>I wanted the confirmation of exact command that failed. If your >>citation above is right, then port _does not_ use gcc45 to do linkage >>of the module. Generally, crtbegin/crtend.o come from the compiler >>installation, so I am suspicious at least to report of use of >>/usr/lib/crtbegin.So. >> >>Can you enter the port build directory and execute the same command >>manually, substituting "cc" with full path to gcc45 ? > >Done. Replacing "cc" with "gcc45" built the library without any error. >(I didn't need to specify the full path to gcc45.) > >So the question is, why is cc being invoked in the first place? As far >as I know, I'm not doing anything to force using it. Something seems >to have gone wrong during py-numpy's configtests... After some sleuthing I tried: # make LDSHARED="gcc45 -shared" install This seems to have worked. The build and install now succeeds without complaint. Hooray! So where did the "cc" come from? /usr/local/lib/python2.7/distutils/unixccompiler.py has the following line: 'linker_so' : ["cc", "-shared"] The base class defined in ccompiler.py sets linker_so to ${LDSHARED} if that environment variable is defined, and that assignment seems to be inherited all the way down into the numpy scripts. Otherwise, we get the value defined in unixccompiler.py. From owner-freebsd-python@FreeBSD.ORG Sat Feb 5 10:52:08 2011 Return-Path: Delivered-To: freebsd-python@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 248FD1065741; Sat, 5 Feb 2011 10:52:08 +0000 (UTC) (envelope-from miwi@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id F09E28FC0C; Sat, 5 Feb 2011 10:52:07 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p15Aq7Uv053442; Sat, 5 Feb 2011 10:52:07 GMT (envelope-from miwi@freefall.freebsd.org) Received: (from miwi@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p15Aq7he053438; Sat, 5 Feb 2011 10:52:07 GMT (envelope-from miwi) Date: Sat, 5 Feb 2011 10:52:07 GMT Message-Id: <201102051052.p15Aq7he053438@freefall.freebsd.org> To: sbrabez@gmail.com, miwi@FreeBSD.org, freebsd-python@FreeBSD.org From: miwi@FreeBSD.org Cc: Subject: Re: ports/154366: [patch] devel/py-pefile: update to 1.2.10-93 X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Feb 2011 10:52:08 -0000 Synopsis: [patch] devel/py-pefile: update to 1.2.10-93 State-Changed-From-To: open->closed State-Changed-By: miwi State-Changed-When: Sat Feb 5 10:52:07 UTC 2011 State-Changed-Why: Committed. Thanks! http://www.freebsd.org/cgi/query-pr.cgi?pr=154366 From owner-freebsd-python@FreeBSD.ORG Sat Feb 5 11:00:28 2011 Return-Path: Delivered-To: freebsd-python@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F190D106566C for ; Sat, 5 Feb 2011 11:00:28 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id E227B8FC13 for ; Sat, 5 Feb 2011 11:00:28 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p15B0SVC056391 for ; Sat, 5 Feb 2011 11:00:28 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p15B0SDM056362; Sat, 5 Feb 2011 11:00:28 GMT (envelope-from gnats) Date: Sat, 5 Feb 2011 11:00:28 GMT Message-Id: <201102051100.p15B0SDM056362@freefall.freebsd.org> To: freebsd-python@FreeBSD.org From: dfilter@FreeBSD.ORG (dfilter service) Cc: Subject: Re: ports/154366: commit references a PR X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: dfilter service List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Feb 2011 11:00:29 -0000 The following reply was made to PR ports/154366; it has been noted by GNATS. From: dfilter@FreeBSD.ORG (dfilter service) To: bug-followup@FreeBSD.org Cc: Subject: Re: ports/154366: commit references a PR Date: Sat, 5 Feb 2011 10:52:02 +0000 (UTC) miwi 2011-02-05 10:51:57 UTC FreeBSD ports repository Modified files: devel/py-pefile Makefile distinfo Log: - Update to 1.2.10-93 - Add LICENSE - Make happy portlint PR: 154366 Submitted by: Sofian Brabez Approved by: maintainer Feature safe: yes Revision Changes Path 1.15 +5 -2 ports/devel/py-pefile/Makefile 1.14 +2 -2 ports/devel/py-pefile/distinfo _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"