Hi
How to resolve this problem?
/opt/source/qt5/qtwebkit/Source/JavaScriptCore/wtf/NullPtr.h:48:1: error: identifier ‘nullptr’ will become a keyword in C++0x [-Werror=c++0x-compat]
cc1plus: all warnings being treated as errors
Hi
How to resolve this problem?
/opt/source/qt5/qtwebkit/Source/JavaScriptCore/wtf/NullPtr.h:48:1: error: identifier ‘nullptr’ will become a keyword in C++0x [-Werror=c++0x-compat]
cc1plus: all warnings being treated as errors
remove -well
and then see this error:
/qt5/bin/moc -DENABLE_NETSCAPE_PLUGIN_API=0 -DNDEBUG -DBUILDING_QT__=1 -DNDEBUG -DBUILDING_JavaScriptCore -DBUILDING_WTF -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_SHARED -I .... qt5/qtwebkit/Source/JavaScriptCore/wtf/qt/MainThreadQt.cpp -o MainThreadQt.moc
/home/arm/opt/source/qt5/qtwebkit/Source/JavaScriptCore/yarr/YarrParser.h: In function ‘const char* JSC::Yarr::checkSyntax(const JSC::UString&)’:
/opt/source/qt5/qtwebkit/Source/JavaScriptCore/yarr/YarrParser.h:136:17: error: ‘characterClassConstructor.JSC::Yarr::Parser <JSC::Yarr::SyntaxChecker>::CharacterClassParserDe legate::m_character’ may be used uninitialized in this function [-Werror=uninitialized]
/home/arm/opt/source/qt5/qtwebkit/Source/JavaScriptCore/yarr/YarrParser.h:454:38: note: ‘characterClassConstructor.JSC::Yarr::Parser <JSC::Yarr::SyntaxChecker>::CharacterClassParserDe legate::m_character’ was declared here
cc1plus: all warnings being treated as errors
Now
Cheng Webkit.pri
add : -Wno-c++0x-compat
comment : isEqual(QT_ARCH,x86_64)|isEqual(QT_ARCH,i386): QMAKE_CXXFLAGS += -Werror
*-g++*:QMAKE_CXXFLAGS += -Wall -Wextra -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 -Wno-c++0x-compat
# Treat warnings as errors on x86/Linux/GCC
linux-g++* {
# isEqual(QT_ARCH,x86_64)|isEqual(QT_ARCH,i386): QMAKE_CXXFLAGS += -Werror
}
Compiling and see this error:
g++ -fuse-ld=gold -Wl,-O1 -Wl,-rpath,/opt/installed/x86/qt5/lib -Wl,-rpath,/home/arm/opt/source/qt5/qtwebkit/WebKitBuild/Release/lib -o ./jsc obj/release/jsc.o -L./release -L/opt/installed/x86/qt5/lib -lQtCore -L/opt/installed/x86/qt5/lib -lpthread -ljscore
/usr/bin/ld: ./release/libjscore.a(FastMalloc.o): undefined reference to symbol 'pthread_create@@GLIBC_2.1'
/usr/bin/ld: note: 'pthread_create@@GLIBC_2.1' is defined in DSO /lib/i386-linux-gnu/libpthread.so.0 so try adding it to the linker command line
/lib/i386-linux-gnu/libpthread.so.0: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[3]: *** [jsc] Error 1
Added after 45 minutes:
remove:
-lpthread
from:
g++ -fuse-ld=gold -Wl,-O1 -Wl,-rpath,/opt/installed/x86/qt5/lib -Wl,-rpath,/home/arm/opt/source/qt5/qtwebkit/WebKitBuild/Release/lib -o ./jsc obj/release/jsc.o -L./release -L/opt/installed/x86/qt5/lib -lQtCore -L/opt/installed/x86/qt5/lib -lpthread -ljscore
and run command :
g++ -fuse-ld=gold -Wl,-O1 -Wl,-rpath,/opt/installed/x86/qt5/lib -Wl,-rpath,/home/arm/opt/source/qt5/qtwebkit/WebKitBuild/Release/lib -o ./jsc obj/release/jsc.o -L./release -L/opt/installed/x86/qt5/lib -lQtCore -L/opt/installed/x86/qt5/lib -ljscore
then make -j4 and make -j4 install
Last edited by lamp; 30th November 2011 at 21:28.
Bookmarks