87%] Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmCTestSubmitHandler.cxx.o [ 87%] Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmCTestTestCommand.cxx.o [ 87%] Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmCTestTestHandler.cxx.o [ 88%] Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmCTestUpdateCommand.cxx.o [ 88%] Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmCTestUpdateHandler.cxx.o [ 89%] Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmCTestUploadCommand.cxx.o [ 89%] Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmCTestUploadHandler.cxx.o [ 89%] Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmCTestVC.cxx.o [ 90%] [ 90%] Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmCTestGlobalVC.cxx.o Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmCTestCVS.cxx.o [ 90%] [ 91%] Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmCTestSVN.cxx.o Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmCTestBZR.cxx.o [ 91%] Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmCTestGIT.cxx.o [ 91%] Building CXX object Source/CMakeFiles/CTestLib.dir/CTest/cmCTestHG.cxx.o Linking CXX static library libCTestLib.a [ 91%] Built target CTestLib make: *** [all] Error 2 * ERROR: dev-util/cmake-2.8.10.2-r2 failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=dev-util/cmake-2.8.10.2-r2'`, * the complete build log and the output of `emerge -pqv '=dev-util/cmake-2.8.10.2-r2'`. * The complete build log is located at '/var/log/portage/dev-util:cmake-2.8.10.2-r2:20130414-202519.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-util/cmake-2.8.10.2-r2/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-util/cmake-2.8.10.2-r2/temp/environment'. * Working directory: '/var/tmp/portage/dev-util/cmake-2.8.10.2-r2/work/cmake-2.8.10.2_build' * S: '/var/tmp/portage/dev-util/cmake-2.8.10.2-r2/work/cmake-2.8.10.2' Reproducible: Always Portage 2.1.11.62 (default/linux/amd64/13.0/desktop, gcc-4.7.3, glibc-2.17, 3.8.7-gentoo x86_64) ================================================================= System uname: Linux-3.8.7-gentoo-x86_64-Intel-R-_Core-TM-_i7-3740QM_CPU_@_2.70GHz-with-gentoo-2.2 KiB Mem: 24627884 total, 9992352 free KiB Swap: 25081852 total, 25081836 free Timestamp of tree: Sun, 14 Apr 2013 19:30:01 +0000 ld GNU ld (GNU Binutils) 2.23.1 app-shells/bash: 4.2_p45 dev-java/java-config: 2.2.0 dev-lang/python: 2.7.3-r3, 3.2.3-r2 dev-util/cmake: 2.8.10.2-r1 dev-util/pkgconfig: 0.28 sys-apps/baselayout: 2.2 sys-apps/openrc: 0.11.8 sys-apps/sandbox: 2.6-r1 sys-devel/autoconf: 2.13, 2.69 sys-devel/automake: 1.10.3, 1.11.6, 1.13.1 sys-devel/binutils: 2.23.1 sys-devel/gcc: 4.7.3_pre::poly-c sys-devel/gcc-config: 1.8 sys-devel/libtool: 2.4.2 sys-devel/make: 3.82-r5::gnome sys-kernel/linux-headers: 3.8 (virtual/os-headers) sys-libs/glibc: 2.17 Repositories: gentoo nikai ruby mgorny poly-c luman qt alice Techwolf gamerlay scarabeus science mva emacs flameeyes-overlay mpd wirelay steam-overlay gnome lokal ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=corei7 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /etc/X11/Sessions/awesome /etc/X11/Sessions/dwm /etc/conf.d/consolefont /etc/conf.d/hostname /etc/conf.d/hwclock /etc/conf.d/keymaps /etc/default/grub /etc/eix-sync.conf /etc/fstab /etc/hosts /etc/locale.gen /etc/make.conf /etc/timezone /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.5/ext-active/ /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="-march=corei7 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync 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" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j9" 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"
Created attachment 345586 [details] var/tmp/portage/dev-util/cmake-2.8.10.2-r2/temp/build.log
> /usr/include/qt5/QtCore/qglobal.h:1079:4: error: #error "You must build your code with position independent code if Qt was built with -reduce-relocations. " "Compile your code with -fPIC or -fPIE." That's odd for more than one reason: the check during bootstrap does detect qt 4.8.4.
Why the build.log isn't verbose? Did you set CMAKE_VERBOSE to off?
(In reply to comment #3) > Why the build.log isn't verbose? Did you set CMAKE_VERBOSE to off? yes its off
Please turn it on, rebuild, and attach the new build.log
Created attachment 345620 [details] CMAKE_VERBOSE=ON CMAKE_VERBOSE=ON
its a problem with qt. i tried to emerge with deactivated USE for qt4. USE="-qt4" emerge -1av cmake and it works, so it must besomething wrong with qt support. i hope it can fix as soon as possible. thanks
You have also Qt5 installed (so have I). See this error message: /usr/include/qt5/QtCore/qglobal.h:1079:4: error: #error "You must build your code with position independent code if Qt was built with -reduce-relocations. " "Compile your code with -fPIC or -fPIE." For some reason cmake picks Qt5 rather than Qt4 to compile.
I can confirm this. I have some Qt5 packages installed and unmerging them permits to successfully emerge cmake-2.8.10.2-r2.
Could you test cmake-2.8.11 (available in KDE overlay) and see if that still has the issue? The release announcement for it mentioned some qt detection fixes.
CMake still tries to use Qt5 first, but the ebuild in the overlay handles this properly. (The ebuild code was around for 2.8.10 too, but was removed due to qt5 ebuilds/use flag not in portage yet. Since more and more stuff is supporting qt5, I will try to organise the global (masked) qt5 USE flag).
So...is this fixed in 2.8.11.1?
(In reply to Davide Pesavento from comment #12) > So...is this fixed in 2.8.11.1? Working without issue here.
*** Bug 474544 has been marked as a duplicate of this bug. ***