Hey list, I just recently got a new gcc 5.1 package in arch stable, so I thought I'd rebuild all of kde with it to see if I still get the kbuildsycoca5 crash (if arch's qt5 packages are still built with gcc 4.9). At any rate, I'm not able to build even kdesupport anymore. Once kdesrc-build gets to phonon it complains with an error in qglobal.h that I need to build with -fPIC now. I've added that to my cxxflags in .kdesrc-buildrc and it is passing it into the build command, but it still complains. I know build.kde.org recently hit a similar issue, how do we get stuff to build now that qt throws this #error even when we follow it's suggestion?
phonon build error log here: # kdesrc-build running: 'cmake' '/home/jeremy/devel/kde/src/kdesupport/phonon/phonon' '-DKDE4_BUILD_TESTS=FALSE' '-DBUILD_TESTING=TRUE' '-DCMAKE_BUILD_TYPE=RelWithDebInfo' '-DCMAKE_INSTALL_LIBDIR=lib' '-DPHONON_ BUILD_PHONON4QT5=ON' '-DCMAKE_CXX_FLAGS:STRING=-pipe -DQT_STRICT_ITERATORS -DQURL_NO_CAST_FROM_STRING -DQT_NO_HTTP -DQT_NO_FTP -Wformat -Werror=return-type -Wno-variadic-macros -Wlogical-op -fPIC ' '-DCMAKE_INST ALL_PREFIX=/usr/local' # from directory: /home/jeremy/devel/kde/build/kdesupport/phonon/phonon -- The C compiler identification is GNU 5.1.0 -- The CXX compiler identification is GNU 5.1.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Enabling backend state machine validation. -- Using CMake automoc builtin -- Performing Test HAVE_FPIE_SUPPORT -- Performing Test HAVE_FPIE_SUPPORT - Success -- Performing Test __KDE_HAVE_W_OVERLOADED_VIRTUAL -- Performing Test __KDE_HAVE_W_OVERLOADED_VIRTUAL - Success -- Performing Test __KDE_HAVE_GCC_VISIBILITY -- Performing Test __KDE_HAVE_GCC_VISIBILITY - Success Change Dir: /home/jeremy/devel/kde/build/kdesupport/phonon/phonon/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/make" "cmTryCompileExec745990338/fast" /usr/bin/make -f CMakeFiles/cmTryCompileExec745990338.dir/build.make CMakeFiles/cmTryCompileExec745990338.dir/build make[1]: Entering directory '/home/jeremy/devel/kde/build/kdesupport/phonon/phonon/CMakeFiles/CMakeTmp' /usr/bin/cmake -E cmake_progress_report /home/jeremy/devel/kde/build/kdesupport/phonon/phonon/CMakeFiles/CMakeTmp/CMakeFiles 1 Building CXX object CMakeFiles/cmTryCompileExec745990338.dir/check_qt_visibility.cpp.o /usr/bin/c++ -pipe -DQT_STRICT_ITERATORS -DQURL_NO_CAST_FROM_STRING -DQT_NO_HTTP -DQT_NO_FTP -Wformat -Werror=return-type -Wno-variadic-macros -Wlogical-op -fPIC -Wnon-virtual-dtor -Wno-long-long -Wundef -Wca st-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-exceptions -DQT_NO_EXCEPTIONS -fno-check-new -fno-common -Woverloaded-virtual -fvisibility=hidden -fPIE -I/usr/include/qt -I/usr/includ e/qt/QtCore -I/usr/lib/qt/mkspecs/linux-g++ -I/usr/include/qt/QtWidgets -I/usr/include/qt/QtGui -o CMakeFiles/cmTryCompileExec745990338.dir/check_qt_visibility.cpp.o -c /home/jeremy/devel/kde/build/kdesupport /phonon/phonon/CMakeTmp/check_qt_visibility.cpp In file included from /usr/include/qt/QtCore/QtGlobal:1:0, from /home/jeremy/devel/kde/build/kdesupport/phonon/phonon/CMakeTmp/check_qt_visibility.cpp:1: /usr/include/qt/QtCore/qglobal.h:1050: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/cmTryCompileExec745990338.dir/build.make:57: recipe for target 'CMakeFiles/cmTryCompileExec745990338.dir/check_qt_visibility.cpp.o' failed make[1]: Leaving directory '/home/jeremy/devel/kde/build/kdesupport/phonon/phonon/CMakeFiles/CMakeTmp' make[1]: *** [CMakeFiles/cmTryCompileExec745990338.dir/check_qt_visibility.cpp.o] Error 1 Makefile:117: recipe for target 'cmTryCompileExec745990338/fast' failed make: *** [cmTryCompileExec745990338/fast] Error 2 Do we need to "fix" the arch qt packages to build with -fPIC or something? thanks, Jeremy >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<