Hi,I meet a problem about after the xrootd software is installed using the Spack in CentOS 8, the test suite fails to be compiled in the tests directory, and an error is reported.
Seeļ¼š

[root@centos8 xrootd]# ls
bindings  cmake  CMakeLists.txt  cmake_uninstall.cmake.in  COPYING  COPYING.BSD  COPYING.LGPL  docs  dopy.sh  Doxyfile  genversion.sh  LICENSE  packaging  README  src  tests  ups  utils  VERSION_INFO
[root@centos8 tests]# ls
build  CMakeLists.txt  common  XrdCephTests  XrdClTests  XrdSsiTests
[root@centos8 build]# ls
CMakeCache.txt  CMakeFiles  common  XrdClTests  XrdSsiTests
CMake Warning (dev) in CMakeLists.txt:
  No project() command is present.  The top-level CMakeLists.txt file must
  contain a literal, direct call to the project() command.  Add a line of
  code such as

    project(ProjectName)

  near the top of the file, but after cmake_minimum_required().

  CMake is pretending there is a "project(Project)" command on the first
  line.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Error at common/CMakeLists.txt:2 (include):
  include could not find load file:

    XRootDCommon


CMake Error at XrdClTests/CMakeLists.txt:2 (include):
  include could not find load file:

    XRootDCommon


CMake Error at XrdClTests/tls/CMakeLists.txt:2 (include):
  include could not find load file:

    XRootDCommon


CMake Error at XrdClTests/CMakeLists.txt:51 (install):
  install TARGETS given no LIBRARY DESTINATION for module target
  "XrdClTests".


CMake Error at XrdSsiTests/CMakeLists.txt:2 (include):
  include could not find load file:

    XRootDCommon


CMake Warning (dev) in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as

    cmake_minimum_required(VERSION 3.19)

  should be added at the top of the file.  The version specified may be lower
  if you wish to support older CMake versions for this project.  For more
  information run "cmake --help-policy CMP0000".
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring incomplete, errors occurred!
See also "/tmp/root/spack-stage/spack-stage-xrootd-5.0.3-hfnyhc7qlda64k3elqwkitetrgeqm6e6/spack-src/tests/build/CMakeFiles/CMakeOutput.log".
See also "/tmp/root/spack-stage/spack-stage-xrootd-5.0.3-hfnyhc7qlda64k3elqwkitetrgeqm6e6/spack-src/tests/build/CMakeFiles/CMakeError.log".

I don't know how to load XRootDCommon and XrdClTests. Can you tell me how to fix it?


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/xrootd/xrootd/issues/1415", "url": "https://github.com/xrootd/xrootd/issues/1415", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

Use REPLY-ALL to reply to list

To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1