From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Sep 24 15:00:01 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.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 ESMTP id B5563740 for ; Tue, 24 Sep 2013 15:00:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 9374822C3 for ; Tue, 24 Sep 2013 15:00:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r8OF01UR079109 for ; Tue, 24 Sep 2013 15:00:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r8OF01gn079107; Tue, 24 Sep 2013 15:00:01 GMT (envelope-from gnats) Date: Tue, 24 Sep 2013 15:00:01 GMT Message-Id: <201309241500.r8OF01gn079107@freefall.freebsd.org> To: freebsd-ports-bugs@FreeBSD.org Cc: From: Luca Pizzamiglio Subject: Re: ports/182280: devel/gdb fails to build when PYTHON option enabled X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Luca Pizzamiglio List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Sep 2013 15:00:01 -0000 The following reply was made to PR ports/182280; it has been noted by GNATS. From: Luca Pizzamiglio To: Andrew Wilcox ,bug-followup@freebsd.org Cc: Subject: Re: ports/182280: devel/gdb fails to build when PYTHON option enabled Date: Tue, 24 Sep 2013 16:49:14 +0200 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Hi, thanks for the report! Unfortunately I'm not able to reproduce your error. I successfully build gdb with python option on a amd64 10.0-ALPHA2 and I had no further problem. I've also tried on redports using different configurations, it was always OK. Are you using some special python configuration or make.conf? The patch you're proposing is a workaround, but not a solution. I prefer to find the error and solve it. Could you try the gdb-7.6.1? (PR ports/181801, still open, but in testing) It solves also an installation issue (some installed file was not plisted) Best regards, Luca On 09/21/13 13:49, Andrew Wilcox wrote: > >> Number: 182280 >> Category: ports >> Synopsis: devel/gdb fails to build when PYTHON option enabled >> Confidential: no >> Severity: non-critical >> Priority: low >> Responsible: freebsd-ports-bugs >> State: open >> Quarter: >> Keywords: >> Date-Required: >> Class: sw-bug >> Submitter-Id: current-users >> Arrival-Date: Sat Sep 21 11:50:00 UTC 2013 >> Closed-Date: >> Last-Modified: >> Originator: Andrew Wilcox >> Release: 10.0-ALPHA2 >> Organization: > Wilcox Technologies >> Environment: > FreeBSD ind-web009.wilcox-tech.com 10.0-ALPHA2 FreeBSD 10.0-ALPHA2 #0 r255659: Wed Sep 18 02:56:32 UTC 2013 root@snap.freebsd.org:/snap/releng/10-amd64/tmp/obj/usr/src/sys/GENERIC amd64 >> Description: > Attempting to build gdb-7.6 on a server running 10.0-ALPHA2 with the PYTHON option enabled, I received the following error: > > > Configuring in ./gdb > < snip > > checking whether to use python... /usr/local/bin/python2.7 > checking for python2.7... no > configure: error: no usable python found at /usr/local/bin/python2.7 > gmake[3]: *** [configure-gdb] Error 1 > gmake[3]: Leaving directory `/usr/ports/devel/gdb/work/gdb-7.6' > gmake[2]: *** [all] Error 2 > gmake[2]: Leaving directory `/usr/ports/devel/gdb/work/gdb-7.6' > ===> Compilation failed unexpectedly. > Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to > the maintainer. > *** Error code 1 > > Stop. > make[1]: stopped in /usr/ports/devel/gdb > *** Error code 1 > > Stop. > > > > Upon further inspection to config.log, I found the following interesting nugget: > > > configure:7953: checking whether to use python > configure:7955: result: /usr/local/bin/python2.7 > configure:8173: checking for python2.7 > configure:8191: cc -o conftest -pipe -DRL_NO_COMPAT -g -g -std=gnu89 -I/usr/local/include/python2.7 -I/usr/local/include/python2.7 > conftest.c -lncurses -lz -lm -L/usr/local/lib/python2.7/config -lintl -lutil -lm -lpython2.7 -Wl,--export-dynamic >&5 > /usr/bin/ld: cannot find -lintl > cc: error: linker command failed with exit code 1 (use -v to see invocation) >> How-To-Repeat: > # cd /usr/ports/devel/gdb > # make config > -> Select [*] PYTHON > # make >> Fix: > Attached is a very, very crude patch that just blindly adds /usr/local/lib to gdb's python-config.py script, which does allow it to compile correctly. Something more elegant is almost assuredly needed, but I'm not sure the best way to go about this. > > Patch attached with submission follows: > > *** gdb-7.6/gdb/python/python-config.old Sat Sep 21 11:33:51 2013 > --- gdb-7.6/gdb/python/python-config.py Sat Sep 21 11:34:05 2013 > *************** > *** 72,77 **** > --- 72,78 ---- > libs.insert(0, '-L' + getvar('LIBPL')) > elif os.name == 'nt': > libs.insert(0, '-L' + sysconfig.PREFIX + '/libs') > + libs.insert(0, '-L/usr/local/lib') > if getvar('LINKFORSHARED') is not None: > libs.extend(getvar('LINKFORSHARED').split()) > print (to_unix_path(' '.join(libs))) > > > >> Release-Note: >> Audit-Trail: >> Unformatted: > _______________________________________________ > freebsd-ports-bugs@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports-bugs > To unsubscribe, send any mail to "freebsd-ports-bugs-unsubscribe@freebsd.org" > -----BEGIN PGP SIGNATURE----- Version: APG v1.0.8 iQJLBAEBCAA1BQJSQaZqLhxMdWNhIFBpenphbWlnbGlvIDxsdWNhLnBpenphbWln bGlvQGdtYWlsLmNvbT4ACgkQ1r9Hhyzd6UXybg//eIJBi1z5s469SKJ/IPp9Af1L VHcbvduCyoJckLYIJmU/Km0L3HAYqPEJwkISeTSQqdNbiXz6EO+ZWCCaX5nknQpn Skyn36sbOTK012aaR5pGjfvFCHLB/YxCqaXOZX96IcJTQDmXlNjTMGBNIerEvyee KfTAxR9boP7Ouyu0U1KHZ461tDwn8X4iECQVtB501kwxCD4xPwLqDm4Mti1xGIrM 2bY5JveIWbcw9lHRXRL0yjDozFVeIEb16qTCmfWik3X+Slqe0ibfw0GgvwbD1//Z GCB0TRHmQ8OOBWvHASqb/eYDHYKm/JovSFE59xPjGI86QADudfJz6Y+8FFD2s3NQ N4ezenv0AfnSIEHLcp1GHrityDNhbZ04Ss4xYzJvjqIT8sjJ58Gh0yxZYY+w6ERX YJYdVuyZIWWYn1GGUYGQRjPhQy/tYfqsoD1GTbek/7pPu6o5AHR+kVeqIYNtCM0d NwvWWkrCGHs5Ni2diACwcmtVLbnkzennzmoaVhfC1qPpK4jK3UsmTpPg+LTPuoGZ q/3pJl+ZPVIz3162YVNm+90ERDjDYYmItcaEljPOkOHfqtXu/873D/9cpcNKjlIy 2F1bKXZC4bVdpkvP9cw4TXGiPIQzd4192dup/Ph55f0IWfSWt5gWdE+uKWhJlCjr E+qEyb9ukKkFgtLR26o= =3dIJ -----END PGP SIGNATURE-----