[yocto] Error while buildng SGX

Khem Raj raj.khem at gmail.com
Mon May 2 08:45:58 PDT 2016


> On May 1, 2016, at 10:44 PM, Harinath maddelal <Harinath.maddela at inedasystems.com> wrote:
> 
> Hi
> 
>> The same builds fine when i use my local gcc of version 4.8.3.
> 
> By this i mean we are using our local copy of mips toolchain(mips-linux-gnu-gcc-4.8.3)
> 
> So i have used poky mips toolchain to build the entire poky(except SGX).
> SGX is built with our local copy of mips toolchain (as it was giving the build errors when built with poky mips toolchain, log file attached for reference)

SGX build system is probably hardcoding CC/CXX variables and not letting environment to override it. When you build with poky, its important
that CC and CXX variables are effective in the components make system.

> 
> Is there any way to build the complete poky using local mips toolchain rather than using the poky mips toolchain? I just want to know how to use our local toolchain setup to build entire poky.

you should look into external toolchain recipes, Some samples like sourcery toolchain and Linaro toolchain are available as samples.
I for one would advise to not go this route. Since you are not able to take advantage of integration that YP had done using internal
toolchain.

> 
> Kindly help me in this regard
> 
> Thanks and Regards,
> Harinath
> 
> 
> ________________________________________
> From: Khem Raj <raj.khem at gmail.com>
> Sent: Saturday, April 30, 2016 7:41:40 AM
> To: Harinath maddelal
> Cc: yocto at yoctoproject.org
> Subject: Re: [yocto] Error while buildng SGX
> 
> On Thu, Apr 28, 2016 at 6:34 AM, Harinath maddelal
> <Harinath.maddela at inedasystems.com> wrote:
>> Hi all,
>> 
>> 
>> When i build sgx using yocto, im getting following errors.
>> 
>> The same builds fine when i use my local gcc of version 4.8.3.
>> 
>> 
>> I have used 1.8.1 Yocto its using 4.9.2 gcc.
>> 
>> 
>> Can you please help me resolve the issue. Thanks in advance
>> 
>> 
>> Following is the console build error log
> 
> Please provide compiler cmdline for the failing compile, most probably
> its due to messed up -isystem
> on cmdline
> 
> ______________________________________________________________________
> This email has been scanned by the Symantec Email Security.cloud service.
> For more information please visit http://www.symanteccloud.com
> ______________________________________________________________________
> <log.do_compile>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 204 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20160502/b6b841f8/attachment.pgp>


More information about the yocto mailing list