[yocto] Yocto Eclipse Plugin - Python 'undefined symbol'

Zhang, Jessica jessica.zhang at intel.com
Thu Jan 5 23:28:08 PST 2012


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 at yoctoproject.org [mailto:yocto-bounces at yoctoproject.org] On Behalf Of Jack Mitchell
Sent: Thursday, January 05, 2012 8:27 AM
To: yocto at 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 at 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 at yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto



More information about the yocto mailing list