Solved CMAKE will not update from 3.22.2 to 3.22.2_1

I have an interesting problem. Checking for updates I see
Code:
===>>> New version available: cmake-3.22.2_1

First my environment
Code:
Copyright (c) 1992-2021 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 12.3-RELEASE-p5 GENERIC amd64
FreeBSD clang version 10.0.1 (git@github.com:llvm/llvm-project.git llvmorg-10.0.1-0-gef32c611aa2)
VT(vga): resolution 640x480
CPU: AMD FX(tm)-6300 Six-Core Processor              (3492.50-MHz K8-class CPU)
  Origin="AuthenticAMD"  Id=0x600f20  Family=0x15  Model=0x2  Stepping=0
  Features=0x178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT>
  Features2=0x3e98320b<SSE3,PCLMULQDQ,MON,SSSE3,FMA,CX16,SSE4.1,SSE4.2,POPCNT,AESNI,XSAVE,OSXSAVE,AVX,F16C>
  AMD Features=0x2e500800<SYSCALL,NX,MMX+,FFXSR,Page1GB,RDTSCP,LM>
  AMD Features2=0x1ebbfff<LAHF,CMP,SVM,ExtAPIC,CR8,ABM,SSE4A,MAS,Prefetch,OSVW,IBS,XOP,SKINIT,WDT,LWP,FMA4,TCE,NodeId,TBM,Topology,PCXC,PNXC>
  Structured Extended Features=0x8<BMI1>
  SVM: NP,NRIP,VClean,AFlush,DAssist,NAsids=65536
  TSC: P-state invariant, performance statistics
real memory  = 25769803776 (24576 MB)
avail memory = 24936275968 (23781 MB)
[
Code:
here is the existing [file]cmake[/file]
root@Prometheus:/ # pkg info cmake
cmake-3.22.2
Name           : cmake
Version        : 3.22.2
Installed on   : Tue Feb  1 07:06:29 2022 MST
Origin         : devel/cmake
Architecture   : FreeBSD:12:amd64
Prefix         : /usr/local
Categories     : devel
Licenses       : BSD3CLAUSE
Maintainer     : kde@FreeBSD.org
WWW            : http://www.cmake.org/
Comment        : Cross-platform Makefile generator
Options        :
        CPACK          : off
        DOCS           : on
        MANPAGES       : on
Shared Libs required:
        libcurl.so.4
        librhash.so.0
        libexpat.so.1
        libarchive.so.13
        libjsoncpp.so.25
        libuv.so.1
Annotations    :
        FreeBSD_version: 1203000
        cpe            : cpe:2.3:a:cmake_project:cmake:3.22.2:::::freebsd12:x64
Flat size      : 34.0MiB
Description    :
CMake is used to control the software compilation process using simple
platform and compiler independent configuration files. CMake generates native
makefiles and workspaces that can be used in the compiler environment of your
choice. CMake is quite sophisticated: it is possible to support complex
environments requiring system configuration, pre-processor generation, code
generation, and template instantiation.

WWW: http://www.cmake.org/
Using
Code:
cd /usr/ports/devel/cmake/ && make install clean or portmaster
this is the result
Code:
===>  Building for cmake-3.22.2_1
Consolidate compiler generated dependencies of target cmsys
Consolidate compiler generated dependencies of target cmstd
Consolidate compiler generated dependencies of target cmsys_c
[  1%] sphinx-build man: see Utilities/Sphinx/build-man.log
[  2%] Linking C static library libcmsys_c.a
[  2%] Building C object Source/kwsys/CMakeFiles/cmsys.dir/Terminal.c.o
[  2%] Building C object Source/kwsys/CMakeFiles/cmsys.dir/System.c.o
[  2%] Building CXX object Utilities/std/CMakeFiles/cmstd.dir/cm/bits/string_view.cxx.o
[  2%] Building C object Source/kwsys/CMakeFiles/cmsys.dir/String.c.o
[  3%] Built target cmsys_c
[  3%] Building CXX object Source/kwsys/CMakeFiles/cmsys.dir/Directory.cxx.o
[  3%] Building CXX object Source/kwsys/CMakeFiles/cmsys.dir/DynamicLoader.cxx.o
[  4%] Building CXX object Source/kwsys/CMakeFiles/cmsys.dir/EncodingCXX.cxx.o
[  4%] Building CXX object Source/kwsys/CMakeFiles/cmsys.dir/Glob.cxx.o
[  4%] Linking CXX static library libcmstd.a
[  4%] Built target cmstd
[  4%] Building CXX object Source/kwsys/CMakeFiles/cmsys.dir/RegularExpression.cxx.o
[  4%] Building CXX object Source/kwsys/CMakeFiles/cmsys.dir/SystemTools.cxx.o
Traceback (most recent call last):
  File "/usr/local/bin/sphinx-build", line 33, in <module>
    sys.exit(load_entry_point('Sphinx==4.3.1', 'console_scripts', 'sphinx-build')())
  File "/usr/local/bin/sphinx-build", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/usr/local/lib/python3.8/importlib/metadata.py", line 77, in load
    module = import_module(match.group('module'))
  File "/usr/local/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 843, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/usr/local/lib/python3.8/site-packages/sphinx/cmd/build.py", line 25, in <module>
    from sphinx.application import Sphinx
  File "/usr/local/lib/python3.8/site-packages/sphinx/application.py", line 43, in <module>
    from sphinx.registry import SphinxComponentRegistry
  File "/usr/local/lib/python3.8/site-packages/sphinx/registry.py", line 24, in <module>
    from pkg_resources import iter_entry_points
  File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3243, in <module>
    def _initialize_master_working_set():
  File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3226, in _call_aside
    f(*args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3255, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 568, in _build_master
    ws.require(__requires__)
  File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 886, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 772, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'charset_normalizer~=2.0.0' distribution was not found and is required by requests
--- Utilities/Sphinx/doc_format_man ---
*** [Utilities/Sphinx/doc_format_man] Error code 1

make[4]: stopped in /usr/ports/devel/cmake/work/cmake-3.22.2
1 error

make[4]: stopped in /usr/ports/devel/cmake/work/cmake-3.22.2
--- Utilities/Sphinx/CMakeFiles/documentation.dir/all ---
*** [Utilities/Sphinx/CMakeFiles/documentation.dir/all] Error code 2

make[3]: stopped in /usr/ports/devel/cmake/work/cmake-3.22.2
--- Source/kwsys/CMakeFiles/cmsys.dir/all ---
*** [Source/kwsys/CMakeFiles/cmsys.dir/all] Error code 2

make[3]: stopped in /usr/ports/devel/cmake/work/cmake-3.22.2
2 errors

make[3]: stopped in /usr/ports/devel/cmake/work/cmake-3.22.2
*** [all] Error code 2

make[2]: stopped in /usr/ports/devel/cmake/work/cmake-3.22.2
1 error

make[2]: stopped in /usr/ports/devel/cmake/work/cmake-3.22.2
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/devel/cmake
*** Error code 1

Stop.
make: stopped in /usr/ports/devel/cmake
root@Prometheus:/usr/ports/devel/cmake #
and an attempt to do an install I get this
Code:
root@Prometheus:/usr/ports/devel/cmake # pkg install cmake
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Updating database digests format: 100%
Checking integrity... done (0 conflicting)
The most recent versions of packages are already installed
root@Prometheus:/usr/ports/devel/cmake #
Checking to see what the compile requirements are I find several requirements which I deinstalled and reinstalled with no difference.
Code:
Build dependencies:
[LIST=1]
[*]sphinx-build : textproc/py-sphinx
[/LIST]
Library dependencies:
[LIST=1]
[*]libcurl.so : ftp/curl
[*]libexpat.so : textproc/expat2
[*]libjsoncpp.so : devel/jsoncpp
[*]libuv.so : devel/libuv
[*]librhash.so : security/rhash
[*]libarchive.so.13 : archivers/libarchive
Here is the installed sphinx modules
Code:
[*]root@Prometheus:/ # pkg info "*sphinx*"
py38-sphinx-4.3.1,1
py38-sphinx-inline-tabs-2022.1.2b11
py38-sphinx-markdown-tables-0.0.15_1
py38-sphinx_rtd_theme-1.0.0
py38-sphinxcontrib-applehelp-1.0.2
py38-sphinxcontrib-devhelp-1.0.2
py38-sphinxcontrib-htmlhelp-2.0.0
py38-sphinxcontrib-jsmath-1.0.1
py38-sphinxcontrib-qthelp-1.0.3
py38-sphinxcontrib-serializinghtml-1.1.5
py38-sphinxcontrib-websupport-1.2.4
sphinxbase-0.8_2
root@Prometheus:/ #
[/LIST]
Here is main problem; I have over a hundred new updates and most of them require cmake 3.22.2_1. I think every kf5- has an available update. The update will try to compile the newer version of WHATEVER? and it tries to update cmake and dies. If i use the "-i" option it goes nowhere and dies. The updates want the newer version and will not update with the installed version.

Does anybody have any ideas? I am open to suggestions.
 
Last edited:
I had also a problem with cmake.
For the moment i use the binary package.
In proudriere.conf i currently have:
Code:
PACKAGE_FETCH_WHITELIST="dub dlang-tools gtkd cmake"
 
Are you certain that your copy of the ports tree is up-to-date?

FreeBSD 12.3-RELEASE-p5 GENERIC amd64

No problem on FreeBSD 14.0-CURRENT, built and packaged in less than ten minutes.

Code:
root@mowa219-gjp4-8570p-freebsd:~ # poudriere ports -u
[00:00:00] Updating portstree "default" with git+https... done
root@mowa219-gjp4-8570p-freebsd:~ # poudriere bulk -j main devel/cmake
[00:00:00] Creating the reference jail... done
[00:00:25] Mounting system devices for main-default
[00:00:25] Stashing existing package repository
[00:00:25] Mounting ccache from: /var/cache/ccache
[00:00:25] Mounting ports from: /usr/local/poudriere/ports/default
[00:00:25] Mounting packages from: /usr/local/poudriere/data/packages/main-default
[00:00:25] Mounting distfiles from: /usr/ports/distfiles
[00:00:25] Copying /var/db/ports from: /usr/local/etc/poudriere.d/options
/etc/resolv.conf -> /usr/local/poudriere/data/.m/main-default/ref/etc/resolv.conf
[00:00:25] Starting jail main-default
[00:00:25] Will build as nobody:nobody (65534:65534)
[00:00:26] Logs: /usr/local/poudriere/data/logs/bulk/main-default/2022-04-24_22h38m22s
[00:00:26] Loading MOVED for /usr/local/poudriere/data/.m/main-default/ref/usr/ports
[00:00:27] Ports supports: FLAVORS SELECTED_OPTIONS
[00:00:27] Inspecting ports tree for modifications to git checkout... yes
[00:00:46] Ports top-level git hash: c52302386d (dirty)
[00:00:46] Gathering ports metadata
[00:00:48] Calculating ports order and dependencies
[00:00:48] Trimming IGNORED and blacklisted ports
[00:00:48] Package fetch: Looking for missing packages to fetch from pkg+http://pkg.FreeBSD.org/${ABI}/latest
Updating FreeBSD repository catalogue...
[main-default] Fetching meta.conf: 100%    163 B   0.2kB/s    00:01   
[main-default] Fetching packagesite.pkg: 100%    6 MiB   6.7MB/s    00:01   
Processing entries: 100%
FreeBSD repository update completed. 31081 packages processed.
All repositories are up to date.
[00:01:00] Package fetch: No packages eligible to fetch
[00:01:00] Sanity checking the repository
[00:01:00] Checking packages for incremental rebuild needs
[00:01:01] Deleting libarchive-3.6.0,1.pkg: new version: 3.6.1,1
[00:01:02] Deleting cmake-3.22.2_1.pkg: missing dependency: libarchive-3.6.0,1
[00:01:03] Deleting stale symlinks... done
[00:01:03] Deleting empty directories... done
[00:01:03] Unqueueing existing packages
[00:01:03] Unqueueing orphaned build dependencies
[00:01:03] Sanity checking build queue
[00:01:03] Processing PRIORITY_BOOST
[00:01:03] Balancing pool
[main-default] [2022-04-24_22h38m22s] [balancing_pool:] Queued: 5  Built: 0  Failed: 0  Skipped: 0  Ignored: 0  Fetched: 0  Tobuild: 5   Time: 00:00:38
[00:01:03] Recording filesystem state for prepkg... done
[00:01:04] Building 5 packages using up to 3 builders
[00:01:04] Hit CTRL+t at any time to see build progress and stats
[00:01:04] [01] [00:00:00] Builder starting
[00:01:04] [02] [00:00:00] Builder starting
[00:01:04] [01] [00:00:00] Builder started
[00:01:04] [01] [00:00:00] Building devel/py-babel@py38 | py38-Babel-2.10.1
[00:01:04] [02] [00:00:00] Builder started
[00:01:04] [02] [00:00:00] Building archivers/libarchive | libarchive-3.6.1,1
[00:01:37] [01] [00:00:33] Finished devel/py-babel@py38 | py38-Babel-2.10.1: Success
[00:01:37] [01] [00:00:00] Building devel/py-Jinja2@py38 | py38-Jinja2-3.0.1
[00:01:58] [01] [00:00:21] Finished devel/py-Jinja2@py38 | py38-Jinja2-3.0.1: Success
[00:01:59] [01] [00:00:00] Building textproc/py-sphinx@py38 | py38-sphinx-4.3.1,1
[00:02:19] [01] [00:00:20] Finished textproc/py-sphinx@py38 | py38-sphinx-4.3.1,1: Success
[00:03:13] [02] [00:02:09] Finished archivers/libarchive | libarchive-3.6.1,1: Success
[00:03:13] [01] [00:00:00] Building devel/cmake | cmake-3.22.2_1
[00:06:55] [01] [00:03:42] Finished devel/cmake | cmake-3.22.2_1: Success
[00:06:56] Stopping 3 builders
main-default-job-01: removed
main-default-job-02: removed
main-default-job-01-n: removed
main-default-job-02-n: removed
[00:06:59] Creating pkg repository
Creating repository in /tmp/packages: 100%
Packing files for repository: 100%
[00:08:52] Committing packages to repository: /usr/local/poudriere/data/packages/main-default/.real_1650836835 via .latest symlink
[00:08:52] Removing old packages
[00:08:52] Built ports: devel/py-babel@py38 devel/py-Jinja2@py38 textproc/py-sphinx@py38 archivers/libarchive devel/cmake
[main-default] [2022-04-24_22h38m22s] [committing:] Queued: 5  Built: 5  Failed: 0  Skipped: 0  Ignored: 0  Fetched: 0  Tobuild: 0   Time: 00:08:27
[00:08:52] Logs: /usr/local/poudriere/data/logs/bulk/main-default/2022-04-24_22h38m22s
[00:08:53] Cleaning up
main-default: removed
main-default-n: removed
[00:08:53] Unmounting file systems
root@mowa219-gjp4-8570p-freebsd:~ # uname -aKU
FreeBSD mowa219-gjp4-8570p-freebsd 14.0-CURRENT FreeBSD 14.0-CURRENT #10 main-n254693-d7696096209-dirty: Wed Apr 13 06:03:02 BST 2022     root@mowa219-gjp4-8570p-freebsd:/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG amd64 1400056 1400056
root@mowa219-gjp4-8570p-freebsd:~ #
 
I solved my problem last night. Looking at the error section I decided to reinstall every thing that was listed. I checked the modules that was needed by doing a pkg info and pkg version. That is what was needed for the build and library dependencies and anything that was listed in errors. All of them were there when I reinstalled the ports I got the message that it was all ready installed. If I wanted to reinstall it the message was to deinstall it and then install them. I previously used portmaster and when I tried pkg installthe results were that everything was up to date. . That I did and then I was able to update cmake.

I think this is the one that did it cd /usr/ports/textproc/py-charset-normalizer/ && make deinstall clean and then cd /usr/ports/textproc/py-charset-normalizer/ && make install clean. I was able to see it was installed when I checked the info before I deleted and installed it. It was listed in the error section as "not found".

I have no idea what happened or why.

Sirdice this the python list for your FYI.
Code:
$ pkg info -x python
py38-dnspython-2.2.1,1
python27-2.7.18_1
python3-3_3
python37-3.7.13
python38-3.8.13
python39-3.9.12
$

I don't know how to mark this solved.
 
solved.png

First message, top right corner: choose "Edit thread" --> change "(No prefix)" drop down option to "solved"
 
Last edited:
Back
Top