Issue 32 in google-js-test: member access into incomplete type

26 views
Skip to first unread message

google-...@googlecode.com

unread,
Jan 23, 2014, 2:10:19 PM1/23/14
to google-...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 32 by Vishal.J...@gmail.com: member access into incomplete type
http://code.google.com/p/google-js-test/issues/detail?id=32

I am trying to compile google-js-test. I ran brew and it completed
installation of all dependencies. But could not compile gogle-js-test.

So I use sudo make install. I get following error:


c++ -DHASH_NAMESPACE=__gnu_cxx -I. -I/usr/include/libxml2
-DDEFAULT_DATA_DIR=/usr/local/share/gjstest -c -o
gjstest/internal/cpp/v8_utils.o gjstest/internal/cpp/v8_utils.cc
gjstest/internal/cpp/v8_utils.cc:105:50: error: unknown type
name 'Arguments'; did you mean 'v8::internal::Arguments'?
static Handle<Value> RunAssociatedCallback(const Arguments& args) {
^~~~~~~~~
v8::internal::Arguments
/usr/local/include/v8.h:140:7: note: 'v8::internal::Arguments' declared here
class Arguments;
^
gjstest/internal/cpp/v8_utils.cc:138:78: error: too few arguments to
function call, expected 2, have 1
Persistent<ObjectTemplate> weak_ref =
Persistent<ObjectTemplate>::New(*tmpl);

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^
/usr/local/include/v8.h:733:3: note: 'New' declared here
V8_INLINE static T* New(Isolate* isolate, T* that);
^
/usr/local/include/v8config.h:301:20: note: expanded from macro 'V8_INLINE'
# define V8_INLINE inline __attribute__((always_inline))
^

I also added statement "using v8::internal::Arguments". IN that case error
changes to:

c++ -DHASH_NAMESPACE=__gnu_cxx -I. -I/usr/include/libxml2
-DDEFAULT_DATA_DIR=/usr/local/share/gjstest -c -o
gjstest/internal/cpp/v8_utils.o gjstest/internal/cpp/v8_utils.cc
gjstest/internal/cpp/v8_utils.cc:107:33: error: member access into
incomplete type 'const v8::internal::Arguments'
const Local<Value> data = args.Data();
^
/usr/local/include/v8.h:140:7: note: forward declaration
of 'v8::internal::Arguments'
class Arguments;
^
Any help how to compile? (I am using Macbook pro)



--
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

google-...@googlecode.com

unread,
Jan 23, 2014, 2:28:53 PM1/23/14
to google-...@googlegroups.com
Updates:
Status: WontFix

Comment #1 on issue 32 by jaco...@google.com: member access into incomplete
type
http://code.google.com/p/google-js-test/issues/detail?id=32

This is an unfortunate side effect of the fact that the V8 API has recently
changed in backwards-incompatible ways several times. It's quite disruptive
and annoying.

Essentially you'll need to use something near the version of V8 that I was
using when I last fixed up the code to overcome the latest incompatible
change. :-/ It looks like that was 3.21.17:


https://code.google.com/p/google-js-test/source/detail?r=53865725ff3a44e330979bb3e258c92989c81275

You could try getting a V8 version at least as new as that, or checking out
the gjstest source before the change linked above.
Reply all
Reply to author
Forward
0 new messages