mixxxdj / mixxx

Mixxx is Free DJ software that gives you everything you need to perform live mixes.
http://mixxx.org
Other
4.5k stars 1.28k forks source link

Precompiled headers: Build fails on Fedora #12073

Closed uklotzde closed 1 year ago

uklotzde commented 1 year ago

Bug Description

https://koji.rpmfusion.org/koji/taskinfo?taskID=613288 https://koji.rpmfusion.org/kojifiles/work/tasks/3292/613292/build.log

FAILED: CMakeFiles/mixxx-test.dir/src/test/autodjprocessor_test.cpp.o 
/usr/bin/ccache /usr/lib64/ccache/g++ -DGTEST_LINKED_AS_SHARED_LIBRARY=1 -DMIXXX_BUILD_RELEASE -DMIXXX_USE_QOPENGL -DPA_USE_ALSA -DQT_CONCURRENT_LIB -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_PRINTSUPPORT_LIB -DQT_QMLMODELS_LIB -DQT_QML_LIB -DQT_QUICKWIDGETS_LIB -DQT_QUICK_LIB -DQT_SQL_LIB -DQT_SVG_LIB -DQT_TABLET_SUPPORT -DQT_TESTCASE_BUILDDIR=\"/builddir/build/BUILD/mixxx-c5f0db1c7ec052b4401ca60e336796328bd99920/redhat-linux-build\" -DQT_TESTLIB_LIB -DQT_USE_QSTRINGBUILDER -DQT_WIDGETS_LIB -DQT_X11EXTRAS_LIB -DQT_XML_LIB -D__BATTERY__ -D__BROADCAST__ -D__BULK__ -D__ENGINEPRIME__ -D__FAAD__ -D__FFMPEG__ -D__HID__ -D__KEYFINDER__ -D__LILV__ -D__LINUX__ -D__MAD__ -D__MODPLUG__ -D__OPUS__ -D__QTKEYCHAIN__ -D__SNDFILE__ -D__SQLITE3__ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -D__UNIX__ -D__VINYLCONTROL__ -D__WV__ -Dx86_64 -I/builddir/build/BUILD/mixxx-c5f0db1c7ec052b4401ca60e336796328bd99920/redhat-linux-build/mixxx-test_autogen/include -I/builddir/build/BUILD/mixxx-c5f0db1c7ec052b4401ca60e336796328bd99920/src -I/builddir/build/BUILD/mixxx-c5f0db1c7ec052b4401ca60e336796328bd99920/redhat-linux-build/src -I/builddir/build/BUILD/mixxx-c5f0db1c7ec052b4401ca60e336796328bd99920/redhat-linux-build/lib/libdjinterop-install/include -I/usr/include/ffmpeg -isystem /builddir/build/BUILD/mixxx-c5f0db1c7ec052b4401ca60e336796328bd99920/lib/fidlib -isystem /builddir/build/BUILD/mixxx-c5f0db1c7ec052b4401ca60e336796328bd99920/lib/portaudio -isystem /builddir/build/BUILD/mixxx-c5f0db1c7ec052b4401ca60e336796328bd99920/lib/rigtorp/SPSCQueue/include -isystem /usr/include/glib-2.0 -isystem /usr/lib64/glib-2.0/include -isystem /builddir/build/BUILD/mixxx-c5f0db1c7ec052b4401ca60e336796328bd99920/lib/libshout-idjc/include -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtConcurrent -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/qt5/QtOpenGL -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtPrintSupport -isystem /usr/include/qt5/QtQml -isystem /usr/include/qt5/QtQuickWidgets -isystem /usr/include/qt5/QtQuick -isystem /usr/include/qt5/QtQmlModels -isystem /usr/include/qt5/QtSql -isystem /usr/include/qt5/QtSvg -isystem /usr/include/qt5/QtTest -isystem /usr/include/qt5/QtXml -isystem /usr/include/qt5/QtX11Extras -isystem /usr/include/qt5/QtDBus -isystem /usr/include/lilv-0 -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64   -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdiagnostics-color=auto -O2 -g -DNDEBUG -std=gnu++20 -fvisibility=hidden -fvisibility-inlines-hidden -pipe -O3 -ffast-math -funroll-loops -fomit-frame-pointer -mtune=generic -Wall -Wextra -Woverloaded-virtual -Wfloat-conversion -Werror=return-type -Wformat=2 -Wformat-security -Wvla -Wundef -Werror -pthread -fPIC -Winvalid-pch -include /builddir/build/BUILD/mixxx-c5f0db1c7ec052b4401ca60e336796328bd99920/redhat-linux-build/CMakeFiles/mixxx-lib.dir/cmake_pch.hxx -MD -MT CMakeFiles/mixxx-test.dir/src/test/autodjprocessor_test.cpp.o -MF CMakeFiles/mixxx-test.dir/src/test/autodjprocessor_test.cpp.o.d -o CMakeFiles/mixxx-test.dir/src/test/autodjprocessor_test.cpp.o -c /builddir/build/BUILD/mixxx-c5f0db1c7ec052b4401ca60e336796328bd99920/src/test/autodjprocessor_test.cpp
cc1plus: error: /builddir/build/BUILD/mixxx-c5f0db1c7ec052b4401ca60e336796328bd99920/redhat-linux-build/CMakeFiles/mixxx-lib.dir/cmake_pch.hxx.gch: not used because `__MP4V2__' not defined [-Werror=invalid-pch]
cc1plus: all warnings being treated as errors

Version

2.4.0

OS

Fedora 38/39/40

uklotzde commented 1 year ago

Workaround: -DCMAKE_DISABLE_PRECOMPILE_HEADERS=ON

daschuer commented 1 year ago

This should fix the build with precompiled headers: https://github.com/mixxxdj/mixxx/pull/12079