Bug 272895 - devel/cmake-core: Could NOT find LibUV: Found unsuitable version "1.18.0", but r equired is at least "1.28.0" (found /usr/local/lib/libuv.so)
Summary: devel/cmake-core: Could NOT find LibUV: Found unsuitable version "1.18.0", bu...
Status: Closed Not A Bug
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-kde (group)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-02 15:18 UTC by Marcin Cieślak
Modified: 2023-08-03 15:50 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (kde)


Attachments
cmake-core.log (223.82 KB, application/octet-stream)
2023-08-02 15:19 UTC, Marcin Cieślak
no flags Details
cmake_bootstrap.log (25.50 KB, application/octet-stream)
2023-08-02 15:20 UTC, Marcin Cieślak
no flags Details
CMakeOutput.log (74.39 KB, application/octet-stream)
2023-08-02 15:21 UTC, Marcin Cieślak
no flags Details
CMakeError.log (32.59 KB, application/octet-stream)
2023-08-02 15:21 UTC, Marcin Cieślak
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marcin Cieślak 2023-08-02 15:18:45 UTC
An attempt to build devel/cmake-core on FreeBSD 14 fails with

-- Could NOT find LibUV: Found unsuitable version "1.18.0", but required is at least "1.28.0" (found /usr/local/lib/libuv.so)
CMake Error at Source/Modules/CMakeBuildUtilities.cmake:333 (message):
  CMAKE_USE_SYSTEM_LIBUV is ON but a libuv is not found!
Call Stack (most recent call first):
  CMakeLists.txt:416 (include)


-- Configuring incomplete, errors occurred!
---------------------------------------------
Error when bootstrapping CMake:
Problem while running initial CMake
---------------------------------------------
===>  Script "configure" failed unexpectedly.
Please report the problem to kde@FreeBSD.org [maintainer] and attach the
"/big/ports/usr/ports/devel/cmake-core/work/cmake-3.26.1/config.log" including
the output of the failure of your make command. Also, it might be a good idea
to provide an overview of all packages installed on your system (e.g. a
/usr/local/sbin/pkg-static info -g -Ea).
*** Error code 1

Unfortunately, there is no /big/ports/usr/ports/devel/cmake-core/work/cmake-3.26.1/config.log file, so I am attaching a script(1) session of a build attempt.
Comment 1 Marcin Cieślak 2023-08-02 15:19:10 UTC
Created attachment 243801 [details]
cmake-core.log

script(1) recording of the build attempt
Comment 2 Marcin Cieślak 2023-08-02 15:20:50 UTC
Created attachment 243802 [details]
cmake_bootstrap.log

work/cmake-3.26.1/Bootstrap.cmk/cmake_bootstrap.log
Comment 3 Marcin Cieślak 2023-08-02 15:21:14 UTC
Created attachment 243803 [details]
CMakeOutput.log

work/cmake-3.26.1/CMakeFiles/CMakeOutput.log
Comment 4 Marcin Cieślak 2023-08-02 15:21:39 UTC
Created attachment 243804 [details]
CMakeError.log

work/cmake-3.26.1/CMakeFiles/CMakeError.log
Comment 5 Marcin Cieślak 2023-08-02 15:23:12 UTC
I had libuv installed before, a fresh reinstallation
of libuv-1.46.0 did not help.
Comment 6 Jason E. Hale freebsd_committer freebsd_triage 2023-08-03 14:52:45 UTC
You might have some leftover bits of an ancient libuv installation.
FindLibUV.cmake first checks for ${LibUV_INCLUDE_DIR}/uv-version.h and then for ${LibUV_INCLUDE_DIR}/uv/version.h. The former is the older format.

I suspect you at least still have a /usr/local/include/uv-version.h which is confusing the version check. This file should be removed.
Comment 7 Marcin Cieślak 2023-08-03 15:50:48 UTC
This was it! Thank you very much!