64-bit Build Issues

Mar 20, 2013 at 11:02 PM
HI people.

Somebody is getting this build error??

_C:\Users\qasali\Desktop\clearscript-5.1.3>V8Update.cmd
Build mode: Release
V8 revision: Latest
Creating build directory ...
Downloading V8 ...
Patching V8 ...
Downloading GYP ...
Downloading Python ...
Downloading Cygwin ...
Building 32-bit V8 ...
Building 64-bit V8 ...
*** THE PREVIOUS STEP FAILED ***_

on the end of my v8-x64\build.log says:

_Link:
C:\Program Files\Microsoft Visual Studio 11.0\VC\bin\x86_amd64\link.exe /ERRORREPORT:QUEUE /OUT:"....\build\Release\v8_shell.exe" /INCREMENTAL:NO /NOLOGO ws2_32.lib /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /DEBUG /PDB:"....\build\Release\v8_shell.pdb" /SUBSYSTEM:CONSOLE /STACK:"2097152" /OPT:REF /OPT:ICF /TLBID:1 /DYNAMICBASE /FIXED:NO /NXCOMPAT /IMPLIB:"....\build\Release\lib\v8_shell.lib" /MACHINE:X64 ....\build\Release\obj\v8_shell\shell.obj
"C:\Users\qasali\Desktop\clearscript-5.1.3\ClearScript\V8\V8\build\v8-x64\build\Release\lib\v8-x64.lib"
shell.obj : se encontró .netmodule MSIL o un módulo compilado con /GL; reiniciando la vinculación con /LTCG; agregue /LTCG a la línea de comandos de vínculo para mejorar el rendimiento del vinculador
Generando código
Generación de código finalizada
v8_shell.vcxproj -> ....\build\Release\v8_shell.exe
FinalizeBuildStatus:
Deleting file "....\build\Release\obj\v8_shell\v8_shell.unsuccessfulbuild".
Touching "....\build\Release\obj\v8_shell\v8_shell.lastbuildstate".
Done Building Project "C:\Users\qasali\Desktop\clearscript-5.1.3\ClearScript\V8\V8\build\v8-x64\tools\gyp\v8_shell.vcxproj" (default targets).
Done Building Project "C:\Users\qasali\Desktop\clearscript-5.1.3\ClearScript\V8\V8\build\v8-x64\tools\gyp\v8_shell.vcxproj.metaproj" (default targets).
Project "C:\Users\qasali\Desktop\clearscript-5.1.3\ClearScript\V8\V8\build\v8-x64\tools\gyp\v8.sln" (1) is building "C:\Users\qasali\Desktop\clearscript-5.1.3\ClearScript\V8\V8\build\v8-x64\tools\gyp\v8_snapshot.vcxproj.metaproj" (14) on node 1 (default targets).
Project "C:\Users\qasali\Desktop\clearscript-5.1.3\ClearScript\V8\V8\build\v8-x64\tools\gyp\v8_snapshot.vcxproj.metaproj" (14) is building "C:\Users\qasali\Desktop\clearscript-5.1.3\ClearScript\V8\V8\build\v8-x64\tools\gyp\v8_snapshot.vcxproj" (15) on node 1 (default targets).
PrepareForBuild:
Creating directory "....\build\Release\obj\v8_snapshot\".
InitializeBuildStatus:
Creating "....\build\Release\obj\v8_snapshot\v8_snapshot.unsuccessfulbuild" because "AlwaysCreate" was specified.
CustomBuild:
run_mksnapshot
bash: C:/Users/qasali/Desktop/clearscript-5.1.3/ClearScript/V8/V8/build/v8-x64/build/Release//mksnapshot.exe: Permission denied
C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(172,5): error MSB6006: "cmd.exe" exited with code 126. [C:\Users\qasali\Desktop\clearscript-5.1.3\ClearScript\V8\V8\build\v8-x64\tools\gyp\v8_snapshot.vcxproj]
Done Building Project "C:\Users\qasali\Desktop\clearscript-5.1.3\ClearScript\V8\V8\build\v8-x64\tools\gyp\v8_snapshot.vcxproj" (default targets) -- FAILED.
Done Building Project "C:\Users\qasali\Desktop\clearscript-5.1.3\ClearScript\V8\V8\build\v8-x64\tools\gyp\v8_snapshot.vcxproj.metaproj" (default targets) -- FAILED.
Done Building Project "C:\Users\qasali\Desktop\clearscript-5.1.3\ClearScript\V8\V8\build\v8-x64\tools\gyp\v8.sln" (default targets) -- FAILED.

Build FAILED.

"C:\Users\qasali\Desktop\clearscript-5.1.3\ClearScript\V8\V8\build\v8-x64\tools\gyp\v8.sln" (default target) (1) ->
"C:\Users\qasali\Desktop\clearscript-5.1.3\ClearScript\V8\V8\build\v8-x64\tools\gyp\v8_snapshot.vcxproj.metaproj" (default target) (14) ->
"C:\Users\qasali\Desktop\clearscript-5.1.3\ClearScript\V8\V8\build\v8-x64\tools\gyp\v8_snapshot.vcxproj" (default target) (15) ->
(CustomBuild target) ->
C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(172,5): error MSB6006: "cmd.exe" exited with code 126. [C:\Users\qasali\Desktop\clearscript-5.1.3\ClearScript\V8\V8\build\v8-x64\tools\gyp\v8_snapshot.vcxproj]
0 Warning(s)
1 Error(s)
Time Elapsed 00:09:45.79_


What can i do?? Any suggestions please.

Cheers
lord
Coordinator
Mar 21, 2013 at 12:37 AM
Hello LordBreetai,

We've never seen that failure. Can you tell us what versions of Windows and Visual Studio you're running? Also, do you have pre-existing Python or Cygwin installations?

Thanks!
Mar 21, 2013 at 3:51 AM
Sorry, I forget to remark this line on v8-x64\build.log

"CustomBuild:
run_mksnapshot
bash: C:/Users/qasali/Desktop/clearscript-5.1.3/ClearScript/V8/V8/build/v8-x64/build/Release//mksnapshot.exe: Permission denied
C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(172,5): error MSB6006: "cmd.exe" exited with code 126. [C:\Users\qasali\Desktop\clearscript-5.1.3\ClearScript\V8\V8\build\v8-x64\tools\gyp\v8_snapshot.vcxproj] "

What means?? I try to execute "mksnapshot.exe" (manualy) and Windows says something like: "the version of this file is not compatible with the version of Windows you are running. Check your computer's system information to see whether you need an x86 (32-bit) or x64 (64-bit) version of program, and then contact the software publisher" :-O

Also I'm using Windows 7 and Visual Studio Express 2012 (desktop).
Python and Cygwin are present and downloaded in the compilation. This is what is shown on compilation time:


"C:\Users\qasali\Desktop\clearscript-5.1.3>V8Update.cmd
Build mode: Release
V8 revision: Latest
Creating build directory ...
Downloading V8 ...
Patching V8 ...
Downloading GYP ...
Downloading Python ...
Downloading Cygwin ...
Building 32-bit V8 ...
Building 64-bit V8 ...
*** THE PREVIOUS STEP FAILED ***"

Thanks for your help.

Lord
Coordinator
Mar 21, 2013 at 4:29 AM
Edited Mar 21, 2013 at 4:32 AM
Hi Lord,

It looks like you're running a 32-bit version of Windows, and the 64-bit V8 build is trying to run a 64-bit program during the build process.

The good news is that this is unnecessary. Please try the following:

1) Edit V8Update.cmd in your ClearScript root directory. Change the following line:
msbuild /p:Configuration=%mode% /p:Platform=x64 tools\gyp\v8.sln >build.log
to this:
msbuild /p:Configuration=%mode% /p:Platform=x64 /t:v8 tools\gyp\v8.sln >build.log
2) Save the file and exit your editor.

3) Run V8Update.cmd /n.

Please let us know if this works for you. Thanks!
Mar 24, 2013 at 6:14 AM
Hi,

"It looks like you're running a 32-bit version of Windows, and the 64-bit V8 build is trying to run a 64-bit program during the build process."

yes, you are right!

I follow your suggestions and IT WORKS!!!

Thanks,

Lord
Coordinator
Mar 24, 2013 at 11:43 PM
Thanks for your help Lord! We'll fix V8Update.cmd so that it works on 32-bit systems without modification.