chakra-core / ChakraCore

ChakraCore is an open source Javascript engine with a C API.
MIT License
9.06k stars 1.19k forks source link

Windows Compilation fails due to invalid identifier PCFG_CALL_TARGET_INFO #6968

Open ravideep1651 opened 5 months ago

ravideep1651 commented 5 months ago

Followed Below Steps:

git clone https://github.com/chakra-core/ChakraCore.git cd ChakraCore msbuild /m /p:Platform=x86 /p:Configuration=Release .\Build\Chakra.Core.sln

Getting below errors -

  "C:\Test\ChakraCore\Build\Chakra.Core.sln" (default target) (1) ->
   "C:\Test\ChakraCore\Build\..\bin\GCStress\GCStress.vcxproj.metaproj" (default target) (22) ->
   "C:\Test\ChakraCore\bin\GCStress\GCStress.vcxproj" (default target) (28) ->
   "C:\Test\ChakraCore\lib\Runtime\PlatformAgnostic\Chakra.Runtime.PlatformAgnostic.vcxproj" (default target) (40) ->
     c:\test\chakracore\lib\common\Core/GlobalSecurityPolicy.h(17): error C2061: syntax error: identifier 'PCFG_CALL_TARGET_INFO' [C:\Test\ChakraCore
   \lib\Runtime\PlatformAgnostic\Chakra.Runtime.PlatformAgnostic.vcxproj]

   "C:\Test\ChakraCore\Build\Chakra.Core.sln" (default target) (1) ->
   "C:\Test\ChakraCore\Build\..\lib\Jsrt\Chakra.Jsrt.vcxproj.metaproj" (default target) (13) ->
   "C:\Test\ChakraCore\lib\Jsrt\Chakra.Jsrt.vcxproj" (default target) (41) ->
     c:\test\chakracore\lib\common\Core/GlobalSecurityPolicy.h(17): error C2061: syntax error: identifier 'PCFG_CALL_TARGET_INFO' [C:\Test\ChakraCore
   \lib\Jsrt\Chakra.Jsrt.vcxproj]

   "C:\Test\ChakraCore\Build\Chakra.Core.sln" (default target) (1) ->
   "C:\Test\ChakraCore\Build\..\lib\Runtime\Math\Chakra.Runtime.Math.vcxproj.metaproj" (default target) (15) ->
   "C:\Test\ChakraCore\lib\Runtime\Math\Chakra.Runtime.Math.vcxproj" (default target) (43) ->
     c:\test\chakracore\lib\common\Core/GlobalSecurityPolicy.h(17): error C2061: syntax error: identifier 'PCFG_CALL_TARGET_INFO' [C:\Test\ChakraCore
   \lib\Runtime\Math\Chakra.Runtime.Math.vcxproj]

   "C:\Test\ChakraCore\Build\Chakra.Core.sln" (default target) (1) ->
   "C:\Test\ChakraCore\Build\..\lib\Runtime\Base\Chakra.Runtime.Base.vcxproj.metaproj" (default target) (17) ->
   "C:\Test\ChakraCore\lib\Runtime\Base\Chakra.Runtime.Base.vcxproj" (default target) (44) ->
     c:\test\chakracore\lib\common\Core/GlobalSecurityPolicy.h(17): error C2061: syntax error: identifier 'PCFG_CALL_TARGET_INFO' [C:\Test\ChakraCore
   \lib\Runtime\Base\Chakra.Runtime.Base.vcxproj]

   "C:\Test\ChakraCore\Build\Chakra.Core.sln" (default target) (1) ->
   "C:\Test\ChakraCore\Build\..\lib\Jsrt\Core\Chakra.Jsrt.Core.vcxproj.metaproj" (default target) (14) ->
   "C:\Test\ChakraCore\lib\Jsrt\Core\Chakra.Jsrt.Core.vcxproj" (default target) (42) ->
     c:\test\chakracore\lib\common\Core/GlobalSecurityPolicy.h(17): error C2061: syntax error: identifier 'PCFG_CALL_TARGET_INFO' [C:\Test\ChakraCore
   \lib\Jsrt\Core\Chakra.Jsrt.Core.vcxproj]
     c:\test\chakracore\lib\common\Core/GlobalSecurityPolicy.h(17): error C2061: syntax error: identifier 'PCFG_CALL_TARGET_INFO' [C:\Test\ChakraCore
   \lib\Jsrt\Core\Chakra.Jsrt.Core.vcxproj]

0 Warning(s)
19 Error(s)
rhuanjl commented 2 months ago

What version of Windows are you trying to build on?