Hello,
I am working on a PowerPC port for v8 (
https://github.com/misham/v8)
and I'm trying to solve the following compiler error:
g++ -o obj/release/accessors.o -c -Wall -Werror -W -Wno-unused-
parameter -Wnon-virtual-dtor -pedantic -O3 -fomit-frame-pointer -fdata-
sections -ffunction-sections -ansi -fno-rtt
i -fno-exceptions -fvisibility=hidden -Wall -Werror -W -Wno-unused-
parameter -Wnon-virtual-dtor -pedantic -O3 -fomit-frame-pointer -fdata-
sections -ffunction-sections -ansi -DV8_TARGET_ARCH_PPC -
DENABLE_VMSTATE_TRACKING -DENABLE_LOGGING_AND_PROFILING -
DENABLE_DEBUGGER_SUPPORT -Isrc src/accessors.cc
In file included from src/v8.h:63,
from src/accessors.cc:28:
src/objects-inl.h:2873: error: invalid application of 'sizeof' to
incomplete type 'StaticAssertion<false>'
src/objects-inl.h:2880: error: invalid application of 'sizeof' to
incomplete type 'StaticAssertion<false>'
src/objects-inl.h:2883: error: invalid application of 'sizeof' to
incomplete type 'StaticAssertion<false>'
src/objects-inl.h:2890: error: invalid application of 'sizeof' to
incomplete type 'StaticAssertion<false>'
src/objects-inl.h:2897: error: invalid application of 'sizeof' to
incomplete type 'StaticAssertion<false>'
I've traced the call to the STATIC_CHECK macro (checks.h:254) but I do
not know why it's failing. Here's the macro:
template <int> class StaticAssertionHelper { };
#define
STATIC_CHECK(test) \
typedef
\
StaticAssertionHelper<sizeof(StaticAssertion<static_cast<bool>(test)>)>
\
SEMI_STATIC_JOIN(__StaticAssertTypedef__, __LINE__)
Does anyone know why this error would be generated and what I can do
to fix it?
I am compiling on PowerPC Mac Mini running Ubuntu 10.10 with the
following command: scons arch=powerpc sample=shell
Thank you
- Misha