Topics

populate_sdk couldn't create the SDK installer for my image #sdk


Robert Varga
 

Hello Yocto Community,

I am new to the Yocto Project and need some help regarding creating the SDK installer for my image on a Ubuntu 18.04 host machine...
So far I was able to build an image for my target (based on latest Warrior branch). The image is based on the core-image-full-cmdline as it gets referenced by the corresponding recipe my-image.bb (see attachment):
Additional, I created an distro configuration file mydistro.conf which includes the poky.conf distro configuration file (see attachment).
When I execute bitbake my-image -c populate_sdk, I get following errors within last task (while the do_populate_skd task):
<snip>
| NOTE: Executing create_sdk_files ...
| DEBUG: Executing shell function create_sdk_files
| DEBUG: Shell function create_sdk_files finished
| NOTE: Executing check_sdk_sysroots ...
| DEBUG: Executing python function check_sdk_sysroots
| DEBUG: Python function check_sdk_sysroots finished
| NOTE: Executing tar_sdk ...
| DEBUG: Executing shell function tar_sdk
| DEBUG: Shell function tar_sdk finished
| NOTE: Executing create_shar ...
| DEBUG: Executing shell function create_shar
| sed: -e expression #6, char 21: unterminated `s' command
| WARNING: exit code 1 from a shell command.
| DEBUG: Python function do_populate_sdk finished
| ERROR: Function failed: create_shar (log file is located at /home/varga-r/projects/yocto/build/tmp/work/mymachine-poky-linux-gnueabi/my-image/1.0-r0/temp/log.do_populate_sdk.126574)
ERROR: Task (/home/varga-r/projects/yocto/poky/meta-robert/recipes-core/images/my-image.bb:do_populate_sdk) failed with exit code '1'
NOTE: Tasks Summary: Attempted 3588 tasks of which 2265 didn't need to be rerun and 1 failed.
 
Summary: 1 task failed:
  /home/varga-r/projects/yocto/poky/meta-robert/recipes-core/images/my-image.bb:do_populate_sdk
Summary: There were 13 WARNING messages shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
</snip>

The complete log log.do_populate_sdk.126574 is also attached.

Could some help me to find the root cause of this issue? Any help would be appreciated. 

--
Rob


Khem Raj
 

On 6/22/20 3:47 AM, Robert Varga wrote:
Hello Yocto Community,
I am new to the Yocto Project and need some help regarding creating the SDK installer for my image on a Ubuntu 18.04 host machine...
So far I was able to build an image for my target (based on latest Warrior branch). The image is based on the core-image-full-cmdline as it gets referenced by the corresponding recipe my-image.bb (see attachment):
Additional, I created an distro configuration file mydistro.conf which includes the poky.conf distro configuration file (see attachment).
When I execute bitbake my-image -c populate_sdk, I get following errors within last task (while the do_populate_skd task):
<snip>
| NOTE: Executing create_sdk_files ...
| DEBUG: Executing shell function create_sdk_files
| DEBUG: Shell function create_sdk_files finished
| NOTE: Executing check_sdk_sysroots ...
| DEBUG: Executing python function check_sdk_sysroots
| DEBUG: Python function check_sdk_sysroots finished
| NOTE: Executing tar_sdk ...
| DEBUG: Executing shell function tar_sdk
| DEBUG: Shell function tar_sdk finished
| NOTE: Executing create_shar ...
| DEBUG: Executing shell function create_shar
| sed: -e expression #6, char 21: unterminated `s' command
are there any aliases etc. to common programs like install in your environment ?
maybe do bitbake -e my-image and inspect the output especially do_populate_sdk function and see if you find some sed cmd being called with invalid options.

| WARNING: exit code 1 from a shell command.
| DEBUG: Python function do_populate_sdk finished
| ERROR: Function failed: create_shar (log file is located at /home/varga-r/projects/yocto/build/tmp/work/mymachine-poky-linux-gnueabi/my-image/1.0-r0/temp/log.do_populate_sdk.126574)
ERROR: Task (/home/varga-r/projects/yocto/poky/meta-robert/recipes-core/images/my-image.bb:do_populate_sdk) failed with exit code '1'
NOTE: Tasks Summary: Attempted 3588 tasks of which 2265 didn't need to be rerun and 1 failed.
Summary: 1 task failed:
/home/varga-r/projects/yocto/poky/meta-robert/recipes-core/images/my-image.bb:do_populate_sdk
Summary: There were 13 WARNING messages shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
</snip>
The complete log log.do_populate_sdk.126574 is also attached.
Could some help me to find the root cause of this issue? Any help would be appreciated.
--
Rob


Robert Varga
 

The hint regarding bitbake -e showed me the right direction... Within create_shar() function, sed is being called with the SDK_TITLE variable among others. Examination of the SDK_TITLE variable showed that it contained a " ' " (SDK_TITLE="Rob's Linux Distro") which seems to cause the issue. So I removed the " ' " within the SDK_TITLE and now it works fine.
Thank you very much for your hints.
--
Rob