[v8-users] Re: Problems compiling on Snow Leopard / gcc 4.2.1
On Thu, Jul 16, 2009 at 3:23 AM, Tom Robinson tlrobin...@gmail.com wrote: #define __amd64 1 According to the v8 home page, i32 and ARM are supported, but not i64. Then again, the wording is a bit ambiguous: ...runs on Windows XP and Vista, Mac OS X 10.5 (Leopard), and Linux systems that use IA-32 or ARM processors. which could be interpreted to mean that only the Linux ports have that limitation, whereas Win/Mac don't (but i doubt that's the intention of the text). :-? -- - stephan beal http://wanderinghorse.net/home/stephan/ --~--~-~--~~~---~--~~ v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users -~--~~~~--~~--~--~---
[v8-users] Re: Problems compiling on Snow Leopard / gcc 4.2.1
Someone mentioned to me that the bleeding_edge branch as i64 support, so I tried compiling that with the arch=x64 flag, but no such luck. Different error though: [3][0] ~/scratch/v8-bleeding $ scons arch=x64 scons: Reading SConscript files ... scons: done reading SConscript files. scons: Building targets ... g++ -o obj/release/platform-macos.o -c -Wall -Werror -W -Wno-unused- parameter -pedantic -fno-strict-aliasing -O3 -fomit-frame-pointer - fdata-sections -ffunction-sections -ansi -mmacosx-version-min=10.4 - m64 -fno-rtti -fno-exceptions -Wall -Werror -W -Wno-unused-parameter - pedantic -fno-strict-aliasing -O3 -fomit-frame-pointer -fdata-sections -ffunction-sections -ansi -mmacosx-version-min=10.4 -m64 - DV8_TARGET_ARCH_X64 -DENABLE_LOGGING_AND_PROFILING -Isrc src/platform- macos.cc In file included from src/platform-macos.cc:31: /usr/include/ucontext.h:42:2: error: #error ucontext routines are deprecated, and require _XOPEN_SOURCE to be defined scons: *** [obj/release/platform-macos.o] Error 1 scons: building terminated because of errors. I get the same error if I add the -arch i386 error to the gcc CCFLAGS in the SConstruct file, but compilation does get a lot further than before. On Jul 16, 2009, at 2:16 AM, Stephan Beal wrote: On Thu, Jul 16, 2009 at 3:23 AM, Tom Robinson tlrobin...@gmail.com wrote: #define __amd64 1 According to the v8 home page, i32 and ARM are supported, but not i64. Then again, the wording is a bit ambiguous: ...runs on Windows XP and Vista, Mac OS X 10.5 (Leopard), and Linux systems that use IA-32 or ARM processors. which could be interpreted to mean that only the Linux ports have that limitation, whereas Win/Mac don't (but i doubt that's the intention of the text). :-? -- - stephan beal http://wanderinghorse.net/home/stephan/ --~--~-~--~~~---~--~~ v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users -~--~~~~--~~--~--~---
[v8-users] Re: Problems compiling on Snow Leopard / gcc 4.2.1
Tom, Can you please try with bleeding_edge revision 2489? This should make sure that the gcc flags and the target architecture are consistent. I do not have a Snow Leopard machine to test on currently, but this change should fix the confusion of gcc building for a 64-bit target when we are generating ia32 code in the JIT. Thanks, -Ivan P.S. Also note that the x64 build is certainly not at a state where you should be testing it yet unless of course you want to commit fixes to it. On Thu, Jul 16, 2009 at 02:26, Tom Robinsontlrobin...@gmail.com wrote: Someone mentioned to me that the bleeding_edge branch as i64 support, so I tried compiling that with the arch=x64 flag, but no such luck. Different error though: [3][0] ~/scratch/v8-bleeding $ scons arch=x64 scons: Reading SConscript files ... scons: done reading SConscript files. scons: Building targets ... g++ -o obj/release/platform-macos.o -c -Wall -Werror -W -Wno-unused- parameter -pedantic -fno-strict-aliasing -O3 -fomit-frame-pointer - fdata-sections -ffunction-sections -ansi -mmacosx-version-min=10.4 - m64 -fno-rtti -fno-exceptions -Wall -Werror -W -Wno-unused-parameter - pedantic -fno-strict-aliasing -O3 -fomit-frame-pointer -fdata-sections -ffunction-sections -ansi -mmacosx-version-min=10.4 -m64 - DV8_TARGET_ARCH_X64 -DENABLE_LOGGING_AND_PROFILING -Isrc src/platform- macos.cc In file included from src/platform-macos.cc:31: /usr/include/ucontext.h:42:2: error: #error ucontext routines are deprecated, and require _XOPEN_SOURCE to be defined scons: *** [obj/release/platform-macos.o] Error 1 scons: building terminated because of errors. I get the same error if I add the -arch i386 error to the gcc CCFLAGS in the SConstruct file, but compilation does get a lot further than before. On Jul 16, 2009, at 2:16 AM, Stephan Beal wrote: On Thu, Jul 16, 2009 at 3:23 AM, Tom Robinson tlrobin...@gmail.com wrote: #define __amd64 1 According to the v8 home page, i32 and ARM are supported, but not i64. Then again, the wording is a bit ambiguous: ...runs on Windows XP and Vista, Mac OS X 10.5 (Leopard), and Linux systems that use IA-32 or ARM processors. which could be interpreted to mean that only the Linux ports have that limitation, whereas Win/Mac don't (but i doubt that's the intention of the text). :-? -- - stephan beal http://wanderinghorse.net/home/stephan/ --~--~-~--~~~---~--~~ v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users -~--~~~~--~~--~--~---
[v8-users] Re: Problems compiling on Snow Leopard / gcc 4.2.1
That would make sense. Here's the output: #define __DBL_MIN_EXP__ (-1021) #define __FLT_MIN__ 1.17549435e-38F #define __DEC64_DEN__ 0.001E-383DD #define __CHAR_BIT__ 8 #define __WCHAR_MAX__ 2147483647 #define __DBL_DENORM_MIN__ 4.9406564584124654e-324 #define __FLT_EVAL_METHOD__ 0 #define __DBL_MIN_10_EXP__ (-307) #define __FINITE_MATH_ONLY__ 0 #define __DEC64_MAX_EXP__ 384 #define __SHRT_MAX__ 32767 #define __LDBL_MAX__ 1.18973149535723176502e+4932L #define __APPLE_CC__ 5646 #define __UINTMAX_TYPE__ long unsigned int #define __DEC32_EPSILON__ 1E-6DF #define __block __attribute__((__blocks__(byref))) #define __SCHAR_MAX__ 127 #define __USER_LABEL_PREFIX__ _ #define __STDC_HOSTED__ 1 #define __DEC64_MIN_EXP__ (-383) #define __DBL_DIG__ 15 #define __FLT_EPSILON__ 1.19209290e-7F #define __LDBL_MIN__ 3.36210314311209350626e-4932L #define __DEC32_MAX__ 9.99E96DF #define __strong #define __APPLE__ 1 #define __DECIMAL_DIG__ 21 #define __LDBL_HAS_QUIET_NAN__ 1 #define __DYNAMIC__ 1 #define __GNUC__ 4 #define __MMX__ 1 #define __FLT_HAS_DENORM__ 1 #define __DBL_MAX__ 1.7976931348623157e+308 #define __DBL_HAS_INFINITY__ 1 #define __DEC32_MIN_EXP__ (-95) #define OBJC_NEW_PROPERTIES 1 #define __LDBL_HAS_DENORM__ 1 #define __DEC32_MIN__ 1E-95DF #define __weak __attribute__((objc_gc(weak))) #define __DBL_MAX_EXP__ 1024 #define __DEC128_EPSILON__ 1E-33DL #define __SSE2_MATH__ 1 #define __amd64 1 #define __tune_core2__ 1 #define __LONG_LONG_MAX__ 9223372036854775807LL #define __GXX_ABI_VERSION 1002 #define __FLT_MIN_EXP__ (-125) #define __x86_64 1 #define __DBL_MIN__ 2.2250738585072014e-308 #define __LP64__ 1 #define __DBL_HAS_QUIET_NAN__ 1 #define __DEC128_MIN__ 1E-6143DL #define __REGISTER_PREFIX__ #define __DBL_HAS_DENORM__ 1 #define __NO_INLINE__ 1 #define __DEC_EVAL_METHOD__ 2 #define __DEC128_MAX__ 9.9E6144DL #define __FLT_MANT_DIG__ 24 #define __VERSION__ 4.2.1 (Apple Inc. build 5646) #define __DEC64_EPSILON__ 1E-15DD #define __DEC128_MIN_EXP__ (-6143) #define __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ 1060 #define __SIZE_TYPE__ long unsigned int #define __DEC32_DEN__ 0.01E-95DF #define __FLT_RADIX__ 2 #define __LDBL_EPSILON__ 1.08420217248550443401e-19L #define __SSE_MATH__ 1 #define __k8 1 #define __LDBL_DIG__ 18 #define __x86_64__ 1 #define __FLT_HAS_QUIET_NAN__ 1 #define __FLT_MAX_10_EXP__ 38 #define __LONG_MAX__ 9223372036854775807L #define __FLT_HAS_INFINITY__ 1 #define __DEC64_MAX__ 9.999E384DD #define __DEC64_MANT_DIG__ 16 #define __DEC32_MAX_EXP__ 96 #define __DEC128_DEN__ 0.1E-6143DL #define __LITTLE_ENDIAN__ 1 #define __LDBL_MANT_DIG__ 64 #define __CONSTANT_CFSTRINGS__ 1 #define __DEC32_MANT_DIG__ 7 #define __k8__ 1 #define __WCHAR_TYPE__ int #define __pic__ 2 #define __FLT_DIG__ 6 #define __INT_MAX__ 2147483647 #define __FLT_MAX_EXP__ 128 #define __BLOCKS__ 1 #define __DBL_MANT_DIG__ 53 #define __DEC64_MIN__ 1E-383DD #define __WINT_TYPE__ int #define __SSE__ 1 #define __LDBL_MIN_EXP__ (-16381) #define __MACH__ 1 #define __amd64__ 1 #define __LDBL_MAX_EXP__ 16384 #define __SSP__ 1 #define __LDBL_MAX_10_EXP__ 4932 #define __DBL_EPSILON__ 2.2204460492503131e-16 #define _LP64 1 #define __GNUC_PATCHLEVEL__ 1 #define __LDBL_HAS_INFINITY__ 1 #define __INTMAX_MAX__ 9223372036854775807L #define __FLT_DENORM_MIN__ 1.40129846e-45F #define __PIC__ 2 #define __FLT_MAX__ 3.40282347e+38F #define __SSE2__ 1 #define __FLT_MIN_10_EXP__ (-37) #define __INTMAX_TYPE__ long int #define __DEC128_MAX_EXP__ 6144 #define __GNUC_MINOR__ 2 #define __DBL_MAX_10_EXP__ 308 #define __LDBL_DENORM_MIN__ 3.64519953188247460253e-4951L #define __STDC__ 1 #define __PTRDIFF_TYPE__ long int #define __DEC128_MANT_DIG__ 34 #define __LDBL_MIN_10_EXP__ (-4931) #define __GNUC_GNU_INLINE__ 1 #define __SSE3__ 1 On Jul 15, 2009, at 4:49 PM, Ivan Posva wrote: Tom, It looks to me as if the Snow Leopard default gcc compiles with 64 bits instead of 32 bits. I cannot verify that statement as I do not have access to a Snow Leopard machine. Can you please run the following command in a terminal and send me the output: echo | gcc -E -dM - Thanks, -Ivan On Wed, Jul 15, 2009 at 16:10, Tom Robinsontlrobin...@gmail.com wrote: Compiling V8 on Snow Leopard betas appears to be broken. It's using gcc 4.2.1. Anyone else able to compile it? Here are the errors: scons: Reading SConscript files ... scons: done reading SConscript files. scons: Building targets ... g++ -o obj/release/api.o -c -Wall -Werror -W -Wno-unused-parameter - pedantic -O3 -fomit-frame-pointer -fdata-sections -ffunction- sections - ansi -mmacosx-version-min=10.4 -fno-rtti -fno-exceptions -Wall - Werror -W -Wno-unused-parameter -pedantic -O3 -fomit-frame-pointer -fdata- sections -ffunction-sections -ansi -mmacosx-version-min=10.4 - DV8_TARGET_ARCH_IA32 -DV8_NATIVE_REGEXP - DENABLE_LOGGING_AND_PROFILING -Isrc src/api.cc In file included from