desura / Desurium

Free online games platform (juegos gratis), with an open source client. LGPL repo for Desura client. Potentially out of date. See https://github.com/desura/desura-app for newest (LGPL) client.
https://www.desura.com/es
GNU General Public License v3.0
270 stars 42 forks source link

desurium does not build with newest v8 #569

Open TheSiege opened 11 years ago

TheSiege commented 11 years ago
[ 18%] Building CXX object src/static/scriptengine/CMakeFiles/scriptengine.dir/code/ScriptCoreInternal.cpp.o
cd /var/tmp/portage/games-util/desurium-9999/work/desurium-9999_build/src/static/scriptengine && /usr/bin/x86_64-pc-linux-gnu-g++  -DBOOST_FILESYSTEM_VERSION=3 -DBOOST_NO_CXX11_SCOPED_ENUMS=1 -DBOOST_NO_SCOPED_ENUMS=1 -DNDEBUG -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXGTK__ -DwxDEBUG_LEVEL=0  -DNDEBUG -O2 -pipe -march=native -ftree-vectorize -mavx -maes   -fPIC -pipe -fvisibility=hidden -finline-functions  -fpermissive -std=c++0x -I/var/tmp/portage/games-util/desurium-9999/work/desurium-9999/src/include -I/var/tmp/portage/games-util/desurium-9999/work/desurium-9999/src/common -I/var/tmp/portage/games-util/desurium-9999/work/desurium-9999_build/include -I/var/tmp/portage/games-util/desurium-9999/work/desurium-9999/src/static/scriptengine -I/var/tmp/portage/games-util/desurium-9999/work/desurium-9999_build/fetch_cef-prefix/src/fetch_cef    -o CMakeFiles/scriptengine.dir/code/ScriptCoreInternal.cpp.o -c /var/tmp/portage/games-util/desurium-9999/work/desurium-9999/src/static/scriptengine/code/ScriptCoreInternal.cpp
/var/tmp/portage/games-util/desurium-9999/work/desurium-9999/src/static/scriptengine/code/ScriptCoreInternal.cpp: In Elementfunktion »void ScriptCoreInternal::init()«:
/var/tmp/portage/games-util/desurium-9999/work/desurium-9999/src/static/scriptengine/code/ScriptCoreInternal.cpp:73:85: Warnung: »static v8::Persistent<v8::Context> v8::Context::New(v8::ExtensionConfiguration*, v8::Handle<v8::ObjectTemplate>, v8::Handle<v8::Value>)« ist veraltet (deklariert bei /usr/include/v8.h:4849) [-Wdeprecated-declarations]
In file included from /var/tmp/portage/games-util/desurium-9999/work/desurium-9999/src/static/scriptengine/code/ScriptCoreInternal.h:26:0,
                 from /var/tmp/portage/games-util/desurium-9999/work/desurium-9999/src/static/scriptengine/code/ScriptCoreInternal.cpp:21:
/usr/include/v8.h:750:3: Fehler: »v8::Persistent<T>::Persistent(const v8::Persistent<T>&) [mit T = v8::Context; v8::Persistent<T> = v8::Persistent<v8::Context>]« ist privat
/var/tmp/portage/games-util/desurium-9999/work/desurium-9999/src/static/scriptengine/code/ScriptCoreInternal.cpp:73:85: Fehler: in diesem Zusammenhang
In file included from /var/tmp/portage/games-util/desurium-9999/work/desurium-9999/src/static/scriptengine/code/ScriptCoreInternal.h:26:0,
                 from /var/tmp/portage/games-util/desurium-9999/work/desurium-9999/src/static/scriptengine/code/ScriptCoreInternal.cpp:21:
/usr/include/v8.h:752:3: Fehler: »v8::Persistent<T>& v8::Persistent<T>::operator=(const v8::Persistent<T>&) [mit T = v8::Context; v8::Persistent<T> = v8::Persistent<v8::Context>]« ist privat
/var/tmp/portage/games-util/desurium-9999/work/desurium-9999/src/static/scriptengine/code/ScriptCoreInternal.cpp:74:16: Fehler: in diesem Zusammenhang
/var/tmp/portage/games-util/desurium-9999/work/desurium-9999/src/static/scriptengine/code/ScriptCoreInternal.cpp: In Elementfunktion »void ScriptCoreInternal::runString(const char*)«:
/var/tmp/portage/games-util/desurium-9999/work/desurium-9999/src/static/scriptengine/code/ScriptCoreInternal.cpp:93:46: Fehler: keine passende Funktion für Aufruf von »v8::Context::Scope::Scope(v8::Persistent<v8::Context>&)«
/var/tmp/portage/games-util/desurium-9999/work/desurium-9999/src/static/scriptengine/code/ScriptCoreInternal.cpp:93:46: Anmerkung: Kandidaten sind:
In file included from /var/tmp/portage/games-util/desurium-9999/work/desurium-9999/src/static/scriptengine/code/ScriptCoreInternal.h:26:0,
                 from /var/tmp/portage/games-util/desurium-9999/work/desurium-9999/src/static/scriptengine/code/ScriptCoreInternal.cpp:21:
/usr/include/v8.h:4970:5: Anmerkung: v8::Context::Scope::Scope(v8::Isolate*, v8::Persistent<v8::Context>&)
/usr/include/v8.h:4970:5: Anmerkung:   Kandidat erwartet 2 Argumente, 1 angegeben
/usr/include/v8.h:4966:14: Anmerkung: v8::Context::Scope::Scope(v8::Handle<v8::Context>)
/usr/include/v8.h:4966:14: Anmerkung:   keine bekannte Umwandlung für Argument 1 von »v8::Persistent<v8::Context>« nach »v8::Handle<v8::Context>«
/usr/include/v8.h:4964:9: Anmerkung: constexpr v8::Context::Scope::Scope(const v8::Context::Scope&)
/usr/include/v8.h:4964:9: Anmerkung:   keine bekannte Umwandlung für Argument 1 von »v8::Persistent<v8::Context>« nach »const v8::Context::Scope&«
/var/tmp/portage/games-util/desurium-9999/work/desurium-9999/src/static/scriptengine/code/ScriptCoreInternal.cpp: In Elementfunktion »void ScriptCoreInternal::runScript(const char*, const char*, uint32_t)«:
/var/tmp/portage/games-util/desurium-9999/work/desurium-9999/src/static/scriptengine/code/ScriptCoreInternal.cpp:122:46: Fehler: keine passende Funktion für Aufruf von »v8::Context::Scope::Scope(v8::Persistent<v8::Context>&)«
/var/tmp/portage/games-util/desurium-9999/work/desurium-9999/src/static/scriptengine/code/ScriptCoreInternal.cpp:122:46: Anmerkung: Kandidaten sind:
In file included from /var/tmp/portage/games-util/desurium-9999/work/desurium-9999/src/static/scriptengine/code/ScriptCoreInternal.h:26:0,
                 from /var/tmp/portage/games-util/desurium-9999/work/desurium-9999/src/static/scriptengine/code/ScriptCoreInternal.cpp:21:
/usr/include/v8.h:4970:5: Anmerkung: v8::Context::Scope::Scope(v8::Isolate*, v8::Persistent<v8::Context>&)
/usr/include/v8.h:4970:5: Anmerkung:   Kandidat erwartet 2 Argumente, 1 angegeben
/usr/include/v8.h:4966:14: Anmerkung: v8::Context::Scope::Scope(v8::Handle<v8::Context>)
/usr/include/v8.h:4966:14: Anmerkung:   keine bekannte Umwandlung für Argument 1 von »v8::Persistent<v8::Context>« nach »v8::Handle<v8::Context>«
/usr/include/v8.h:4964:9: Anmerkung: constexpr v8::Context::Scope::Scope(const v8::Context::Scope&)
/usr/include/v8.h:4964:9: Anmerkung:   keine bekannte Umwandlung für Argument 1 von »v8::Persistent<v8::Context>« nach »const v8::Context::Scope&«
make[2]: *** [src/static/scriptengine/CMakeFiles/scriptengine.dir/code/ScriptCoreInternal.cpp.o] Fehler 1
make[2]: Leaving directory `/var/tmp/portage/games-util/desurium-9999/work/desurium-9999_build'
make[1]: *** [src/static/scriptengine/CMakeFiles/scriptengine.dir/all] Fehler 2
make[1]: Leaving directory `/var/tmp/portage/games-util/desurium-9999/work/desurium-9999_build'
make: *** [all] Fehler 2
karolherbst commented 11 years ago

which version of v8 is it?

karolherbst commented 11 years ago

I think we should remove all deprecated features, too.

TheSiege commented 11 years ago

)3.19.18.4(

lodle commented 10 years ago

Cant use Handle instead of Persistence as they are not the same thing.

Mailaender commented 10 years ago

Desurium 0.8 RC10 also fails to build on https://build.opensuse.org/package/rawlog/games/Desurium/openSUSE_13.1/i586 with libv8-3-3.20.0.1-2.1.3

[  203s] /home/abuild/rpmbuild/BUILD/Desurium-0.8.0_rc10/src/static/scriptengine/code/ScriptCoreInternal.cpp: In member function 'void ScriptCoreInternal::init()':
[  203s] /home/abuild/rpmbuild/BUILD/Desurium-0.8.0_rc10/src/static/scriptengine/code/ScriptCoreInternal.cpp:70:77: warning: 'static v8::Local<v8::FunctionTemplate> v8::FunctionTemplate::New(v8::InvocationCallback, v8::Handle<v8::Value>, v8::Handle<v8::Signature>, int)' is deprecated (declared at /usr/include/v8.h:3263) [-Wdeprecated-declarations]
[  203s]   global->Set(v8::String::New("Warning"), v8::FunctionTemplate::New(JSWarning));
[  203s]                                                                              ^
[  203s] /home/abuild/rpmbuild/BUILD/Desurium-0.8.0_rc10/src/static/scriptengine/code/ScriptCoreInternal.cpp:71:73: warning: 'static v8::Local<v8::FunctionTemplate> v8::FunctionTemplate::New(v8::InvocationCallback, v8::Handle<v8::Value>, v8::Handle<v8::Signature>, int)' is deprecated (declared at /usr/include/v8.h:3263) [-Wdeprecated-declarations]
[  203s]   global->Set(v8::String::New("Debug"), v8::FunctionTemplate::New(JSDebug));
[  203s]                                                                          ^
[  203s] /home/abuild/rpmbuild/BUILD/Desurium-0.8.0_rc10/src/static/scriptengine/code/ScriptCoreInternal.cpp:73:85: warning: 'static v8::Persistent<v8::Context> v8::Context::New(v8::ExtensionConfiguration*, v8::Handle<v8::ObjectTemplate>, v8::Handle<v8::Value>)' is deprecated (declared at /usr/include/v8.h:4921) [-Wdeprecated-declarations]
[  203s]   v8::Persistent<v8::Context> context = v8::Context::New(RegisterJSBindings(), global);
[  203s]                                                                                      ^
[  203s] In file included from /home/abuild/rpmbuild/BUILD/Desurium-0.8.0_rc10/src/static/scriptengine/code/ScriptCoreInternal.h:26:0,
[  203s]                  from /home/abuild/rpmbuild/BUILD/Desurium-0.8.0_rc10/src/static/scriptengine/code/ScriptCoreInternal.cpp:21:
[  203s] /usr/include/v8.h:751:3: error: 'v8::Persistent<T>::Persistent(const v8::Persistent<T>&) [with T = v8::Context]' is private
[  203s]    V8_INLINE(Persistent(const Persistent& that)) : val_(that.val_) {}
[  203s]    ^
[  203s] /home/abuild/rpmbuild/BUILD/Desurium-0.8.0_rc10/src/static/scriptengine/code/ScriptCoreInternal.cpp:73:85: error: within this context
[  203s]   v8::Persistent<v8::Context> context = v8::Context::New(RegisterJSBindings(), global);
[  203s]                                                                                      ^
[  203s] In file included from /home/abuild/rpmbuild/BUILD/Desurium-0.8.0_rc10/src/static/scriptengine/code/ScriptCoreInternal.h:26:0,
[  203s]                  from /home/abuild/rpmbuild/BUILD/Desurium-0.8.0_rc10/src/static/scriptengine/code/ScriptCoreInternal.cpp:21:
[  203s] /usr/include/v8.h:753:3: error: 'v8::Persistent<T>& v8::Persistent<T>::operator=(const v8::Persistent<T>&) [with T = v8::Context]' is private
[  203s]    V8_INLINE(Persistent& operator=(const Persistent& that)) {  // NOLINT
[  203s]    ^
[  203s] /home/abuild/rpmbuild/BUILD/Desurium-0.8.0_rc10/src/static/scriptengine/code/ScriptCoreInternal.cpp:74:14: error: within this context
[  203s]   m_v8Context = context;  
[  203s]               ^
[  203s] /home/abuild/rpmbuild/BUILD/Desurium-0.8.0_rc10/src/static/scriptengine/code/ScriptCoreInternal.cpp: In member function 'void ScriptCoreInternal::runString(const char*)':
[  203s] /home/abuild/rpmbuild/BUILD/Desurium-0.8.0_rc10/src/static/scriptengine/code/ScriptCoreInternal.cpp:93:46: error: no matching function for call to 'v8::Context::Scope::Scope(v8::Persistent<v8::Context>&)'
[  203s]   v8::Context::Scope context_scope(m_v8Context);
[  203s]                                               ^
[  203s] /home/abuild/rpmbuild/BUILD/Desurium-0.8.0_rc10/src/static/scriptengine/code/ScriptCoreInternal.cpp:93:46: note: candidates are:
[  203s] In file included from /home/abuild/rpmbuild/BUILD/Desurium-0.8.0_rc10/src/static/scriptengine/code/ScriptCoreInternal.h:26:0,
[  203s]                  from /home/abuild/rpmbuild/BUILD/Desurium-0.8.0_rc10/src/static/scriptengine/code/ScriptCoreInternal.cpp:21:
[  203s] /usr/include/v8.h:5042:5: note: v8::Context::Scope::Scope(v8::Isolate*, v8::Persistent<v8::Context>&)
[  203s]      V8_INLINE(Scope(Isolate* isolate, Persistent<Context>& context)) // NOLINT
[  203s]      ^
[  203s] /usr/include/v8.h:5042:5: note:   candidate expects 2 arguments, 1 provided
[  203s] /usr/include/v8.h:5038:14: note: v8::Context::Scope::Scope(v8::Handle<v8::Context>)
[  203s]      explicit V8_INLINE(Scope(Handle<Context> context)) : context_(context) {
[  203s]               ^
[  203s] /usr/include/v8.h:5038:14: note:   no known conversion for argument 1 from 'v8::Persistent<v8::Context>' to 'v8::Handle<v8::Context>'
[  203s] /usr/include/v8.h:5036:9: note: constexpr v8::Context::Scope::Scope(const v8::Context::Scope&)
[  203s]    class Scope {
[  203s]          ^
[  203s] /usr/include/v8.h:5036:9: note:   no known conversion for argument 1 from 'v8::Persistent<v8::Context>' to 'const v8::Context::Scope&'
[  203s] /home/abuild/rpmbuild/BUILD/Desurium-0.8.0_rc10/src/static/scriptengine/code/ScriptCoreInternal.cpp: In member function 'void ScriptCoreInternal::runScript(const char*, const char*, uint32_t)':
[  203s] /home/abuild/rpmbuild/BUILD/Desurium-0.8.0_rc10/src/static/scriptengine/code/ScriptCoreInternal.cpp:122:46: error: no matching function for call to 'v8::Context::Scope::Scope(v8::Persistent<v8::Context>&)'
[  203s]   v8::Context::Scope context_scope(m_v8Context);
[  203s]                                               ^
[  203s] /home/abuild/rpmbuild/BUILD/Desurium-0.8.0_rc10/src/static/scriptengine/code/ScriptCoreInternal.cpp:122:46: note: candidates are:
[  203s] In file included from /home/abuild/rpmbuild/BUILD/Desurium-0.8.0_rc10/src/static/scriptengine/code/ScriptCoreInternal.h:26:0,
[  203s]                  from /home/abuild/rpmbuild/BUILD/Desurium-0.8.0_rc10/src/static/scriptengine/code/ScriptCoreInternal.cpp:21:
[  203s] /usr/include/v8.h:5042:5: note: v8::Context::Scope::Scope(v8::Isolate*, v8::Persistent<v8::Context>&)
[  203s]      V8_INLINE(Scope(Isolate* isolate, Persistent<Context>& context)) // NOLINT
[  203s]      ^
[  203s] /usr/include/v8.h:5042:5: note:   candidate expects 2 arguments, 1 provided
[  203s] /usr/include/v8.h:5038:14: note: v8::Context::Scope::Scope(v8::Handle<v8::Context>)
[  203s]      explicit V8_INLINE(Scope(Handle<Context> context)) : context_(context) {
[  203s]               ^
[  203s] /usr/include/v8.h:5038:14: note:   no known conversion for argument 1 from 'v8::Persistent<v8::Context>' to 'v8::Handle<v8::Context>'
[  203s] /usr/include/v8.h:5036:9: note: constexpr v8::Context::Scope::Scope(const v8::Context::Scope&)
[  203s]    class Scope {
[  203s]          ^
[  203s] /usr/include/v8.h:5036:9: note:   no known conversion for argument 1 from 'v8::Persistent<v8::Context>' to 'const v8::Context::Scope&'
[  203s] cc1: warning: command line option '-fpermissive' is valid for C++/ObjC++ but not for C [enabled by default]
[  203s] make[2]: *** [src/static/scriptengine/CMakeFiles/scriptengine.dir/code/ScriptCoreInternal.cpp.o] Error 1
[  203s] make[1]: *** [src/static/scriptengine/CMakeFiles/scriptengine.dir/all] Error 2