Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 856739 - kde-frameworks/kcoreaddons-5.95.0 fails to build
Summary: kde-frameworks/kcoreaddons-5.95.0 fails to build
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-07-06 18:51 UTC by Maxim Titov
Modified: 2022-09-22 21:04 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,4.30 KB, text/plain)
2022-07-06 18:51 UTC, Maxim Titov
Details
CMakeOutput.log (CMakeOutput.log,48.39 KB, text/plain)
2022-07-06 18:51 UTC, Maxim Titov
Details
emerge --info (emerge-info,7.66 KB, text/plain)
2022-07-06 18:52 UTC, Maxim Titov
Details
CMakeOutput.log (cmakeoutput.log,48.39 KB, text/plain)
2022-07-23 09:57 UTC, Maxim Titov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Maxim Titov 2022-07-06 18:51:06 UTC
Created attachment 790424 [details]
build.log

Fails to emerge with the following error:

-- No  executable found. Can't check QT_INSTALL_PREFIX
CMake Error at /usr/share/ECM/modules/ECMQueryQt.cmake:84 (message):
  No executable found.  Can't check QT_INSTALL_PLUGINS as required
Call Stack (most recent call first):
  /usr/share/ECM/kde-modules/KDEInstallDirs5.cmake:249 (ecm_query_qt)
  /usr/share/ECM/kde-modules/KDEInstallDirs.cmake:15 (include)
  CMakeLists.txt:14 (include)

Same error when trying to build kcoreaddons-5.92.0
Comment 1 Maxim Titov 2022-07-06 18:51:45 UTC
Created attachment 790427 [details]
CMakeOutput.log
Comment 2 Maxim Titov 2022-07-06 18:52:11 UTC
Created attachment 790430 [details]
emerge --info
Comment 3 Andreas Sturmlechner gentoo-dev 2022-07-08 07:28:11 UTC
Anything special about your system, filesystem layout etc. we should know about?

Possibly caused by https://invent.kde.org/frameworks/extra-cmake-modules/-/commit/01f41fe327e66872a5182db1bbbace805e07df40 but it works fine for my systems.

When you tried kcoreaddons-5.92, had you also downgraded to extra-cmake-modules-5.92 before? If not, please try again.
Comment 4 Andreas Sturmlechner gentoo-dev 2022-07-11 09:37:58 UTC
ping
Comment 5 Maxim Titov 2022-07-11 19:36:08 UTC
(In reply to Andreas Sturmlechner from comment #3)
> Anything special about your system, filesystem layout etc. we should know
> about?
> 
> Possibly caused by
> https://invent.kde.org/frameworks/extra-cmake-modules/-/commit/
> 01f41fe327e66872a5182db1bbbace805e07df40 but it works fine for my systems.
> 
> When you tried kcoreaddons-5.92, had you also downgraded to
> extra-cmake-modules-5.92 before? If not, please try again.

Hello Andreas. Sorry for the delay.
That git commit is already present in kde-frameworks/extra-cmake-modules-5.95.0 installed on my system and downgrading it to 5.92.0 and trying to install kcoreaddons 5.92.0 also gives the same error. It was fixed by doing this: export CMAKE_FRAMEWORK_PATH="/usr/lib64/cmake:${CMAKE_FRAMEWORK_PATH}". Is this something related to my system or this envvar should be exported by the ebuild?

Thanks for help!
Comment 6 Andreas Sturmlechner gentoo-dev 2022-07-16 16:41:05 UTC
5.92 did not have ECMQueryQt.cmake yet so the error must have looked at least a bit different.

What about 5.96, does it still happen?

Do you have any content in /usr/local/?

Do you have Qt4 and/or Qt6 installed in addition to Qt5?

Do you have dev-qt/qtchooser installed? If so, where is /etc/xdg/qtchooser/default.conf pointing at? What is the content of that file?

Let's try to get the direct error from Qt5: Please edit /usr/share/ECM/modules/ECMQueryQt.cmake and modify the line at https://invent.kde.org/frameworks/extra-cmake-modules/-/blob/master/modules/ECMQueryQt.cmake#L49 replacing QUIET with REQUIRED. Paste the new resulting cmake error here. This will be reset whenever you re-emerge extra-cmake-modules.
Comment 7 Andreas Sturmlechner gentoo-dev 2022-07-20 12:00:30 UTC
ping
Comment 8 Maxim Titov 2022-07-23 09:54:52 UTC
(In reply to Andreas Sturmlechner from comment #6)
> 5.92 did not have ECMQueryQt.cmake yet so the error must have looked at
> least a bit different.
> 
> What about 5.96, does it still happen?
> 
> Do you have any content in /usr/local/?
> 
> Do you have Qt4 and/or Qt6 installed in addition to Qt5?
> 
> Do you have dev-qt/qtchooser installed? If so, where is
> /etc/xdg/qtchooser/default.conf pointing at? What is the content of that
> file?
> 
> Let's try to get the direct error from Qt5: Please edit
> /usr/share/ECM/modules/ECMQueryQt.cmake and modify the line at
> https://invent.kde.org/frameworks/extra-cmake-modules/-/blob/master/modules/
> ECMQueryQt.cmake#L49 replacing QUIET with REQUIRED. Paste the new resulting
> cmake error here. This will be reset whenever you re-emerge
> extra-cmake-modules.

Hi Andreas. 
Yeah, it happened on 5.96 also, but manually exporting QT-related variables helps me to overcome that problems. But still I think that something is missing and it should emerge without this manual fixes.

content of my /usr/local:
gbox /home/fletch # tree /usr/local/
/usr/local/
├── bin
├── crossdev-overlay
│   ├── metadata
│   │   └── layout.conf
│   └── profiles
│       └── repo_name
├── lib
├── lib64
├── portage
│   ├── metadata
│   │   └── layout.conf
│   └── sci-electronics
│       ├── librnd
│       │   ├── librnd-3.0.2.ebuild
│       │   └── Manifest
│       └── pcb-rnd
│           ├── Manifest
│           ├── pcb-rnd-2.3.1.ebuild
│           └── pcb-rnd-3.0.2.ebuild
├── sbin
└── share
    └── fonts
        └── c
            └── Canaro_SemiBoldItalic.ttf

No I don't have QT4 or QT6
No. qtchooser is not emerged.

After changing that line to REQUIRED this happens:

-- The C compiler identification is GNU 11.3.0                                                                                                                                                                    
-- The CXX compiler identification is GNU 11.3.0                                                         
-- Detecting C compiler ABI info                                                                         
-- Detecting C compiler ABI info - done             
-- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc - skipped
-- Detecting C compile features                     
-- Detecting C compile features - done                                                                   
-- Detecting CXX compiler ABI info                  
-- Detecting CXX compiler ABI info - done                                                                
-- Check for working CXX compiler: /usr/bin/x86_64-pc-linux-gnu-g++ - skipped
-- Detecting CXX compile features                                                                        
-- Detecting CXX compile features - done
--                                        
                                                                                                         
CMake Error at /usr/share/ECM/modules/ECMQueryQt.cmake:49 (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.
Call Stack (most recent call first):
  /usr/share/ECM/kde-modules/KDEInstallDirs5.cmake:234 (include)
  /usr/share/ECM/kde-modules/KDEInstallDirs.cmake:15 (include)
  CMakeLists.txt:14 (include)


-- Configuring incomplete, errors occurred!
See also "/var/tmp/portage/kde-frameworks/kcoreaddons-5.96.0/work/kcoreaddons-5.96.0_build/CMakeFiles/CMakeOutput.log".
 * ERROR: kde-frameworks/kcoreaddons-5.96.0::gentoo failed (configure phase):
Comment 9 Maxim Titov 2022-07-23 09:57:36 UTC
Created attachment 793442 [details]
CMakeOutput.log
Comment 10 Andreas Sturmlechner gentoo-dev 2022-07-23 10:01:04 UTC
(In reply to Maxim Titov from comment #8)
> (In reply to Andreas Sturmlechner from comment #6)
> > Let's try to get the direct error from Qt5: Please edit
> > /usr/share/ECM/modules/ECMQueryQt.cmake and modify the line at
> > https://invent.kde.org/frameworks/extra-cmake-modules/-/blob/master/modules/
> > ECMQueryQt.cmake#L49 replacing QUIET with REQUIRED. Paste the new resulting
> > cmake error here. This will be reset whenever you re-emerge
> > extra-cmake-modules.
> 
> After changing that line to REQUIRED this happens:
That confirms it is basically identical to bug 734052. But these are only two bug reports in two years, I am wondering what is the common denominator about both systems affected.
Comment 11 Andreas Sturmlechner gentoo-dev 2022-09-14 16:30:46 UTC
What about 5.96 or 5.98?