public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* Build error in StdLib with VS 2015 compiler
@ 2017-10-31  9:48 Karunakar P
  2017-11-02  3:26 ` Karunakar P
  0 siblings, 1 reply; 9+ messages in thread
From: Karunakar P @ 2017-10-31  9:48 UTC (permalink / raw)
  To: 'edk2-devel@lists.01.org'
  Cc: 'Wu, Jiaxin', 'Fu, Siyuan', 'Ye, Ting'

Hello All,

Facing an build error with Stdlib module when built with VS 2015 compiler.

e:\test\StdLib\Include\sys/EfiCdefs.h(357): error C2220: warning treated as error - no 'object' file generated
e:\test\StdLib\Include\sys/EfiCdefs.h(357): warning C4117: macro name '__STDC_HOSTED__' is reserved, '#define' ignored

below change resolving this error. Would you please review and provide comments.

#ifndef __STDC_HOSTED__
#define __STDC_HOSTED__ 1
#endif


Thank You,
Karunakar


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Build error in StdLib with VS 2015 compiler
  2017-10-31  9:48 Build error in StdLib with VS 2015 compiler Karunakar P
@ 2017-11-02  3:26 ` Karunakar P
  2017-11-02  3:29   ` Tim Lewis
  0 siblings, 1 reply; 9+ messages in thread
From: Karunakar P @ 2017-11-02  3:26 UTC (permalink / raw)
  To: 'edk2-devel@lists.01.org'
  Cc: 'Wu, Jiaxin', 'Fu, Siyuan', 'Ye, Ting'

Any comment on this?

From: Karunakar P
Sent: Tuesday, October 31, 2017 3:18 PM
To: 'edk2-devel@lists.01.org'
Cc: 'Wu, Jiaxin'; 'Fu, Siyuan'; 'Ye, Ting'
Subject: Build error in StdLib with VS 2015 compiler

Hello All,

Facing an build error with Stdlib module when built with VS 2015 compiler.

e:\test\StdLib\Include\sys/EfiCdefs.h(357): error C2220: warning treated as error - no 'object' file generated
e:\test\StdLib\Include\sys/EfiCdefs.h(357): warning C4117: macro name '__STDC_HOSTED__' is reserved, '#define' ignored

below change resolving this error. Would you please review and provide comments.

#ifndef __STDC_HOSTED__
#define __STDC_HOSTED__ 1
#endif


Thank You,
Karunakar


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Build error in StdLib with VS 2015 compiler
  2017-11-02  3:26 ` Karunakar P
@ 2017-11-02  3:29   ` Tim Lewis
  2017-11-02 12:32     ` Karunakar P
  0 siblings, 1 reply; 9+ messages in thread
From: Tim Lewis @ 2017-11-02  3:29 UTC (permalink / raw)
  To: 'Karunakar P', edk2-devel
  Cc: 'Ye, Ting', 'Fu, Siyuan', 'Wu, Jiaxin'

Are you building C++ (.cpp)? Tim

-----Original Message-----
From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of
Karunakar P
Sent: Wednesday, November 1, 2017 8:27 PM
To: 'edk2-devel@lists.01.org' <edk2-devel@lists.01.org>
Cc: 'Ye, Ting' <ting.ye@intel.com>; 'Fu, Siyuan' <siyuan.fu@intel.com>; 'Wu,
Jiaxin' <jiaxin.wu@intel.com>
Subject: Re: [edk2] Build error in StdLib with VS 2015 compiler

Any comment on this?

From: Karunakar P
Sent: Tuesday, October 31, 2017 3:18 PM
To: 'edk2-devel@lists.01.org'
Cc: 'Wu, Jiaxin'; 'Fu, Siyuan'; 'Ye, Ting'
Subject: Build error in StdLib with VS 2015 compiler

Hello All,

Facing an build error with Stdlib module when built with VS 2015 compiler.

e:\test\StdLib\Include\sys/EfiCdefs.h(357): error C2220: warning treated as
error - no 'object' file generated
e:\test\StdLib\Include\sys/EfiCdefs.h(357): warning C4117: macro name
'__STDC_HOSTED__' is reserved, '#define' ignored

below change resolving this error. Would you please review and provide
comments.

#ifndef __STDC_HOSTED__
#define __STDC_HOSTED__ 1
#endif


Thank You,
Karunakar
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Build error in StdLib with VS 2015 compiler
  2017-11-02  3:29   ` Tim Lewis
@ 2017-11-02 12:32     ` Karunakar P
  2017-11-02 14:02       ` Gao, Liming
  0 siblings, 1 reply; 9+ messages in thread
From: Karunakar P @ 2017-11-02 12:32 UTC (permalink / raw)
  To: 'Tim Lewis', edk2-devel@lists.01.org
  Cc: 'Ye, Ting', 'Fu, Siyuan', 'Wu, Jiaxin'

It is C only.

-Karunakar

-----Original Message-----
From: Tim Lewis [mailto:tim.lewis@insyde.com] 
Sent: Thursday, November 02, 2017 8:59 AM
To: Karunakar P; edk2-devel@lists.01.org
Cc: 'Ye, Ting'; 'Fu, Siyuan'; 'Wu, Jiaxin'
Subject: RE: [edk2] Build error in StdLib with VS 2015 compiler

Are you building C++ (.cpp)? Tim

-----Original Message-----
From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Karunakar P
Sent: Wednesday, November 1, 2017 8:27 PM
To: 'edk2-devel@lists.01.org' <edk2-devel@lists.01.org>
Cc: 'Ye, Ting' <ting.ye@intel.com>; 'Fu, Siyuan' <siyuan.fu@intel.com>; 'Wu, Jiaxin' <jiaxin.wu@intel.com>
Subject: Re: [edk2] Build error in StdLib with VS 2015 compiler

Any comment on this?

From: Karunakar P
Sent: Tuesday, October 31, 2017 3:18 PM
To: 'edk2-devel@lists.01.org'
Cc: 'Wu, Jiaxin'; 'Fu, Siyuan'; 'Ye, Ting'
Subject: Build error in StdLib with VS 2015 compiler

Hello All,

Facing an build error with Stdlib module when built with VS 2015 compiler.

e:\test\StdLib\Include\sys/EfiCdefs.h(357): error C2220: warning treated as error - no 'object' file generated
e:\test\StdLib\Include\sys/EfiCdefs.h(357): warning C4117: macro name '__STDC_HOSTED__' is reserved, '#define' ignored

below change resolving this error. Would you please review and provide comments.

#ifndef __STDC_HOSTED__
#define __STDC_HOSTED__ 1
#endif


Thank You,
Karunakar
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Build error in StdLib with VS 2015 compiler
  2017-11-02 12:32     ` Karunakar P
@ 2017-11-02 14:02       ` Gao, Liming
  2017-11-02 14:46         ` Karunakar P
  0 siblings, 1 reply; 9+ messages in thread
From: Gao, Liming @ 2017-11-02 14:02 UTC (permalink / raw)
  To: Karunakar P, 'Tim Lewis', edk2-devel@lists.01.org
  Cc: Ye, Ting, Fu, Siyuan, Wu, Jiaxin

Could you remove them, and build again?

> -----Original Message-----
> From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Karunakar P
> Sent: Thursday, November 2, 2017 8:32 PM
> To: 'Tim Lewis' <tim.lewis@insyde.com>; edk2-devel@lists.01.org
> Cc: Ye, Ting <ting.ye@intel.com>; Fu, Siyuan <siyuan.fu@intel.com>; Wu, Jiaxin <jiaxin.wu@intel.com>
> Subject: Re: [edk2] Build error in StdLib with VS 2015 compiler
> 
> It is C only.
> 
> -Karunakar
> 
> -----Original Message-----
> From: Tim Lewis [mailto:tim.lewis@insyde.com]
> Sent: Thursday, November 02, 2017 8:59 AM
> To: Karunakar P; edk2-devel@lists.01.org
> Cc: 'Ye, Ting'; 'Fu, Siyuan'; 'Wu, Jiaxin'
> Subject: RE: [edk2] Build error in StdLib with VS 2015 compiler
> 
> Are you building C++ (.cpp)? Tim
> 
> -----Original Message-----
> From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Karunakar P
> Sent: Wednesday, November 1, 2017 8:27 PM
> To: 'edk2-devel@lists.01.org' <edk2-devel@lists.01.org>
> Cc: 'Ye, Ting' <ting.ye@intel.com>; 'Fu, Siyuan' <siyuan.fu@intel.com>; 'Wu, Jiaxin' <jiaxin.wu@intel.com>
> Subject: Re: [edk2] Build error in StdLib with VS 2015 compiler
> 
> Any comment on this?
> 
> From: Karunakar P
> Sent: Tuesday, October 31, 2017 3:18 PM
> To: 'edk2-devel@lists.01.org'
> Cc: 'Wu, Jiaxin'; 'Fu, Siyuan'; 'Ye, Ting'
> Subject: Build error in StdLib with VS 2015 compiler
> 
> Hello All,
> 
> Facing an build error with Stdlib module when built with VS 2015 compiler.
> 
> e:\test\StdLib\Include\sys/EfiCdefs.h(357): error C2220: warning treated as error - no 'object' file generated
> e:\test\StdLib\Include\sys/EfiCdefs.h(357): warning C4117: macro name '__STDC_HOSTED__' is reserved, '#define' ignored
> 
> below change resolving this error. Would you please review and provide comments.
> 
> #ifndef __STDC_HOSTED__
> #define __STDC_HOSTED__ 1
> #endif
> 
> 
> Thank You,
> Karunakar
> _______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.01.org
> https://lists.01.org/mailman/listinfo/edk2-devel
> 
> _______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.01.org
> https://lists.01.org/mailman/listinfo/edk2-devel


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Build error in StdLib with VS 2015 compiler
  2017-11-02 14:02       ` Gao, Liming
@ 2017-11-02 14:46         ` Karunakar P
  2017-11-06  9:32           ` Karunakar P
  0 siblings, 1 reply; 9+ messages in thread
From: Karunakar P @ 2017-11-02 14:46 UTC (permalink / raw)
  To: 'Gao, Liming', 'Tim Lewis',
	edk2-devel@lists.01.org
  Cc: Ye, Ting, Fu, Siyuan, Wu, Jiaxin

Then it works fine.
But the problem is it may miss the backward compatibility with other compilers.

I guess better to define as mentioned previously.

Thank You,
Karunakar

-----Original Message-----
From: Gao, Liming [mailto:liming.gao@intel.com] 
Sent: Thursday, November 02, 2017 7:33 PM
To: Karunakar P; 'Tim Lewis'; edk2-devel@lists.01.org
Cc: Ye, Ting; Fu, Siyuan; Wu, Jiaxin
Subject: RE: [edk2] Build error in StdLib with VS 2015 compiler

Could you remove them, and build again?

> -----Original Message-----
> From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Karunakar P
> Sent: Thursday, November 2, 2017 8:32 PM
> To: 'Tim Lewis' <tim.lewis@insyde.com>; edk2-devel@lists.01.org
> Cc: Ye, Ting <ting.ye@intel.com>; Fu, Siyuan <siyuan.fu@intel.com>; Wu, Jiaxin <jiaxin.wu@intel.com>
> Subject: Re: [edk2] Build error in StdLib with VS 2015 compiler
> 
> It is C only.
> 
> -Karunakar
> 
> -----Original Message-----
> From: Tim Lewis [mailto:tim.lewis@insyde.com]
> Sent: Thursday, November 02, 2017 8:59 AM
> To: Karunakar P; edk2-devel@lists.01.org
> Cc: 'Ye, Ting'; 'Fu, Siyuan'; 'Wu, Jiaxin'
> Subject: RE: [edk2] Build error in StdLib with VS 2015 compiler
> 
> Are you building C++ (.cpp)? Tim
> 
> -----Original Message-----
> From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Karunakar P
> Sent: Wednesday, November 1, 2017 8:27 PM
> To: 'edk2-devel@lists.01.org' <edk2-devel@lists.01.org>
> Cc: 'Ye, Ting' <ting.ye@intel.com>; 'Fu, Siyuan' <siyuan.fu@intel.com>; 'Wu, Jiaxin' <jiaxin.wu@intel.com>
> Subject: Re: [edk2] Build error in StdLib with VS 2015 compiler
> 
> Any comment on this?
> 
> From: Karunakar P
> Sent: Tuesday, October 31, 2017 3:18 PM
> To: 'edk2-devel@lists.01.org'
> Cc: 'Wu, Jiaxin'; 'Fu, Siyuan'; 'Ye, Ting'
> Subject: Build error in StdLib with VS 2015 compiler
> 
> Hello All,
> 
> Facing an build error with Stdlib module when built with VS 2015 compiler.
> 
> e:\test\StdLib\Include\sys/EfiCdefs.h(357): error C2220: warning treated as error - no 'object' file generated
> e:\test\StdLib\Include\sys/EfiCdefs.h(357): warning C4117: macro name '__STDC_HOSTED__' is reserved, '#define' ignored
> 
> below change resolving this error. Would you please review and provide comments.
> 
> #ifndef __STDC_HOSTED__
> #define __STDC_HOSTED__ 1
> #endif
> 
> 
> Thank You,
> Karunakar
> _______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.01.org
> https://lists.01.org/mailman/listinfo/edk2-devel
> 
> _______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.01.org
> https://lists.01.org/mailman/listinfo/edk2-devel


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Build error in StdLib with VS 2015 compiler
  2017-11-02 14:46         ` Karunakar P
@ 2017-11-06  9:32           ` Karunakar P
  2017-11-06 13:28             ` Gao, Liming
  0 siblings, 1 reply; 9+ messages in thread
From: Karunakar P @ 2017-11-06  9:32 UTC (permalink / raw)
  To: 'Gao, Liming', 'Tim Lewis',
	'edk2-devel@lists.01.org'
  Cc: 'Ye, Ting', 'Fu, Siyuan', 'Wu, Jiaxin'

What do you say...


Thanks,
Karunakar

-----Original Message-----
From: Karunakar P 
Sent: Thursday, November 02, 2017 8:17 PM
To: 'Gao, Liming'; 'Tim Lewis'; edk2-devel@lists.01.org
Cc: Ye, Ting; Fu, Siyuan; Wu, Jiaxin
Subject: RE: [edk2] Build error in StdLib with VS 2015 compiler

Then it works fine.
But the problem is it may miss the backward compatibility with other compilers.

I guess better to define as mentioned previously.

Thank You,
Karunakar

-----Original Message-----
From: Gao, Liming [mailto:liming.gao@intel.com] 
Sent: Thursday, November 02, 2017 7:33 PM
To: Karunakar P; 'Tim Lewis'; edk2-devel@lists.01.org
Cc: Ye, Ting; Fu, Siyuan; Wu, Jiaxin
Subject: RE: [edk2] Build error in StdLib with VS 2015 compiler

Could you remove them, and build again?

> -----Original Message-----
> From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Karunakar P
> Sent: Thursday, November 2, 2017 8:32 PM
> To: 'Tim Lewis' <tim.lewis@insyde.com>; edk2-devel@lists.01.org
> Cc: Ye, Ting <ting.ye@intel.com>; Fu, Siyuan <siyuan.fu@intel.com>; Wu, Jiaxin <jiaxin.wu@intel.com>
> Subject: Re: [edk2] Build error in StdLib with VS 2015 compiler
> 
> It is C only.
> 
> -Karunakar
> 
> -----Original Message-----
> From: Tim Lewis [mailto:tim.lewis@insyde.com]
> Sent: Thursday, November 02, 2017 8:59 AM
> To: Karunakar P; edk2-devel@lists.01.org
> Cc: 'Ye, Ting'; 'Fu, Siyuan'; 'Wu, Jiaxin'
> Subject: RE: [edk2] Build error in StdLib with VS 2015 compiler
> 
> Are you building C++ (.cpp)? Tim
> 
> -----Original Message-----
> From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Karunakar P
> Sent: Wednesday, November 1, 2017 8:27 PM
> To: 'edk2-devel@lists.01.org' <edk2-devel@lists.01.org>
> Cc: 'Ye, Ting' <ting.ye@intel.com>; 'Fu, Siyuan' <siyuan.fu@intel.com>; 'Wu, Jiaxin' <jiaxin.wu@intel.com>
> Subject: Re: [edk2] Build error in StdLib with VS 2015 compiler
> 
> Any comment on this?
> 
> From: Karunakar P
> Sent: Tuesday, October 31, 2017 3:18 PM
> To: 'edk2-devel@lists.01.org'
> Cc: 'Wu, Jiaxin'; 'Fu, Siyuan'; 'Ye, Ting'
> Subject: Build error in StdLib with VS 2015 compiler
> 
> Hello All,
> 
> Facing an build error with Stdlib module when built with VS 2015 compiler.
> 
> e:\test\StdLib\Include\sys/EfiCdefs.h(357): error C2220: warning treated as error - no 'object' file generated
> e:\test\StdLib\Include\sys/EfiCdefs.h(357): warning C4117: macro name '__STDC_HOSTED__' is reserved, '#define' ignored
> 
> below change resolving this error. Would you please review and provide comments.
> 
> #ifndef __STDC_HOSTED__
> #define __STDC_HOSTED__ 1
> #endif
> 
> 
> Thank You,
> Karunakar
> _______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.01.org
> https://lists.01.org/mailman/listinfo/edk2-devel
> 
> _______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.01.org
> https://lists.01.org/mailman/listinfo/edk2-devel


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Build error in StdLib with VS 2015 compiler
  2017-11-06  9:32           ` Karunakar P
@ 2017-11-06 13:28             ` Gao, Liming
  2017-11-07 10:56               ` Karunakar P
  0 siblings, 1 reply; 9+ messages in thread
From: Gao, Liming @ 2017-11-06 13:28 UTC (permalink / raw)
  To: Karunakar P, 'Tim Lewis',
	'edk2-devel@lists.01.org'
  Cc: Ye, Ting, Fu, Siyuan, Wu, Jiaxin

For VS2015, don't define it. The change is like below. 

#ifndef __STDC_HOSTED__
#if !defined(_MSC_VER) || _MSC_VER != 1900
#define __STDC_HOSTED__ 1
#endif
#endif

> -----Original Message-----
> From: Karunakar P [mailto:karunakarp@amiindia.co.in]
> Sent: Monday, November 6, 2017 5:32 PM
> To: Gao, Liming <liming.gao@intel.com>; 'Tim Lewis' <tim.lewis@insyde.com>; 'edk2-devel@lists.01.org' <edk2-devel@lists.01.org>
> Cc: Ye, Ting <ting.ye@intel.com>; Fu, Siyuan <siyuan.fu@intel.com>; Wu, Jiaxin <jiaxin.wu@intel.com>
> Subject: RE: [edk2] Build error in StdLib with VS 2015 compiler
> 
> What do you say...
> 
> 
> Thanks,
> Karunakar
> 
> -----Original Message-----
> From: Karunakar P
> Sent: Thursday, November 02, 2017 8:17 PM
> To: 'Gao, Liming'; 'Tim Lewis'; edk2-devel@lists.01.org
> Cc: Ye, Ting; Fu, Siyuan; Wu, Jiaxin
> Subject: RE: [edk2] Build error in StdLib with VS 2015 compiler
> 
> Then it works fine.
> But the problem is it may miss the backward compatibility with other compilers.
> 
> I guess better to define as mentioned previously.
> 
> Thank You,
> Karunakar
> 
> -----Original Message-----
> From: Gao, Liming [mailto:liming.gao@intel.com]
> Sent: Thursday, November 02, 2017 7:33 PM
> To: Karunakar P; 'Tim Lewis'; edk2-devel@lists.01.org
> Cc: Ye, Ting; Fu, Siyuan; Wu, Jiaxin
> Subject: RE: [edk2] Build error in StdLib with VS 2015 compiler
> 
> Could you remove them, and build again?
> 
> > -----Original Message-----
> > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Karunakar P
> > Sent: Thursday, November 2, 2017 8:32 PM
> > To: 'Tim Lewis' <tim.lewis@insyde.com>; edk2-devel@lists.01.org
> > Cc: Ye, Ting <ting.ye@intel.com>; Fu, Siyuan <siyuan.fu@intel.com>; Wu, Jiaxin <jiaxin.wu@intel.com>
> > Subject: Re: [edk2] Build error in StdLib with VS 2015 compiler
> >
> > It is C only.
> >
> > -Karunakar
> >
> > -----Original Message-----
> > From: Tim Lewis [mailto:tim.lewis@insyde.com]
> > Sent: Thursday, November 02, 2017 8:59 AM
> > To: Karunakar P; edk2-devel@lists.01.org
> > Cc: 'Ye, Ting'; 'Fu, Siyuan'; 'Wu, Jiaxin'
> > Subject: RE: [edk2] Build error in StdLib with VS 2015 compiler
> >
> > Are you building C++ (.cpp)? Tim
> >
> > -----Original Message-----
> > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Karunakar P
> > Sent: Wednesday, November 1, 2017 8:27 PM
> > To: 'edk2-devel@lists.01.org' <edk2-devel@lists.01.org>
> > Cc: 'Ye, Ting' <ting.ye@intel.com>; 'Fu, Siyuan' <siyuan.fu@intel.com>; 'Wu, Jiaxin' <jiaxin.wu@intel.com>
> > Subject: Re: [edk2] Build error in StdLib with VS 2015 compiler
> >
> > Any comment on this?
> >
> > From: Karunakar P
> > Sent: Tuesday, October 31, 2017 3:18 PM
> > To: 'edk2-devel@lists.01.org'
> > Cc: 'Wu, Jiaxin'; 'Fu, Siyuan'; 'Ye, Ting'
> > Subject: Build error in StdLib with VS 2015 compiler
> >
> > Hello All,
> >
> > Facing an build error with Stdlib module when built with VS 2015 compiler.
> >
> > e:\test\StdLib\Include\sys/EfiCdefs.h(357): error C2220: warning treated as error - no 'object' file generated
> > e:\test\StdLib\Include\sys/EfiCdefs.h(357): warning C4117: macro name '__STDC_HOSTED__' is reserved, '#define' ignored
> >
> > below change resolving this error. Would you please review and provide comments.
> >
> > #ifndef __STDC_HOSTED__
> > #define __STDC_HOSTED__ 1
> > #endif
> >
> >
> > Thank You,
> > Karunakar
> > _______________________________________________
> > edk2-devel mailing list
> > edk2-devel@lists.01.org
> > https://lists.01.org/mailman/listinfo/edk2-devel
> >
> > _______________________________________________
> > edk2-devel mailing list
> > edk2-devel@lists.01.org
> > https://lists.01.org/mailman/listinfo/edk2-devel


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Build error in StdLib with VS 2015 compiler
  2017-11-06 13:28             ` Gao, Liming
@ 2017-11-07 10:56               ` Karunakar P
  0 siblings, 0 replies; 9+ messages in thread
From: Karunakar P @ 2017-11-07 10:56 UTC (permalink / raw)
  To: 'Gao, Liming', 'Tim Lewis',
	'edk2-devel@lists.01.org'
  Cc: Ye, Ting, Fu, Siyuan, Wu, Jiaxin

It works Fine.
Are you going to check in this changes, could you please let us know the plan?

-----Original Message-----
From: Gao, Liming [mailto:liming.gao@intel.com] 
Sent: Monday, November 06, 2017 6:59 PM
To: Karunakar P; 'Tim Lewis'; 'edk2-devel@lists.01.org'
Cc: Ye, Ting; Fu, Siyuan; Wu, Jiaxin
Subject: RE: [edk2] Build error in StdLib with VS 2015 compiler

For VS2015, don't define it. The change is like below. 

#ifndef __STDC_HOSTED__
#if !defined(_MSC_VER) || _MSC_VER != 1900 #define __STDC_HOSTED__ 1 #endif #endif

> -----Original Message-----
> From: Karunakar P [mailto:karunakarp@amiindia.co.in]
> Sent: Monday, November 6, 2017 5:32 PM
> To: Gao, Liming <liming.gao@intel.com>; 'Tim Lewis' 
> <tim.lewis@insyde.com>; 'edk2-devel@lists.01.org' 
> <edk2-devel@lists.01.org>
> Cc: Ye, Ting <ting.ye@intel.com>; Fu, Siyuan <siyuan.fu@intel.com>; 
> Wu, Jiaxin <jiaxin.wu@intel.com>
> Subject: RE: [edk2] Build error in StdLib with VS 2015 compiler
> 
> What do you say...
> 
> 
> Thanks,
> Karunakar
> 
> -----Original Message-----
> From: Karunakar P
> Sent: Thursday, November 02, 2017 8:17 PM
> To: 'Gao, Liming'; 'Tim Lewis'; edk2-devel@lists.01.org
> Cc: Ye, Ting; Fu, Siyuan; Wu, Jiaxin
> Subject: RE: [edk2] Build error in StdLib with VS 2015 compiler
> 
> Then it works fine.
> But the problem is it may miss the backward compatibility with other compilers.
> 
> I guess better to define as mentioned previously.
> 
> Thank You,
> Karunakar
> 
> -----Original Message-----
> From: Gao, Liming [mailto:liming.gao@intel.com]
> Sent: Thursday, November 02, 2017 7:33 PM
> To: Karunakar P; 'Tim Lewis'; edk2-devel@lists.01.org
> Cc: Ye, Ting; Fu, Siyuan; Wu, Jiaxin
> Subject: RE: [edk2] Build error in StdLib with VS 2015 compiler
> 
> Could you remove them, and build again?
> 
> > -----Original Message-----
> > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf 
> > Of Karunakar P
> > Sent: Thursday, November 2, 2017 8:32 PM
> > To: 'Tim Lewis' <tim.lewis@insyde.com>; edk2-devel@lists.01.org
> > Cc: Ye, Ting <ting.ye@intel.com>; Fu, Siyuan <siyuan.fu@intel.com>; 
> > Wu, Jiaxin <jiaxin.wu@intel.com>
> > Subject: Re: [edk2] Build error in StdLib with VS 2015 compiler
> >
> > It is C only.
> >
> > -Karunakar
> >
> > -----Original Message-----
> > From: Tim Lewis [mailto:tim.lewis@insyde.com]
> > Sent: Thursday, November 02, 2017 8:59 AM
> > To: Karunakar P; edk2-devel@lists.01.org
> > Cc: 'Ye, Ting'; 'Fu, Siyuan'; 'Wu, Jiaxin'
> > Subject: RE: [edk2] Build error in StdLib with VS 2015 compiler
> >
> > Are you building C++ (.cpp)? Tim
> >
> > -----Original Message-----
> > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf 
> > Of Karunakar P
> > Sent: Wednesday, November 1, 2017 8:27 PM
> > To: 'edk2-devel@lists.01.org' <edk2-devel@lists.01.org>
> > Cc: 'Ye, Ting' <ting.ye@intel.com>; 'Fu, Siyuan' 
> > <siyuan.fu@intel.com>; 'Wu, Jiaxin' <jiaxin.wu@intel.com>
> > Subject: Re: [edk2] Build error in StdLib with VS 2015 compiler
> >
> > Any comment on this?
> >
> > From: Karunakar P
> > Sent: Tuesday, October 31, 2017 3:18 PM
> > To: 'edk2-devel@lists.01.org'
> > Cc: 'Wu, Jiaxin'; 'Fu, Siyuan'; 'Ye, Ting'
> > Subject: Build error in StdLib with VS 2015 compiler
> >
> > Hello All,
> >
> > Facing an build error with Stdlib module when built with VS 2015 compiler.
> >
> > e:\test\StdLib\Include\sys/EfiCdefs.h(357): error C2220: warning 
> > treated as error - no 'object' file generated
> > e:\test\StdLib\Include\sys/EfiCdefs.h(357): warning C4117: macro 
> > name '__STDC_HOSTED__' is reserved, '#define' ignored
> >
> > below change resolving this error. Would you please review and provide comments.
> >
> > #ifndef __STDC_HOSTED__
> > #define __STDC_HOSTED__ 1
> > #endif
> >
> >
> > Thank You,
> > Karunakar
> > _______________________________________________
> > edk2-devel mailing list
> > edk2-devel@lists.01.org
> > https://lists.01.org/mailman/listinfo/edk2-devel
> >
> > _______________________________________________
> > edk2-devel mailing list
> > edk2-devel@lists.01.org
> > https://lists.01.org/mailman/listinfo/edk2-devel


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2017-11-07 10:53 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-31  9:48 Build error in StdLib with VS 2015 compiler Karunakar P
2017-11-02  3:26 ` Karunakar P
2017-11-02  3:29   ` Tim Lewis
2017-11-02 12:32     ` Karunakar P
2017-11-02 14:02       ` Gao, Liming
2017-11-02 14:46         ` Karunakar P
2017-11-06  9:32           ` Karunakar P
2017-11-06 13:28             ` Gao, Liming
2017-11-07 10:56               ` Karunakar P

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox