Status: New
Owner: ----
New issue 1819 by [email protected]: error: cast
from 'v8::internal::Object*' to 'intptr_t' loses precision in V8 while
compiling NodeJS 0.6.0
http://code.google.com/p/v8/issues/detail?id=1819
Detailed description of the issue. While compiling nodejs 0.6.0 on my NAS,
I have the following error in V8:
------------------------| error |
------------------------------------------------------
Waf: Entering directory `/volume1/tmp/node-v0.6.0/out'
DEST_OS: linux
DEST_CPU: x64
Parallel Jobs: 1
Product type: program
[ 6/35] cxx: src/node_main.cc -> out/Release/src/node_main_5.o
/usr/local/bin/g++ -pthread -g -O3 -DHAVE_OPENSSL=1
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_FDATASYNC=0
-DARCH="x64" -DPLATFORM="linux" -D__POSIX__=1 -Wno-unused-parameter
-D_FORTIFY_SOURCE=2 -IRelease/src -I../src -IRelease/deps/http_parser
-I../deps/http_parser -IRelease/deps/uv/include -I../deps/uv/include
-IRelease/deps/uv/src/ares -I../deps/uv/src/ares
-IRelease/deps/v8/include -I../deps/v8/include -I/opt/include
-Ideps/v8/include ../src/node_main.cc -c -o Release/src/node_main_5.o
In file included from ../src/node.h:62,
from ../src/node_main.cc:22:
../deps/v8/include/v8.h: In static member function 'static int
v8::internal::SmiTagging<4ul>::SmiToInt(v8::internal::Object*)':
../deps/v8/include/v8.h:3702: error: cast from 'v8::internal::Object*'
to 'intptr_t' loses precision
../deps/v8/include/v8.h: In static member function 'static int
v8::internal::SmiTagging<8ul>::SmiToInt(v8::internal::Object*)':
../deps/v8/include/v8.h:3718: error: cast from 'v8::internal::Object*'
to 'intptr_t' loses precision
../deps/v8/include/v8.h: In static member function 'static bool
v8::internal::Internals::HasHeapObjectTag(v8::internal::Object*)':
../deps/v8/include/v8.h:3777: error: cast from 'v8::internal::Object*'
to 'intptr_t' loses precision
../deps/v8/include/v8.h: In static member function 'static bool
v8::internal::Internals::HasSmiTag(v8::internal::Object*)':
../deps/v8/include/v8.h:3782: error: cast from 'v8::internal::Object*'
to 'intptr_t' loses precision
../deps/v8/include/v8.h: In static member function 'static void*
v8::internal::Internals::GetExternalPointerFromSmi(v8::internal::Object*)':
../deps/v8/include/v8.h:3796: error: cast from 'v8::internal::Object*'
to 'uintptr_t' loses precision
Waf: Leaving directory `/volume1/tmp/node-v0.6.0/out'
Build failed: -> task failed (err #1):
{task: cxx node_main.cc -> node_main_5.o}
make: *** [program] Error 1
------------------------| uname |
------------------------------------------------------
DiskStation> uname -a
Linux DiskStation 2.6.32.12 #1922 SMP Sun Sep 4 02:11:03 CST 2011 x86_64
GNU/Linux synology_x86_411+
------------------------| g++ |
------------------------------------------------------
DiskStation> g++ -v
Using built-in specs.
Target: x86_64-linux-gnu
Configured with:
/test/crosstool-0.43/build/x86_64-linux-gnu/gcc-4.2.0/configure
--target=x86_64-linux-gnu --host=i686-host_pc-linux-gnu
--prefix=/usr/local/x86_64-linux-gnu --disable-multilib
--with-sysroot=/usr/local/x86_64-linux-gnu/x86_64-linux-gnu/sys-root
--with-local-prefix=/usr/local/x86_64-linux-gnu/x86_64-linux-gnu/sys-root
--disable-nls --enable-threads=posix --enable-symvers=gnu
--enable-__cxa_atexit --enable-languages=c,c++ --enable-shared --enable-c99
--enable-long-long
Thread model: posix
gcc version 4.2.0
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev