Invalid numeric argument error when building Google V8 with Visual Studio 2013

35 views
Skip to first unread message

Andrew Martin

unread,
Apr 5, 2016, 7:23:18 PM4/5/16
to v8-users

I am attempting to build google v8 with visual studio 2013 according to [https://github.com/v8/v8/wiki/Building%20with%20Gyp][1]. However, I am getting this error on practically every .vcxproj file in my solution explorer:

Error   12  error D8021: invalid numeric argument '/H,' C:\v8\tools\gyp\cl  v8_base_3

According to the MSDN [https://msdn.microsoft.com/en-us/library/bc2y4ddf(v=vs.120).aspx][1], "/H restricts the length of external names." and "/H is deprecated; the maximum length limits have been increased and /H is no longer needed."

I'm not sure if this is a problem with visual studio versions or if I need to remove this flag from some code somewhere. Any chance I could get some help? Thank so much

Jochen Eisinger

unread,
Apr 7, 2016, 12:24:30 AM4/7/16
to v8-users
what version of v8 are you trying to compile? I don't think we use /H on ToT.

I guess we should also update the documentation to say VS 2015 is the minimum required version at this point.

--
--
v8-users mailing list
v8-u...@googlegroups.com
http://groups.google.com/group/v8-users
---
You received this message because you are subscribed to the Google Groups "v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to v8-users+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Andrew Martin

unread,
Apr 8, 2016, 2:31:58 PM4/8/16
to v8-users
Frankly, I am new to c++ and git so it is most likely a user error on my part. I was trying to follow along with the docs (https://github.com/v8/v8/wiki/Using%20Git) and used "fetch v8". I then generated the project files with "python build\gyp_v8". I am not sure exactly which version is being used when I try to build but it is likely not the correct one as you suggest. I have VS 2015 installed and would have used that version but was getting a similar error. Any chance you could help a newbie out haha? 

Jochen Eisinger

unread,
Apr 11, 2016, 2:49:20 AM4/11/16
to v8-users
that sounds odd. are you by any chance using the vcproj files directly, or build\all.sln ?

Andrew Martin

unread,
Apr 11, 2016, 1:25:43 PM4/11/16
to v8-users
Well I am not entirely sure what went wrong but when I re-fetched into a different directory and built all.sln, the building succeeded. I still wish I knew what was going wrong but can't exactly complain that things are working now haha. Thanks so much for the help, Mr. Eisinger
Reply all
Reply to author
Forward
0 new messages