Status: New
Owner: ----

New issue 2841 by zhega...@enaza.ru: cannot build on Solaris.
http://code.google.com/p/v8/issues/detail?id=2841

Solaris 11.0
v8 from git (today).
GCC 4.5.2

When building without flags - for some reason Solaris isn't recognized as x64 architecture:

# gmake x64
PYTHONPATH="/home/emz/src/v8/tools/generate_shim_headers:" \
GYP_GENERATORS=make \
build/gyp/gyp --generator-output="out" build/all.gyp \
              -Ibuild/standalone.gypi --depth=. \
              -Dv8_target_arch=x64 \
-S.x64 -Dv8_enable_backtrace=1 -Darm_fpu=default -Darm_float_abi=default
gmake[1]: Entering directory `/home/emz/src/v8/out'
ACTION tools_gyp_v8_gyp_js2c_host_js2c /home/emz/src/v8/out/x64.release/obj/gen/libraries.cc CXX(host) /home/emz/src/v8/out/x64.release/obj.host/v8_base.x64/src/accessors.o
In file included from ../src/v8globals.h:31:0,
                 from ../src/v8.h:53,
                 from ../src/accessors.cc:28:
../src/globals.h:132:2: error: #error Target architecture x64 is only supported on x64 host
[...]

- but:

# isainfo
amd64 i386

- so, I've manually added the -DV8_HOST_ARCH_X64 flag to the out/Makefile.x64.

Then I got:

# gmake x64 werror=no
gmake[1]: Entering directory `/home/emz/src/v8/out'
CXX(host) /home/emz/src/v8/out/x64.release/obj.host/v8_base.x64/src/accessors.o
In file included from ../src/incremental-marking.h:32:0,
                 from ../src/heap.h:36,
                 from ../src/elements.h:33,
                 from ../src/objects-inl.h:38,
                 from ../src/v8.h:61,
                 from ../src/accessors.cc:28:
../src/execution.h:257:3: warning: integer constant is too large for ‘long’ type ../src/execution.h:258:3: warning: integer constant is too large for ‘long’ type ../src/execution.h:257:74: error: a function call cannot appear in a constant-expression ../src/execution.h:258:72: error: a function call cannot appear in a constant-expression
In file included from ../src/objects-inl.h:41:0,
                 from ../src/v8.h:61,
                 from ../src/accessors.cc:28:
../src/conversions-inl.h: In function ‘double v8::internal::DoubleToInteger(double)’: ../src/conversions-inl.h:89:7: error: ‘__builtin_isnan’ is not a member of ‘std’ ../src/conversions-inl.h:90:13: error: expected unqualified-id before ‘__extension__’
../src/conversions-inl.h:90:13: error: expected ‘)’ before ‘__extension__’
In file included from ../src/v8.h:61:0,
                 from ../src/accessors.cc:28:
../src/objects-inl.h: In member function ‘bool v8::internal::Object::IsNaN()’: ../src/objects-inl.h:898:34: error: ‘__builtin_isnan’ is not a member of ‘std’ ../src/objects-inl.h: In member function ‘void v8::internal::FixedDoubleArray::set(int, double)’: ../src/objects-inl.h:2012:7: error: ‘__builtin_isnan’ is not a member of ‘std’
In file included from ../src/macro-assembler.h:71:0,
                 from ../src/deoptimizer.h:34,
                 from ../src/accessors.cc:32:
../src/x64/assembler-x64.h: In function ‘bool v8::internal::is_uint32(int64_t)’: ../src/x64/assembler-x64.h:49:60: error: ‘V8_UINT64_C’ was not declared in this scope ../src/x64/assembler-x64.h: In function ‘bool v8::internal::is_int32(int64_t)’: ../src/x64/assembler-x64.h:54:58: error: ‘V8_INT64_C’ was not declared in this scope ../src/x64/assembler-x64.h: In function ‘bool v8::internal::uint_is_int32(uint64_t)’: ../src/x64/assembler-x64.h:59:59: error: ‘V8_UINT64_C’ was not declared in this scope ../src/x64/assembler-x64.h: In function ‘bool v8::internal::is_uint32(uint64_t)’: ../src/x64/assembler-x64.h:64:60: error: ‘V8_UINT64_C’ was not declared in this scope gmake[1]: *** [/home/emz/src/v8/out/x64.release/obj.host/v8_base.x64/src/accessors.o] Error 1
gmake[1]: Leaving directory `/home/emz/src/v8/out'
gmake: *** [x64.release] Error 2

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

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


Reply via email to