From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ee0-f47.google.com ([74.125.83.47]) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1RssKk-0005Jw-Tv for openembedded-devel@lists.openembedded.org; Thu, 02 Feb 2012 09:47:59 +0100 Received: by eekd41 with SMTP id d41so565758eek.6 for ; Thu, 02 Feb 2012 00:40:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=C00D72Em6BEQKstIb9Vo1GCa1i2JN652R/i/04g90XA=; b=i8NiabPbA8U4i9ZrzKh7TL/Rb8qADcaVOSEgEd/vuPX13blNJgmlCKX1C2Js2evTx1 DCQGw8Nl5zMFI7lbkkZWff4PR57goL5hrERHkcIIaqIoLkNkCGIYThCHiT+NlCbzULY8 sj7fCWqFUWemgWf9BImSi+a1wn+YnmTfNOISA= Received: by 10.14.98.203 with SMTP id v51mr634170eef.13.1328172003141; Thu, 02 Feb 2012 00:40:03 -0800 (PST) Received: from localhost ([94.230.152.246]) by mx.google.com with ESMTPS id a58sm6753129eeb.8.2012.02.02.00.40.01 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 02 Feb 2012 00:40:02 -0800 (PST) Date: Thu, 2 Feb 2012 09:40:00 +0100 From: Martin Jansa To: openembedded-devel@lists.openembedded.org Message-ID: <20120202084000.GD3697@jama.jama.net> References: <1324624336-18713-1-git-send-email-eric@eukrea.com> <20120104051849.GG31275@sakrah.homelinux.org> <20120104090523.066ae2d7@eb-e6520> MIME-Version: 1.0 In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Subject: Re: [meta-oe] gdb-cross-canadian: build gdb with python support X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: openembedded-devel@lists.openembedded.org List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Feb 2012 08:47:59 -0000 X-Groupsio-MsgNum: 36840 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="eqp4TxRxnD4KrmFZ" Content-Disposition: inline --eqp4TxRxnD4KrmFZ Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Feb 02, 2012 at 08:45:13AM +0100, Martin Jansa wrote: > On Wed, Jan 4, 2012 at 9:05 AM, Eric B=E9nard wrote: > > Hi Khem, > > > > Le Tue, 3 Jan 2012 21:18:49 -0800, > > Khem Raj a =E9crit : > >> On (23/12/11 08:12), Eric B=E9nard wrote: > >> > * python support is needed for providing finer scripting control > >> > in gdb, and for remote controling gdb for example from qtcreator > >> > * gdb/configure tries to autodetect python using python executable > >> > with --includes --ldflags --exec-prefix to get the right flags > >> > As it's difficult to achieve in OE's context, we generate a > >> > script which will return the right values and make gdb's build > >> > system happy. This idea was taken from the following article : > >> > http://www.mentby.com/doug-evans-2/python-enabled-gdb-on-windows-and= -relocation.html > >> > * tested using angstrom & armv7/armv5 targets & qtcreator 201005 & 2= =2E4.0 > >> > >> I think this change should go into oe-core. Can you please redo it > >> w.r.t. oe-core > >> > > I agree with you, I initally submited it for oe-core and was asked > > to put it into meta-oe by Jessica : > > http://lists.linuxtogo.org/pipermail/openembedded-core/2011-December/01= 4828.html > > http://lists.linuxtogo.org/pipermail/openembedded-core/2011-December/01= 4833.html > > > > Eric >=20 > Hi Eric, >=20 > with this patch I see gdb-cross-canadian_7.3.1.bb failing with: > | checking whether to use python... > /OE/shr-core/tmp/work/x86_64-nativesdk-oesdk-linux/gdb-cross-canadian-arm= /gdb-cross-canadian-arm-7.3.1-r5.1/python > | checking for python2.7... no > | configure: error: no usable python found at > /OE/shr-core/tmp/work/x86_64-nativesdk-oesdk-linux/gdb-cross-canadian-arm= /gdb-cross-canadian-arm-7.3.1-r5.1/python >=20 > and > /OE/shr-core/tmp/work/x86_64-nativesdk-oesdk-linux/gdb-cross-canadian-arm= /gdb-cross-canadian-arm-7.3.1-r5.1/python > is really script from this patch >=20 > Any hint how to fix this? And here are details from: gdb-cross-canadian-arm-7.3.1-r5.1/build-arm-oe-linux-gnueabi/gdb/config.log configure:10440: $? =3D 0 configure:10440: result: yes configure:10465: checking whether to use python configure:10467: result: /OE/shr-core/tmp/work/x86_64-nativesdk-oesdk-linux= /gdb-cross-canadian-arm/gdb-cross-canadian-arm-7.3.1-r5.1/python configure:10685: checking for python2.7 configure:10703: x86_64-oesdk-linux-gcc --sysroot=3D/OE/shr-core/tmp/sysro= ots/x86_64-nativesdk-oesdk-linux -o conftest -isystem/OE/shr-core/tmp/sysro= ots/x86_64-oesdk-linux-nativesdk/usr/local/oecore-x86_64-arm/sysroots/x86_6= 4-oesdk-linux/usr/include -O2 -pipe -isystem/OE/shr-core/tmp/sysroots/x86_6= 4-oesdk-linux-nativesdk/usr/local/oecore-x86_64-arm/sysroots/x86_64-oesdk-l= inux/usr/include -I/OE/shr-core/tmp/sysroots/x86_64-nativesdk-oesdk-linux/= usr/local/oecore-x86_64-arm/sysroots/x86_64-oesdk-linux/usr/include/python2= =2E7/ -L/OE/shr-core/tmp/sysroots/x86_64-oesdk-linux-nativesdk/usr/local/o= ecore-x86_64-arm/sysroots/x86_64-oesdk-linux/usr/lib/armv4t-oe-linux-gnueab= i -Wl,-rpath-link,/OE/shr-core/tmp/sysroots/x86_64-oesdk-linux-nativesdk/us= r/local/oecore-x86_64-arm/sysroots/x86_64-oesdk-linux/usr/lib/armv4t-oe-lin= ux-gnueabi -Wl,-rpath,/usr/local/oecore-x86_64-arm/sysroots/x86_64-oesdk-li= nux/usr/lib/armv4t-oe-linux-gnueabi -Wl,-O1 -L/OE/shr-core/tmp/sysroots/x86= _64-oesdk-linux-nativesdk/usr/local/oecore-x86_64-arm/sysroots/x86_64-oesdk= -linux/lib -Wl,-rpath-link,/OE/shr-core/tmp/sysroots/x86_64-oesdk-linux-nat= ivesdk/usr/local/oecore-x86_64-arm/sysroots/x86_64-oesdk-linux/lib -Wl,-rpa= th,/usr/local/oecore-x86_64-arm/sysroots/x86_64-oesdk-linux/lib -Wl,-O1 con= ftest.c -lncurses -lz -lm -L/OE/shr-core/tmp/sysroots/x86_64-nativesdk-o= esdk-linux/usr/local/oecore-x86_64-arm/sysroots/x86_64-oesdk-linux/usr/lib/= armv4t-oe-linux-gnueabi/python2.7/config/config -lpthread -ldl -lutil -lm -= lpython2.7 >&5 conftest.c:91:20: fatal error: Python.h: No such file or directory compilation terminated. And Python.h is in /OE/shr-core/tmp/sysroots/x86_64-nativesdk-oesdk-linux/usr/local/oecore-x86= _64-x86_64/sysroots/x86_64-oesdk-linux/usr/include/python2.7/Python.h not /OE/shr-core/tmp/sysroots/x86_64-nativesdk-oesdk-linux/usr/local/oecore-x86= _64-arm/sysroots/x86_64-oesdk-linux/usr/include/python2.7/ oecore-x86_64-arm doesn't exist at all in /OE/shr-core/tmp/sysroots/x86_64-= nativesdk-oesdk-linux/usr/local Cheers, --=20 Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com --eqp4TxRxnD4KrmFZ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (GNU/Linux) iEYEARECAAYFAk8qS+AACgkQN1Ujt2V2gBzKHACeLBY34v/kvAKT9rDJtCb4as28 HNoAnRI/l361wscbidaSuMKJT8RsTAii =KB+q -----END PGP SIGNATURE----- --eqp4TxRxnD4KrmFZ--