Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 465930 - dev-util/cmake-2.8.10.2-r2[qt4] fails to build when qt5 is installed
Summary: dev-util/cmake-2.8.10.2-r2[qt4] fails to build when qt5 is installed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
: 474544 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-04-14 20:33 UTC by tman
Modified: 2013-06-24 07:31 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
var/tmp/portage/dev-util/cmake-2.8.10.2-r2/temp/build.log (build.log,76.28 KB, text/plain)
2013-04-14 20:34 UTC, tman
Details
CMAKE_VERBOSE=ON (dev-util:cmake-2.8.10.2-r2:20130415-120451.log,368.19 KB, text/plain)
2013-04-15 12:07 UTC, tman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tman 2013-04-14 20:33:33 UTC
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"
Comment 1 tman 2013-04-14 20:34:21 UTC
Created attachment 345586 [details]
var/tmp/portage/dev-util/cmake-2.8.10.2-r2/temp/build.log
Comment 2 Rafał Mużyło 2013-04-14 21:38:37 UTC
> /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.
Comment 3 Davide Pesavento (RETIRED) gentoo-dev 2013-04-14 21:50:50 UTC
Why the build.log isn't verbose? Did you set CMAKE_VERBOSE to off?
Comment 4 tman 2013-04-14 22:36:55 UTC
(In reply to comment #3)
> Why the build.log isn't verbose? Did you set CMAKE_VERBOSE to off?

yes its off
Comment 5 Davide Pesavento (RETIRED) gentoo-dev 2013-04-14 22:58:07 UTC
Please turn it on, rebuild, and attach the new build.log
Comment 6 tman 2013-04-15 12:07:49 UTC
Created attachment 345620 [details]
CMAKE_VERBOSE=ON

CMAKE_VERBOSE=ON
Comment 7 tman 2013-04-18 00:01:45 UTC
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
Comment 8 Alexander Stein 2013-05-01 12:05:03 UTC
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.
Comment 9 Flavio Cappelli 2013-05-01 15:39:45 UTC
I can confirm this. I have some Qt5 packages installed and unmerging them permits to successfully emerge cmake-2.8.10.2-r2.
Comment 10 Chris Reffett (RETIRED) gentoo-dev Security 2013-05-22 14:13:55 UTC
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.
Comment 11 Michael Palimaka (kensington) gentoo-dev 2013-05-22 14:32:38 UTC
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).
Comment 12 Davide Pesavento (RETIRED) gentoo-dev 2013-06-14 07:32:21 UTC
So...is this fixed in 2.8.11.1?
Comment 13 Michael Palimaka (kensington) gentoo-dev 2013-06-14 14:02:19 UTC
(In reply to Davide Pesavento from comment #12)
> So...is this fixed in 2.8.11.1?

Working without issue here.
Comment 14 Johannes Huber (RETIRED) gentoo-dev 2013-06-24 07:31:06 UTC
*** Bug 474544 has been marked as a duplicate of this bug. ***