Build issue on VS 2012 and Windows 7 x64

Jul 22, 2013 at 9:32 AM
Hi.

I'm having trouble building ClearScript with V8.
I'm using VS 2012 and Windows 7 x64.
Below is the error I got.

C:\ClearScript-5.3.4>V8Update.cmd
Build mode: Release
V8 revision: Tested (15192, Version 3.19.18)
Creating build directory ...
Downloading V8 ...
Patching V8 ...
Downloading GYP ...
Downloading Python ...
Downloading Cygwin ...
Building 32-bit V8 ...
*** THE PREVIOUS STEP FAILED ***

The build.log got so much error and warning, I delete the duplicated error and warning.

c:\clearscript-5.3.4\clearscript\v8\v8\build\v8-ia32\src\utils.h : error C2220: warning treated as error - no 'object' file generated (....\src\optimizing-compiler-thread.cc) [C:\ClearScript-5.3.4\ClearScript\V8\V8\build\v8-ia32\tools\gyp\v8_base.ia32.vcxproj]
c:\clearscript-5.3.4\clearscript\v8\v8\build\v8-ia32\src\utils.h : warning C4819: The file contains a character that cannot be represented in the current code page (950). Save the file in Unicode format to prevent data loss (....\src\optimizing-compiler-thread.cc) [C:\ClearScript-5.3.4\ClearScript\V8\V8\build\v8-ia32\tools\gyp\v8_base.ia32.vcxproj]
.....
.....
.....
c:\clearscript-5.3.4\clearscript\v8\v8\build\v8-ia32\src\utils.h : error C2220: warning treated as error - no 'object' file generated (....\src\extensions\gc-extension.cc) [C:\ClearScript-5.3.4\ClearScript\V8\V8\build\v8-ia32\tools\gyp\v8_base.ia32.vcxproj]
c:\clearscript-5.3.4\clearscript\v8\v8\build\v8-ia32\src\utils.h : warning C4819: The file contains a character that cannot be represented in the current code page (950). Save the file in Unicode format to prevent data loss (....\src\extensions\gc-extension.cc) [C:\ClearScript-5.3.4\ClearScript\V8\V8\build\v8-ia32\tools\gyp\v8_base.ia32.vcxproj]

Done Building Project "C:\ClearScript-5.3.4\ClearScript\V8\V8\build\v8-ia32\tools\gyp\v8_base.ia32.vcxproj" (default targets) -- FAILED.
Done Building Project "C:\ClearScript-5.3.4\ClearScript\V8\V8\build\v8-ia32\tools\gyp\js2c.vcxproj" (default targets).
Done Building Project "C:\ClearScript-5.3.4\ClearScript\V8\V8\build\v8-ia32\tools\gyp\v8.vcxproj.metaproj" (default targets) -- FAILED.
Done Building Project "C:\ClearScript-5.3.4\ClearScript\V8\V8\build\v8-ia32\tools\gyp\v8.sln" (v8 target(s)) -- FAILED.

Build FAILED.

"C:\ClearScript-5.3.4\ClearScript\V8\V8\build\v8-ia32\tools\gyp\v8.sln" (v8 target) (1) ->
"C:\ClearScript-5.3.4\ClearScript\V8\V8\build\v8-ia32\tools\gyp\v8.vcxproj.metaproj" (default target) (2) ->
"C:\ClearScript-5.3.4\ClearScript\V8\V8\build\v8-ia32\tools\gyp\v8_base.ia32.vcxproj" (default target) (3) ->
(ClCompile target) ->
c:\clearscript-5.3.4\clearscript\v8\v8\build\v8-ia32\src\utils.h : warning C4819: The file contains a character that cannot be represented in the current code page (950). Save the file in Unicode format to prevent data loss (....\src\optimizing-compiler-thread.cc) [C:\ClearScript-5.3.4\ClearScript\V8\V8\build\v8-ia32\tools\gyp\v8_base.ia32.vcxproj]
.....
.....
.....
c:\clearscript-5.3.4\clearscript\v8\v8\build\v8-ia32\src\utils.h : warning C4819: The file contains a character that cannot be represented in the current code page (950). Save the file in Unicode format to prevent data loss (....\src\extensions\gc-extension.cc) [C:\ClearScript-5.3.4\ClearScript\V8\V8\build\v8-ia32\tools\gyp\v8_base.ia32.vcxproj]


"C:\ClearScript-5.3.4\ClearScript\V8\V8\build\v8-ia32\tools\gyp\v8.sln" (v8 target) (1) ->
"C:\ClearScript-5.3.4\ClearScript\V8\V8\build\v8-ia32\tools\gyp\v8.vcxproj.metaproj" (default target) (2) ->
"C:\ClearScript-5.3.4\ClearScript\V8\V8\build\v8-ia32\tools\gyp\v8_base.ia32.vcxproj" (default target) (3) ->
(ClCompile target) ->
c:\clearscript-5.3.4\clearscript\v8\v8\build\v8-ia32\src\utils.h : error C2220: warning treated as error - no 'object' file generated (....\src\optimizing-compiler-thread.cc) [C:\ClearScript-5.3.4\ClearScript\V8\V8\build\v8-ia32\tools\gyp\v8_base.ia32.vcxproj]
.....
.....
.....
c:\clearscript-5.3.4\clearscript\v8\v8\build\v8-ia32\src\utils.h : error C2220: warning treated as error - no 'object' file generated (....\src\extensions\gc-extension.cc) [C:\ClearScript-5.3.4\ClearScript\V8\V8\build\v8-ia32\tools\gyp\v8_base.ia32.vcxproj]
133 Warning(s)
131 Error(s)
Time Elapsed 00:01:39.86

What can i do?? Any suggestions please.

Thanks!
Coordinator
Jul 22, 2013 at 12:44 PM
Hello ZivLo! Thanks for reporting this issue. We are investigating. The problem seems to be related to your machine's locale or language settings, but so far we haven't been able to reproduce it.
Jul 23, 2013 at 3:14 AM
Hi,

Thanks for your hint, after change locale to English in the Control Panel >> Region and Language >> Administrative >> Change system locale, my problem is solved.

C:\Program Files (x86)\Microsoft Visual Studio 11.0>chcp
Active code page: 437

C:\ClearScript-5.3.4>V8Update.cmd
Build mode: Release
V8 revision: Tested (15192, Version 3.19.18)
Creating build directory ...
Downloading V8 ...
Patching V8 ...
Downloading GYP ...
Downloading Python ...
Downloading Cygwin ...
Building 32-bit V8 ...
Building 64-bit V8 ...
Creating lib directory ...
Importing V8 libraries ...
Creating include directory ...
Importing V8 header files ...
Updating patch file ...
Succeeded!

Thanks!!
Coordinator
Jul 23, 2013 at 2:08 PM
We're happy to hear that you've found a solution as we continue to investigate this issue. Thank you also for posting the details of your workaround!
Coordinator
Aug 3, 2013 at 3:19 AM
We've posted an update that fixes this issue.