Skip to contentSkip to conversation

Errors when installing SDK

DISCUSSION Gary Thomas 3 participants 4 messages Aug 8, 2014

lore
Share & tools
lore
#0 lore raw

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

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
#1 lore raw
Quoted 22 lines · Gary Thomas

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

Quoted 6 lines

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

Quoted 2 lines

Thanks

#2 lore raw
Quoted 27 lines · Mark Hatle
Quoted 26 lines · Gary Thomas

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?

Quoted 6 lines
Quoted 2 lines

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.

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
#3 lore raw

Hi Gary,

Quoted 6 lines · On Friday 08 August 2014 11:11:19 Gary Thomas wrote:
Quoted 2 lines · Mark Hatle

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

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre