All of lore.kernel.org
 help / color / mirror / Atom feed
* Errors when installing SDK
@ 2014-08-08 16:13 Gary Thomas
  2014-08-08 16:57 ` Mark Hatle
  0 siblings, 1 reply; 4+ messages in thread
From: Gary Thomas @ 2014-08-08 16:13 UTC (permalink / raw)
  To: Yocto Discussion Mailing List

I built an SDK (using populate_sdk) from the latest master.
When I tried to install it, I got a ton of errors:
   root@Zeus:~# /work/tmp/poky-eglibc-i686-arm-toolchain-1.6+snapshot-20140808.sh
   Enter target directory for SDK (default: /opt/poky/1.6+snapshot-20140808):
   You are about to install the SDK to "/opt/poky/1.6+snapshot-20140808". Proceed[Y/n]?
   Extracting SDK...done
   Setting it up...xargs: argument line too long
   find: `file' terminated by signal 13
   find: `file' terminated by signal 13
   ...
   find: `file' terminated by signal 13

When I looked into this, it's happening in the relocate_sdk.sh script.
Here are the relevant lines (via -D):
   + /opt/poky/1.6+snapshot-20140808/relocate_sdk.sh
   + '[' 0 -ne 0 ']'
   + find /opt/poky/1.6+snapshot-20140808/sysroots/i686-pokysdk-linux -type f -exec file '{}' ';'
   + grep ':.*\(ASCII\|script\|source\).*text'
   + awk -F: '{printf "%s\0", $1}'
   + xargs -0 sed -i -e s:/opt/poky/1.6+snapshot-20140808:/opt/poky/1.6+snapshot-20140808:g
   xargs: argument line too long

Since I'm not relocating the SDK, can I just ignore these errors?
Wouldn't it be a bit safer to use 'xargs -n256 ...' to limit the
command line length?

Note: I'm not sure where the 'relocate_sdk.sh' script comes from
or else I'd give it a go myself.

Thanks

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------


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

* Re: Errors when installing SDK
  2014-08-08 16:13 Errors when installing SDK Gary Thomas
@ 2014-08-08 16:57 ` Mark Hatle
  2014-08-08 17:11   ` Gary Thomas
  0 siblings, 1 reply; 4+ messages in thread
From: Mark Hatle @ 2014-08-08 16:57 UTC (permalink / raw)
  To: yocto

On 8/8/14, 11:13 AM, Gary Thomas wrote:
> I built an SDK (using populate_sdk) from the latest master.
> When I tried to install it, I got a ton of errors:
>     root@Zeus:~# /work/tmp/poky-eglibc-i686-arm-toolchain-1.6+snapshot-20140808.sh
>     Enter target directory for SDK (default: /opt/poky/1.6+snapshot-20140808):
>     You are about to install the SDK to "/opt/poky/1.6+snapshot-20140808". Proceed[Y/n]?
>     Extracting SDK...done
>     Setting it up...xargs: argument line too long
>     find: `file' terminated by signal 13
>     find: `file' terminated by signal 13
>     ...
>     find: `file' terminated by signal 13
>
> When I looked into this, it's happening in the relocate_sdk.sh script.
> Here are the relevant lines (via -D):
>     + /opt/poky/1.6+snapshot-20140808/relocate_sdk.sh
>     + '[' 0 -ne 0 ']'
>     + find /opt/poky/1.6+snapshot-20140808/sysroots/i686-pokysdk-linux -type f -exec file '{}' ';'
>     + grep ':.*\(ASCII\|script\|source\).*text'
>     + awk -F: '{printf "%s\0", $1}'
>     + xargs -0 sed -i -e s:/opt/poky/1.6+snapshot-20140808:/opt/poky/1.6+snapshot-20140808:g
>     xargs: argument line too long
>
> Since I'm not relocating the SDK, can I just ignore these errors?
> Wouldn't it be a bit safer to use 'xargs -n256 ...' to limit the
> command line length?
>
> Note: I'm not sure where the 'relocate_sdk.sh' script comes from
> or else I'd give it a go myself.

You will end up relocating the SDK, even if you use the default install path. 
Just the nature of how we had to implement the relocation.

And yes, I suspect the right answer is we need to set a limit on the xargs. 
(I'm kind of surprised that we didn't already have a limit set!)

--Mark

> Thanks
>



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

* Re: Errors when installing SDK
  2014-08-08 16:57 ` Mark Hatle
@ 2014-08-08 17:11   ` Gary Thomas
  2014-08-08 17:29     ` Paul Eggleton
  0 siblings, 1 reply; 4+ messages in thread
From: Gary Thomas @ 2014-08-08 17:11 UTC (permalink / raw)
  To: yocto

On 2014-08-08 10:57, Mark Hatle wrote:
> On 8/8/14, 11:13 AM, Gary Thomas wrote:
>> I built an SDK (using populate_sdk) from the latest master.
>> When I tried to install it, I got a ton of errors:
>>     root@Zeus:~# /work/tmp/poky-eglibc-i686-arm-toolchain-1.6+snapshot-20140808.sh
>>     Enter target directory for SDK (default: /opt/poky/1.6+snapshot-20140808):
>>     You are about to install the SDK to "/opt/poky/1.6+snapshot-20140808". Proceed[Y/n]?
>>     Extracting SDK...done
>>     Setting it up...xargs: argument line too long
>>     find: `file' terminated by signal 13
>>     find: `file' terminated by signal 13
>>     ...
>>     find: `file' terminated by signal 13
>>
>> When I looked into this, it's happening in the relocate_sdk.sh script.
>> Here are the relevant lines (via -D):
>>     + /opt/poky/1.6+snapshot-20140808/relocate_sdk.sh
>>     + '[' 0 -ne 0 ']'
>>     + find /opt/poky/1.6+snapshot-20140808/sysroots/i686-pokysdk-linux -type f -exec file '{}' ';'
>>     + grep ':.*\(ASCII\|script\|source\).*text'
>>     + awk -F: '{printf "%s\0", $1}'
>>     + xargs -0 sed -i -e s:/opt/poky/1.6+snapshot-20140808:/opt/poky/1.6+snapshot-20140808:g
>>     xargs: argument line too long
>>
>> Since I'm not relocating the SDK, can I just ignore these errors?
>> Wouldn't it be a bit safer to use 'xargs -n256 ...' to limit the
>> command line length?
>>
>> Note: I'm not sure where the 'relocate_sdk.sh' script comes from
>> or else I'd give it a go myself.
>
> You will end up relocating the SDK, even if you use the default install path. Just the nature of how we had to implement the relocation.
>
> And yes, I suspect the right answer is we need to set a limit on the xargs. (I'm kind of surprised that we didn't already have a limit set!)

If you can point me at where that file comes from (a simple
search didn't help), I'll give it a try and propose a patch.

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------


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

* Re: Errors when installing SDK
  2014-08-08 17:11   ` Gary Thomas
@ 2014-08-08 17:29     ` Paul Eggleton
  0 siblings, 0 replies; 4+ messages in thread
From: Paul Eggleton @ 2014-08-08 17:29 UTC (permalink / raw)
  To: Gary Thomas; +Cc: yocto

Hi Gary,

On Friday 08 August 2014 11:11:19 Gary Thomas wrote:
> On 2014-08-08 10:57, Mark Hatle wrote:
> > And yes, I suspect the right answer is we need to set a limit on the
> > xargs. (I'm kind of surprised that we didn't already have a limit set!)
>
> If you can point me at where that file comes from (a simple
> search didn't help), I'll give it a try and propose a patch.

It's in meta/classes/populate_sdk_base.bbclass (there's only one instance of 
xargs in there).

Cheers,
Paul
-- 

Paul Eggleton
Intel Open Source Technology Centre


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

end of thread, other threads:[~2014-08-08 17:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-08 16:13 Errors when installing SDK Gary Thomas
2014-08-08 16:57 ` Mark Hatle
2014-08-08 17:11   ` Gary Thomas
2014-08-08 17:29     ` Paul Eggleton

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.