[yocto] Errors when installing SDK

Gary Thomas gary at mlbassoc.com
Fri Aug 8 09:13:20 PDT 2014


I built an SDK (using populate_sdk) from the latest master.
When I tried to install it, I got a ton of errors:
   root at 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
------------------------------------------------------------



More information about the yocto mailing list