From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from arroyo.ext.ti.com (arroyo.ext.ti.com [192.94.94.40]) by arago-project.org (Postfix) with ESMTPS id A7A0252A30 for ; Wed, 24 Jul 2013 18:26:50 +0000 (UTC) Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id r6OIQmTx021577 for ; Wed, 24 Jul 2013 13:26:48 -0500 Received: from DFLE73.ent.ti.com (dfle73.ent.ti.com [128.247.5.110]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id r6OIQmwx016455 for ; Wed, 24 Jul 2013 13:26:48 -0500 Received: from DFLE12.ent.ti.com ([fe80::e9a3:bf19:af96:227b]) by DFLE73.ent.ti.com ([fe80::c9be:a3a9:7cd8:c8b3%28]) with mapi id 14.02.0342.003; Wed, 24 Jul 2013 13:26:48 -0500 From: "Saran, Sajesh Kumar" To: "meta-arago@arago-project.org" Thread-Topic: compiling a native (x86) application using Yocto Thread-Index: Ac6ImMQDGnryB0yHRnSnNiDIqcHy8w== Date: Wed, 24 Jul 2013 18:26:48 +0000 Message-ID: <8EAE6244CE843044A42356038645C8551573CB16@DFLE12.ent.ti.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [157.170.170.90] MIME-Version: 1.0 Subject: compiling a native (x86) application using Yocto X-BeenThere: meta-arago@arago-project.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Arago metadata layer for TI SDKs - OE-Core/Yocto compatible List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Jul 2013 18:26:52 -0000 Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_8EAE6244CE843044A42356038645C8551573CB16DFLE12entticom_" --_000_8EAE6244CE843044A42356038645C8551573CB16DFLE12entticom_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, I am trying to compile a native tool/application using Yocto. I have added BBCLASSEXTEND =3D "native" to the recipe. The compilation goes= thru fine. But, in do_package_qa it is running a strip command using arm-l= inux-gnueabihf-strip, which is failing because the application is compiled = using gcc. Do I have to anything else to fix of this issue? Regards, Sajesh --_000_8EAE6244CE843044A42356038645C8551573CB16DFLE12entticom_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi,

 

I am trying to compile a native tool/application usi= ng Yocto.

 

I have added BBCLASSEXTEND =3D "native" to= the recipe. The compilation goes thru fine. But, in do_package_qa it is ru= nning a strip command using arm-linux-gnueabihf-strip, which is failing bec= ause the application is compiled using gcc. Do I have to anything else to fix of this issue?

 

Regards,

Sajesh

 

--_000_8EAE6244CE843044A42356038645C8551573CB16DFLE12entticom_-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from arroyo.ext.ti.com (arroyo.ext.ti.com [192.94.94.40]) by arago-project.org (Postfix) with ESMTPS id 56A02529D3 for ; Thu, 25 Jul 2013 20:24:52 +0000 (UTC) Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id r6PKOox3003208 for ; Thu, 25 Jul 2013 15:24:50 -0500 Received: from DLEE71.ent.ti.com (dlee71.ent.ti.com [157.170.170.114]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id r6PKOoLR001041 for ; Thu, 25 Jul 2013 15:24:50 -0500 Received: from dlelxv22.itg.ti.com (172.17.1.197) by DLEE71.ent.ti.com (157.170.170.114) with Microsoft SMTP Server id 14.2.342.3; Thu, 25 Jul 2013 15:24:50 -0500 Received: from localhost (gtudedge.gt.design.ti.com [158.218.102.158]) by dlelxv22.itg.ti.com (8.13.8/8.13.8) with ESMTP id r6PKOnYH013787; Thu, 25 Jul 2013 15:24:50 -0500 Date: Thu, 25 Jul 2013 16:24:49 -0400 From: Denys Dmytriyenko To: "Saran, Sajesh Kumar" Message-ID: <20130725202449.GD2222@edge> References: <8EAE6244CE843044A42356038645C8551573CB16@DFLE12.ent.ti.com> MIME-Version: 1.0 In-Reply-To: <8EAE6244CE843044A42356038645C8551573CB16@DFLE12.ent.ti.com> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: "meta-arago@arago-project.org" Subject: Re: compiling a native (x86) application using Yocto X-BeenThere: meta-arago@arago-project.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Arago metadata layer for TI SDKs - OE-Core/Yocto compatible List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Jul 2013 20:24:53 -0000 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline On Wed, Jul 24, 2013 at 06:26:48PM +0000, Saran, Sajesh Kumar wrote: > Hi, > > I am trying to compile a native tool/application using Yocto. > > I have added BBCLASSEXTEND = "native" to the recipe. The compilation goes > thru fine. But, in do_package_qa it is running a strip command using > arm-linux-gnueabihf-strip, which is failing because the application is > compiled using gcc. Do I have to anything else to fix of this issue? Strange, that should be enough... Care to share the recipe? -- Denys From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from devils.ext.ti.com (devils.ext.ti.com [198.47.26.153]) by arago-project.org (Postfix) with ESMTPS id 3A46F529D3 for ; Thu, 25 Jul 2013 20:30:10 +0000 (UTC) Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id r6PKU8Bc008844 for ; Thu, 25 Jul 2013 15:30:08 -0500 Received: from DFLE73.ent.ti.com (dfle73.ent.ti.com [128.247.5.110]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id r6PKU8UV008358 for ; Thu, 25 Jul 2013 15:30:08 -0500 Received: from DFLE12.ent.ti.com ([fe80::e9a3:bf19:af96:227b]) by DFLE73.ent.ti.com ([fe80::c9be:a3a9:7cd8:c8b3%28]) with mapi id 14.02.0342.003; Thu, 25 Jul 2013 15:30:08 -0500 From: "Saran, Sajesh Kumar" To: "Dmytriyenko, Denys" Thread-Topic: [meta-arago] compiling a native (x86) application using Yocto Thread-Index: Ac6ImMQDGnryB0yHRnSnNiDIqcHy8wBBieKAAApUnMA= Date: Thu, 25 Jul 2013 20:30:07 +0000 Message-ID: <8EAE6244CE843044A42356038645C8551573D779@DFLE12.ent.ti.com> References: <8EAE6244CE843044A42356038645C8551573CB16@DFLE12.ent.ti.com> <20130725202449.GD2222@edge> In-Reply-To: <20130725202449.GD2222@edge> Accept-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: x-originating-ip: [157.170.170.90] MIME-Version: 1.0 Cc: "meta-arago@arago-project.org" Subject: Re: compiling a native (x86) application using Yocto X-BeenThere: meta-arago@arago-project.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Arago metadata layer for TI SDKs - OE-Core/Yocto compatible List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Jul 2013 20:30:12 -0000 X-Groupsio-MsgNum: 1698 Content-Language: en-US Content-Type: multipart/mixed; boundary="_002_8EAE6244CE843044A42356038645C8551573D779DFLE12entticom_" --_002_8EAE6244CE843044A42356038645C8551573D779DFLE12entticom_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Recipe is attached with the mail. Regards, Sajesh -----Original Message----- From: Dmytriyenko, Denys=20 Sent: Thursday, July 25, 2013 4:25 PM To: Saran, Sajesh Kumar Cc: meta-arago@arago-project.org Subject: Re: [meta-arago] compiling a native (x86) application using Yocto On Wed, Jul 24, 2013 at 06:26:48PM +0000, Saran, Sajesh Kumar wrote: > Hi, >=20 > I am trying to compile a native tool/application using Yocto. >=20 > I have added BBCLASSEXTEND =3D "native" to the recipe. The compilation=20 > goes thru fine. But, in do_package_qa it is running a strip command=20 > using arm-linux-gnueabihf-strip, which is failing because the=20 > application is compiled using gcc. Do I have to anything else to fix of t= his issue? Strange, that should be enough... Care to share the recipe? -- Denys --_002_8EAE6244CE843044A42356038645C8551573D779DFLE12entticom_ Content-Type: application/octet-stream; name="ti-dspcoreparse-native_git.bb" Content-Description: ti-dspcoreparse-native_git.bb Content-Disposition: attachment; filename="ti-dspcoreparse-native_git.bb"; size=626; creation-date="Thu, 25 Jul 2013 20:29:36 GMT"; modification-date="Wed, 24 Jul 2013 18:15:33 GMT" Content-Transfer-Encoding: base64 REVTQ1JJUFRJT04gPSAiRFNQIGNvcmVkdW1wIHBhcnNlIHV0aWxpdHkiCkxJQ0VOU0UgPSAiQlNE IgojIENPTVBBVElCTEVfTUFDSElORSA9ICJrZXlzdG9uZS1ldm0iCkxJQ19GSUxFU19DSEtTVU0g PSAiZmlsZTovL01ha2VmaWxlO2JlZ2lubGluZT0xO2VuZGxpbmU9MzE7bWQ1PTY3MDEwNjFjYzQz ZDQyYWMyMmE5N2FjYzA3NGNmODIwIgoKUFIgPSAicjYiCklOU0FORV9TS0lQXyR7UE59ID0gIlRy dWUiCkJSQU5DSD0ibWFzdGVyIgpTUkNfVVJJID0gImdpdDovL2FyYWdvLXByb2plY3Qub3JnL2dp dC9wcm9qZWN0cy9tY3Nkay1hcHBzLmdpdDtwcm90b2NvbD1naXQ7YnJhbmNoPSR7QlJBTkNIfSIK UyA9ICIke1dPUktESVJ9L2dpdC9kc3Bjb3JlcGFyc2UiClNSQ1JFViA9ICJERVYuTUNTREstMDMu MDAuMDEuMTIiCgpkb19pbnN0YWxsICgpIHsKIyAgICAgICAgaW5zdGFsbCBERVNURElSPSR7RH0g U0JJTkRJUj0ke3NiaW5kaXJ9IE1BTkRJUj0ke21hbmRpcn0gSU5DTFVERURJUj0ke2luY2x1ZGVk aXJ9CglpbnN0YWxsIC1kICR7RH0ke3NiaW5kaXJ9LwoJaW5zdGFsbCAtYyAtbSA3NTUgJHtTfS9k c3Bjb3JlcGFyc2UgJHtEfSR7c2JpbmRpcn0vCn0KCkJCQ0xBU1NFWFRFTkQgPSAibmF0aXZlIgo= --_002_8EAE6244CE843044A42356038645C8551573D779DFLE12entticom_-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from arroyo.ext.ti.com (arroyo.ext.ti.com [192.94.94.40]) by arago-project.org (Postfix) with ESMTPS id 364CE52A38 for ; Wed, 31 Jul 2013 22:21:59 +0000 (UTC) Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id r6VMLw1R002668 for ; Wed, 31 Jul 2013 17:21:58 -0500 Received: from DFLE73.ent.ti.com (dfle73.ent.ti.com [128.247.5.110]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id r6VMLwGS003342 for ; Wed, 31 Jul 2013 17:21:58 -0500 Received: from dlelxv22.itg.ti.com (172.17.1.197) by DFLE73.ent.ti.com (128.247.5.110) with Microsoft SMTP Server id 14.2.342.3; Wed, 31 Jul 2013 17:21:57 -0500 Received: from localhost (gtudedge.gt.design.ti.com [158.218.102.158]) by dlelxv22.itg.ti.com (8.13.8/8.13.8) with ESMTP id r6VMLvjQ004652; Wed, 31 Jul 2013 17:21:57 -0500 Date: Wed, 31 Jul 2013 18:21:56 -0400 From: Denys Dmytriyenko To: "Saran, Sajesh Kumar" Message-ID: <20130731222156.GB13691@edge> References: <8EAE6244CE843044A42356038645C8551573CB16@DFLE12.ent.ti.com> <20130725202449.GD2222@edge> <8EAE6244CE843044A42356038645C8551573D779@DFLE12.ent.ti.com> MIME-Version: 1.0 In-Reply-To: <8EAE6244CE843044A42356038645C8551573D779@DFLE12.ent.ti.com> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: "meta-arago@arago-project.org" Subject: Re: compiling a native (x86) application using Yocto X-BeenThere: meta-arago@arago-project.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Arago metadata layer for TI SDKs - OE-Core/Yocto compatible List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Jul 2013 22:22:00 -0000 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline Sajesh, It appears your Makefile directly calls native gcc to produce x86 binary. Now, BBCLASSEXTEND allows you to "extend" a regular target recipe that produces an ARM binary to also produce a native x86 binary. Naming your recipe as something-native.bb doesn't change the procedure. So, it first builds and strips an ARM binary and then would have done the same for x86 binary. But since you set GCC=gcc in your Makefile, it chokes on the ARM-stripping step. Now, if you only want a native recipe, instead of BBCLASSEXTEND, you should just do "inherit native" and that class would short-circuit all the target build and strip tasks. -- Denys On Thu, Jul 25, 2013 at 04:30:07PM -0400, Saran, Sajesh Kumar wrote: > Recipe is attached with the mail. > > Regards, > Sajesh > > -----Original Message----- > From: Dmytriyenko, Denys > Sent: Thursday, July 25, 2013 4:25 PM > To: Saran, Sajesh Kumar > Cc: meta-arago@arago-project.org > Subject: Re: [meta-arago] compiling a native (x86) application using Yocto > > On Wed, Jul 24, 2013 at 06:26:48PM +0000, Saran, Sajesh Kumar wrote: > > Hi, > > > > I am trying to compile a native tool/application using Yocto. > > > > I have added BBCLASSEXTEND = "native" to the recipe. The compilation > > goes thru fine. But, in do_package_qa it is running a strip command > > using arm-linux-gnueabihf-strip, which is failing because the > > application is compiled using gcc. Do I have to anything else to fix of this issue? > > Strange, that should be enough... Care to share the recipe? > > -- > Denys