Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
cmake and qt-gui fail to compile
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Safrax
Guru
Guru


Joined: 23 Apr 2002
Posts: 422

PostPosted: Sat Oct 06, 2012 10:51 pm    Post subject: cmake and qt-gui fail to compile Reply with quote

Cmake fails with:
Code:

[ 68%] Building CXX object Source/CMakeFiles/CPackLib.dir/CPack/cmCPackComponentGroup.cxx.o
cd /var/tmp/portage/dev-util/cmake-2.8.9-r1/work/cmake-2.8.9_build/Source && /usr/bin/x86_64-pc-linux-gnu-g++  -DCMAKE_BUILD_WITH_CMAKE  -DNDEBUG -march=native -O2 -pipe -flto -fgraphite-identity -floop-block -fomit-frame-pointer -fno-lto -fno-loop-block -fno-graphite-identity  -I/var/tmp/portage/dev-util/cmake-2.8.9-r1/work/cmake-2.8.9_build/Utilities -I/var/tmp/portage/dev-util/cmake-2.8.9-r1/work/cmake-2.8.9/Utilities -I/var/tmp/portage/dev-util/cmake-2.8.9-r1/work/cmake-2.8.9_build/Source -I/var/tmp/portage/dev-util/cmake-2.8.9-r1/work/cmake-2.8.9/Source -I/var/tmp/portage/dev-util/cmake-2.8.9-r1/work/cmake-2.8.9_build/Utilities/cmcompress -I/var/tmp/portage/dev-util/cmake-2.8.9-r1/work/cmake-2.8.9/Source/CTest    -o CMakeFiles/CPackLib.dir/CPack/cmCPackComponentGroup.cxx.o -c /var/tmp/portage/dev-util/cmake-2.8.9-r1/work/cmake-2.8.9/Source/CPack/cmCPackComponentGroup.cxx
In file included from /var/tmp/portage/dev-util/cmake-2.8.9-r1/work/cmake-2.8.9/Source/QtDialog/CMakeSetupDialog.h:20:0,
                 from /var/tmp/portage/dev-util/cmake-2.8.9-r1/work/cmake-2.8.9/Source/QtDialog/CMakeSetup.cxx:18:
/var/tmp/portage/dev-util/cmake-2.8.9-r1/work/cmake-2.8.9_build/Source/QtDialog/ui_CMakeSetupDialog.h:40:5: error: ‘QLabel’ does not name a type
/var/tmp/portage/dev-util/cmake-2.8.9-r1/work/cmake-2.8.9_build/Source/QtDialog/ui_CMakeSetupDialog.h:43:5: error: ‘QLabel’ does not name a type
/var/tmp/portage/dev-util/cmake-2.8.9-r1/work/cmake-2.8.9_build/Source/QtDialog/ui_CMakeSetupDialog.h:50:5: error: ‘QLabel’ does not name a type
/var/tmp/portage/dev-util/cmake-2.8.9-r1/work/cmake-2.8.9_build/Source/QtDialog/ui_CMakeSetupDialog.h:58:5: error: ‘QLabel’ does not name a type
/var/tmp/portage/dev-util/cmake-2.8.9-r1/work/cmake-2.8.9_build/Source/QtDialog/ui_CMakeSetupDialog.h:62:5: error: ‘QLabel’ does not name a type
/var/tmp/portage/dev-util/cmake-2.8.9-r1/work/cmake-2.8.9_build/Source/QtDialog/ui_CMakeSetupDialog.h: In member function ‘void Ui_CMakeSetupDialog::setupUi(QWidget*)’:


QT-Gui fails with:
Code:

/var/tmp/portage/x11-libs/qt-gui-4.8.3-r1/work/qt-everywhere-opensource-src-4.8.3/bin/moc -DQT_SHARED -DQT_BUILD_GUI_LIB -DQT_NO_USING_NAMESPACE -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_NO_OPENTYPE -DQT_NO_STYLE_MAC -DQT_NO_STYLE_WINDOWSVISTA -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_WINDOWSCE -DQT_NO_STYLE_WINDOWSMOBILE -DQT_NO_STYLE_S60 -DQ_INTERNAL_QAPP_SRC -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../../mkspecs/linux-g++ -I. -I../../include/QtCore -I../../include -I../../include/QtGui -I.rcc/release-shared -I../3rdparty/xorg -Iimage -I/usr/include/freetype2 -I../3rdparty/harfbuzz/src -Idialogs -I.moc/release-shared -I/usr/X11R6/include -I.uic/release-shared dialogs/qprintdialog_unix.cpp -o .moc/release-shared/qprintdialog_unix.moc
x86_64-pc-linux-gnu-g++ -c -march=native -O2 -pipe -flto -fgraphite-identity -floop-block -fomit-frame-pointer -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -D_REENTRANT -I/usr/include/freetype2 -fPIC -DQT_SHARED -DQT_BUILD_GUI_LIB -DQT_NO_USING_NAMESPACE -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_NO_OPENTYPE -DQT_NO_STYLE_MAC -DQT_NO_STYLE_WINDOWSVISTA -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_WINDOWSCE -DQT_NO_STYLE_WINDOWSMOBILE -DQT_NO_STYLE_S60 -DQ_INTERNAL_QAPP_SRC -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../../mkspecs/linux-g++ -I. -I../../include/QtCore -I../../include -I../../include/QtGui -I.rcc/release-shared -I../3rdparty/xorg -Iimage -I/usr/include/freetype2 -I../3rdparty/harfbuzz/src -Idialogs -I.moc/release-shared -I/usr/X11R6/include -I.uic/release-shared -o .obj/release-shared/qpagesetupdialog_unix.o dialogs/qpagesetupdialog_unix.cpp
In file included from dialogs/qpagesetupdialog_unix_p.h:60:0,
                 from dialogs/qpagesetupdialog_unix.cpp:45:
.uic/release-shared/ui_qpagesetupwidget.h:25:28: fatal error: qdoublespinbox.h: No such file or directory
compilation terminated.
make: *** [.obj/release-shared/qpagesetupdialog_unix.o] Error 1
make: *** Waiting for unfinished jobs....
widgets/qplaintextedit.cpp: In member function ‘virtual void QPlainTextEdit::paintEvent(QPaintEvent*)’:
widgets/qplaintextedit.cpp:1836:5: warning: unused variable ‘d’ [-Wunused-variable]


Code:

rog ~ # emerge --info
Portage 2.1.11.24 (default/linux/amd64/10.0/no-multilib, gcc-4.7.2, glibc-2.15-r3, 3.5.3-geek x86_64)
=================================================================
System uname: Linux-3.5.3-geek-x86_64-Intel-R-_Core-TM-_i7-3610QM_CPU_@_2.30GHz-with-gentoo-2.2
Timestamp of tree: Sat, 06 Oct 2012 14:45:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.12
dev-lang/python:          2.7.3-r2, 3.2.3-r1
dev-util/cmake:           2.8.9
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.10.5
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.4
sys-devel/binutils:       2.22.90
sys-devel/gcc:            4.7.2
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo init6 poncho-overlay infinality-overlay multimedia
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -flto -fgraphite-identity -floop-block -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/entropy /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="${EPREFIX}/etc/gconf /etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe -flto -fgraphite-identity -floop-block -fomit-frame-pointer"
DISTDIR="/var/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles metadata-transfer news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-flto,-O1,--sort-common,--as-needed,-z,relro"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/init6 /var/lib/layman/poncho /var/lib/layman/infinality /var/lib/layman/multimedia"
SYNC="rsync://rsync5.us.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 apm apng avx berkdb bluetooth branding bzip2 cairo cdda cdr cli cloog consolekit cracklib cxx dbus declarative dri dtc dts dvd dvdr emboss encode exif fam firefox flac gif gpm graphite gtk gudev hwdb iconv jpeg kde lame lcms ldap libnotify lzma mad mmx mng modules mp3 mp4 mpeg mudflap ncurses networkmanager nls nptl nptlonly ogg opengl openmp optimized-qmake pam pango pcre pdf png policykit ppds pppd pulseaudio python qt qt3support qt4 readline sdl session spell sql sse sse2 sse3 sse4 sse4_1 ssl ssse3 startup-notification svg tcpd threads thumbnail tiff truetype udev udisks unicode upower usb vorbis webkit wxwidgets x264 xcb xinerama xml xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON


I've been able to repeat this problem across multiple computers and I have no idea what I'm doing that's causing things to break like they are.
Back to top
View user's profile Send private message
Safrax
Guru
Guru


Joined: 23 Apr 2002
Posts: 422

PostPosted: Tue Oct 09, 2012 12:23 pm    Post subject: Reply with quote

Well I figured it out, finally. Using graphite (-floop-block -fgraphite-identity) results in some packages subtly failing to build correctly. Removing graphite optimizations solved the issue.

Lesson learned! At least LTO is more stable and when it breaks, it breaks extremely verbosely.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum