Looks as if the target architecture is not defined. Unless running with the ARM or MIPS simulator the host and target architectures should be the same. It should be defined in the SConstruct file and passed to the C++ compiler through a /D option. Can you see whether the cl command line has this option?
You can try to add #define V8_TARGET_ARCH_IA32 to globals.h before the #ifdef checking it. Regards, Søren On Fri, Apr 23, 2010 at 20:35, Timothy-S <[email protected]> wrote: > Made a test program, to test which of the ifdefs were being > triggered. This is the one that is triggered: > #elif defined(_M_IX86) || defined(__i386__) > #define V8_HOST_ARCH_IA32 1 > #define V8_HOST_ARCH_32_BIT 1 > #define V8_HOST_CAN_READ_UNALIGNED 1 > > None of the following are triggered, before the error is triggered: > #if defined(V8_TARGET_ARCH_X64) || defined(V8_TARGET_ARCH_IA32) > #elif V8_TARGET_ARCH_ARM > #elif V8_TARGET_ARCH_MIPS > > On Apr 23, 11:16 am, Timothy-S <[email protected]> wrote: > > Ran the batch file. v8 compiles, but I still get the "#error" > > message. Same when compiling with: > > scons env="PATH:%PATH%,INCLUDE:%INCLUDE%,LIB:%LIB%" arch=ia32 > > > > On Apr 23, 11:04 am, Timothy-S <[email protected]> wrote: > > > > > > > > > > > > > Here's the results of the "set": > > > ALLUSERSPROFILE=C:\Documents and Settings\All Users > > > APPDATA=C:\Documents and Settings\Halbarad\Application Data > > > CLIENTNAME=Console > > > CommonProgramFiles=C:\Program Files\Common Files > > > COMPUTERNAME=ELROHIR > > > ComSpec=C:\WINDOWS\system32\cmd.exe > > > FP_NO_HOST_CHECK=NO > > > GETMODEL=Satellite P100 > > > HOMEDRIVE=C: > > > HOMEPATH=\Documents and Settings\Halbarad > > > LOGONSERVER=\\ELROHIR > > > NUMBER_OF_PROCESSORS=2 > > > OS=Windows_NT > > > Path=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;c: > > > \Program Files\Mi > > > crosoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL > > > Server\100\DTS > > > \Binn\;C:\Program Files\doxygen\bin;C:\Program Files\TortoiseSVN\bin > > > PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH > > > PROCESSOR_ARCHITECTURE=x86 > > > PROCESSOR_IDENTIFIER=x86 Family 6 Model 15 Stepping 6, GenuineIntel > > > PROCESSOR_LEVEL=6 > > > PROCESSOR_REVISION=0f06 > > > ProgramFiles=C:\Program Files > > > PROMPT=$P$G > > > SESSIONNAME=Console > > > SystemDrive=C: > > > SystemRoot=C:\WINDOWS > > > TEMP=C:\DOCUME~1\Halbarad\LOCALS~1\Temp > > > TMP=C:\DOCUME~1\Halbarad\LOCALS~1\Temp > > > USERDOMAIN=ELROHIR > > > USERNAME=Halbarad > > > USERPROFILE=C:\Documents and Settings\Halbarad > > > VERNUM=PSPA6U-02K0128 > > > VS100COMNTOOLS=C:\Program Files\Microsoft Visual Studio > > > 10.0\Common7\Tools\ > > > windir=C:\WINDOWS > > > > > The CPU is an Intel Core 2, T7200 @ 2.00GHz. 2.01GHz with 2GB of RAM. > > > > > I'll try the other two build methods ASAP. > > > > > Thank you for your time, > > > Timothy Sassone > > > > > On Apr 23, 10:52 am, Rico Wind <[email protected]> wrote: > > > > > > Hi Timothy, > > > > > > What CPU is your computer running? Plus, could you do a "set" in the > > > > cmd window and post the output (to let us see your environment). > > > > > > Also, as you are using the express version it should not (at least > > > > this is true for the 2008 version) be necessary to give the path as > > > > argument to scons - see: > http://code.google.com/p/v8/wiki/BuildingOnWindows > > > > for details on the parameters you need to set. > > > > > > I am not sure, but if you can run vcvarsall.bat (see the page above) > > > > you might just be able to do a: > > > > scons env="PATH:%PATH%,INCLUDE:%INCLUDE%,LIB:%LIB%" > > > > > > Alternatively, try passing arch=ia32 to scons (meaning build to 32 > bit > > > > intel architecture - but this is standard and as such should not be > > > > necessary to set) > > > > > > Cheers, > > > > Rico > > > > > > On Fri, Apr 23, 2010 at 7:23 PM, Timothy-S <[email protected]> > wrote: > > > > > Running Windows XP Pro, 32bit, SP3. A quick google search showed > that > > > > > this question has been asked before, but the asker solved the > question > > > > > and never posted how. It was mentioned that the CPU architecture > is > > > > > the problem, but I don't think that's too likely, since I can run > > > > > programs that use v8 (namely, Google Chrome...). There's a decent > > > > > chance I screwed something up when building V8. I use MSVC++ > Express, > > > > > 2010, and so had to kinda wing it with the paths and such. I have > > > > > less than a year of programming experience, so it's not unlikely > that > > > > > I screwed something up. > > > > > > > The error I'm getting: "c:\documents and settings\MyUsername\my > > > > > documents\visual studio 2010\projects\v8\src\globals.h(61): fatal > > > > > error C1189: #error : Your target architecture is not supported by > > > > > v8" > > > > > > > And here's the command-prompt commands I used to build V8, in case > > > > > that's where I messed up: > > > > > set PATH=C:\Python26;C:\Python26\Scripts;%PATH% > > > > > > > scons env="PATH:C:\Program Files\Microsoft Visual Studio > 10.0\VC\bin;C: > > > > > \Program Files\Microsoft Visual Studio 10.0\Common7\IDE;C:\Program > > > > > Files\Microsoft Visual Studio 10.0\Common7\Tools,INCLUDE:C:\Program > > > > > Files\Microsoft Visual Studio 10.0\VC\include;C:\Program Files > > > > > \Microsoft SDKs\Windows\v7.0A\Include,LIB:C:\Program > Files\Microsoft > > > > > Visual Studio 10.0\VC\lib;C:\Program Files\Microsoft > SDKs\Windows\v7.0A > > > > > \Lib" > > > > > > > The code in the project I'm trying to compile is a perfect > copy-paste > > > > > of the second (somewhat longer) hello_world example from the > "Getting > > > > > Started" wiki page. > > > > > > > Thank you for your time, and help is very much appreciated! > > > > > > > Timothy Sassone > > > > > > > -- > > > > > v8-users mailing list > > > > > [email protected] > > > > >http://groups.google.com/group/v8-users > > > > > > -- > > > > v8-users mailing list > > > > [email protected]http://groups.google.com/group/v8-users > > > > > -- > > > v8-users mailing list > > > [email protected]http://groups.google.com/group/v8-users > > > > -- > > v8-users mailing list > > [email protected]http://groups.google.com/group/v8-users > > -- > v8-users mailing list > [email protected] > http://groups.google.com/group/v8-users > -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users
