All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] python-native: configure unicode to ucs4
@ 2010-09-14 19:39 Eric Bénard
  2010-09-14 21:17 ` Tom Rini
  0 siblings, 1 reply; 3+ messages in thread
From: Eric Bénard @ 2010-09-14 19:39 UTC (permalink / raw)
  To: openembedded-devel

* while trying to run gdb from an SDK created by OE, I got the following
errors: /usr/local/angstrom/arm/bin/arm-angstrom-linux-gnueabi-gdb: undefined symbol:
PyUnicodeUCS2_FromEncodedObject

* the reason is that the workstation (ubuntu 10.04 or 9.01)'s Python is compiled using ucs4
and the python-native used to create arm-angstrom-linux-gnueabi-gdb is using ucs2, the
problem is detailed here :
http://docs.python.org/faq/extending#when-importing-module-x-why-do-i-get-undefined-symbol-pyunicodeucs2

* configuring python-native with ucs=4 solves this problem.

Signed-off-by: Eric Bénard <eric@eukrea.com>
---
 recipes/python/python-native_2.6.5.bb |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/recipes/python/python-native_2.6.5.bb b/recipes/python/python-native_2.6.5.bb
index 66573e9..999335c 100644
--- a/recipes/python/python-native_2.6.5.bb
+++ b/recipes/python/python-native_2.6.5.bb
@@ -20,6 +20,10 @@ S = "${WORKDIR}/Python-${PV}"
 
 inherit native
 
+EXTRA_OECONF_append = '\
+  --enable-unicode=ucs4 \
+'
+
 EXTRA_OEMAKE = '\
   BUILD_SYS="" \
   HOST_SYS="" \
-- 
1.6.3.3




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

* Re: [PATCH] python-native: configure unicode to ucs4
  2010-09-14 19:39 [PATCH] python-native: configure unicode to ucs4 Eric Bénard
@ 2010-09-14 21:17 ` Tom Rini
  2010-09-17 13:57   ` Eric Bénard
  0 siblings, 1 reply; 3+ messages in thread
From: Tom Rini @ 2010-09-14 21:17 UTC (permalink / raw)
  To: openembedded-devel

Eric Bénard wrote:
> * while trying to run gdb from an SDK created by OE, I got the following
> errors: /usr/local/angstrom/arm/bin/arm-angstrom-linux-gnueabi-gdb: undefined symbol:
> PyUnicodeUCS2_FromEncodedObject
> 
> * the reason is that the workstation (ubuntu 10.04 or 9.01)'s Python is compiled using ucs4
> and the python-native used to create arm-angstrom-linux-gnueabi-gdb is using ucs2, the
> problem is detailed here :
> http://docs.python.org/faq/extending#when-importing-module-x-why-do-i-get-undefined-symbol-pyunicodeucs2
> 
> * configuring python-native with ucs=4 solves this problem.
> 
> Signed-off-by: Eric Bénard <eric@eukrea.com>

Can you test this out on some form of Red Hat?  Thanks!

> ---
>  recipes/python/python-native_2.6.5.bb |    4 ++++
>  1 files changed, 4 insertions(+), 0 deletions(-)
> 
> diff --git a/recipes/python/python-native_2.6.5.bb b/recipes/python/python-native_2.6.5.bb
> index 66573e9..999335c 100644
> --- a/recipes/python/python-native_2.6.5.bb
> +++ b/recipes/python/python-native_2.6.5.bb
> @@ -20,6 +20,10 @@ S = "${WORKDIR}/Python-${PV}"
>  
>  inherit native
>  
> +EXTRA_OECONF_append = '\
> +  --enable-unicode=ucs4 \
> +'
> +
>  EXTRA_OEMAKE = '\
>    BUILD_SYS="" \
>    HOST_SYS="" \


-- 
Tom Rini
Mentor Graphics Corporation



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

* Re: [PATCH] python-native: configure unicode to ucs4
  2010-09-14 21:17 ` Tom Rini
@ 2010-09-17 13:57   ` Eric Bénard
  0 siblings, 0 replies; 3+ messages in thread
From: Eric Bénard @ 2010-09-17 13:57 UTC (permalink / raw)
  To: openembedded-devel

Hi,

Le 14/09/2010 23:17, Tom Rini a écrit :
> Eric Bénard wrote:
>> * while trying to run gdb from an SDK created by OE, I got the following
>> errors: /usr/local/angstrom/arm/bin/arm-angstrom-linux-gnueabi-gdb:
>> undefined symbol:
>> PyUnicodeUCS2_FromEncodedObject
>>
>> * the reason is that the workstation (ubuntu 10.04 or 9.01)'s Python
>> is compiled using ucs4
>> and the python-native used to create arm-angstrom-linux-gnueabi-gdb is
>> using ucs2, the
>> problem is detailed here :
>> http://docs.python.org/faq/extending#when-importing-module-x-why-do-i-get-undefined-symbol-pyunicodeucs2
>>
>>
>> * configuring python-native with ucs=4 solves this problem.
>>
>> Signed-off-by: Eric Bénard <eric@eukrea.com>
>
> Can you test this out on some form of Red Hat? Thanks!
>
generated SDK tested on Fedora Core 10 : it works.

As discussed on IRC, I RedHat is compiling it's python wuth ucs=4 at 
least since RedHat 7 from what I saw in the SRPMS.

Eric



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

end of thread, other threads:[~2010-09-17 13:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-14 19:39 [PATCH] python-native: configure unicode to ucs4 Eric Bénard
2010-09-14 21:17 ` Tom Rini
2010-09-17 13:57   ` Eric Bénard

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.