Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-24994

build fails with gcc-4.7.0

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 4.8.0
    • Qt Script
    • None
    • linux-3.3
      gcc-4.7.0
      amd64

    Description

      g++ -c -march=native -mtune=native -m64 -pipe -O3 -I/opt/firebird/include -I/usr/include -I/src/include/postgresql -I/usr/include/server/libpq -Wall -Wreturn-type -fno-strict-aliasing -Wcast-align -Wchar-subscripts -Wformat-security -Wreturn-type -Wno-unused-parameter -Wno-sign-compare -Wno-switch -Wno-switch-enum -Wundef -Wmissing-noreturn -Winit-self -fno-stack-protector -O2 -fvisibility=hidden -fvisibility-inlines-hidden -D_REENTRANT -fPIC -DQT_SHARED -DJSC=QTJSC -Djscyyparse=qtjscyyparse -Djscyylex=qtjscyylex -Djscyyerror=qtjscyyerror -DWTF=QTWTF -DQT_BUILD_SCRIPT_LIB -DQT_NO_USING_NAMESPACE -DQLALR_NO_QSCRIPTGRAMMAR_DEBUG_INFO -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DBUILDING_QT_=1 -DWTF_USE_ACCELERATED_COMPOSITING -DNDEBUG -DBUILDING_QT_ -DBUILDING_JavaScriptCore -DBUILDING_WTF -DWTF_USE_JAVASCRIPTCORE_BINDINGS=1 -DWTF_CHANGES=1 -DNDEBUG -DJS_NO_EXPORT -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_HAVE_SSE3 -DQT_HAVE_SSSE3 -DQT_HAVE_SSE4_1 -DQT_HAVE_SSE4_2 -DQT_HAVE_AVX -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I/var/git/qt/mkspecs/linux-g++ -I/var/git/qt/src/script -I../../include/QtCore -I../../include -I/var/git/qt/src/3rdparty/javascriptcore/JavaScriptCore -I/var/git/qt/src/3rdparty/javascriptcore -I/var/git/qt/src/3rdparty/javascriptcore/JavaScriptCore/assembler -I/var/git/qt/src/3rdparty/javascriptcore/JavaScriptCore/bytecode -I/var/git/qt/src/3rdparty/javascriptcore/JavaScriptCore/bytecompiler -I/var/git/qt/src/3rdparty/javascriptcore/JavaScriptCore/debugger -I/var/git/qt/src/3rdparty/javascriptcore/JavaScriptCore/interpreter -I/var/git/qt/src/3rdparty/javascriptcore/JavaScriptCore/jit -I/var/git/qt/src/3rdparty/javascriptcore/JavaScriptCore/parser -I/var/git/qt/src/3rdparty/javascriptcore/JavaScriptCore/pcre -I/var/git/qt/src/3rdparty/javascriptcore/JavaScriptCore/profiler -I/var/git/qt/src/3rdparty/javascriptcore/JavaScriptCore/runtime -I/var/git/qt/src/3rdparty/javascriptcore/JavaScriptCore/wrec -I/var/git/qt/src/3rdparty/javascriptcore/JavaScriptCore/wtf -I/var/git/qt/src/3rdparty/javascriptcore/JavaScriptCore/wtf/symbian -I/var/git/qt/src/3rdparty/javascriptcore/JavaScriptCore/wtf/unicode -I/var/git/qt/src/3rdparty/javascriptcore/JavaScriptCore/yarr -I/var/git/qt/src/3rdparty/javascriptcore/JavaScriptCore/API -I/var/git/qt/src/3rdparty/javascriptcore/JavaScriptCore/ForwardingHeaders -I/var/git/qt/src/3rdparty/javascriptcore/JavaScriptCore/generated -I../../include/QtScript -I.rcc/release-shared -I/var/git/qt/src/3rdparty/javascriptcore/WebKit/qt/Api -I/var/git/qt/src/3rdparty/javascriptcore/JavaScriptCore/pcre -I/var/git/qt/src/3rdparty/javascriptcore/JavaScriptCore/tmp -I/var/git/qt/src/3rdparty/javascriptcore/JavaScriptCore -I/var/git/qt/src/3rdparty/javascriptcore/JavaScriptCore/parser -I/var/git/qt/src/3rdparty/javascriptcore/JavaScriptCore/bytecompiler -I/var/git/qt/src/3rdparty/javascriptcore/JavaScriptCore/debugger -I/var/git/qt/src/3rdparty/javascriptcore/JavaScriptCore/runtime -I/var/git/qt/src/3rdparty/javascriptcore/JavaScriptCore/wtf -I/var/git/qt/src/script/../3rdparty/javascriptcore/JavaScriptCore/unicode -I/var/git/qt/src/3rdparty/javascriptcore/JavaScriptCore/interpreter -I/var/git/qt/src/3rdparty/javascriptcore/JavaScriptCore/jit -I/var/git/qt/src/3rdparty/javascriptcore/JavaScriptCore/profiler -I/var/git/qt/src/3rdparty/javascriptcore/JavaScriptCore/wrec -I/var/git/qt/src/3rdparty/javascriptcore/JavaScriptCore/API -I/var/git/qt/src/3rdparty/javascriptcore/JavaScriptCore/bytecode -I/var/git/qt/src/3rdparty/javascriptcore/JavaScriptCore/assembler -I/var/git/qt/src/3rdparty/javascriptcore/JavaScriptCore/generated -I/var/git/qt/src/script -I/var/git/qt/src/script/parser -I.moc/release-shared -I. -o obj/release/JSCallbackObject.o /var/git/qt/src/3rdparty/javascriptcore/JavaScriptCore/API/JSCallbackObject.cpp
      In file included from /var/git/qt/src/3rdparty/javascriptcore/JavaScriptCore/API/APICast.h:30:0,
      from /var/git/qt/src/3rdparty/javascriptcore/JavaScriptCore/API/JSBase.cpp:30:
      /var/git/qt/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSGlobalObject.h:62:65: error: expected class-name before '{' token
      /var/git/qt/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSGlobalObject.h: In constructor 'QTJSC::JSGlobalObject::JSGlobalObjectData::JSGlobalObjectData(QTJSC::JSGlobalObject::JSGlobalObjectData::Destructor)':
      /var/git/qt/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSGlobalObject.h:71:19: error: type 'QTJSC::JSVariableObject::JSVariableObjectData' is not a direct base of 'QTJSC::JSGlobalObject::JSGlobalObjectData'
      /var/git/qt/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSGlobalObject.h: In constructor 'QTJSC::JSGlobalObject::JSGlobalObject()':
      /var/git/qt/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSGlobalObject.h:166:124: error: no matching function for call to 'QTJSC::JSVariableObject::JSVariableObject(QTWTF::PassRefPtr<QTJSC::Structure>, QTJSC::JSGlobalObject::JSGlobalObjectData*)'
      /var/git/qt/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSGlobalObject.h:166:124: note: candidates are:
      In file included from /var/git/qt/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSGlobalObject.h:27:0,
      from /var/git/qt/src/3rdparty/javascriptcore/JavaScriptCore/API/APICast.h:30,
      from /var/git/qt/src/3rdparty/javascriptcore/JavaScriptCore/API/JSBase.cpp:30:
      /var/git/qt/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSVariableObject.h:86:9: note: QTJSC::JSVariableObject::JSVariableObject(QTWTF::NonNullPassRefPtr<QTJSC::Structure>, QTJSC::JSVariableObject::JSVariableObjectData*)
      /var/git/qt/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSVariableObject.h:86:9: note:
      /var/git/qt/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSGlobalObject.h:173:47: error: no matching function for call to 'QTJSC::JSVariableObject::JSVariableObject(QTWTF::NonNullPassRefPtr<QTJSC::Structure>&, QTJSC::JSGlobalObject::JSGlobalObjectData*&)'
      /var/git/qt/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSGlobalObject.h:173:47: note: candidates are:
      In file included from /var/git/qt/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSGlobalObject.h:27:0,
      from /var/git/qt/src/3rdparty/javascriptcore/JavaScriptCore/API/APICast.h:30,
      from /var/git/qt/src/3rdparty/javascriptcore/JavaScriptCore/API/JSBase.cpp:30:
      /var/git/qt/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSVariableObject.h:86:9: note: QTJSC::JSVariableObject::JSVariableObject(QTWTF::NonNullPassRefPtr<QTJSC::Structure>, QTJSC::JSVariableObject::JSVariableObjectData*)
      /var/git/qt/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSVariableObject.h:86:9: note: no known conversion for argument 2 from 'QTJSC::JSGlobalObject::JSGlobalObjectData*' to 'QTJSC::JSVariableObject::JSVariableObjectData*'
      /var/git/qt/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSVariableObject.h:43:11: note: QTJSC::JSVariableObject::JSVariableObject(const QTJSC::JSVariableObject&)
      /var/git/qt/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSVariableObject.h:43:11: note: candidate expects 1 argument, 2 provided
      In file included from /var/git/qt/src/3rdparty/javascriptcore/JavaScriptCore/API/APICast.h:30:0,
      from /var/git/qt/src/3rdparty/javascriptcore/JavaScriptCore/API/JSBase.cpp:30:
      /var/git/qt/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSGlobalObject.h: In member function 'QTJSC::JSGlobalObject::JSGlobalObjectData* QTJSC::JSGlobalObject::d() const':
      /var/git/qt/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSGlobalObject.h:270:100: error: invalid static_cast from type 'QTJSC::JSVariableObject::JSVariableObjectData* const' to type 'QTJSC::JSGlobalObject::JSGlobalObjectData*'
      In file included from /var/git/qt/src/3rdparty/javascriptcore/JavaScriptCore/API/APICast.h:30:0,
      from /var/git/qt/src/3rdparty/javascriptcore/JavaScriptCore/API/JSBase.cpp:30:
      /var/git/qt/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSGlobalObject.h: In member function 'void QTJSC::JSGlobalObject::addStaticGlobals(QTJSC::JSGlobalObject::GlobalPropertyInfo*, int)':
      /var/git/qt/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSGlobalObject.h:327:18: error: 'struct QTJSC::JSGlobalObject::JSGlobalObjectData' has no member named 'registerArray'
      /var/git/qt/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSGlobalObject.h:328:48: error: 'struct QTJSC::JSGlobalObject::JSGlobalObjectData' has no member named 'registerArray'
      In file included from /var/git/qt/src/3rdparty/javascriptcore/JavaScriptCore/API/APICast.h:30:0,
      from /var/git/qt/src/3rdparty/javascriptcore/JavaScriptCore/API/JSBase.cpp:30:
      /var/git/qt/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSGlobalObject.h: In member function 'QTJSC::JSGlobalObject::JSGlobalObjectData* QTJSC::JSGlobalObject::d() const':
      /var/git/qt/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSGlobalObject.h:270:103: warning: control reaches end of non-void function [-Wreturn-type]
      make[1]: *** [obj/release/JSBase.o] Error 1

      the same problem exists in qt5/qtscript

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kenthans Kent Hansen (Inactive)
            treeve Treeve Jelbert
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes