[yocto] Errors when installing SDK

Mark Hatle mark.hatle at windriver.com
Fri Aug 8 09:57:25 PDT 2014


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 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.

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
>




More information about the yocto mailing list