Summary: | net-analyzer/wireshark-3.2.5 USE=qt5? - CMake Error at CMakeLists.txt:1097 (find_package): By not providing "FindQt5Core.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "Qt5Core" [...] | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Wim van Ravesteijn <wim.gentoo> |
Component: | Current packages | Assignee: | Sam James <sam> |
Status: | RESOLVED OBSOLETE | ||
Severity: | normal | CC: | bman, holger, qt, sam |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=856739 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build.log
emerge --info emerge -pqv environment CMakeError.log CMakeOutput.log build.log from konsole - env has CMAKE_FRAMEWORK_PATH=/usr/lib64/cmake/: build.log from qtcore - env has CMAKE_FRAMEWORK_PATH=/usr/lib64/cmake/: build.log (ppc64, 3.6.2) |
Created attachment 650940 [details]
emerge --info
Created attachment 650942 [details]
emerge -pqv
Created attachment 650944 [details]
environment
Comment on attachment 650942 [details]
emerge -pqv
[ebuild R ] net-analyzer/wireshark-3.2.5 USE="capinfos captype dftest dumpcap editcap filecaps lua mergecap minizip netlink pcap plugins qt5* randpkt randpktdump reordercap sharkd ssl text2pcap tshark udpdump zlib zstd -androiddump -bcg729 -brotli -ciscodump -doc -dpauxmon -http2 -kerberos -libxml2 -lz4 -maxminddb -plugin-ifdemo -sbc -sdjournal (-selinux) -smi -snappy -spandsp -sshdump -test -tfshark"
Obviously I would like to now know what version of dev-qt/qtcore is installed and perhaps any other information about your system that relates to Qt. Comment on attachment 650938 [details]
build.log
-- Configuring incomplete, errors occurred!
See also "/tmp/portage/net-analyzer/wireshark-3.2.5/work/wireshark-3.2.5_build/CMakeFiles/CMakeOutput.log".
See also "/tmp/portage/net-analyzer/wireshark-3.2.5/work/wireshark-3.2.5_build/CMakeFiles/CMakeError.log".
It might help to attach those, too.
Created attachment 650948 [details]
CMakeError.log
Created attachment 650950 [details]
CMakeOutput.log
$ emerge -pqv qtcore [binary R ] dev-qt/qtcore-5.14.2 USE="icu systemd -debug -old-kernel -test" (In reply to Wim van Ravesteijn from comment #1) > Created attachment 650940 [details] > emerge --info Looks like it's looking for Qt5 when that ought to be disabled: net-analyzer/wireshark-3.2.5::gentoo was built with the following: USE="capinfos captype dftest dumpcap editcap filecaps lua mergecap minizip netlink pcap plugins randpkt randpktdump reordercap sharkd ssl text2pcap tshark udpdump zlib zstd -androiddump -bcg729 -brotli -ciscodump -doc -dpauxmon -http2 -kerberos -libxml2 -lz4 -maxminddb -plugin-ifdemo -qt5 -sbc -sdjournal (-selinux) -smi -snappy -spandsp -sshdump -test -tfshark" ABI_X86="(64)" Comment on attachment 650938 [details]
build.log
But your build log has USE=qt5:
* USE: abi_x86_64 amd64 capinfos captype dftest dumpcap editcap elibc_glibc filecaps kernel_linux lua mergecap minizip netlink pcap plugins qt5 randpkt randpktdump reordercap sharkd ssl text2pcap tshark udpdump userland_GNU zlib zstd
What is going on?
It’s unclear what the issue is/what needs to happen here. Still a problem? Unfortunately, problem is still there, but problem is not in wireshark, but in qt. Also other packages requiring qt have same problem. Unfortunately it is not clear to me what is causing the problem. I did already a full rebuild of the system, but this has not solved the problem. Maybe someone has a hint where to look for what? When I get this message, which files have been looked up where? I have a new laptop, and it worked fine the first weeks compiling packages requiring qt5. But suddenly it stopped working again, while my desktop all the time did not face any trouble. I've been comparing configurations and strace output, and I noticed the following: # strace -f emerge -av1 kde-apps/konsole kde-apps/gwenview 2>/tmp/emerge.strace This failed at my laptop. # grep Qt5CoreConfig emerge.strace | cut -f2 -d'"' | uniq -c 3 /usr/lib/portage/python3.9/ebuild-helpers/xattr/Qt5CoreConfig.cmake 3 /usr/lib/portage/python3.9/ebuild-helpers/Qt5CoreConfig.cmake 3 /usr/local/Qt5CoreConfig.cmake 3 /usr/Qt5CoreConfig.cmake 3 /Qt5CoreConfig.cmake 3 /opt/Qt5CoreConfig.cmake 3 /usr/lib/llvm/12/Qt5CoreConfig.cmake Apparently, in these folders there is no Qt5CoreConfig.cmake. On my desktop, installation succeeded, there strace has following: # grep Qt5CoreConfig emerge.strace | cut -f2 -d'"' | uniq -c 3 /usr/lib/portage/python3.9/ebuild-helpers/xattr/Qt5CoreConfig.cmake 3 /usr/lib/portage/python3.9/ebuild-helpers/Qt5CoreConfig.cmake 3 /usr/local/Qt5CoreConfig.cmake 3 /usr/Qt5CoreConfig.cmake 3 /usr/lib64/cmake/Qt5Core/Qt5CoreConfig.cmake 3 /usr/lib64/cmake/Qt5Core/Qt5CoreConfig-version.cmake [...] I cannot figure out what causes this difference, but I did find a fix. Created a new file /etc/profile.d/cmake.sh with content: export CMAKE_FRAMEWORK_PATH="/usr/lib64/cmake/:${CMAKE_FRAMEWORK_PATH}" This goes pretty straight to the right path: # grep Qt5CoreConfig emerge.strace | cut -f2 -d'"' | uniq -c 3 /usr/lib64/cmake/Qt5CoreConfig.cmake 3 /usr/lib64/cmake/Qt5Core/Qt5CoreConfig.cmake 3 /usr/lib64/cmake/Qt5Core/Qt5CoreConfig-version.cmake [...] Maybe this helps figuring out what broke my config, or a hint where to look to properly fix it. And if not, I keep my export. (In reply to Wim van Ravesteijn from comment #13) > Unfortunately, problem is still there, but problem is not in wireshark, but > in qt. Also other packages requiring qt have same problem. Unfortunately it > is not clear to me what is causing the problem. I did already a full rebuild > of the system, but this has not solved the problem. > Maybe someone has a hint where to look for what? When I get this message, > which files have been looked up where? Sorry, I missed this comment! (In reply to Wim van Ravesteijn from comment #14) > I have a new laptop, and it worked fine the first weeks compiling packages > requiring qt5. But suddenly it stopped working again, while my desktop all > the time did not face any trouble. I've been comparing configurations and > strace output, and I noticed the following: > Could you upload a fresh build.log for e.g. konsole or gwenview to this bug, along with a build log for dev-qt/qtcore? > # strace -f emerge -av1 kde-apps/konsole kde-apps/gwenview > 2>/tmp/emerge.strace > > This failed at my laptop. > > # grep Qt5CoreConfig emerge.strace | cut -f2 -d'"' | uniq -c > 3 /usr/lib/portage/python3.9/ebuild-helpers/xattr/Qt5CoreConfig.cmake > 3 /usr/lib/portage/python3.9/ebuild-helpers/Qt5CoreConfig.cmake > 3 /usr/local/Qt5CoreConfig.cmake > 3 /usr/Qt5CoreConfig.cmake > 3 /Qt5CoreConfig.cmake > 3 /opt/Qt5CoreConfig.cmake /opt seems weird... > > # grep Qt5CoreConfig emerge.strace | cut -f2 -d'"' | uniq -c > 3 /usr/lib/portage/python3.9/ebuild-helpers/xattr/Qt5CoreConfig.cmake > 3 /usr/lib/portage/python3.9/ebuild-helpers/Qt5CoreConfig.cmake > 3 /usr/local/Qt5CoreConfig.cmake /usr/local should *not* be there, surely, just like /opt? > 3 /usr/Qt5CoreConfig.cmake > 3 /usr/lib64/cmake/Qt5Core/Qt5CoreConfig.cmake > 3 /usr/lib64/cmake/Qt5Core/Qt5CoreConfig-version.cmake > [...] Created attachment 731938 [details]
build.log from konsole - env has CMAKE_FRAMEWORK_PATH=/usr/lib64/cmake/:
Created attachment 731941 [details]
build.log from qtcore - env has CMAKE_FRAMEWORK_PATH=/usr/lib64/cmake/:
qtcore has been compiled after konsole.
Created attachment 767759 [details]
build.log (ppc64, 3.6.2)
Still a problem?
wireshark-3.6.2 builds fine for me with USE='qt5'.
Unfortunately, problem is still there if I remove this: export CMAKE_FRAMEWORK_PATH="/usr/lib64/cmake/:${CMAKE_FRAMEWORK_PATH}" With this export (see comment 14), everything works fine. https://cmake.org/cmake/help/latest/variable/CMAKE_FRAMEWORK_PATH.html According to cmake docs this is a macOS variable? 3.2.5 is no longer in the tree and current wireshark uses qt6. |
Created attachment 650938 [details] build.log Build fails due to Qt5 not found. CMake Error at CMakeLists.txt:1097 (find_package): By not providing "FindQt5Core.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "Qt5Core", but CMake did not find one. Could not find a package configuration file provided by "Qt5Core" with any of the following names: Qt5CoreConfig.cmake qt5core-config.cmake Add the installation prefix of "Qt5Core" to CMAKE_PREFIX_PATH or set "Qt5Core_DIR" to a directory containing one of the above files. If "Qt5Core" provides a separate development package or SDK, be sure it has been installed.