Details
-
Bug
-
Resolution: Done
-
Not Evaluated
-
None
-
5.4.0
-
None
-
Ubuntu 14.10 x64, Ubuntu clang version 3.5.0-4ubuntu2
Configure line: ./configure -prefix /usr/local/Qt-5.4.0 -opensource -confirm-license -no-qml-debug -platform linux-clang -openssl -widgets -no-compile-examples -skip qtwebkit -skip qtwebengine -skip qtwebsockets -skip qtwayland -skip qtsensors -skip qtquickcontrols -skip qtquick1 -skip qtmultimedia -skip qtdoc -skip qtdeclarative -nomake testsUbuntu 14.10 x64, Ubuntu clang version 3.5.0-4ubuntu2 Configure line: ./configure -prefix /usr/local/Qt-5.4.0 -opensource -confirm-license -no-qml-debug -platform linux-clang -openssl -widgets -no-compile-examples -skip qtwebkit -skip qtwebengine -skip qtwebsockets -skip qtwayland -skip qtsensors -skip qtquickcontrols -skip qtquick1 -skip qtmultimedia -skip qtdoc -skip qtdeclarative -nomake tests
-
c6170fa5ee26cf9d0f2140d998fba2420ad1ed79
Description
Clang fails to build the QtScript module with the following message:
clang++ -c -Xclang -include-pch -Xclang .pch/Qt5Script/c+.pch -pipe -fno-strict-aliasing -O2 -fvisibility=hidden -fvisibility-inlines-hidden -std=c+11 -fno-exceptions -D_REENTRANT -fPIC -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DJSC=QTJSC -Djscyyparse=qtjscyyparse -Djscyylex=qtjscyylex -Djscyyerror=qtjscyyerror -DWTF=QTWTF -DQT_NO_USING_NAMESPACE -DQLALR_NO_QSCRIPTGRAMMAR_DEBUG_INFO -DQT_BUILD_SCRIPT_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DBUILDING_QT_=1 -DNDEBUG -DLOG_DISABLED=1 -DBUILDING_QT_ -DBUILDING_JavaScriptCore -DBUILDING_WTF -DWTF_USE_JAVASCRIPTCORE_BINDINGS=1 -DWTF_CHANGES=1 -DNDEBUG -DJS_NO_EXPORT -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_CORE_LIB -I/home/simon/qt/qt-everywhere-opensource-src-5.4.0/qtbase/mkspecs/linux-clang -I. -I../3rdparty/javascriptcore/JavaScriptCore -I../3rdparty/javascriptcore -I../3rdparty/javascriptcore/JavaScriptCore/assembler -I../3rdparty/javascriptcore/JavaScriptCore/bytecode -I../3rdparty/javascriptcore/JavaScriptCore/bytecompiler -I../3rdparty/javascriptcore/JavaScriptCore/debugger -I../3rdparty/javascriptcore/JavaScriptCore/interpreter -I../3rdparty/javascriptcore/JavaScriptCore/jit -I../3rdparty/javascriptcore/JavaScriptCore/parser -I../3rdparty/javascriptcore/JavaScriptCore/pcre -I../3rdparty/javascriptcore/JavaScriptCore/profiler -I../3rdparty/javascriptcore/JavaScriptCore/runtime -I../3rdparty/javascriptcore/JavaScriptCore/wrec -I../3rdparty/javascriptcore/JavaScriptCore/wtf -I../3rdparty/javascriptcore/JavaScriptCore/wtf/symbian -I../3rdparty/javascriptcore/JavaScriptCore/wtf/unicode -I../3rdparty/javascriptcore/JavaScriptCore/yarr -I../3rdparty/javascriptcore/JavaScriptCore/API -I../3rdparty/javascriptcore/JavaScriptCore/ForwardingHeaders -I../3rdparty/javascriptcore/JavaScriptCore/generated -I../../include -I../../include/QtScript -I../../include/QtScript/5.4.0 -I../../include/QtScript/5.4.0/QtScript -I/home/simon/qt/qt-everywhere-opensource-src-5.4.0/qtscript/src/3rdparty/javascriptcore/WebKit/qt/Api -I../3rdparty/javascriptcore/JavaScriptCore/pcre -I/home/simon/qt/qt-everywhere-opensource-src-5.4.0/qtscript/src/3rdparty/javascriptcore/JavaScriptCore/tmp -I../3rdparty/javascriptcore/JavaScriptCore -I../3rdparty/javascriptcore/JavaScriptCore/parser -I../3rdparty/javascriptcore/JavaScriptCore/bytecompiler -I../3rdparty/javascriptcore/JavaScriptCore/debugger -I../3rdparty/javascriptcore/JavaScriptCore/runtime -I../3rdparty/javascriptcore/JavaScriptCore/wtf -I/home/simon/qt/qt-everywhere-opensource-src-5.4.0/qtscript/src/script/../3rdparty/javascriptcore/JavaScriptCore/unicode -I../3rdparty/javascriptcore/JavaScriptCore/interpreter -I../3rdparty/javascriptcore/JavaScriptCore/jit -I../3rdparty/javascriptcore/JavaScriptCore/profiler -I../3rdparty/javascriptcore/JavaScriptCore/wrec -I../3rdparty/javascriptcore/JavaScriptCore/API -I../3rdparty/javascriptcore/JavaScriptCore/bytecode -I../3rdparty/javascriptcore/JavaScriptCore/assembler -I../3rdparty/javascriptcore/JavaScriptCore/generated -I. -Iparser -I/home/simon/qt/qt-everywhere-opensource-src-5.4.0/qtbase/include/QtCore/5.4.0 -I/home/simon/qt/qt-everywhere-opensource-src-5.4.0/qtbase/include/QtCore/5.4.0/QtCore -I/home/simon/qt/qt-everywhere-opensource-src-5.4.0/qtbase/include -I/home/simon/qt/qt-everywhere-opensource-src-5.4.0/qtbase/include/QtCore -I.moc -o obj/release/RegexCompiler.o ../3rdparty/javascriptcore/JavaScriptCore/yarr/RegexCompiler.cpp
In file included from ../3rdparty/javascriptcore/JavaScriptCore/yarr/RegexCompiler.cpp:27:
In file included from ../3rdparty/javascriptcore/JavaScriptCore/yarr/RegexCompiler.h:34:
In file included from ../3rdparty/javascriptcore/JavaScriptCore/yarr/RegexParser.h:33:
In file included from ../3rdparty/javascriptcore/JavaScriptCore/runtime/UString.h:27:
../3rdparty/javascriptcore/JavaScriptCore/runtime/UStringImpl.h:82:20: warning: comparison of constant 9223372036854775791 with expression of type 'unsigned int' is always false [-Wtautological-constant-out-of-range-compare]
if (length > ((std::numeric_limits<size_t>::max() - sizeof(UStringImpl)) / sizeof(UChar)))
~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../3rdparty/javascriptcore/JavaScriptCore/runtime/UStringImpl.h:96:20: warning: comparison of constant 9223372036854775791 with expression of type 'unsigned int' is always false [-Wtautological-constant-out-of-range-compare]
if (length > ((std::numeric_limits<size_t>::max() - sizeof(UStringImpl)) / sizeof(UChar)))
~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../3rdparty/javascriptcore/JavaScriptCore/yarr/RegexCompiler.cpp:722:12: error: cannot initialize return object of type 'const char *' with an rvalue of type 'bool'
return false;
^~~~~
2 warnings and 1 error generated.
Makefile:32962: recipe for target 'obj/release/RegexCompiler.o' failed
make[3]: *** [obj/release/RegexCompiler.o] Error 1
make[3]: Leaving directory '/home/simon/qt/qt-everywhere-opensource-src-5.4.0/qtscript/src/script'
Makefile:43: recipe for target 'sub-script-make_first-ordered' failed
make[2]: *** [sub-script-make_first-ordered] Error 2
make[2]: Leaving directory '/home/simon/qt/qt-everywhere-opensource-src-5.4.0/qtscript/src'
Makefile:44: recipe for target 'sub-src-make_first' failed
make[1]: *** [sub-src-make_first] Error 2
make[1]: Leaving directory '/home/simon/qt/qt-everywhere-opensource-src-5.4.0/qtscript'
Makefile:384: recipe for target 'module-qtscript-make_first' failed
make: *** [module-qtscript-make_first] Error 2
Possible fix:
Change line 722 in qtscript/src/3rdparty/javascriptcore/JavaScriptCore/yarr/RegexCompiler.cpp to return 0;