XRT icon indicating copy to clipboard operation
XRT copied to clipboard

CMake warnings

Open stsoe opened this issue 4 years ago • 1 comments

Copied from #6092

I have tried this branch on my personal laptop which runs Debian/unstable with Linux 5.15.0-2-amd64 #1 SMP Debian 5.15.5-1 (2021-11-26) x86_64 GNU/Linux:

  • it compiles;
  • the kernel drivers xocl and xclmgmt are correctly loaded. :-)

I have not tried running some FPGA validation because I do not have an FPGA board. So I suggest we merge this if it passes the Xilinx CI.

@stsoe Independently from this PR, I have noticed some CMake warnings related to the fact I have a rather modern CMake 3.22.1, so perhaps someone could prepare the field for some modern CMake coming ahead:

  Policy CMP0110 is not set: add_test() supports arbitrary characters in test
  names.  Run "cmake --help-policy CMP0110" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

  The following name given to add_test() is invalid if CMP0110 is not set or
  set to OLD:

    `[xclbinutil]:signing-xclbin_CER´

This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) in runtime_src/tools/xclbinutil/CMakeLists.txt:
  Policy CMP0110 is not set: add_test() supports arbitrary characters in test
  names.  Run "cmake --help-policy CMP0110" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

  The following name given to add_test() is invalid if CMP0110 is not set or
  set to OLD:

    `[xclbinutil]:signing-xclbin_DER´

This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) in runtime_src/tools/xclbinutil/CMakeLists.txt:
  Policy CMP0110 is not set: add_test() supports arbitrary characters in test
  names.  Run "cmake --help-policy CMP0110" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

  The following name given to add_test() is invalid if CMP0110 is not set or
  set to OLD:

    `[xclbinutil]:smartnic-syntax´

This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) in runtime_src/tools/xclbinutil/CMakeLists.txt:
  Policy CMP0110 is not set: add_test() supports arbitrary characters in test
  names.  Run "cmake --help-policy CMP0110" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

  The following name given to add_test() is invalid if CMP0110 is not set or
  set to OLD:

    `[xclbinutil]:smartnic-format´

This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) in runtime_src/tools/xclbinutil/CMakeLists.txt:
  Policy CMP0110 is not set: add_test() supports arbitrary characters in test
  names.  Run "cmake --help-policy CMP0110" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

  The following name given to add_test() is invalid if CMP0110 is not set or
  set to OLD:

    `[xclbinutil]:soft-kernel´

This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) in runtime_src/tools/xclbinutil/CMakeLists.txt:
  Policy CMP0110 is not set: add_test() supports arbitrary characters in test
  names.  Run "cmake --help-policy CMP0110" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

  The following name given to add_test() is invalid if CMP0110 is not set or
  set to OLD:

    `[xclbinutil]:partition_metadata´

This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) in runtime_src/tools/xclbinutil/CMakeLists.txt:
  Policy CMP0110 is not set: add_test() supports arbitrary characters in test
  names.  Run "cmake --help-policy CMP0110" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

  The following name given to add_test() is invalid if CMP0110 is not set or
  set to OLD:

    `[xclbinutil]:fixed-kernel´

This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) in runtime_src/tools/xclbinutil/CMakeLists.txt:
  Policy CMP0110 is not set: add_test() supports arbitrary characters in test
  names.  Run "cmake --help-policy CMP0110" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

  The following name given to add_test() is invalid if CMP0110 is not set or
  set to OLD:

    `[xclbinutil]:ps-kernel´

This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) in runtime_src/tools/xclbinutil/CMakeLists.txt:
  Policy CMP0110 is not set: add_test() supports arbitrary characters in test
  names.  Run "cmake --help-policy CMP0110" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

  The following name given to add_test() is invalid if CMP0110 is not set or
  set to OLD:

    `[xclbinutil]:xclbintest´

This warning is for project developers.  Use -Wno-dev to suppress it.

Originally posted by @keryell in https://github.com/Xilinx/XRT/issues/6092#issuecomment-999818704

stsoe avatar Dec 23 '21 13:12 stsoe

I am just compiling latest XRT efe8ce1dc on my Ubuntu 22.04 laptop and I get during the CMake configuration phase:

[...]
----XRT_BUILD_INSTALL_DIR=/home/rkeryell/Xilinx/Projects/Vitis/XRT/build/Debug/opt/xilinx/xrt
-- Configuring done
CMake Warning (dev) in runtime_src/tools/xclbinutil/CMakeLists.txt:
  Policy CMP0110 is not set: add_test() supports arbitrary characters in test
  names.  Run "cmake --help-policy CMP0110" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

  The following name given to add_test() is invalid if CMP0110 is not set or
  set to OLD:

    `[xclbinutil]:signing-xclbin_CER´

This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) in runtime_src/tools/xclbinutil/CMakeLists.txt:
  Policy CMP0110 is not set: add_test() supports arbitrary characters in test
  names.  Run "cmake --help-policy CMP0110" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

  The following name given to add_test() is invalid if CMP0110 is not set or
  set to OLD:

    `[xclbinutil]:signing-xclbin_DER´

This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) in runtime_src/tools/xclbinutil/CMakeLists.txt:
  Policy CMP0110 is not set: add_test() supports arbitrary characters in test
  names.  Run "cmake --help-policy CMP0110" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

  The following name given to add_test() is invalid if CMP0110 is not set or
  set to OLD:

    `[xclbinutil]:smartnic-syntax´

This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) in runtime_src/tools/xclbinutil/CMakeLists.txt:
  Policy CMP0110 is not set: add_test() supports arbitrary characters in test
  names.  Run "cmake --help-policy CMP0110" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

  The following name given to add_test() is invalid if CMP0110 is not set or
  set to OLD:

    `[xclbinutil]:smartnic-format´

This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) in runtime_src/tools/xclbinutil/CMakeLists.txt:
  Policy CMP0110 is not set: add_test() supports arbitrary characters in test
  names.  Run "cmake --help-policy CMP0110" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

  The following name given to add_test() is invalid if CMP0110 is not set or
  set to OLD:

    `[xclbinutil]:soft-kernel´

This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) in runtime_src/tools/xclbinutil/CMakeLists.txt:
  Policy CMP0110 is not set: add_test() supports arbitrary characters in test
  names.  Run "cmake --help-policy CMP0110" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

  The following name given to add_test() is invalid if CMP0110 is not set or
  set to OLD:

    `[xclbinutil]:partition_metadata´

This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) in runtime_src/tools/xclbinutil/CMakeLists.txt:
  Policy CMP0110 is not set: add_test() supports arbitrary characters in test
  names.  Run "cmake --help-policy CMP0110" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

  The following name given to add_test() is invalid if CMP0110 is not set or
  set to OLD:

    `[xclbinutil]:fixed-kernel´

This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) in runtime_src/tools/xclbinutil/CMakeLists.txt:
  Policy CMP0110 is not set: add_test() supports arbitrary characters in test
  names.  Run "cmake --help-policy CMP0110" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

  The following name given to add_test() is invalid if CMP0110 is not set or
  set to OLD:

    `[xclbinutil]:ps-kernel´

This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) in runtime_src/tools/xclbinutil/CMakeLists.txt:
  Policy CMP0110 is not set: add_test() supports arbitrary characters in test
  names.  Run "cmake --help-policy CMP0110" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

  The following name given to add_test() is invalid if CMP0110 is not set or
  set to OLD:

    `[xclbinutil]:binary-images´

This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) in runtime_src/tools/xclbinutil/CMakeLists.txt:
  Policy CMP0110 is not set: add_test() supports arbitrary characters in test
  names.  Run "cmake --help-policy CMP0110" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

  The following name given to add_test() is invalid if CMP0110 is not set or
  set to OLD:

    `[xclbinutil]:single-subsection´

This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) in runtime_src/tools/xclbinutil/CMakeLists.txt:
  Policy CMP0110 is not set: add_test() supports arbitrary characters in test
  names.  Run "cmake --help-policy CMP0110" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

  The following name given to add_test() is invalid if CMP0110 is not set or
  set to OLD:

    `[xclbinutil]:aie-partition´

This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) in runtime_src/tools/xclbinutil/CMakeLists.txt:
  Policy CMP0110 is not set: add_test() supports arbitrary characters in test
  names.  Run "cmake --help-policy CMP0110" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

  The following name given to add_test() is invalid if CMP0110 is not set or
  set to OLD:

    `[xclbinutil]:xclbintest´

This warning is for project developers.  Use -Wno-dev to suppress it.

-- Generating done
-- Build files have been written to: /home/rkeryell/Xilinx/Projects/Vitis/XRT/build/Debug

real	0m7.047s
user	0m0.877s
sys	0m0.367s

keryell avatar Apr 27 '22 21:04 keryell