intel / ipmctl

BSD 3-Clause "New" or "Revised" License
184 stars 62 forks source link

Building ipmctl on Linux results in CMake find_package errors for asciidoc and asciidoctor #137

Open sscargal opened 4 years ago

sscargal commented 4 years ago

When building ipmctl I see the following CMake warnings for asciidoc and asciidoctor:

# cmake -DRELEASE=ON -DCMAKE_INSTALL_PREFIX=/ ..
-- The C compiler identification is GNU 10.1.1
-- The CXX compiler identification is GNU 10.1.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc - works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ - works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Git: /usr/bin/git (found version "2.26.2")
VERSION:02.00.00.3673
BUILD_TYPE:Release
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.6.3")
-- Found PythonInterp: /usr/bin/python (found version "3.8.3")
-- Found asciidoctor: /usr/local/bin/asciidoctor
CMake Warning (dev) at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:272 (message):
  The package name passed to `find_package_handle_standard_args`
  (asciidoctor-pdf) does not match the name of the calling package
  (asciidoctor).  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/Find/Findasciidoctor.cmake:20 (find_package_handle_standard_args)
  CMakeLists.txt:82 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found asciidoctor-pdf: /usr/local/bin/asciidoctor-pdf
-- Found asciidoc: /usr/bin/asciidoc
CMake Warning (dev) at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:272 (message):
  The package name passed to `find_package_handle_standard_args` (a2x) does
  not match the name of the calling package (asciidoc).  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/Find/Findasciidoc.cmake:20 (find_package_handle_standard_args)
  CMakeLists.txt:83 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found a2x: /usr/bin/a2x
-- Checking for module 'libndctl>=58.2'
--   Found libndctl, version 68
-- Checking for module 'systemd'
--   Found systemd, version 245
BUILD_TYPE:Release
OS_TYPE:linux
LIB_TYPE:SHARED
COMPILER:/usr/bin/cc
SYSROOT:
TOOLCHAIN:
CMAKE_INSTALL_PREFIX value changed to: /usr
CMAKE_INSTALL_DATAROOTDIR not defined. Creating a new definition with value: share
INI_INSTALL_FILEPATH definition create with value: /usr/share
-- Found Doxygen: /usr/bin/doxygen (found version "1.8.17") found components: doxygen dot
-- Configuring done
-- Generating done
-- Build files have been written to: /downloads/ipmctl/output

Environment: OS: Fedora 32 Kernel: 5.7.5-250.vanilla.knurd.1.fc32.x86_64 AsciiDoc: asciidoc 8.6.10 AsciiDoctor: Asciidoctor 2.0.10 [https://asciidoctor.org] Runtime Environment (ruby 2.7.1p83 (2020-03-31 revision a0c7c23c9c) [x86_64-linux]) (lc:UTF-8 fs:UTF-8 in:UTF-8 ex:UTF-8)

kellycouch commented 4 years ago

Thanks for bringing this to our attention. We'll look into the dependencies related to building docs - see if can be cleaned up to prevent any false warnings/errors.