Status: New
Owner: ----

New issue 1046 by [email protected]: src/v8utils.h is not MinGW friendly w.r.t. va_list
http://code.google.com/p/v8/issues/detail?id=1046

In trying to compile v8 on MinGW, I got an error:
............<snip>
In file included from src\/v8.h:59:0,
                 from src\accessors.cc:28:
src\/v8utils.h:237:45: error: 'va_list' has not been declared
............<snip>


Following from the example in src/platform.h, I modified src/v8utils.h with the following guarded include:
   #ifdef __GNUC__
     #include <stdarg.h>
   #endif

At that point, compiling proceeded as normal. (Trivial patch is attached for reference.)


Complete build text:
-------------------
PS D:\Open Source Projects\v8> scons mode=release snapshot=off library=static
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
g++ -o obj\release\accessors.o -c -Wall -Werror -W -Wno-unused-parameter -Wnon-virtual-dtor -pedantic -Wno-long-long -m3 2 -O3 -fomit-frame-pointer -fdata-sections -ffunction-sections -DWIN32 -fno-rtti -fno-exceptions -DWIN32 -Wall -Werror - W -Wno-unused-parameter -Wnon-virtual-dtor -pedantic -Wno-long-long -m32 -O3 -fomit-frame-pointer -fdata-sections -ffunc tion-sections -DWIN32 -DV8_TARGET_ARCH_IA32 -DENABLE_VMSTATE_TRACKING -DENABLE_LOGGING_AND_PROFILING -DENABLE_DEBUGGER_S
UPPORT -Isrc src\accessors.cc
In file included from src\/v8.h:59:0,
                 from src\accessors.cc:28:
src\/v8utils.h:237:45: error: 'va_list' has not been declared
scons: *** [obj\release\accessors.o] Error 1
scons: building terminated because of errors.


Attachments:
        v8utils_patch.patch  282 bytes

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to