All of lore.kernel.org
 help / color / mirror / Atom feed
* Getting a relocate_sdk.py issue when installing a sdk on Centos
@ 2013-10-29 21:04 Brian Hutchinson
  2013-10-29 21:21 ` Brian Hutchinson
  0 siblings, 1 reply; 10+ messages in thread
From: Brian Hutchinson @ 2013-10-29 21:04 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 1574 bytes --]

Hi,

I tried to research this issue I'm seeing but hit a bunch of noise.  I
generated a Yocto 1.5 sdk with my image and -c populate_sdk for i686.  When
a collegue tries to install the sdk on his Centos box with Python 2.6.7, he
gets:

sudo ./poky-eglibc-i686-core-image-wcs-armv7a-vfp-neon-toolchain-1.5.sh

Enter target directory for SDK (default: /opt/poky/1.5):

The directory "/opt/poky/1.5" already contains a SDK for this architecture.

If you continue, existing files will be overwritten! Proceed[y/N]?y

Extracting SDK...done

Setting it up...  File "/opt/poky/1.5/relocate_sdk.py", line 34

    old_prefix = re.compile(b"/opt/poky/1\.5")

                                            ^

SyntaxError: invalid syntax

SDK could not be set up. Relocate script failed. Abort!


So I'm kind of scratching my head.  Then I think hey this is a 64 bit
machine, maybe the x86_64 SDK will work so then I crank one of those out
and after blowing away the stuff in /opt/poky/1.5 and running the install
script with the 64bit SDK version we see the same error.

One post I did see was Jason Wessel & Richard talking about some
chicken/egg problem with certain versions of Python
http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=c160a982551f5d6186081daa8fa20682fd7fae17but
the version mentioned was 2.4.x and my collegue has 2.6.7.

Is there some base set of packages that a machine needs to use the SDK
generated by -c populate_sdk?

I'm kind of at a loss as to why this works on some machines but not others.

Regards,


Brian

[-- Attachment #2: Type: text/html, Size: 3319 bytes --]

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

* Re: Getting a relocate_sdk.py issue when installing a sdk on Centos
  2013-10-29 21:04 Getting a relocate_sdk.py issue when installing a sdk on Centos Brian Hutchinson
@ 2013-10-29 21:21 ` Brian Hutchinson
  2013-10-29 23:14   ` Khem Raj
  2013-10-30  5:41   ` Laurentiu Palcu
  0 siblings, 2 replies; 10+ messages in thread
From: Brian Hutchinson @ 2013-10-29 21:21 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 1904 bytes --]

On Tue, Oct 29, 2013 at 5:04 PM, Brian Hutchinson <b.hutchman@gmail.com>wrote:

> Hi,
>
> I tried to research this issue I'm seeing but hit a bunch of noise.  I
> generated a Yocto 1.5 sdk with my image and -c populate_sdk for i686.  When
> a collegue tries to install the sdk on his Centos box with Python 2.6.7, he
> gets:
>
> sudo ./poky-eglibc-i686-core-image-wcs-armv7a-vfp-neon-toolchain-1.5.sh
>
> Enter target directory for SDK (default: /opt/poky/1.5):
>
> The directory "/opt/poky/1.5" already contains a SDK for this architecture.
>
> If you continue, existing files will be overwritten! Proceed[y/N]?y
>
> Extracting SDK...done
>
> Setting it up...  File "/opt/poky/1.5/relocate_sdk.py", line 34
>
>     old_prefix = re.compile(b"/opt/poky/1\.5")
>
>                                             ^
>
> SyntaxError: invalid syntax
>
> SDK could not be set up. Relocate script failed. Abort!
>
>
> So I'm kind of scratching my head.  Then I think hey this is a 64 bit
> machine, maybe the x86_64 SDK will work so then I crank one of those out
> and after blowing away the stuff in /opt/poky/1.5 and running the install
> script with the 64bit SDK version we see the same error.
>
> One post I did see was Jason Wessel & Richard talking about some
> chicken/egg problem with certain versions of Python
> http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=c160a982551f5d6186081daa8fa20682fd7fae17but the version mentioned was 2.4.x and my collegue has 2.6.7.
>
> Is there some base set of packages that a machine needs to use the SDK
> generated by -c populate_sdk?
>
> I'm kind of at a loss as to why this works on some machines but not others.
>
> Regards,
>
>
Just some more information .... I can install this same sdk on my Ubuntu
12.04 box (32bit) just fine and it is running Python 2.7.3 in case any of
that matters.

Regards,

Brian

[-- Attachment #2: Type: text/html, Size: 3591 bytes --]

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

* Re: Getting a relocate_sdk.py issue when installing a sdk on Centos
  2013-10-29 21:21 ` Brian Hutchinson
@ 2013-10-29 23:14   ` Khem Raj
  2013-10-30  5:41   ` Laurentiu Palcu
  1 sibling, 0 replies; 10+ messages in thread
From: Khem Raj @ 2013-10-29 23:14 UTC (permalink / raw)
  To: Brian Hutchinson; +Cc: yocto

On Tue, Oct 29, 2013 at 2:21 PM, Brian Hutchinson <b.hutchman@gmail.com> wrote:
> On Tue, Oct 29, 2013 at 5:04 PM, Brian Hutchinson <b.hutchman@gmail.com>
> wrote:
>>
>> Hi,
>>
>> I tried to research this issue I'm seeing but hit a bunch of noise.  I
>> generated a Yocto 1.5 sdk with my image and -c populate_sdk for i686.  When
>> a collegue tries to install the sdk on his Centos box with Python 2.6.7, he
>> gets:
>>
>> sudo ./poky-eglibc-i686-core-image-wcs-armv7a-vfp-neon-toolchain-1.5.sh
>>
>> Enter target directory for SDK (default: /opt/poky/1.5):
>>
>> The directory "/opt/poky/1.5" already contains a SDK for this
>> architecture.
>>
>> If you continue, existing files will be overwritten! Proceed[y/N]?y
>>
>> Extracting SDK...done
>>
>> Setting it up...  File "/opt/poky/1.5/relocate_sdk.py", line 34
>>
>>     old_prefix = re.compile(b"/opt/poky/1\.5")
>>
>>                                             ^
>>
>> SyntaxError: invalid syntax
>>
>> SDK could not be set up. Relocate script failed. Abort!
>>
>>
>> So I'm kind of scratching my head.  Then I think hey this is a 64 bit
>> machine, maybe the x86_64 SDK will work so then I crank one of those out and
>> after blowing away the stuff in /opt/poky/1.5 and running the install script
>> with the 64bit SDK version we see the same error.
>>
>> One post I did see was Jason Wessel & Richard talking about some
>> chicken/egg problem with certain versions of Python
>> http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=c160a982551f5d6186081daa8fa20682fd7fae17
>> but the version mentioned was 2.4.x and my collegue has 2.6.7.
>>
>> Is there some base set of packages that a machine needs to use the SDK
>> generated by -c populate_sdk?
>>
>> I'm kind of at a loss as to why this works on some machines but not
>> others.
>>
>> Regards,
>>
>>
>
> Just some more information .... I can install this same sdk on my Ubuntu
> 12.04 box (32bit) just fine and it is running Python 2.7.3 in case any of
> that matters.

yeah so get python 2.7 on the other box as well and you will be happier.

>
> Regards,
>
> Brian
>
>
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>


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

* Re: Getting a relocate_sdk.py issue when installing a sdk on Centos
  2013-10-29 21:21 ` Brian Hutchinson
  2013-10-29 23:14   ` Khem Raj
@ 2013-10-30  5:41   ` Laurentiu Palcu
  2013-10-30 13:19     ` Brian Hutchinson
  1 sibling, 1 reply; 10+ messages in thread
From: Laurentiu Palcu @ 2013-10-30  5:41 UTC (permalink / raw)
  To: Brian Hutchinson; +Cc: yocto

Hi Brian,

On Tue, Oct 29, 2013 at 05:21:53PM -0400, Brian Hutchinson wrote:
> On Tue, Oct 29, 2013 at 5:04 PM, Brian Hutchinson <b.hutchman@gmail.com> wrote:
> 
>     Hi,
> 
>     I tried to research this issue I'm seeing but hit a bunch of noise.  I
>     generated a Yocto 1.5 sdk with my image and -c populate_sdk for i686.  When
>     a collegue tries to install the sdk on his Centos box with Python 2.6.7, he
>     gets:
>    
>     sudo ./poky-eglibc-i686-core-image-wcs-armv7a-vfp-neon-toolchain-1.5.sh
> 
>     Enter target directory for SDK (default: /opt/poky/1.5):
> 
>     The directory "/opt/poky/1.5" already contains a SDK for this architecture.
> 
>     If you continue, existing files will be overwritten! Proceed[y/N]?y
> 
>     Extracting SDK...done
> 
>     Setting it up...  File "/opt/poky/1.5/relocate_sdk.py", line 34
> 
>         old_prefix = re.compile(b"/opt/poky/1\.5")
> 
>                                                 ^
This commit:

commit 39356f622d3d2226f12c4930beeaf4b392d90ca5
Author: Konrad Scherer <Konrad.Scherer@windriver.com>
Date:   Thu Oct 17 10:17:20 2013 -0400

    relocate_sdk.py: Allow script to work with Python 2.4 and 3.

should fix your issue.

Thanks,
Laurentiu
> 
>     SyntaxError: invalid syntax
> 
>     SDK could not be set up. Relocate script failed. Abort!
> 
> 
>     So I'm kind of scratching my head.  Then I think hey this is a 64 bit
>     machine, maybe the x86_64 SDK will work so then I crank one of those out
>     and after blowing away the stuff in /opt/poky/1.5 and running the install
>     script with the 64bit SDK version we see the same error.
> 
>     One post I did see was Jason Wessel & Richard talking about some chicken/
>     egg problem with certain versions of Python http://git.yoctoproject.org/
>     cgit.cgi/poky/commit/?id=c160a982551f5d6186081daa8fa20682fd7fae17 but the
>     version mentioned was 2.4.x and my collegue has 2.6.7.
> 
>     Is there some base set of packages that a machine needs to use the SDK
>     generated by -c populate_sdk?
> 
>     I'm kind of at a loss as to why this works on some machines but not others.
> 
>     Regards,
> 
> 
> 
> 
> Just some more information .... I can install this same sdk on my Ubuntu 12.04
> box (32bit) just fine and it is running Python 2.7.3 in case any of that
> matters.
> 
> Regards,
> 
> Brian
> 

> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto



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

* Re: Getting a relocate_sdk.py issue when installing a sdk on Centos
  2013-10-30  5:41   ` Laurentiu Palcu
@ 2013-10-30 13:19     ` Brian Hutchinson
  2013-10-30 13:34       ` Laurentiu Palcu
  0 siblings, 1 reply; 10+ messages in thread
From: Brian Hutchinson @ 2013-10-30 13:19 UTC (permalink / raw)
  To: Laurentiu Palcu; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 516 bytes --]

On Wed, Oct 30, 2013 at 1:41 AM, Laurentiu Palcu
<laurentiu.palcu@intel.com>wrote:

>                 ^
> This commit:
>
> commit 39356f622d3d2226f12c4930beeaf4b392d90ca5
> Author: Konrad Scherer <Konrad.Scherer@windriver.com>
> Date:   Thu Oct 17 10:17:20 2013 -0400
>
>     relocate_sdk.py: Allow script to work with Python 2.4 and 3.
>
> should fix your issue.
>
> Thanks,
> Laurentiu
>

Hi Laurentiu,

Which git repo?  I couldn't find it?   Is this contrib or mainline?

Regards,

Brian

[-- Attachment #2: Type: text/html, Size: 1029 bytes --]

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

* Re: Getting a relocate_sdk.py issue when installing a sdk on Centos
  2013-10-30 13:19     ` Brian Hutchinson
@ 2013-10-30 13:34       ` Laurentiu Palcu
  2013-10-30 14:00         ` Brian Hutchinson
  0 siblings, 1 reply; 10+ messages in thread
From: Laurentiu Palcu @ 2013-10-30 13:34 UTC (permalink / raw)
  To: Brian Hutchinson; +Cc: yocto

On Wed, Oct 30, 2013 at 09:19:56AM -0400, Brian Hutchinson wrote:
> On Wed, Oct 30, 2013 at 1:41 AM, Laurentiu Palcu <laurentiu.palcu@intel.com>
> wrote:
> 
>                     ^
>     This commit:
> 
>     commit 39356f622d3d2226f12c4930beeaf4b392d90ca5
>     Author: Konrad Scherer <Konrad.Scherer@windriver.com>
>     Date:   Thu Oct 17 10:17:20 2013 -0400
> 
>         relocate_sdk.py: Allow script to work with Python 2.4 and 3.
> 
>     should fix your issue.
> 
>     Thanks,
>     Laurentiu
> 
> 
> Hi Laurentiu,
> 
> Which git repo?  I couldn't find it?   Is this contrib or mainline?
http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=39356f622d3d2226f12c4930beeaf4b392d90ca5

or

http://cgit.openembedded.org/openembedded-core/commit/?id=1e2ec5f576f167673d7980737826987fefdc74a9

Laurentiu
> 
> Regards,
> 
> Brian
> 


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

* Re: Getting a relocate_sdk.py issue when installing a sdk on Centos
  2013-10-30 13:34       ` Laurentiu Palcu
@ 2013-10-30 14:00         ` Brian Hutchinson
  2013-10-30 14:41           ` Laurentiu Palcu
  0 siblings, 1 reply; 10+ messages in thread
From: Brian Hutchinson @ 2013-10-30 14:00 UTC (permalink / raw)
  To: Laurentiu Palcu; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 1324 bytes --]

On Oct 30, 2013 9:36 AM, "Laurentiu Palcu" <laurentiu.palcu@intel.com>
wrote:
>
> On Wed, Oct 30, 2013 at 09:19:56AM -0400, Brian Hutchinson wrote:
> > On Wed, Oct 30, 2013 at 1:41 AM, Laurentiu Palcu <
laurentiu.palcu@intel.com>
> > wrote:
> >
> >                     ^
> >     This commit:
> >
> >     commit 39356f622d3d2226f12c4930beeaf4b392d90ca5
> >     Author: Konrad Scherer <Konrad.Scherer@windriver.com>
> >     Date:   Thu Oct 17 10:17:20 2013 -0400
> >
> >         relocate_sdk.py: Allow script to work with Python 2.4 and 3.
> >
> >     should fix your issue.
> >
> >     Thanks,
> >     Laurentiu
> >
> >
> > Hi Laurentiu,
> >
> > Which git repo?  I couldn't find it?   Is this contrib or mainline?
>
http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=39356f622d3d2226f12c4930beeaf4b392d90ca5
>
> or
>
>
http://cgit.openembedded.org/openembedded-core/commit/?id=1e2ec5f576f167673d7980737826987fefdc74a9
>
> Laurentiu
> >
> > Regards,
> >
> > Brian
> >

Thanks!  I don't know why my searches didn't find that.

Helps to read the release notes ... I wonder if I shouldn't also make folks
with these older Centos boxes also install buildtools-tarball so everyone
has the same rev of Python etc.  That might make the SDK install go better
too.

Regards,

Brian

[-- Attachment #2: Type: text/html, Size: 2135 bytes --]

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

* Re: Getting a relocate_sdk.py issue when installing a sdk on Centos
  2013-10-30 14:00         ` Brian Hutchinson
@ 2013-10-30 14:41           ` Laurentiu Palcu
  2013-10-30 14:45             ` Brian Hutchinson
  0 siblings, 1 reply; 10+ messages in thread
From: Laurentiu Palcu @ 2013-10-30 14:41 UTC (permalink / raw)
  To: Brian Hutchinson; +Cc: yocto

On Wed, Oct 30, 2013 at 10:00:14AM -0400, Brian Hutchinson wrote:
> 
> On Oct 30, 2013 9:36 AM, "Laurentiu Palcu" <laurentiu.palcu@intel.com> wrote:
> >
> > On Wed, Oct 30, 2013 at 09:19:56AM -0400, Brian Hutchinson wrote:
> > > On Wed, Oct 30, 2013 at 1:41 AM, Laurentiu Palcu <laurentiu.palcu@intel.com
> >
> > > wrote:
> > >
> > >                     ^
> > >     This commit:
> > >
> > >     commit 39356f622d3d2226f12c4930beeaf4b392d90ca5
> > >     Author: Konrad Scherer <Konrad.Scherer@windriver.com>
> > >     Date:   Thu Oct 17 10:17:20 2013 -0400
> > >
> > >         relocate_sdk.py: Allow script to work with Python 2.4 and 3.
> > >
> > >     should fix your issue.
> > >
> > >     Thanks,
> > >     Laurentiu
> > >
> > >
> > > Hi Laurentiu,
> > >
> > > Which git repo?  I couldn't find it?   Is this contrib or mainline?
> > http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=
> 39356f622d3d2226f12c4930beeaf4b392d90ca5
> >
> > or
> >
> > http://cgit.openembedded.org/openembedded-core/commit/?id=
> 1e2ec5f576f167673d7980737826987fefdc74a9
> >
> > Laurentiu
> > >
> > > Regards,
> > >
> > > Brian
> > >
> 
> Thanks!  I don't know why my searches didn't find that.
> 
> Helps to read the release notes ... I wonder if I shouldn't also make folks
> with these older Centos boxes also install buildtools-tarball so everyone has
> the same rev of Python etc.  That might make the SDK install go better too.
If those folks are just users of the SDK then I don't think this is
necessary, provided that the one that generated the SDK tarball had the fix
installed.

Laurentiu

> 
> Regards,
> 
> Brian
> 


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

* Re: Getting a relocate_sdk.py issue when installing a sdk on Centos
  2013-10-30 14:41           ` Laurentiu Palcu
@ 2013-10-30 14:45             ` Brian Hutchinson
  2013-10-30 21:26               ` Brian Hutchinson
  0 siblings, 1 reply; 10+ messages in thread
From: Brian Hutchinson @ 2013-10-30 14:45 UTC (permalink / raw)
  To: Laurentiu Palcu; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 648 bytes --]

On Wed, Oct 30, 2013 at 10:41 AM, Laurentiu Palcu <laurentiu.palcu@intel.com
> wrote:

>
> > Helps to read the release notes ... I wonder if I shouldn't also make
> folks
> > with these older Centos boxes also install buildtools-tarball so
> everyone has
> > the same rev of Python etc.  That might make the SDK install go better
> too.
> If those folks are just users of the SDK then I don't think this is
> necessary, provided that the one that generated the SDK tarball had the fix
> installed.
>
>
Yes, they are just using the generated SDK.

Thanks for putting me onto this patch, I'm looking at it now.

Regards,

Brian

[-- Attachment #2: Type: text/html, Size: 1062 bytes --]

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

* Re: Getting a relocate_sdk.py issue when installing a sdk on Centos
  2013-10-30 14:45             ` Brian Hutchinson
@ 2013-10-30 21:26               ` Brian Hutchinson
  0 siblings, 0 replies; 10+ messages in thread
From: Brian Hutchinson @ 2013-10-30 21:26 UTC (permalink / raw)
  To: Laurentiu Palcu; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 866 bytes --]

On Oct 30, 2013 10:45 AM, "Brian Hutchinson" <b.hutchman@gmail.com> wrote:
>
> On Wed, Oct 30, 2013 at 10:41 AM, Laurentiu Palcu <
laurentiu.palcu@intel.com> wrote:
>>
>>
>> > Helps to read the release notes ... I wonder if I shouldn't also make
folks
>> > with these older Centos boxes also install buildtools-tarball so
everyone has
>> > the same rev of Python etc.  That might make the SDK install go better
too.
>> If those folks are just users of the SDK then I don't think this is
>> necessary, provided that the one that generated the SDK tarball had the
fix
>> installed.
>>
>
> Yes, they are just using the generated SDK.
>
> Thanks for putting me onto this patch, I'm looking at it now.
>
> Regards,
>
> Brian
>
>

Thanks!  That patch fixed both the i686 and x86_64 versions of my SDK!

You are the man!

Regards,

Brian

[-- Attachment #2: Type: text/html, Size: 1251 bytes --]

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

end of thread, other threads:[~2013-10-30 21:26 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-29 21:04 Getting a relocate_sdk.py issue when installing a sdk on Centos Brian Hutchinson
2013-10-29 21:21 ` Brian Hutchinson
2013-10-29 23:14   ` Khem Raj
2013-10-30  5:41   ` Laurentiu Palcu
2013-10-30 13:19     ` Brian Hutchinson
2013-10-30 13:34       ` Laurentiu Palcu
2013-10-30 14:00         ` Brian Hutchinson
2013-10-30 14:41           ` Laurentiu Palcu
2013-10-30 14:45             ` Brian Hutchinson
2013-10-30 21:26               ` Brian Hutchinson

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.