All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jack Mitchell <ml@communistcode.co.uk>
To: "Zhang, Jessica" <jessica.zhang@intel.com>,
	 "yocto@yoctoproject.org" <yocto@yoctoproject.org>
Subject: Re: Yocto Eclipse Plugin - Python 'undefined symbol'
Date: Mon, 09 Jan 2012 09:24:54 +0000	[thread overview]
Message-ID: <4F0AB266.2050004@communistcode.co.uk> (raw)
In-Reply-To: <C6510F6D410BB64A8C15398EDC6B847C240329F0@ORSMSX101.amr.corp.intel.com>

On 06/01/12 07:28, Zhang, Jessica wrote:
> Jack,
>
> I just tried with latest poky master built out toolchain and remote debug with latest Eclipse plug-in has no problem.  My host is 32bit Ubuntu, but I don't think that makes any difference.  So how up to date is your poky meta data, mine is as of this afternoon  that contains 2 bug fixes that relevant to meta-toolchain build.  Also, seems you're using the build system derived toolchain?  If so, I can give that a try...
>
> Thanks,
> Jessica
>
> -----Original Message-----
> From: yocto-bounces@yoctoproject.org [mailto:yocto-bounces@yoctoproject.org] On Behalf Of Jack Mitchell
> Sent: Thursday, January 05, 2012 8:27 AM
> To: yocto@yoctoproject.org
> Subject: Re: [yocto] Yocto Eclipse Plugin - Python 'undefined symbol'
>
> On 05/01/12 16:18, Jack Mitchell wrote:
>> I encounter this error when trying to launch a debug session in
>> Eclipse. I am using the master branch of poky, and the master branch
>> of eclipse-plugin on an ArchLinux 64 host.
>>
>> Any ideas, it seems as though the Python wasn't built with Unicode
>> support but I can't tell if it is using the bitbake built python or
>> host python...
>>
>> Error creating session
>> /home/jack/yocto/poky-git/beagleInitial/tmp/sysroots/x86_64-linux/usr/bin/armv5te-poky-linux-gnueabi/arm-poky-linux-gnueabi-gdb:
>> symbol lookup error:
>> /home/jack/yocto/poky-git/beagleInitial/tmp/sysroots/x86_64-linux/usr/bin/armv5te-poky-linux-gnueabi/arm-poky-linux-gnueabi-gdb:
>> undefined symbol: PyUnicodeUCS4_FromEncodedObject
>> /home/jack/yocto/poky-git/beagleInitial/tmp/sysroots/x86_64-linux/usr/bin/armv5te-poky-linux-gnueabi/arm-poky-linux-gnueabi-gdb:
>> symbol lookup error:
>> /home/jack/yocto/poky-git/beagleInitial/tmp/sysroots/x86_64-linux/usr/bin/armv5te-poky-linux-gnueabi/arm-poky-linux-gnueabi-gdb:
>> undefined symbol: PyUnicodeUCS4_FromEncodedObject
>> /home/jack/yocto/poky-git/beagleInitial/tmp/sysroots/x86_64-linux/usr/bin/armv5te-poky-linux-gnueabi/arm-poky-linux-gnueabi-gdb:
>> symbol lookup error:
>> /home/jack/yocto/poky-git/beagleInitial/tmp/sysroots/x86_64-linux/usr/bin/armv5te-poky-linux-gnueabi/arm-poky-linux-gnueabi-gdb:
>> undefined symbol: PyUnicodeUCS4_FromEncodedObject
>>
>> Cheers,
>> Jack.
>> _______________________________________________
>> yocto mailing list
>> yocto@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
> A cheeky ldd of the binary file gives me:
>
> linux-vdso.so.1 =>   (0x00007fff68dff000)
>       libreadline.so.6 =>
> /home/jack/yocto/poky-git/beagleInitial/tmp/sysroots/x86_64-linux/usr/bin/armv5te-poky-linux-gnueabi/../../../usr/lib/libreadline.so.6
> (0x00007fb5cf3af000)
>       libncursesw.so.5 =>  /lib/libncursesw.so.5 (0x00007fb5cf152000)
>       libz.so.1 =>
> /home/jack/yocto/poky-git/beagleInitial/tmp/sysroots/x86_64-linux/usr/bin/armv5te-poky-linux-gnueabi/../../../usr/lib/libz.so.1
> (0x00007fb5cef3b000)
>       libm.so.6 =>  /lib/libm.so.6 (0x00007fb5cec47000)
>       libpthread.so.0 =>  /lib/libpthread.so.0 (0x00007fb5cea2a000)
>       libdl.so.2 =>  /lib/libdl.so.2 (0x00007fb5ce826000)
>       libutil.so.1 =>  /lib/libutil.so.1 (0x00007fb5ce623000)
>       libpython2.7.so.1.0 =>
> /home/jack/yocto/poky-git/beagleInitial/tmp/sysroots/x86_64-linux/usr/bin/armv5te-poky-linux-gnueabi/../../../usr/lib/libpython2.7.so.1.0
> (0x00007fb5ce248000)
>       libexpat.so.1 =>
> /home/jack/yocto/poky-git/beagleInitial/tmp/sysroots/x86_64-linux/usr/bin/armv5te-poky-linux-gnueabi/../../../usr/lib/libexpat.so.1
> (0x00007fb5ce01e000)
>       libc.so.6 =>  /lib/libc.so.6 (0x00007fb5cdc7b000)
>       /lib/ld-linux-x86-64.so.2 (0x00007fb5cf5f1000)
>
> Which seems to indicate that it is using the bitbake built python?
>
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto

Hi Jessica,

Thanks for your reply.

I am using the build system derived toolchain. I am using the latest 
poky.git as of 9:22am GMT 9th Jan. I am using the eclipse-plugin master 
branch. I tried again this morning and encountered the same error.

To run the eclipse plugin I am using the method of adding the source 
code to the eclipse project and then right clicking and running as an 
eclipse program. However I believe the issue is either with my Python, 
or with some other incompatibility in the script.

Best Regards,
Jack.


      reply	other threads:[~2012-01-09  9:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-05 16:18 Yocto Eclipse Plugin - Python 'undefined symbol' Jack Mitchell
2012-01-05 16:27 ` Jack Mitchell
2012-01-06  7:28   ` Zhang, Jessica
2012-01-09  9:24     ` Jack Mitchell [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F0AB266.2050004@communistcode.co.uk \
    --to=ml@communistcode.co.uk \
    --cc=jessica.zhang@intel.com \
    --cc=yocto@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.