Received: from mail-wg0-f43.google.com ([74.125.82.43]) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1SFUjv-0007Ej-SQ for openembedded-core@lists.openembedded.org; Wed, 04 Apr 2012 20:15:27 +0200 Received: by wgbdr12 with SMTP id dr12so484700wgb.24 for ; Wed, 04 Apr 2012 11:06:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=rf/c8gHnTgLdZ5ZlFsvz7J+evzk4k3sir3qyeYOyoNw=; b=LiYN3YI8yjKngppl6SRbcC7nQB+vc7oNWFMihQVoBBJDhThdjJ7oSHm4F9x5sqUdSJ cxypVhH5gUh2vsm3H2XaHZpdgBAEaLMhoRbuZrMUfRRJU7nO3bfQRglzg+C93GrN0BTW b1Z9LmX8w0d3T2JF44K0PUCH4hIN4TSe8UKTkqePZN3FSqemBVKX6e//uclcfc+OeQP1 JG/y3/cQtUWPVm6hbKNZ/bSq7eMeTaKBE9yUevAhtmdHal/R++GKA5e86i+ZATxuTz8M 3c3iDEaf2/TYqRjIvmF2X+RDZX57Be0nKwt6usr31cFeWSDJHsBKyGC+8IQi8Tv8zPaK qjJw== Received: by 10.180.88.169 with SMTP id bh9mr7596387wib.5.1333562776954; Wed, 04 Apr 2012 11:06:16 -0700 (PDT) Received: from localhost ([94.230.152.246]) by mx.google.com with ESMTPS id gd4sm5555847wib.6.2012.04.04.11.06.15 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 04 Apr 2012 11:06:15 -0700 (PDT) Date: Wed, 4 Apr 2012 20:06:15 +0200 From: Martin Jansa To: Patches and discussions about the oe-core layer Message-ID: <20120404180615.GG4181@jama.jama.net> References: <20120403131537.5CE3310218@opal> <20120404165943.GE4181@jama.jama.net> <4F7C8796.9070705@opendreambox.org> <20120404174521.GF4181@jama.jama.net> <4F7C8B6A.1000008@opendreambox.org> MIME-Version: 1.0 In-Reply-To: <4F7C8B6A.1000008@opendreambox.org> User-Agent: Mutt/1.5.21 (2010-09-15) Subject: Re: [oe-commits] Andreas Oberritter : gdb: build with expat, add missing RRECOMMENDS_gdbserver X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Patches and discussions about the oe-core layer List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Apr 2012 18:15:28 -0000 X-Groupsio-MsgNum: 20282 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Y+xroYBkGM9OatJL" Content-Disposition: inline --Y+xroYBkGM9OatJL Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Apr 04, 2012 at 07:56:58PM +0200, Andreas Oberritter wrote: > On 04.04.2012 19:45, Martin Jansa wrote: > > On Wed, Apr 04, 2012 at 07:40:38PM +0200, Andreas Oberritter wrote: > >> On 04.04.2012 18:59, Martin Jansa wrote: > >>> On Tue, Apr 03, 2012 at 01:15:37PM +0000, git@git.openembedded.org wr= ote: > >>>> Module: openembedded-core.git > >>>> Branch: master > >>>> Commit: 38ee88e3b32b7444d7f1eb64f1b4f69a48fe0458 > >>>> URL: http://git.openembedded.org/?p=3Dopenembedded-core.git&a=3Dc= ommit;h=3D38ee88e3b32b7444d7f1eb64f1b4f69a48fe0458 > >>>> > >>>> Author: Andreas Oberritter > >>>> Date: Tue Apr 3 00:23:55 2012 +0200 > >>>> > >>>> gdb: build with expat, add missing RRECOMMENDS_gdbserver > >>>> > >>>> * Fixes communication between gdbserver and gdb-cross > >>>> by using the same expat settings for both recipes. > >>>> * Adds missing build dependencies for expat/expat-native. > >>>> * Adds missing glibc-thread-db runtime recommendation > >>>> to gdbserver, which was set only for gdb. > >>>> > >>>> Signed-off-by: Andreas Oberritter > >>>> Signed-off-by: Richard Purdie > >>> > >>> Here it's trying to use host's expat when building target gdb and fai= ls... > >>> > >>> | checking for libexpat... no > >>> | configure: error: expat is missing or unusable > >>> | make[1]: *** [configure-gdb] Error 1 > >>> | make[1]: Leaving directory `/OE/shr-core/tmp-eglibc/work/armv7a-vfp= -neon-oe-linux-gnueabi/gdb/gdb-7.4-r7.0/build-arm-oe-linux-gnueabi' > >>> | make: *** [all] Error 2 > >>> | ERROR: oe_runmake failed > >>> NOTE: package gdb-7.4-r7.0: task do_compile: Failed > >>> ERROR: Task 3561 (/OE/shr-core/openembedded-core/meta/recipes-devtool= s/gdb/gdb_7.4.bb, do_compile) failed with exit code '1' > >>> > >>> from config.log: > >>> configure:10704: checking for libexpat > >>> configure:10723: arm-oe-linux-gnueabi-gcc -march=3Darmv7-a -fno-tree= -vectorize -mthumb-interwork -mfloat-abi=3Dsoftfp -mfpu=3Dneon -mtune= =3Dcortex-a8 --sysroot=3D/OE/shr-core/tmp-eglibc/sysroots/om-gta04 -o conft= est -O2 -pipe -g -feliminate-unused-debug-types -Wl,-O1 -Wl,--hash-style= =3Dgnu -Wl,--as-needed conftest.c -ldl -lncurses -lz -lm /usr/lib/libexp= at.so >&5 > >>> /OE/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/libexec/armv7a-vfp-= neon-oe-linux-gnueabi/gcc/arm-oe-linux-gnueabi/4.6.4/ld: error: /usr/lib/li= bexpat.so: incompatible target > >>> conftest.c:98: error: undefined reference to 'XML_ParserCreate' > >>> collect2: ld returned 1 exit status > >> > >> Does "bitbake expat" help? Here I have: > >=20 > > expat was built already, so no doesn't help. > >=20 > >=20 > > -EXPAT =3D "--with-expat" > > +EXPAT =3D "--with-expat --with-libexpat-prefix=3D${STAGING_DIR_HOST}" > >=20 > > helps.. >=20 > OK. Can you please submit an incremental patch? I wonder why it didn't > happen on my system, although I have libexpat-dev installed (Ubuntu). I've tested it only with target gdb (so I don't feel comfortable to send patch before testing -cross-canadian and -cross, but I don't have time for it now). > Which Linux distribution are you using? Gentoo minimal chroot http://git.shr-project.org/git/?p=3Dshr-chroot.git;a=3Dsummary Cheers, --=20 Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com --Y+xroYBkGM9OatJL Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iEYEARECAAYFAk98jZcACgkQN1Ujt2V2gByVUQCeN28HYFNkjRPS8qlSfMlroB+E mtwAnjzsaDbAqt/YucbpeaPohndPsym/ =19pF -----END PGP SIGNATURE----- --Y+xroYBkGM9OatJL--