jetma / jav8

Automatically exported from code.google.com/p/jav8
0 stars 0 forks source link

Compilation of jav8 in RHEL6 #27

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. compile v8-3.20.12 with ia32.release library=shared strictaliasing=off
2. compile jav8 (downloaded from trunk)

What is the expected output? What do you see instead?
I expected that jav8 compiles successfully and instead it returns the following:

Buildfile: (...)/build.xml

prepare:
    [mkdir] Created dir: (...)/jav8-read-only/build/classes
    [mkdir] Created dir: (...)/jav8-read-only/build/bin/release

compile:
    [javac] Compiling 26 source files to (...)/jav8-read-only/build/classes
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
     [copy] Copying 1 file to (...)/jav8-read-only/build/classes/META-INF

jni:
     [echo] Generating JNI header ...
     [echo] Building JNI library with release mode ...
     [echo] linking V8 static library v8_base.ia32,v8_snapshot at (...)/v8-3.20.12//out/ia32.release/obj.target/tools/gyp/
       [cc] 3 total files to be compiled.
       [cc] In file included from (...)/jav8-read-only/jni/Wrapper.cpp:1:
       [cc] (...)/jav8-read-only/jni/Wrapper.h: In static member function ‘static v8::Handle<v8::Object> jni::CBaseJavaObject<T>::InternalWrap(T*)’:
       [cc] (...)/jav8-read-only/jni/Wrapper.h:199: error: request for member ‘Reset’ in ‘s_template’, which is of non-class type ‘v8::ObjectTemplate*’
       [cc] In file included from (...)/jav8-read-only/jni/Utils.cpp:19:
       [cc] (...)/jav8-read-only/jni/Wrapper.h: In static member function ‘static v8::Handle<v8::Object> jni::CBaseJavaObject<T>::InternalWrap(T*)’:
       [cc] (...)/jav8-read-only/jni/Wrapper.h:199: error: request for member ‘Reset’ in ‘s_template’, which is of non-class type ‘v8::ObjectTemplate*’
       [cc] (...)/v8-3.20.12/include/v8.h: In static member function ‘static v8::Handle<v8::Object> jni::CBaseJavaObject<T>::InternalWrap(T*) [with T = jni::CJavaContext]’:
       [cc] (...)/jav8-read-only/jni/Wrapper.h:222:   instantiated from ‘static v8::Handle<v8::Object> jni::CBaseJavaObject<T>::Wrap(JNIEnv*, _jobject*) [with T = jni::CJavaContext]’
       [cc] (...)/jav8-read-only/jni/Utils.cpp:773:   instantiated from here
       [cc] (...)/v8-3.20.12/include/v8.h:5614: error: ‘static v8::Local<T> v8::Local<T>::New(v8::Isolate*, T*) [with T = v8::ObjectTemplate]’ is private
       [cc] (...)/jav8-read-only/jni/Wrapper.h:203: error: within this context
       [cc] (...)/v8-3.20.12/include/v8.h: In static member function ‘static v8::Handle<v8::Object> jni::CBaseJavaObject<T>::InternalWrap(T*) [with T = jni::CJavaArray]’:
       [cc] (...)/jav8-read-only/jni/Wrapper.h:222:   instantiated from ‘static v8::Handle<v8::Object> jni::CBaseJavaObject<T>::Wrap(JNIEnv*, _jobject*) [with T = jni::CJavaArray]’
       [cc] (...)/jav8-read-only/jni/Utils.cpp:809:   instantiated from here
       [cc] (...)/v8-3.20.12/include/v8.h:5614: error: ‘static v8::Local<T> v8::Local<T>::New(v8::Isolate*, T*) [with T = v8::ObjectTemplate]’ is private
       [cc] (...)/jav8-read-only/jni/Wrapper.h:203: error: within this context
       [cc] (...)/v8-3.20.12/include/v8.h: In static member function ‘static v8::Handle<v8::Object> jni::CBaseJavaObject<T>::InternalWrap(T*) [with T = jni::CJavaObject]’:
       [cc] (...)/jav8-read-only/jni/Wrapper.h:222:   instantiated from ‘static v8::Handle<v8::Object> jni::CBaseJavaObject<T>::Wrap(JNIEnv*, _jobject*) [with T = jni::CJavaObject]’
       [cc] (...)/jav8-read-only/jni/Utils.cpp:812:   instantiated from here
       [cc] (...)/v8-3.20.12/include/v8.h:5614: error: ‘static v8::Local<T> v8::Local<T>::New(v8::Isolate*, T*) [with T = v8::ObjectTemplate]’ is private
       [cc] (...)/jav8-read-only/jni/Wrapper.h:203: error: within this context

BUILD FAILED
(...)/jav8-read-only/build.xml:182: gcc failed with return code 1

What version of the product are you using? On what operating system?
V8 version: 3.20.12.
JAV8 version: trunk.
OS: RHEL6
GCC: 4.4.6

Please provide any additional information below.
I was able to compile JAV8 using the same environment in a windows machine.

Original issue reported on code.google.com by marcov...@gmail.com on 3 Dec 2013 at 5:11

GoogleCodeExporter commented 9 years ago
Please verify the fix with SVN trunk code after r83, thanks

Original comment by flier...@gmail.com on 23 Dec 2013 at 10:42