[yocto] Errors when installing SDK

Gary Thomas gary at mlbassoc.com
Fri Aug 8 10:11:19 PDT 2014


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 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!)

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



More information about the yocto mailing list