ports/182280: devel/gdb fails to build when PYTHON option enabled

Luca Pizzamiglio luca.pizzamiglio at gmail.com
Tue Sep 24 15:00:01 UTC 2013


The following reply was made to PR ports/182280; it has been noted by GNATS.

From: Luca Pizzamiglio <luca.pizzamiglio at gmail.com>
To: Andrew Wilcox <AWilcox at Wilcox-Tech.com>,bug-followup at 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 at 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 at freebsd.org mailing list
 > http://lists.freebsd.org/mailman/listinfo/freebsd-ports-bugs
 > To unsubscribe, send any mail to "freebsd-ports-bugs-unsubscribe at 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-----
 


More information about the freebsd-ports-bugs mailing list