All of lore.kernel.org
 help / color / mirror / Atom feed
* Yocto Eclipse Plugin - Python 'undefined symbol'
@ 2012-01-05 16:18 Jack Mitchell
  2012-01-05 16:27 ` Jack Mitchell
  0 siblings, 1 reply; 4+ messages in thread
From: Jack Mitchell @ 2012-01-05 16:18 UTC (permalink / raw)
  To: yocto@yoctoproject.org

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.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Yocto Eclipse Plugin - Python 'undefined symbol'
  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
  0 siblings, 1 reply; 4+ messages in thread
From: Jack Mitchell @ 2012-01-05 16:27 UTC (permalink / raw)
  To: yocto@yoctoproject.org

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?



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Yocto Eclipse Plugin - Python 'undefined symbol'
  2012-01-05 16:27 ` Jack Mitchell
@ 2012-01-06  7:28   ` Zhang, Jessica
  2012-01-09  9:24     ` Jack Mitchell
  0 siblings, 1 reply; 4+ messages in thread
From: Zhang, Jessica @ 2012-01-06  7:28 UTC (permalink / raw)
  To: Jack Mitchell, yocto@yoctoproject.org

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Yocto Eclipse Plugin - Python 'undefined symbol'
  2012-01-06  7:28   ` Zhang, Jessica
@ 2012-01-09  9:24     ` Jack Mitchell
  0 siblings, 0 replies; 4+ messages in thread
From: Jack Mitchell @ 2012-01-09  9:24 UTC (permalink / raw)
  To: Zhang, Jessica, yocto@yoctoproject.org

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.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-01-09  9:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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.