Created attachment 1560074 [details] patch for Qt5GuiConfigExtras.cmake CMake in some cases generates -isystem /usr/include with Qt5::Gui. This option breaks compilation. I got this problem when tried to add in my application PCH support with nanoant CMakePCHCompiler. CMakePCHCompiler "introduce" a new language CXXPCH. With standard CXX language CMake internally strip /usr/include and it not appears in compilation process. But CMake do it only for own languages. So for details see issue https://github.com/nanoant/CMakePCHCompiler/issues/33. Also I added a patch which resolve this problem. P.S. the same problem actuals for Qt4 package in Fedora.
That file may not be easily patchable, it's dynamically generated at (qt) build-time. I do recall running into similar issues in the past, I'll try to find how/what we fixed it last time.
Found this in comment message when updating to 5.9.1 in the past: # Remove /usr/include from .qmake.stash to fix build with gcc 6 # (gcc can't find <stdlib.h> if -isystem /usr/include is present, # and Qt for some reason generates it mv .qmake.stash .qmake.stash.old cat .qmake.stash.old | sed -e 's@\(/usr/local/include\) \\@\1@g'| sed -e '/\/usr\/include$/ { d; }' > .qmake.stash We'll see if something similar still needs to be done here.
I guess I was wrong, that particular .cmake.in (template) file is under src/gui/ in sources
Initial try at a patched build, https://koji.fedoraproject.org/koji/taskinfo?taskID=34552534
qt5-qtbase-5.11.3-2.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2019-4b456bd710
qt5-qtbase-5.12.1-4.fc30 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-2a32961472
qt5-qtbase-5.11.3-2.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-4b456bd710
qt5-qtbase-5.12.1-4.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-2a32961472
Thanks! This works.
qt5-qtbase-5.12.1-5.fc30 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-2a32961472
qt5-qtbase-5.12.1-5.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-2a32961472
qt5-qtbase-5.12.1-5.fc30 has been pushed to the Fedora 30 stable repository. If problems still persist, please make note of it in this bug report.
qt5-qtbase-5.11.3-2.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.