From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.yoctoproject.org (mail.yoctoproject.org [198.145.29.25]) by mx.groups.io with SMTP id smtpd.web10.2849.1600359053979330023 for ; Thu, 17 Sep 2020 09:10:54 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=softfail (domain: windriver.com, ip: 198.145.29.25, mailfrom: randy.macleod@windriver.com) Received: from mail5.wrs.com (mail5.windriver.com [192.103.53.11]) by mail.yoctoproject.org (Postfix) with ESMTPS id B54BC38C1176 for ; Thu, 17 Sep 2020 09:10:53 -0700 (PDT) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail5.wrs.com (8.15.2/8.15.2) with ESMTPS id 08HGABGs004655 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Thu, 17 Sep 2020 09:10:21 -0700 Received: from [172.25.44.2] (172.25.44.2) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server (TLS) id 14.3.487.0; Thu, 17 Sep 2020 09:10:00 -0700 Subject: Re: [yocto-builds] relocate_sdk.py is failing when installing yocto3.1.2 SDK To: Ansurivijay Ramana , Yocto discussion list References: From: "Randy MacLeod" Message-ID: <1fcf121b-4486-76cb-b6b5-a75f04701018@windriver.com> Date: Thu, 17 Sep 2020 12:09:58 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: X-Originating-IP: [172.25.44.2] Content-Type: multipart/alternative; boundary="------------1D499058D14C852D98117CEA" Content-Language: en-CA --------------1D499058D14C852D98117CEA Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: quoted-printable Hi Vijay, I have redirected this thread to the main yocto list. The yocto-builds list is for automated build outputs rather than discussions. What distro are you using? What version of python3 is provided by that distro? On Ubu-20.04, fyi: $ grep python3 /.../oe-core.git/scripts/relocate_sdk.py #!/usr/bin/env python3 $ python3 --version Python 3.8.2 ../Randy On 2020-09-17 9:49 a.m., Ansurivijay Ramana wrote: > > Classification: *HCL Internal* > > Hi , > > I have added my layer and builded the SDK in yocto 3.1.2 but=20 > relocate_sdk.py is failing when installing. > > Please help me in fixing this. > > ./poky-glibc-x86_64-core-image-sato-sdk-core2-32-qemux86-toolchain-3.1.2= .sh > > Poky (Yocto Project Reference Distro) SDK installer version 3.1.2 > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > Enter target directory for SDK (default: /opt/poky/3.1.2):=20 > /home/vijay/build/test3 > > You are about to install the SDK to "/home/vijay/build/test3". Proceed= =20 > [Y/n]? Y > > Extracting=20 > SDK.....................................................................= ...........................................................................= ...........................................................................= ..............................................done > > Setting it up...Traceback (most recent call last): > > =A0 File "/home/vijay/build/test3/relocate_sdk.py", line 244, in > > =A0=A0=A0 change_dl_sysdirs(e) > > =A0 File "/home/vijay/build/test3/relocate_sdk.py", line 118, in=20 > change_dl_sysdirs > > =A0=A0=A0 sh_offset, sh_size =3D struct.unpack("<24xQQ24x", sh_hdr) > > struct.error: unpack requires a string argument of length 64 > > SDK could not be set up. Relocate script failed. Abort! > > Thanks & Regards, > > Vijay > > ::DISCLAIMER:: > ------------------------------------------------------------------------ > The contents of this e-mail and any attachment(s) are confidential and= =20 > intended for the named recipient(s) only. E-mail transmission is not=20 > guaranteed to be secure or error-free as information could be=20 > intercepted, corrupted, lost, destroyed, arrive late or incomplete, or= =20 > may contain viruses in transmission. The e mail and its contents (with= =20 > or without referred errors) shall therefore not attach any liability=20 > on the originator or HCL or its affiliates. Views or opinions, if any,= =20 > presented in this email are solely those of the author and may not=20 > necessarily reflect the views or opinions of HCL or its affiliates.=20 > Any form of reproduction, dissemination, copying, disclosure,=20 > modification, distribution and / or publication of this message=20 > without the prior written consent of authorized representative of HCL=20 > is strictly prohibited. If you have received this email in error=20 > please delete it and notify the sender immediately. Before opening any= =20 > email and/or attachments, please check them for viruses and other defect= s. > ------------------------------------------------------------------------ > >=20 > --=20 # Randy MacLeod # Wind River Linux --------------1D499058D14C852D98117CEA Content-Type: text/html; charset="windows-1252" Content-Transfer-Encoding: quoted-printable
Hi Vijay,

I have redirected this thread to the main yocto list.
The yocto-builds list is for automated build outputs
rather than discussions.


What distro are you using?
What version of python3 is provided by that distro?
On Ubu-20.04, fyi:
$ grep python3 /.../oe-core.git/scripts/relocate_sdk.py
#!/usr/bin/env python3
$ python3 --version
Python 3.8.2

../Randy

On 2020-09-17 9:49 a.m., Ansurivijay Ramana wrote:

Classificati= on: HCL Internal

Hi ,

=A0

I have added my layer and builded the SDK in yocto 3.1.2 but relocate_sdk.py is failing when installing.

=A0

Please help me in fixing this.

=A0

./poky-glibc-x86_64-core-image-sato-sdk-cor= e2-32-qemux86-toolchain-3.1.2.sh

Poky (Yocto Project Reference Distro) SDK installer version 3.1.2

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D

Enter target directory for SDK (default: /opt/poky/3.1.2): /home/vijay/build/test3

You are about to install the SDK to "/home/vijay/build/test3". Proceed [Y/n]? Y

Extracting SDK.......................................................................= ...........................................................................= ...........................................................................= ............................................done

Setting it up...Traceback (most recent call last):

=A0 File "/home/vijay/build/test3/relocate_sdk.py", line 244, in <module>

=A0=A0=A0 change_dl_sysdirs(e)

=A0 File "/home/vijay/build/test3/relocate_sdk.py", line 118, in change_dl_sysdirs

=A0=A0=A0 sh_offset, sh_size =3D struct.unpack("<24xQQ24x", sh_hdr)

struct.error: unpack requires a string argument of length 64

SDK could not be set up. Relocate script failed. Abort!

=A0

Thanks & Regards,

Vijay

::DISCLAIMER::

The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. E-mail transmission is not guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or may contain viruses in transmission. The e mail and its contents (with or without referred errors) shall therefore not attach any liability on the originator or HCL or its affiliates. Views or opinions, if any, presented in this email are solely those of the author and may not necessarily reflect the views or opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of authorized representative of HCL is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. Before opening any email and/or attachments, please check them for viruses and other defects.





--=20
# Randy MacLeod
# Wind River Linux
--------------1D499058D14C852D98117CEA--