Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

cmake issue? cryfs & boost [solved]

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
5 posts • Page 1 of 1
Author
Message
RayDude
Advocate
Advocate
User avatar
Posts: 2194
Joined: Sat May 29, 2004 6:11 am
Location: San Jose, CA

cmake issue? cryfs & boost [solved]

  • Quote

Post by RayDude » Sat Jan 24, 2026 4:06 am

Solved.

Just need to use a later version of cryfs:

Code: Select all

echo sys-fs/cryfs/ >> /etc/portage/package.accept_keywords/cryfs

emerge @world is failing. No idea why.

Halp?

Code: Select all

>>> Emerging (13 of 50) sys-fs/cryfs-1.0.1-r1::gentoo
>>> Failed to emerge sys-fs/cryfs-1.0.1-r1, Log file:
>>>  '/var/tmp/portage/sys-fs/cryfs-1.0.1-r1/temp/build.log'
 * Package:    sys-fs/cryfs-1.0.1-r1:0
 * Repository: gentoo
 * Maintainer: iohann.s.titov@gmail.com proxy-maint@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux
 * FEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found kernel object directory:
 *     /usr/src/linux-6.18.4-gentoo
 * Found sources for kernel version:
 *     6.18.4-gentoo
 * Checking for suitable kernel configuration options ...                                                                                                                                            [ ok ]
 * Checking whether python3_13 is suitable ...
 *   dev-lang/python:3.13 ...                                                                                                                                                                        [ ok ]
 *   python_check_deps ...
 *     dev-python/versioneer[python_targets_python3_13(-)] ...                                                                                                                                       [ ok ]
 * Using python3.13 to build (via PYTHON_COMPAT iteration)
 * Applying cryfs-1.0.1-unbundle-vendored-libs.patch ...                                                                                                                                             [ ok ]
 * Applying cryfs-1.0.1-boost-1.88.patch ...                                                                                                                                                         [ ok ]
 * QA Notice: S=WORKDIR is deprecated for cmake.eclass.
 * Please relocate the sources in src_unpack.
 * Source directory (CMAKE_USE_DIR): "/var/tmp/portage/sys-fs/cryfs-1.0.1-r1/work"
 * Build directory  (BUILD_DIR):     "/var/tmp/portage/sys-fs/cryfs-1.0.1-r1/work/cryfs-1.0.1_build"
 * Hardcoded definition(s) removed in CMakeLists.txt:
 *     set(CMAKE_BUILD_TYPE RelWithDebInfo CACHE INTERNAL "CMAKE_BUILD_TYPE")
 * Hardcoded definition(s) removed in vendor/cryptopp/vendor_cryptopp_cmake/cryptopp/CMakeLists.txt:
 *     set(CMAKE_BUILD_TYPE RelWithDebInfo)
 * Source directory (CMAKE_USE_DIR): "/var/tmp/portage/sys-fs/cryfs-1.0.1-r1/work"
 * Build directory  (BUILD_DIR):     "/var/tmp/portage/sys-fs/cryfs-1.0.1-r1/work/cryfs-1.0.1_build"
cmake -C /var/tmp/portage/sys-fs/cryfs-1.0.1-r1/work/cryfs-1.0.1_build/gentoo_common_config.cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_SHARED_LIBS=OFF -DBUILD_TESTING=no -DCRYFS_UPDATE_CHECKS=OFF -DUSE_SYSTEM_LIBS=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/sys-fs/cryfs-1.0.1-r1/work/cryfs-1.0.1_build/gentoo_toolchain.cmake /var/tmp/portage/sys-fs/cryfs-1.0.1-r1/work
loading initial cache file /var/tmp/portage/sys-fs/cryfs-1.0.1-r1/work/cryfs-1.0.1_build/gentoo_common_config.cmake
-- The C compiler identification is GNU 15.2.1
-- The CXX compiler identification is GNU 15.2.1
-- 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 Warning (dev) at cmake-utils/Dependencies.cmake:8 (find_package):
  Policy CMP0167 is not set: The FindBoost module is removed.  Run "cmake
  --help-policy CMP0167" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.

Call Stack (most recent call first):
  CMakeLists.txt:44 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Error at /usr/lib64/cmake/Boost-1.89.0/BoostConfig.cmake:141 (find_package):
  Could not find a package configuration file provided by "boost_system"
  (requested version 1.89.0) with any of the following names:

    boost_systemConfig.cmake
    boost_system-config.cmake

  Add the installation prefix of "boost_system" to CMAKE_PREFIX_PATH or set
  "boost_system_DIR" to a directory containing one of the above files.  If
  "boost_system" provides a separate development package or SDK, be sure it
  has been installed.
Call Stack (most recent call first):
  /usr/lib64/cmake/Boost-1.89.0/BoostConfig.cmake:262 (boost_find_component)
  /usr/share/cmake/Modules/FindBoost.cmake:609 (find_package)
  cmake-utils/Dependencies.cmake:8 (find_package)
  CMakeLists.txt:44 (include)


-- Configuring incomplete, errors occurred!
 * ERROR: sys-fs/cryfs-1.0.1-r1::gentoo failed (configure phase):
 *   cmake failed
 * 
 * Call stack:
 *     ebuild.sh, line  143:  Called src_configure
 *   environment, line 3129:  Called cmake_src_configure
 *   environment, line 1783:  Called die
 * The specific snippet of code:
 *       "${CMAKE_BINARY}" "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed";
 * 
 * If you need support, post the output of `emerge --info '=sys-fs/cryfs-1.0.1-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-fs/cryfs-1.0.1-r1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sys-fs/cryfs-1.0.1-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-fs/cryfs-1.0.1-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-fs/cryfs-1.0.1-r1/work/cryfs-1.0.1_build'
 * S: '/var/tmp/portage/sys-fs/cryfs-1.0.1-r1/work'

 * Messages for package sys-fs/cryfs-1.0.1-r1:

 * ERROR: sys-fs/cryfs-1.0.1-r1::gentoo failed (configure phase):
 *   cmake failed
 * Call stack:
 *     ebuild.sh, line  143:  Called src_configure
 *   environment, line 3129:  Called cmake_src_configure
 *   environment, line 1783:  Called die
 * The specific snippet of code:
 *       "${CMAKE_BINARY}" "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed";
 * If you need support, post the output of `emerge --info '=sys-fs/cryfs-1.0.1-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sys-fs/cryfs-1.0.1-r1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sys-fs/cryfs-1.0.1-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-fs/cryfs-1.0.1-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-fs/cryfs-1.0.1-r1/work/cryfs-1.0.1_build'
 * S: '/var/tmp/portage/sys-fs/cryfs-1.0.1-r1/work'

!!! existing preserved libs found
Some day there will only be free software.
Top
asturm
Developer
Developer
Posts: 9496
Joined: Thu Apr 05, 2007 4:07 pm

  • Quote

Post by asturm » Sat Jan 24, 2026 8:11 am

Why did you unmask ~arch boost on a stable system?
Top
RayDude
Advocate
Advocate
User avatar
Posts: 2194
Joined: Sat May 29, 2004 6:11 am
Location: San Jose, CA

  • Quote

Post by RayDude » Sat Jan 24, 2026 11:50 pm

asturm wrote:Why did you unmask ~arch boost on a stable system?
Thanks. That is the issue.

In the past, who knows how long ago, I unmasked it probably to install a package that required a later version, perhaps because the repo was partially updated or because I wanted something that was bleeding edge. Whether I use what ever it was any more is the really big question. This one of the problems I have with Gentoo is that I unmask things to get something that needs the later tool, only to later regret it.

I'm going to find out what needs it and see if I can remove the unmask.

Thanks again.
Some day there will only be free software.
Top
Hu
Administrator
Administrator
Posts: 24380
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Sun Jan 25, 2026 1:46 am

The configuration file where you would have overridden the keyword allows comments. I suggest always leaving a comment, preferably with a date stamp, explaining why a change is made. If you use full source control for these files, the explanation can be in a commit message instead of inline in the file. Regardless of how you track it, your future self will likely benefit from writing these explanations.
Top
RayDude
Advocate
Advocate
User avatar
Posts: 2194
Joined: Sat May 29, 2004 6:11 am
Location: San Jose, CA

  • Quote

Post by RayDude » Sun Jan 25, 2026 4:22 am

Hu wrote:The configuration file where you would have overridden the keyword allows comments. I suggest always leaving a comment, preferably with a date stamp, explaining why a change is made. If you use full source control for these files, the explanation can be in a commit message instead of inline in the file. Regardless of how you track it, your future self will likely benefit from writing these explanations.
Good idea! I'll try to do that from now on.
Some day there will only be free software.
Top
Post Reply

5 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy