Hello every one:
Recently I‘m researching on the use of GCMole.
I have successfully compiled the clang plugin lib libgcmole.so.
But there are some problems when I run GCMole:
*CLANG_BIN=<path-to-clang-bin-folder> lua tools/gcmole/gcmole.lua [<arch>]*
It will use clang with the plugin libgcmole.so to compile and check the
source code, the command is like this:
=============================================================================================================
*clang **-cc1 **-load tools/gcmole/libgcmole.so -plugin find-problems
-triple x86_64-unknown-linux -DV8_TARGET_ARCH_X64 -DENABLE_DEBUGGER_SUPPORT
-DV8_I18N_SUPPORT -Isrc -I. -Ithird_party/icu/source/common
-Ithird_party/icu/source/i18n test/cctest/test-cpu-x64.cc*
*......*
errors:
*In file included from src/bootstrapper.cc:5:In file included from
./src/bootstrapper.h:8:In file included from ./src/factory.h:8:In file
included from ./src/isolate.h:10:In file included from
./src/assert-scope.h:9:./src/platform.h:25:10: fatal error: 'string' file
not found#include <string> ^1 error generated.*
when I add the c++ path to it like this:
*clang -cc1 -load tools/gcmole/libgcmole.so -plugin **find-problems -triple**
-triple
x86_64-unknown-linux -DV8_TARGET_ARCH_X64 -DENABLE_DEBUGGER_SUPPORT
-DV8_I18N_SUPPORT -Isrc -I. -Ithird_party/icu/source/common
-Ithird_party/icu/source/i18n -I/usr/include/c++/4.7
-I/usr/include/c++/4.7/x86_64-linux-gnu -I/usr/include/c++/4.7/backward
-I/usr/include/c++/4.7/tr1 -I/usr/include/c++/4.7/ext/memory
-I/usr/include/c++/4.7/debug -I/usr/lib/gcc/x86_64-linux-gnu/4.7
-I/home/view/dtv_view/liuxiao/LLVM2.9/clang+llvm-2.9-x86_64-linux.tar/lib/clang/2.9/include
-I/home/view/dtv_view/liuxiao/LLVM2.9/clang+llvm-2.9-x86_64-linux.tar/include *
*test/cctest/test-cpu-x64.cc*
*......*
errors:
./src/objects-inl.h:5929:1: error: cannot initialize a parameter of type
'v8::internal::HeapObject *' with an rvalue of type
'v8::internal::JSGeneratorObject *'
ACCESSORS(JSGeneratorObject, context, Context, kContextOffset)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./src/objects-inl.h:86:5: note: instantiated from:
CONDITIONAL_WRITE_BARRIER(GetHeap(), this, offset, value, mode);
\
^
./src/objects-inl.h:5929:1: note: instantiated from:
ACCESSORS(JSGeneratorObject, context, Context, kContextOffset)
^
./src/objects-inl.h:86:42: note: instantiated from:
CONDITIONAL_WRITE_BARRIER(GetHeap(), this, offset, value, mode);
\
^~~~
./src/objects-inl.h:1296:43: note: passing argument to parameter 'obj' here
Object** HeapObject::RawField(HeapObject* obj, int byte_offset) {
^
./src/objects-inl.h:5929:1: error: use of undeclared identifier 'GetHeap'
ACCESSORS(JSGeneratorObject, context, Context, kContextOffset)
^
./src/objects-inl.h:86:5: note: instantiated from:
CONDITIONAL_WRITE_BARRIER(GetHeap(), this, offset, value, mode);
\
=============================================================================================================
What shoud I do ? Can it run on Linux?
My system info is:
*3.5.0-17-generic x86_64*
*Distributor ID: Ubuntu*
*Description: Ubuntu 12.10*
*Release: 12.10*
*Codename: quantal*
--
--
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
---
You received this message because you are subscribed to the Google Groups
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.