From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga14.intel.com ([143.182.124.37]) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1SwbvF-0007xr-KU for openembedded-core@lists.openembedded.org; Wed, 01 Aug 2012 18:37:22 +0200 Received: from azsmga002.ch.intel.com ([10.2.17.35]) by azsmga102.ch.intel.com with ESMTP; 01 Aug 2012 09:25:30 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.71,315,1320652800"; d="scan'208";a="129281932" Received: from unknown (HELO envy.home) ([10.255.13.51]) by AZSMGA002.ch.intel.com with ESMTP; 01 Aug 2012 09:25:30 -0700 Message-ID: <5019580E.4070906@linux.intel.com> Date: Wed, 01 Aug 2012 09:23:42 -0700 From: Darren Hart User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120717 Thunderbird/14.0 MIME-Version: 1.0 To: Patches and discussions about the oe-core layer References: <1343697966-29777-1-git-send-email-Martin.Jansa@gmail.com> <1343732826.9526.1.camel@ted> <20120731111002.GR3261@jama.jama.net> In-Reply-To: <20120731111002.GR3261@jama.jama.net> X-Enigmail-Version: 1.4.3 Cc: Martin Jansa Subject: Re: [RFC] gdb-cross: add pythonnative 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, 01 Aug 2012 16:37:22 -0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On 07/31/2012 04:10 AM, Martin Jansa wrote: > On Tue, Jul 31, 2012 at 12:07:06PM +0100, Richard Purdie wrote: >> On Tue, 2012-07-31 at 03:26 +0200, Martin Jansa wrote: >>> * fails like this without: >>> | gcc -isystem/OE/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/include -O2 -pipe -L/OE/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/lib -L/OE/shr-core/tmp-eglibc/sysroo >>> ts/x86_64-linux/lib -Wl,-rpath-link,/OE/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/lib -Wl,-rpath-link,/OE/shr-core/tmp-eglibc/sysroots/x86_64-linux/lib -Wl,-rpath,/OE/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/lib -Wl,-rpath,/OE/shr-core/tmp-eglibc/sysroots/x86_64-linux/lib -Wl,-O1 \ >>> | -o gdb gdb.o libgdb.a \ >>> | -lreadline ../opcodes/libopcodes.a ../bfd/libbfd.a ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a -ldl -lncurses -lz -lm -lpthread -ldl -lutil -lm -lpython2.7 -Xlinker -export-dynamic /OE/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/lib/libexpat.so -Wl,-rpath -Wl,/OE/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/lib ../libiberty/libiberty.a gnulib/libgnu.a >>> | libgdb.a(python.o): In function `gdbpy_target_wide_charset': >>> | python.c:(.text+0x1e7): undefined reference to `PyUnicodeUCS4_Decode' >>> | libgdb.a(python.o): In function `gdbpy_target_charset': >>> | python.c:(.text+0x237): undefined reference to `PyUnicodeUCS4_Decode' >>> | libgdb.a(py-cmd.o): In function `cmdpy_completer': >>> | py-cmd.c:(.text+0x97): undefined reference to `PyUnicodeUCS4_Decode' >>> | py-cmd.c:(.text+0xc3): undefined reference to `PyUnicodeUCS4_Decode' >>> | libgdb.a(py-cmd.o): In function `cmdpy_function': >>> | py-cmd.c:(.text+0x39d): undefined reference to `PyUnicodeUCS4_Decode' >>> | libgdb.a(py-frame.o):py-frame.c:(.text+0xa21): more undefined references to `PyUnicodeUCS4_Decode' follow >>> | libgdb.a(py-utils.o): In function `unicode_to_encoded_string': >>> | py-utils.c:(.text+0x8): undefined reference to `PyUnicodeUCS4_AsEncodedString' >>> | libgdb.a(py-utils.o): In function `python_string_to_unicode': >>> | py-utils.c:(.text+0xc6): undefined reference to `PyUnicodeUCS4_FromEncodedObject' >>> | libgdb.a(py-utils.o): In function `unicode_to_target_python_string': >>> | py-utils.c:(.text+0x13a): undefined reference to `PyUnicodeUCS4_AsEncodedString' >>> | libgdb.a(py-utils.o): In function `target_string_to_unicode': >>> | py-utils.c:(.text+0x2a5): undefined reference to `PyUnicodeUCS4_Decode' >>> | libgdb.a(py-value.o): In function `valpy_string': >>> | py-value.c:(.text+0x4ac): undefined reference to `PyUnicodeUCS4_Decode' >>> | libgdb.a(py-value.o): In function `valpy_str': >>> | py-value.c:(.text+0xab4): undefined reference to `PyUnicodeUCS4_Decode' >>> | collect2: error: ld returned 1 exit status >>> | make[2]: *** [gdb] Error 1 >>> | make[2]: Leaving directory `/OE/shr-core/tmp-eglibc/work/armv4t-oe-linux-gnueabi/gdb-cross-7.4.1-r1.0/build-arm-oe-linux-gnueabi/gdb' >>> | make[1]: *** [all-gdb] Error 2 >>> >>> Signed-off-by: Martin Jansa >>> --- >>> meta/recipes-devtools/gdb/gdb-cross_7.4.1.bb | 2 ++ >>> 1 files changed, 2 insertions(+), 0 deletions(-) >> >> Is python enabled for gdb-cross in OE-Core? > > Explicitly only in gdb-cross-canadian, so I guess gdb-cross autodetected > it (sorry I don't have config.log anymore). > This resolves my gdb-cross build issue on poky-tiny. Thanks Martin. -- Darren Hart Intel Open Source Technology Center Yocto Project - Technical Lead - Linux Kernel