The compile phase of x11-libs/qtscriptgenerator fails with the following errors. x86_64-pc-linux-gnu-g++ -c -O2 -pipe -O2 -fomit-frame-pointer -pipe -fno-stack-protector -floop-interchange -floop-strip-mine -floop-block -fgraphite-identity -march=core2 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_SCRIPT_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtScript -I/usr/include/qt4 -I. -I. -o qtscript_QAccessible.o ../../generated_cpp/com_trolltech_qt_gui/qtscript_QAccessible.cpp In file included from ../../generated_cpp/com_trolltech_qt_gui/qtscript_QAccessible.cpp:13:0: ../../generated_cpp/com_trolltech_qt_gui/qtscriptshell_QAccessible.h:9:1: error: expected class-name before '{' token { ^ <snip> ../../generated_cpp/com_trolltech_qt_gui/qtscript_QAccessible.cpp:66:1: note: in expansion of macro 'Q_DECLARE_METATYPE' Q_DECLARE_METATYPE(QFlags<QAccessible::RelationFlag>) ^ ../../generated_cpp/com_trolltech_qt_gui/qtscript_QAccessible.cpp:67:20: error: 'QAccessible' was not declared in this scope Q_DECLARE_METATYPE(QAccessible::StateFlag) ^ /usr/include/qt4/QtCore/qmetatype.h:268:25: note: in definition of macro 'Q_DECLARE_METATYPE' struct QMetaTypeId< TYPE > \ ^ /usr/include/qt4/QtCore/qmetatype.h:268:30: error: template argument 1 is invalid struct QMetaTypeId< TYPE > \ ^ ../../generated_cpp/com_trolltech_qt_gui/qtscript_QAccessible.cpp:67:1: note: in expansion of macro 'Q_DECLARE_METATYPE' Q_DECLARE_METATYPE(QAccessible::StateFlag) ^ ../../generated_cpp/com_trolltech_qt_gui/qtscript_QAccessible.cpp:68:27: error: 'QAccessible' was not declared in this scope Q_DECLARE_METATYPE(QFlags<QAccessible::StateFlag>) ^ /usr/include/qt4/QtCore/qmetatype.h:268:25: note: in definition of macro 'Q_DECLARE_METATYPE' struct QMetaTypeId< TYPE > \ ^ ../../generated_cpp/com_trolltech_qt_gui/qtscript_QAccessible.cpp:68:49: error: template argument 1 is invalid Q_DECLARE_METATYPE(QFlags<QAccessible::StateFlag>) ^ /usr/include/qt4/QtCore/qmetatype.h:268:25: note: in definition of macro 'Q_DECLARE_METATYPE' struct QMetaTypeId< TYPE > \ ^ /usr/include/qt4/QtCore/qmetatype.h:268:30: error: template argument 1 is invalid struct QMetaTypeId< TYPE > \ ^ ../../generated_cpp/com_trolltech_qt_gui/qtscript_QAccessible.cpp:68:1: note: in expansion of macro 'Q_DECLARE_METATYPE' Q_DECLARE_METATYPE(QFlags<QAccessible::StateFlag>) ^ ../../generated_cpp/com_trolltech_qt_gui/qtscript_QAccessible.cpp:69:20: error: 'QAccessible' was not declared in this scope Q_DECLARE_METATYPE(QAccessible::Text) ^ /usr/include/qt4/QtCore/qmetatype.h:268:25: note: in definition of macro 'Q_DECLARE_METATYPE' struct QMetaTypeId< TYPE > \ ^ /usr/include/qt4/QtCore/qmetatype.h:268:30: error: template argument 1 is invalid struct QMetaTypeId< TYPE > \ ^ ../../generated_cpp/com_trolltech_qt_gui/qtscript_QAccessible.cpp:69:1: note: in expansion of macro 'Q_DECLARE_METATYPE' Q_DECLARE_METATYPE(QAccessible::Text) ^ ../../generated_cpp/com_trolltech_qt_gui/qtscript_QAccessible.cpp:70:20: error: 'QAccessibleInterface' was not declared in this scope Q_DECLARE_METATYPE(QAccessibleInterface*) ^ /usr/include/qt4/QtCore/qmetatype.h:268:25: note: in definition of macro 'Q_DECLARE_METATYPE' struct QMetaTypeId< TYPE > \ ^ /usr/include/qt4/QtCore/qmetatype.h:268:30: error: template argument 1 is invalid struct QMetaTypeId< TYPE > \ ^ ../../generated_cpp/com_trolltech_qt_gui/qtscript_QAccessible.cpp:70:1: note: in expansion of macro 'Q_DECLARE_METATYPE' Q_DECLARE_METATYPE(QAccessibleInterface*) ^ ../../generated_cpp/com_trolltech_qt_gui/qtscript_QAccessible.cpp:107:14: error: 'QAccessible' does not name a type static const QAccessible::Method qtscript_QAccessible_Method_values[] = { ^ ../../generated_cpp/com_trolltech_qt_gui/qtscript_QAccessible.cpp:123:59: error: 'QAccessible' has not been declared static QString qtscript_QAccessible_Method_toStringHelper(QAccessible::Method value) ^ ../../generated_cpp/com_trolltech_qt_gui/qtscript_QAccessible.cpp:124:1: error: expected ',' or ';' before '{' token { ^ ../../generated_cpp/com_trolltech_qt_gui/qtscript_QAccessible.cpp:130:92: error: 'QAccessible' does not name a type static QScriptValue qtscript_QAccessible_Method_toScriptValue(QScriptEngine *engine, const QAccessible::Method &value) ^ ../../generated_cpp/com_trolltech_qt_gui/qtscript_QAccessible.cpp:130:112: error: expected unqualified-id before '&' token static QScriptValue qtscript_QAccessible_Method_toScriptValue(QScriptEngine *engine, const QAccessible::Method &value) ^ ../../generated_cpp/com_trolltech_qt_gui/qtscript_QAccessible.cpp:130:112: error: expected ')' before '&' token ../../generated_cpp/com_trolltech_qt_gui/qtscript_QAccessible.cpp:130:113: error: expected initializer before 'value' static QScriptValue qtscript_QAccessible_Method_toScriptValue(QScriptEngine *engine, const QAccessible::Method &value) ^ ../../generated_cpp/com_trolltech_qt_gui/qtscript_QAccessible.cpp:136:84: error: 'QAccessible' has not been declared static void qtscript_QAccessible_Method_fromScriptValue(const QScriptValue &value, QAccessible::Method &out) ^ ../../generated_cpp/com_trolltech_qt_gui/qtscript_QAccessible.cpp:136:104: error: expected ',' or '...' before '&' token static void qtscript_QAccessible_Method_fromScriptValue(const QScriptValue &value, QAccessible::Method &out) ^ ../../generated_cpp/com_trolltech_qt_gui/qtscript_QAccessible.cpp: In function 'void qtscript_QAccessible_Method_fromScriptValue(const QScriptValue&, int)': ../../generated_cpp/com_trolltech_qt_gui/qtscript_QAccessible.cpp:138:5: error: 'out' was not declared in this scope out = qvariant_cast<QAccessible::Method>(value.toVariant()); ^ ../../generated_cpp/com_trolltech_qt_gui/qtscript_QAccessible.cpp:138:25: error: 'QAccessible' was not declared in this scope out = qvariant_cast<QAccessible::Method>(value.toVariant()); ^ ../../generated_cpp/com_trolltech_qt_gui/qtscript_QAccessible.cpp:138:11: error: parse error in template argument list out = qvariant_cast<QAccessible::Method>(value.toVariant()); ^ ../../generated_cpp/com_trolltech_qt_gui/qtscript_QAccessible.cpp:138:63: error: no matching function for call to 'qvariant_cast(QVariant)' out = qvariant_cast<QAccessible::Method>(value.toVariant()); ^ ../../generated_cpp/com_trolltech_qt_gui/qtscript_QAccessible.cpp:138:63: note: candidate is: In file included from /usr/include/qt4/QtScript/qscriptengine.h:29:0, from /usr/include/qt4/QtScript/QScriptEngine:1, from ../../generated_cpp/com_trolltech_qt_gui/qtscript_QAccessible.cpp:1: /usr/include/qt4/QtCore/qvariant.h:571:31: note: template<class T> T qvariant_cast(const QVariant&) template<typename T> inline T qvariant_cast(const QVariant &v) ^ /usr/include/qt4/QtCore/qvariant.h:571:31: note: template argument deduction/substitution failed: ../../generated_cpp/com_trolltech_qt_gui/qtscript_QAccessible.cpp:138:63: error: template argument 1 is invalid out = qvariant_cast<QAccessible::Method>(value.toVariant()); ^ ../../generated_cpp/com_trolltech_qt_gui/qtscript_QAccessible.cpp: At global scope: ../../generated_cpp/com_trolltech_qt_gui/qtscript_QAccessible.cpp:136:97: warning: unused parameter 'Method' [-Wunused-parameter] static void qtscript_QAccessible_Method_fromScriptValue(const QScriptValue &value, QAccessible::Method &out) ^ ../../generated_cpp/com_trolltech_qt_gui/qtscript_QAccessible.cpp: In function 'QScriptValue qtscript_construct_QAccessible_Method(QScriptContext*, QScriptEngine*)': ../../generated_cpp/com_trolltech_qt_gui/qtscript_QAccessible.cpp:144:17: error: 'QAccessible' has not been declared if ((arg >= QAccessible::ListSupportedMethods) && (arg <= QAccessible::BackgroundColor)) ^ ../../generated_cpp/com_trolltech_qt_gui/qtscript_QAccessible.cpp:144:63: error: 'QAccessible' has not been declared if ((arg >= QAccessible::ListSupportedMethods) && (arg <= QAccessible::BackgroundColor)) ^ ../../generated_cpp/com_trolltech_qt_gui/qtscript_QAccessible.cpp:145:59: error: 'QAccessible' does not name a type return qScriptValueFromValue(engine, static_cast<QAccessible::Method>(arg)); ^ ../../generated_cpp/com_trolltech_qt_gui/qtscript_QAccessible.cpp:145:70: error: expected '>' before '::' token return qScriptValueFromValue(engine, static_cast<QAccessible::Method>(arg)); ^ ../../generated_cpp/com_trolltech_qt_gui/qtscript_QAccessible.cpp:145:70: error: expected '(' before '::' token ../../generated_cpp/com_trolltech_qt_gui/qtscript_QAccessible.cpp:145:70: error: '::Method' has not been declared ../../generated_cpp/com_trolltech_qt_gui/qtscript_QAccessible.cpp: In function 'QScriptValue qtscript_QAccessible_Method_valueOf(QScriptContext*, QScriptEngine*)': ../../generated_cpp/com_trolltech_qt_gui/qtscript_QAccessible.cpp:151:5: error: 'QAccessible' has not been declared QAccessible::Method value = qscriptvalue_cast<QAccessible::Method>(context->thisObject()); ^ ../../generated_cpp/com_trolltech_qt_gui/qtscript_QAccessible.cpp:152:50: error: 'value' was not declared in this scope return QScriptValue(engine, static_cast<int>(value)); ^ ../../generated_cpp/com_trolltech_qt_gui/qtscript_QAccessible.cpp: At global scope: ../../generated_cpp/com_trolltech_qt_gui/qtscript_QAccessible.cpp:149:73: warning: unused parameter 'context' [-Wunused-parameter] static QScriptValue qtscript_QAccessible_Method_valueOf(QScriptContext *context, QScriptEngine *engine) ^ ../../generated_cpp/com_trolltech_qt_gui/qtscript_QAccessible.cpp: In function 'QScriptValue qtscript_QAccessible_Method_toString(QScriptContext*, QScriptEngine*)': ../../generated_cpp/com_trolltech_qt_gui/qtscript_QAccessible.cpp:157:5: error: 'QAccessible' has not been declared QAccessible::Method value = qscriptvalue_cast<QAccessible::Method>(context->thisObject()); ^ ../../generated_cpp/com_trolltech_qt_gui/qtscript_QAccessible.cpp:158:76: error: 'value' was not declared in this scope return QScriptValue(engine, qtscript_QAccessible_Method_toStringHelper(value)); ^ ../../generated_cpp/com_trolltech_qt_gui/qtscript_QAccessible.cpp: At global scope: ../../generated_cpp/com_trolltech_qt_gui/qtscript_QAccessible.cpp:155:74: warning: unused parameter 'context' [-Wunused-parameter] static QScriptValue qtscript_QAccessible_Method_toString(QScriptContext *context, QScriptEngine *engine) ^ ../../generated_cpp/com_trolltech_qt_gui/qtscript_QAccessible.cpp: In function 'QScriptValue qtscript_create_QAccessible_Method_class(QScriptEngine*, QScriptValue&)': ../../generated_cpp/com_trolltech_qt_gui/qtscript_QAccessible.cpp:166:29: error: 'QAccessible' was not declared in this scope qScriptRegisterMetaType<QAccessible::Method>(engine, qtscript_QAccessible_Method_toScriptValue, ^ ../../generated_cpp/com_trolltech_qt_gui/qtscript_QAccessible.cpp:166:5: error: parse error in template argument list qScriptRegisterMetaType<QAccessible::Method>(engine, qtscript_QAccessible_Method_toScriptValue, ^ ../../generated_cpp/com_trolltech_qt_gui/qtscript_QAccessible.cpp:166:58: error: 'qtscript_QAccessible_Method_toScriptValue' was not declared in this scope qScriptRegisterMetaType<QAccessible::Method>(engine, qtscript_QAccessible_Method_toScriptValue, ^ ../../generated_cpp/com_trolltech_qt_gui/qtscript_QAccessible.cpp:170:50: error: 'qtscript_QAccessible_Method_values' was not declared in this scope engine->newVariant(qVariantFromValue(qtscript_QAccessible_Method_values[i])), ^ ../../generated_cpp/com_trolltech_qt_gui/qtscript_QAccessible.cpp: At global scope: ../../generated_cpp/com_trolltech_qt_gui/qtscript_QAccessible.cpp:180:14: error: 'QAccessible' does not name a type static const QAccessible::Role qtscript_QAccessible_Role_values[] = { ^ ../../generated_cpp/com_trolltech_qt_gui/qtscript_QAccessible.cpp:318:57: error: 'QAccessible' has not been declared static QString qtscript_QAccessible_Role_toStringHelper(QAccessible::Role value) ^ ../../generated_cpp/com_trolltech_qt_gui/qtscript_QAccessible.cpp:319:1: error: expected ',' or ';' before '{' token { ^ ../../generated_cpp/com_trolltech_qt_gui/qtscript_QAccessible.cpp:48:21: warning: 'QScriptValue qtscript_QAccessible_throw_ambiguity_error_helper(QScriptContext*, const char*, const char*)' defined but not used [-Wunused-function] static QScriptValue qtscript_QAccessible_throw_ambiguity_error_helper( ^ ../../generated_cpp/com_trolltech_qt_gui/qtscript_QAccessible.cpp:86:21: warning: 'QScriptValue qtscript_create_flags_class_helper(QScriptEngine*, QScriptEngine::FunctionSignature, QScriptEngine::FunctionSignature, QScriptEngine::FunctionSignature, QScriptEngine::FunctionSignature)' defined but not used [-Wunused-function] static QScriptValue qtscript_create_flags_class_helper( ^ ../../generated_cpp/com_trolltech_qt_gui/qtscript_QAccessible.cpp:161:21: warning: 'QScriptValue qtscript_create_QAccessible_Method_class(QScriptEngine*, QScriptValue&)' defined but not used [-Wunused-function] static QScriptValue qtscript_create_QAccessible_Method_class(QScriptEngine *engine, QScriptValue &clazz) ^ Makefile:1501: recipe for target 'qtscript_QAccessible.o' failed make[1]: *** [qtscript_QAccessible.o] Error 1 make[1]: Leaving directory '/var/tmp/portage/x11-libs/qtscriptgenerator-0.2.0/work/qtscriptgenerator-src-0.2.0/qtbindings/qtscript_gui' Makefile:71: recipe for target 'sub-qtscript_gui-make_default' failed make: *** [sub-qtscript_gui-make_default] Error 2 emerge -pqv '=x11-libs/qtscriptgenerator-0.2.0::gentoo' [ebuild N ] x11-libs/qtscriptgenerator-0.2.0 USE="-debug -kde" Reproducible: Always
# emerge --info '=x11-libs/qtscriptgenerator-0.2.0::gentoo' Portage 2.2.20 (python 3.3.5-final-0, default/linux/amd64/13.0, gcc-4.9.2, glibc-2.20-r2, 4.0.5-gentoo-gnu x86_64) ================================================================= System Settings ================================================================= System uname: Linux-4.0.5-gentoo-gnu-x86_64-Intel-R-_Core-TM-_i3-2350M_CPU_@_2.30GHz-with-gentoo-2.2 KiB Mem: 8089376 total, 5177524 free KiB Swap: 4193276 total, 4193276 free Timestamp of repository gentoo: Sat, 20 Jun 2015 12:00:01 +0000 sh bash 4.3_p39 ld GNU ld (Gentoo 2.25 p1.2) 2.25 app-shells/bash: 4.3_p39::gentoo dev-java/java-config: 2.2.0::gentoo dev-lang/perl: 5.20.2-r1::gentoo dev-lang/python: 2.7.10::gentoo, 3.3.5-r1::gentoo dev-util/cmake: 3.2.3::gentoo dev-util/pkgconfig: 0.28-r3::gentoo sys-apps/baselayout: 2.2::gentoo sys-apps/openrc: 0.17::gentoo sys-apps/sandbox: 2.6-r1::gentoo sys-devel/autoconf: 2.13::gentoo, 2.69-r1::gentoo sys-devel/automake: 1.11.6-r1::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo sys-devel/binutils: 2.25-r1::gentoo sys-devel/gcc: 4.9.2::gentoo sys-devel/gcc-config: 1.8::gentoo sys-devel/libtool: 2.4.6-r1::gentoo sys-devel/make: 4.1-r1::gentoo sys-kernel/linux-headers: 4.0::gentoo (virtual/os-headers) sys-libs/glibc: 2.20-r2::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 lilrc location: /home/kalle/lilrc-overlay masters: gentoo priority: 0 proaudio location: /home/kalle/proaudio masters: gentoo priority: 1 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="@FREE" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -O2 -fomit-frame-pointer -pipe -fno-stack-protector -floop-interchange -floop-strip-mine -floop-block -fgraphite-identity -march=core2" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-O2 -pipe -O2 -fomit-frame-pointer -pipe -fno-stack-protector -floop-interchange -floop-strip-mine -floop-block -fgraphite-identity -march=core2" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS=" --binpkg-changed-deps=y --binpkg-respect-use=y --buildpkg-exclude app-emulation/virtualbox-modules --buildpkg-exclude sys-fs/vhba --buildpkg-exclude sys-kernel/* --buildpkg-exclude virtual/* --buildpkg-exclude www-client/firefox" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs buildsyspkg config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news noinfo parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync" FFLAGS="-O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org http://ftp.df.lth.se/pub/gentoo/ rsync://ftp.df.lth.se/pub/gentoo/ http://mirror.mdfnet.se/gentoo" INSTALL_MASK="/etc/systemd /usr/lib/systemd" LANG="C" LC_ALL="C" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" USE="X a52 aac alloca alsa amd64 aspell bindist bluetooth cairo cd cdda cddb cdr consolekit cracklib crypt cups curl deblob dri drm dssi dvd dvdr exif ffmpeg fftw flac fltk gallium gif gimp glib gmp gnuplot gnutls gstreamer gtk gtk2 gtkstyle gudev hwdb imap inotify jack javascript jit jpeg keymap ladspa lame latex libkms libnotify libsamplerate lv2 mad mp3 mpeg netifrc networkmanager nptl ogg opengl openmp openrc orc pam pdf png policykit qt3support qt4 qt5 readline spell ssl startup-notification subversion svg svn theora threads tiff truetype udev udisks unicode upower usb v4l vaapi vlc vorbis webgl x264 xcb xcomposite xinerama xorg xscreensaver zlib" ABI_X86="64" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 sse4 sse4_1 ssse3" CURL_SSL="gnutls" ELIBC="glibc" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LINGUAS="en en_GB" PYTHON_SINGLE_TARGET="python3_3" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby20 ruby22" SANE_BACKENDS="plustek" USERLAND="GNU" VIDEO_CARDS="i965 intel" XFCE_PLUGINS="trash battery brightness power" Unset: CPPFLAGS, CTARGET, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Created attachment 405484 [details] build log
Try with saner CXXFLAGS, in particular get rid of the graphite-related flags.
Created attachment 405548 [details] build log Reproducible without the graphite flags too. The other CXXFLAGS should be no problem. They are just CXXFLAGS="-pipe -O2 -fomit-frame-pointer -fno-stack-protector -march=core2".
Thanks. Now try rebuilding qtgui (and qtsvg if you have to) with the accessibility USE flag enabled please.
With dev-qt/qtgui:4[accessibility] it compiles fine.
Thanks, fixed in cvs. 23 Jun 2015; Davide Pesavento <pesa@gentoo.org> qtscriptgenerator-0.2.0.ebuild: Add missing accessibility USE dependency wrt bug 552730.