Difficulties building on Windows with Visual Studio

195 views
Skip to first unread message

Michael Collins

unread,
May 13, 2015, 9:33:55 AM5/13/15
to v8-u...@googlegroups.com
I have an earlier version of v8 integrated with my product. I'm trying to bring it up to date with the latest version.

I followed the instructions on the wiki for downloading the source code and the dependencies. When I run the build step, it's failing on 17 of the projects with the following error:

C:\Projects\v8\v8\src/heap/spaces.h(2492): error C2220: warning treated as error - no 'object' file generated (compiling source file ..\..\src\allocation-site-scopes.cc) [C:\Projects\v8\v8\tools\gyp\v8_base_0.vcxproj]
 
I'm building using Visual Studio 2015 RC. I figured that this was needed because of errors that I saw when trying to build against VS2013.

Can anyone help me with resolving these errors?

Thank you.

Michael Collins

unread,
May 13, 2015, 9:41:50 AM5/13/15
to v8-u...@googlegroups.com
Additionally, I'm seeing tons of warnings in the build output about reinterpret_cast:

C:\Projects\v8\v8\src/heap/spaces.h(2492): warning C4312: 'reinterpret_cast': conversion from 'uint32_t' to 'v8::internal::Address' of greater size (compiling source file ..\..\src\allocation-site-scopes.cc) [C:\Projects\v8\v8\tools\gyp\v8_base_0.vcxproj]

The target type appears to be either "void *" or "v8::internal::Address" in most cases.

I'm also building for x64. I forgot to mention that earlier. I'll try the 32-bit build to see if that reports the same errors.

Ben Noordhuis

unread,
May 13, 2015, 5:32:25 PM5/13/15
to v8-u...@googlegroups.com
FWIW, you should be able to build with VS 2013.

As to the build error you are seeing, can you post the full build log?
I suspect that the real error is somewhere else.

WTHNoSpam

unread,
May 31, 2015, 1:04:33 PM5/31/15
to v8-u...@googlegroups.com
Any luck with resolving this?  I just started trying to build v8 with VS 2015 RC also - same issues as you - warnings as errors everywhere.

    WTH

Michael Collins

unread,
May 31, 2015, 1:12:26 PM5/31/15
to v8-u...@googlegroups.com
Not yet. I tried 2013 and 2015. It won't build with the 2013 tools. I haven't had the time to go back and try it again though.

Michael Collins

Sent from my iPhone
--
--
v8-users mailing list
v8-u...@googlegroups.com
http://groups.google.com/group/v8-users
---
You received this message because you are subscribed to a topic in the Google Groups "v8-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/v8-users/ZzdBqCl6Fqo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to v8-users+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages