Ubuntu 18.04 cmake 3.22 build issues

Report any problems with CopperSpice
Post Reply
seasoned_geek
Posts: 254
Joined: Thu Jun 11 2020 12:18 pm

Ubuntu 18.04 cmake 3.22 build issues

Post by seasoned_geek »

All,

Long ago when I started with this we had to add kitware.com to software sources in Ubuntu 18.04 because the version of cmake in the repo was not up to 3.16 or whatever was needed. This morning I tried to do a clean build in a VM configured this way.

Cmake spits out the following:

Code: Select all

-- Found Threads: TRUE  
CMake Warning (dev) at /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (PkgConfig)
  does not match the name of the calling package (GLib2).  This can lead to
  problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  /usr/share/cmake-3.22/Modules/FindPkgConfig.cmake:99 (find_package_handle_standard_args)
  cmake/modules/FindGLib2.cmake:34 (include)
  CMakeLists.txt:401 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found GLib2: /usr/include/glib-2.0;/usr/lib/x86_64-linux-gnu/glib-2.0/include  
CMake Warning (dev) at /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (GOBJECT2)
  does not match the name of the calling package (GObject2).  This can lead
  to problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  cmake/modules/FindGObject2.cmake:60 (find_package_handle_standard_args)
  CMakeLists.txt:409 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.
Not too much later

Code: Select all

-- Looking for IceConnectionNumber in ICE - found
CMake Warning (dev) at /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (xcb) does
  not match the name of the calling package (XCB).  This can lead to problems
  in calling code that expects `find_package` result variables (e.g.,
  `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  cmake/modules/FindXCB.cmake:58 (find_package_handle_standard_args)
  CMakeLists.txt:434 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found xcb: /usr/include  
CMake Warning (dev) at /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (xcb-image)
  does not match the name of the calling package (XCB).  This can lead to
  problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  cmake/modules/FindXCB.cmake:58 (find_package_handle_standard_args)
  CMakeLists.txt:434 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found xcb-image: /usr/include  
CMake Warning (dev) at /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (xcb-icccm)
  does not match the name of the calling package (XCB).  This can lead to
  problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  cmake/modules/FindXCB.cmake:58 (find_package_handle_standard_args)
  CMakeLists.txt:434 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found xcb-icccm: /usr/include  
CMake Warning (dev) at /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (xcb-sync)
  does not match the name of the calling package (XCB).  This can lead to
  problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  cmake/modules/FindXCB.cmake:58 (find_package_handle_standard_args)
  CMakeLists.txt:434 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found xcb-sync: /usr/include  
CMake Warning (dev) at /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (xcb-xfixes)
  does not match the name of the calling package (XCB).  This can lead to
  problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  cmake/modules/FindXCB.cmake:58 (find_package_handle_standard_args)
  CMakeLists.txt:434 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found xcb-xfixes: /usr/include  
CMake Warning (dev) at /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (xcb-shm)
  does not match the name of the calling package (XCB).  This can lead to
  problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  cmake/modules/FindXCB.cmake:58 (find_package_handle_standard_args)
  CMakeLists.txt:434 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found xcb-shm: /usr/include  
CMake Warning (dev) at /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (xcb-randr)
  does not match the name of the calling package (XCB).  This can lead to
  problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  cmake/modules/FindXCB.cmake:58 (find_package_handle_standard_args)
  CMakeLists.txt:434 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found xcb-randr: /usr/include  
CMake Warning (dev) at /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (xcb-shape)
  does not match the name of the calling package (XCB).  This can lead to
  problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  cmake/modules/FindXCB.cmake:58 (find_package_handle_standard_args)
  CMakeLists.txt:434 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found xcb-shape: /usr/include  
CMake Warning (dev) at /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args`
  (xcb-keysyms) does not match the name of the calling package (XCB).  This
  can lead to problems in calling code that expects `find_package` result
  variables (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  cmake/modules/FindXCB.cmake:58 (find_package_handle_standard_args)
  CMakeLists.txt:434 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found xcb-keysyms: /usr/include  
CMake Warning (dev) at /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args`
  (xcb-xinerama) does not match the name of the calling package (XCB).  This
  can lead to problems in calling code that expects `find_package` result
  variables (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  cmake/modules/FindXCB.cmake:58 (find_package_handle_standard_args)
  CMakeLists.txt:434 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found xcb-xinerama: /usr/include  
CMake Warning (dev) at /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (xcb-xkb)
  does not match the name of the calling package (XCB).  This can lead to
  problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  cmake/modules/FindXCB.cmake:58 (find_package_handle_standard_args)
  CMakeLists.txt:434 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found xcb-xkb: /usr/include  
CMake Warning (dev) at /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (xcb-render)
  does not match the name of the calling package (XCB).  This can lead to
  problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  cmake/modules/FindXCB.cmake:58 (find_package_handle_standard_args)
  CMakeLists.txt:434 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found xcb-render: /usr/include  
CMake Warning (dev) at /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args`
  (xcb-render-util) does not match the name of the calling package (XCB).
  This can lead to problems in calling code that expects `find_package`
  result variables (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  cmake/modules/FindXCB.cmake:58 (find_package_handle_standard_args)
  CMakeLists.txt:434 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found xcb-render-util: /usr/include  
CMake Warning (dev) at /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (xcb-glx)
  does not match the name of the calling package (XCB).  This can lead to
  problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  cmake/modules/FindXCB.cmake:58 (find_package_handle_standard_args)
  CMakeLists.txt:434 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found xcb-glx: /usr/include  
-- Found X11_XCB: /usr/lib/x86_64-linux-gnu/libX11-xcb.so  
-- Found XKBCommon: /usr/lib/x86_64-linux-gnu/libxkbcommon.so  
-- Found XKBCommon_X11: /usr/lib/x86_64-linux-gnu/libxkbcommon-x11.so  
CMake Warning (dev) at /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:438 (message):
  The package name passed to `find_package_handle_standard_args` (PkgConfig)
  does not match the name of the calling package (Fontconfig).  This can lead
  to problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  /usr/share/cmake-3.22/Modules/FindPkgConfig.cmake:99 (find_package_handle_standard_args)
  cmake/modules/FindFontconfig.cmake:33 (include)
  CMakeLists.txt:467 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found Fontconfig: /usr/include  
-- Checking for module 'gstreamer-1.0'
--   Found gstreamer-1.0, version 1.14.5
-- Checking for module 'gstreamer-base-1.0'
--   Found gstreamer-base-1.0, version 1.14.5
-- Checking for module 'gstreamer-app-1.0'
--   Found gstreamer-app-1.0, version 1.14.5
-- Checking for module 'gstreamer-audio-1.0'
--   Found gstreamer-audio-1.0, version 1.14.5
-- Checking for module 'gstreamer-video-1.0'
--   Found gstreamer-video-1.0, version 1.14.5
-- Found GStreamer: /usr/lib/x86_64-linux-gnu/libgstreamer-1.0.so  
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libOpenGL.so   
-- Found LibXml2: /usr/lib/x86_64-linux-gnu/libxml2.so (found version "2.9.4") 

It appears this broke with/around cmake 3.22.1

Code: Select all

developer@roland-u18-amd6-VirtualBox:~/Projects$ cmake --version
cmake version 3.22.1

CMake suite maintained and supported by Kitware (kitware.com/cmake).
developer@roland-u18-amd6-VirtualBox:~/Projects$ 
It now appears we have 3.16.3 backported to Ubuntu 18.04

https://ubuntu.pkgs.org/18.04/ubuntu-updates-universe-arm64/cmake-mozilla_3.16.3-1ubuntu1~18.04_arm64.deb.html

Mostly a heads up for anyone who previously configured a Ubuntu 18.04 VM for building. I guess also a storm warning for the developers because the current cmake script doesn't run clean in 3.22.1
ansel
Posts: 152
Joined: Fri Apr 10 2015 8:23 am

Re: Ubuntu 18.04 cmake 3.22 build issues

Post by ansel »

Ubuntu 18.04 ships with CMake 3.10, and CopperSpice requires 3.16 or newer which you can download directly from KitWare. The same situation exists for Debian 9 and 10.

Our CMake scripts are tested on various platforms from 3.16 through 3.21 as per our overview documentation. As we test other platforms and move to newer versions, warnings will be addressed.
Ansel Sermersheim
CopperSpice Cofounder
Post Reply