Skip to Content.
Sympa Menu

sm-discuss - Re: [SM-Discuss] KDE5 breakage around phonon4qt5

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: Thomas Orgis <thomas-forum AT orgis.org>
  • To: sm-discuss AT lists.ibiblio.org
  • Subject: Re: [SM-Discuss] KDE5 breakage around phonon4qt5
  • Date: Thu, 3 Mar 2016 09:55:29 +0100

Even hacking -fPIC manually into CMAKE_FLAGS in that try_compile line
doesn't help. It's stripped out. It's official, I hate cmake, too, not
just scons.

But eh … I am wondering … Why doesn't the native x86-64 archspec
include PIC? I might even be to blame for that? Why doesn't it break
elsewhere? I need to dig deep in memory about that. Did we have a time
when we decided that stuff works without enforcing PIC everywhere? I'm
not sure about anything now (except that software sucks).

But even with appending PIC to CXXFLAGS in BUILD, I get this:

[1/2] Building CXX object CMakeFiles/cmTC_adec6.dir/check_qt_visibility.cpp.o
FAILED: /usr/bin/c++ -I/opt/qt5/include -I/opt/qt5/include/QtCore
-I/opt/qt5/./mkspecs/linux-g++ -I/opt/qt5/include/QtWidgets
-I/opt/qt5/include/QtGui -march=native -mtune=native -m64 -pipe -O3 -fPIC
-DPIC -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_adec6.dir/check_qt_visibility.cpp.o -c
/usr/src/phonon-4.8.3/build/CMakeTmp/check_qt_visibility.cpp
In file included from /opt/qt5/include/QtCore/QtGlobal:1:0,
from
/usr/src/phonon-4.8.3/build/CMakeTmp/check_qt_visibility.cpp:1:
/opt/qt5/include/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. "\
^
ninja: build stopped: subcommand failed.

CMake Error at cmake/FindPhononInternal.cmake:416 (message):
Qt compiled without support for -fvisibility=hidden. This will break
plugins and linking of some applications. Please fix your Qt installation
(try passing --reduce-exports to configure).
Call Stack (most recent call first):
CMakeLists.txt:47 (include)


So, perhaps there really needs to be a change in how qtbase is built?!


Alrighty then,

Thomas

Attachment: pgp12v9J2JQXH.pgp
Description: Digitale Signatur von OpenPGP




Archive powered by MHonArc 2.6.24.

Top of Page