build qt5 latest git branch produces compile error on arch linux x86-64: expr/qexpressionsequence.cpp:111:26: error: 'IDLiteralSequence' was not declared in this scope
-
wrote on 29 Jul 2015, 15:20 last edited by
I'm building the latest dev git version of qt5, and I fail at:
make[3]: Entering directory '/home/e/qt5/qtxmlpatterns/src/xmlpatterns'
g++ -c -include .pch/Qt5XmlPatterns -pipe -g -fvisibility=hidden -fvisibility-inlines-hidden -std=c++0x -Wall -W -Werror -Wno-error=cpp -Wno-error=deprecated-declarations -Wno-error=strict-overflow -D_REENTRANT -fPIC -DQT_NO_TSLIB -DQT_NO_LIBINPUT -DQT_NO_USING_NAMESPACE -DQT_ENABLE_QEXPLICITLYSHAREDDATAPOINTER_STATICCAST -DQT_BUILD_XMLPATTERNS_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 -DYYLTYPE_IS_DECLARED=1 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I/home/e/qt5/qtbase/include -I/home/e/qt5/qtbase/include/QtXmlPatterns -I/home/e/qt5/qtbase/include/QtXmlPatterns/5.5.1 -I/home/e/qt5/qtbase/include/QtXmlPatterns/5.5.1/QtXmlPatterns -Iacceltree -Idata -Iapi -Ienvironment -Iexpr -Ifunctions -Iiterators -Ijanitors -Iparser -Ischema -Itype -Iutils -I/home/e/qt5/qtbase/include/QtCore/5.5.1 -I/home/e/qt5/qtbase/include/QtCore/5.5.1/QtCore -I/home/e/qt5/qtbase/include/QtNetwork -I/home/e/qt5/qtbase/include/QtCore -I.moc -I/home/e/qt5/qtbase/mkspecs/linux-g++ -o .obj/qexpressionsequence.o expr/qexpressionsequence.cpp
expr/qexpressionsequence.cpp: In member function 'virtual QPatternist::Expression::Ptr QPatternist::ExpressionSequence::compress(const Ptr&)':
expr/qexpressionsequence.cpp:111:26: error: 'IDLiteralSequence' was not declared in this scope
} else if (Id == IDLiteralSequence) {So could someone tell me if this is an error with the qt git or something with my building? I'm going to comment out that else if for now.
For reference, after fetching from the git, I did "perl init-repository -f --build" and got:
<srcbase> = /home/e/qt5/qtbase
<outbase> = /home/e/qt5/qtbase
Creating qmake...
..............Done.
Running configuration tests...Configure summary
Build type: linux-g++ (x86_64, CPU features: mmx sse sse2)
Platform notes:- Also available for Linux: linux-clang linux-kcc linux-icc linux-cxx
Build options:
Configuration .......... accessibility accessibility-atspi-bridge alsa audio-backend avx avx2 c++11 clock-gettime clock-monotonic compile_examples concurrent cups dbus debug egl egl_x11 eglfs enable_new_dtags evdev eventfd fontconfig full-config getaddrinfo getifaddrs glib gstreamer-0.10 gtk2 gtkstyle harfbuzz headersclean iconv icu inotify ipv6ifname kms large-config largefile libproxy libudev linuxfb medium-config minimal-config mremap mtdev nis opengl openssl png posix_fallocate precompile_header private_tests pulseaudio qpa qpa reduce_exports reduce_relocations rpath shared small-config sse2 sse3 sse4_1 sse4_2 ssse3 system-freetype system-jpeg system-png system-zlib use_gold_linker warnings_are_errors xcb xcb-glx xcb-plugin xcb-render xcb-sm xcb-xlib xinput2 xkbcommon-evdev xlib xrender
Build parts ............ libs tools
Mode ................... debug
Using sanitizer(s)...... none
Using C++11 ............ yes
Using gold linker....... yes
Using new DTAGS ........ yes
Using PCH .............. yes
Target compiler supports:
SSE2/SSE3/SSSE3 ...... yes/yes/yes
SSE4.1/SSE4.2 ........ yes/yes
AVX/AVX2 ............. yes/yesQt modules and options:
Qt D-Bus ............... yes (loading dbus-1 at runtime)
Qt Concurrent .......... yes
Qt GUI ................. yes
Qt Widgets ............. yes
Large File ............. yes
QML debugging .......... yes
Use system proxies ..... noSupport enabled for:
Accessibility .......... yes
ALSA ................... yes
CUPS ................... yes
Evdev .................. yes
FontConfig ............. yes
FreeType ............... yes (system library)
Glib ................... yes
GStreamer .............. yes (0.10)
GTK theme .............. yes
HarfBuzz ............... yes (bundled copy)
Iconv .................. yes
ICU .................... yes
Image formats:
GIF .................. yes (plugin, using bundled copy)
JPEG ................. yes (plugin, using system library)
PNG .................. yes (in QtGui, using system library)
journald ............... no
libinput................ no
mtdev .................. yes (system library)
Networking:
getaddrinfo .......... yes
getifaddrs ........... yes
IPv6 ifname .......... yes
libproxy.............. yes
OpenSSL .............. yes (loading libraries at run-time)
NIS .................... yes
OpenGL / OpenVG:
EGL .................. yes
OpenGL ............... desktop
OpenVG ............... no
PCRE ................... system
pkg-config ............. yes
PulseAudio ............. yes
QPA backends:
DirectFB ............. no
EGLFS ................ yes
EGLFS i.MX6....... . no
EGLFS KMS .......... yes
EGLFS Mali ......... no
EGLFS Raspberry Pi . no
EGLFS X11 .......... yes
LinuxFB .............. yes
XCB .................. yes (system library)
EGL on X ........... yes
GLX ................ yes
MIT-SHM ............ yes
Xcb-Xlib ........... yes
Xcursor ............ yes (loaded at runtime)
Xfixes ............. yes (loaded at runtime)
Xi ................. no
Xi2 ................ yes
Xinerama ........... yes (loaded at runtime)
Xrandr ............. yes (loaded at runtime)
Xrender ............ yes
XKB ................ yes
XShape ............. yes
XSync .............. yes
XVideo ............. yes
Session management ..... yes
SQL drivers:
DB2 .................. no
InterBase ............ no
MySQL ................ yes (plugin)
OCI .................. no
ODBC ................. no
PostgreSQL ........... no
SQLite 2 ............. no
SQLite ............... yes (plugin, using bundled copy)
TDS .................. no
tslib .................. no
udev ................... yes
xkbcommon-x11........... yes (system library)
xkbcommon-evdev......... yes
zlib ................... yes (system library) -
wrote on 29 Jul 2015, 15:26 last edited by
that configure command was ./configure -developer-build -opensource -nomake examples -nomake tests
I was following https://wiki.qt.io/Building_Qt_5_from_Git
-
wrote on 29 Jul 2015, 15:36 last edited by
commenting out that else if just delays the error until expr/qliteralsequence.cpp:
g++ -c -include .pch/Qt5XmlPatterns -pipe -g -fvisibility=hidden -fvisibility-inlines-hidden -std=c++0x -Wall -W -Werror -Wno-error=cpp -Wno-error=deprecated-declarations -Wno-error=strict-overflow -D_REENTRANT -fPIC -DQT_NO_TSLIB -DQT_NO_LIBINPUT -DQT_NO_USING_NAMESPACE -DQT_ENABLE_QEXPLICITLYSHAREDDATAPOINTER_STATICCAST -DQT_BUILD_XMLPATTERNS_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 -DYYLTYPE_IS_DECLARED=1 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I/home/e/qt5/qtbase/include -I/home/e/qt5/qtbase/include/QtXmlPatterns -I/home/e/qt5/qtbase/include/QtXmlPatterns/5.5.1 -I/home/e/qt5/qtbase/include/QtXmlPatterns/5.5.1/QtXmlPatterns -Iacceltree -Idata -Iapi -Ienvironment -Iexpr -Ifunctions -Iiterators -Ijanitors -Iparser -Ischema -Itype -Iutils -I/home/e/qt5/qtbase/include/QtCore/5.5.1 -I/home/e/qt5/qtbase/include/QtCore/5.5.1/QtCore -I/home/e/qt5/qtbase/include/QtNetwork -I/home/e/qt5/qtbase/include/QtCore -I.moc -I/home/e/qt5/qtbase/mkspecs/linux-g++ -o .obj/qoptimizationpasses.o expr/qoptimizationpasses.cpp
expr/qliteralsequence.cpp: In member function 'virtual QPatternist::Expression::ID QPatternist::LiteralSequence::id() const':
expr/qliteralsequence.cpp:76:12: error: 'IDLiteralSequence' was not declared in this scope
return IDLiteralSequence;
2/3