Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 569704

Summary: media-libs/phonon-gstreamer-4.8.2: error "You must build your code with position independent code if Qt was built with -reduce-relocations. "
Product: Gentoo Linux Reporter: niks1024
Component: Current packagesAssignee: Gentoo KDE team <kde>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log.gz

Description niks1024 2015-12-25 12:18:41 UTC
This might be an issue with hardened Gentoo or my particular setup but when I try to rebuild media-libs/phonon-gstreamer-4.8.2 (previously built on 23:15:18 2015.06.03.) I get this error message during configuration phase:

Building CXX object CMakeFiles/cmTC_9366a.dir/check_qt_visibility.cpp.o
/usr/bin/x86_64-pc-linux-gnu-g++   -I/usr/include/qt5 -I/usr/include/qt5/QtCore -I/usr/lib64/qt5/mkspecs/linux-g++ -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtGui   -DNDEBUG -O2 -pipe -march=native -O2 -pipe -ggdb2  -Wnon-virtual-dtor -Wno-long-long -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-exceptions -DQT_NO_EXCEPTIONS -fno-check-new -fno-common -Woverloaded-virtual -fvisibility=hidden  -fPIE   -o CMakeFiles/cmTC_9366a.dir/check_qt_visibility.cpp.o -c /var/tmp/portage/media-libs/phonon-gstreamer-4.8.2/work/phonon-backend-gstreamer-4.8.2-qt5/CMakeTmp/check_qt_visibility.cpp
In file included from /usr/include/qt5/QtCore/QtGlobal:1:0,
                 from /var/tmp/portage/media-libs/phonon-gstreamer-4.8.2/work/phonon-backend-gstreamer-4.8.2-qt5/CMakeTmp/check_qt_visibility.cpp:1:
/usr/include/qt5/QtCore/qglobal.h:1067:4: error: #error "You must build your code with position independent code if Qt was built with -reduce-relocations. " "Compile your code with -fPIC (-fPIE is not enough)."
 #  error "You must build your code with position independent code if Qt was built with -reduce-relocations. "\
    ^
CMakeFiles/cmTC_9366a.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_9366a.dir/check_qt_visibility.cpp.o' failed

Reproducible: Always

Steps to Reproduce:
No confirmed path to reproduce but I'm on hardened/linux/amd64 profile with gcc (Gentoo Hardened 5.3.0 p1.0, pie-0.6.5) 5.3.0 and I have USE=pic globally set since the days of non-hardened Gentoo.
Comment 1 niks1024 2015-12-25 12:20:18 UTC
Created attachment 420766 [details]
build.log.gz

Attaching the build log
Comment 2 Michael Palimaka (kensington) gentoo-dev 2015-12-25 16:21:50 UTC
Please rebuild media-libs/phonon and try again.

*** This bug has been marked as a duplicate of bug 564028 ***