Summary: | app-text/poppler-20.11.0 fails to build [Prefix]: CMake Error at CMakeLists.txt:252 | ||
---|---|---|---|
Product: | Gentoo/Alt | Reporter: | Steven Trogdon <strogdon> |
Component: | Prefix Support | Assignee: | Gentoo Prefix <prefix> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | kde, sam, strogdon |
Priority: | Normal | Keywords: | PullRequest |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://github.com/gentoo/gentoo/pull/20274 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | 733480 | ||
Bug Blocks: | |||
Attachments: |
build log
CMakeError.log CMakeOutput.log emerge --info |
Description
Steven Trogdon
2020-11-26 22:25:49 UTC
Could you add these too: See also "/storage/strogdon/gentoo-rap/var/tmp/portage/app-text/poppler-20.11.0/work/poppler-20.11.0_build/CMakeFiles/CMakeOutput.log". See also "/storage/strogdon/gentoo-rap/var/tmp/portage/app-text/poppler-20.11.0/work/poppler-20.11.0_build/CMakeFiles/CMakeError.log". [31;01m*[0m ERROR: app-text/poppler-20.11.0::gentoo failed (configure phase): and emerge --info? Created attachment 675211 [details]
CMakeError.log
Created attachment 675214 [details]
CMakeOutput.log
From CMakeError.log (I had looked at this previously) it doesn't appear that things are happy with my gcc. But I don't know if that is significant. Created attachment 675217 [details]
emerge --info
(In reply to Steven Trogdon from comment #4) > From CMakeError.log (I had looked at this previously) it doesn't appear that > things are happy with my gcc. But I don't know if that is significant. should have been "aren't happy" The .cmake files do seem to be installed properly under EPREFIX/lib64/cmake/pkgs, i.e. $ ls ~/usr/lib64/cmake/openjpeg-2.3/ OpenJPEGConfig.cmake OpenJPEGTargets-gentoo.cmake OpenJPEGTargets.cmake A data point relative to Qt5Core. The find_package( ... ) that appears in CMakeLists.txt as find_package(Qt5Core 5.5) is not quite smart enough to find the desired Qt5CoreConfig.cmake file. Adding -DCMAKE_FIND_DEBUG_MODE=ON to mycmakeargs in the ebuild and running the configure phase, I have in build.log Prefix: find_package considered the following locations for the Config module: /storage/strogdon/gentoo-rap/usr/lib/portage/python3.8/ebuild-helpers/unprivileged/Qt5CoreConfig.cmake /storage/strogdon/gentoo-rap/usr/lib/portage/python3.8/ebuild-helpers/unprivileged/qt5core-config.cmake /storage/strogdon/gentoo-rap/usr/lib/portage/python3.8/ebuild-helpers/Qt5CoreConfig.cmake /storage/strogdon/gentoo-rap/usr/lib/portage/python3.8/ebuild-helpers/qt5core-config.cmake /storage/strogdon/gentoo-rap/usr/local/Qt5CoreConfig.cmake /storage/strogdon/gentoo-rap/usr/local/qt5core-config.cmake /storage/strogdon/gentoo-rap/usr/Qt5CoreConfig.cmake /storage/strogdon/gentoo-rap/usr/qt5core-config.cmake /storage/strogdon/gentoo-rap/Qt5CoreConfig.cmake /storage/strogdon/gentoo-rap/qt5core-config.cmake /storage/strogdon/gentoo-rap/opt/Qt5CoreConfig.cmake /storage/strogdon/gentoo-rap/opt/qt5core-config.cmake /storage/strogdon/gentoo-rap/usr/lib/llvm/11/Qt5CoreConfig.cmake /storage/strogdon/gentoo-rap/usr/lib/llvm/11/qt5core-config.cmake /usr/Qt5CoreConfig.cmake /usr/qt5core-config.cmake /Qt5CoreConfig.cmake /qt5core-config.cmake /opt/Qt5CoreConfig.cmake /opt/qt5core-config.cmake The file was not found. while on Gentoo: find_package considered the following locations for the Config module: /usr/lib/portage/python3.8/ebuild-helpers/xattr/Qt5CoreConfig.cmake /usr/lib/portage/python3.8/ebuild-helpers/xattr/qt5core-config.cmake /usr/lib/portage/python3.8/ebuild-helpers/Qt5CoreConfig.cmake /usr/lib/portage/python3.8/ebuild-helpers/qt5core-config.cmake /usr/lib/llvm/8/Qt5CoreConfig.cmake /usr/lib/llvm/8/qt5core-config.cmake /usr/lib/llvm/7/Qt5CoreConfig.cmake /usr/lib/llvm/7/qt5core-config.cmake /usr/lib/llvm/6/Qt5CoreConfig.cmake /usr/lib/llvm/6/qt5core-config.cmake /usr/local/Qt5CoreConfig.cmake /usr/local/qt5core-config.cmake /usr/Qt5CoreConfig.cmake /usr/qt5core-config.cmake /usr/lib64/cmake/Qt5Core/Qt5CoreConfig.cmake The file was found at /usr/lib64/cmake/Qt5Core/Qt5CoreConfig.cmake Not sure why the search paths are different but I believe this is why poppler fails in Prefix. The find_package( ... ) function has to be told where to search. This issue also exists with app-text/poppler-20.12.0. FWIW adding -DCMAKE_PREFIX_PATH=${EPREFIX}/usr/$(get_libdir)/cmake to local mycmakeargs=( ... ) allows both poppler-20.11.0 and poppler-20.12.0 to build here in prefix. (In reply to Steven Trogdon from comment #9) > This issue also exists with app-text/poppler-20.12.0. FWIW adding > > -DCMAKE_PREFIX_PATH=${EPREFIX}/usr/$(get_libdir)/cmake > > to > > local mycmakeargs=( ... > > ) > > allows both poppler-20.11.0 and poppler-20.12.0 to build here in prefix. Hmm. $ grep -rsin "prefix_path" ~/git/gentoo/eclass /Users/sam/git/gentoo/eclass/cmake-utils.eclass:639: SET (CMAKE_PREFIX_PATH "${EPREFIX}/usr" CACHE STRING "" FORCE) /Users/sam/git/gentoo/eclass/ros-catkin.eclass:161: export CATKIN_PREFIX_PATH="${EPREFIX}/usr" /Users/sam/git/gentoo/eclass/ros-catkin.eclass:178: "-DCATKIN_PREFIX_PATH=${SYSROOT:-${EROOT}}/usr" /Users/sam/git/gentoo/eclass/cmake.eclass:465: set(CMAKE_PREFIX_PATH "${EPREFIX}/usr" CACHE STRING "" FORCE) So, I guess for some reason, that's not enough in this case. Does your host system have one-of /etc/debian_version /etc/arch-release ? Suspecting this is just bug 733480. (In reply to Andreas Sturmlechner from comment #11) > Does your host system have one-of > > /etc/debian_version > /etc/arch-release > > ? Suspecting this is just bug 733480. Yes, the host is ubuntu and /etc/debian_version exists The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8e5e1f3ef263363ec0426ce7a8a3dec6f5f5bb5d commit 8e5e1f3ef263363ec0426ce7a8a3dec6f5f5bb5d Author: Benda Xu <heroxbd@gentoo.org> AuthorDate: 2021-07-15 16:48:22 +0000 Commit: Benda Xu <heroxbd@gentoo.org> CommitDate: 2021-07-15 16:53:17 +0000 p/f/prefix/standalone/profile.bashrc: remove Debian magic. We are Gentoo, and we unconditionally turn off Debian related tests. The upstreaming process has stalled and we work around this bug by hacking the profile. Remove this when upstream figure out how to deal with distributions. Reference: https://gitlab.kitware.com/cmake/cmake/-/merge_requests/5047 Reference: https://gitlab.kitware.com/cmake/cmake/-/issues/18979 Bug: https://bugs.gentoo.org/733480 Closes: https://bugs.gentoo.org/757006 Closes: https://github.com/gentoo/gentoo/pull/20274 Signed-off-by: Benda Xu <heroxbd@gentoo.org> profiles/features/prefix/standalone/profile.bashrc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) |