Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#64613 - [root] Cannot find ROOT with CMake

Attached to Project: Community Packages
Opened by beojan (beojan) - Friday, 22 November 2019, 14:54 GMT
Last edited by Konstantin Gizdov (kgizdov) - Monday, 24 February 2020, 12:17 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Konstantin Gizdov (kgizdov)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
With the Arch root or root-cuda package installed, it isn't possible to link to ROOT using CMake:

CMake Error at /usr/share/root/cmake/ROOTConfig-targets-optimized.cmake:584 (set_property):
set_property could not find TARGET ROOT::Bonjour. Perhaps it has not yet
been created.
Call Stack (most recent call first):
/usr/share/root/cmake/ROOTConfig-targets.cmake:1168 (include)
/usr/share/root/cmake/ROOTConfig.cmake:81 (include)
rdf-utils/include.cmake:10 (find_package)
CMakeLists.txt:5 (include)


CMake Error at /usr/share/root/cmake/ROOTConfig-targets-optimized.cmake:585 (set_target_properties):
set_target_properties Can not find target to add properties to:
ROOT::Bonjour
Call Stack (most recent call first):
/usr/share/root/cmake/ROOTConfig-targets.cmake:1168 (include)
/usr/share/root/cmake/ROOTConfig.cmake:81 (include)
rdf-utils/include.cmake:10 (find_package)
CMakeLists.txt:5 (include)


CMake Error at /usr/share/root/cmake/ROOTConfig-targets-optimized.cmake:595 (set_property):
set_property could not find TARGET ROOT::Krb5Auth. Perhaps it has not yet
been created.
Call Stack (most recent call first):
/usr/share/root/cmake/ROOTConfig-targets.cmake:1168 (include)
/usr/share/root/cmake/ROOTConfig.cmake:81 (include)
rdf-utils/include.cmake:10 (find_package)
CMakeLists.txt:5 (include)


CMake Error at /usr/share/root/cmake/ROOTConfig-targets-optimized.cmake:596 (set_target_properties):
set_target_properties Can not find target to add properties to:
ROOT::Krb5Auth
Call Stack (most recent call first):
/usr/share/root/cmake/ROOTConfig-targets.cmake:1168 (include)
/usr/share/root/cmake/ROOTConfig.cmake:81 (include)
rdf-utils/include.cmake:10 (find_package)
CMakeLists.txt:5 (include)


CMake Error at /usr/share/root/cmake/ROOTConfig-targets-optimized.cmake:617 (set_property):
set_property could not find TARGET ROOT::rootd. Perhaps it has not yet
been created.
Call Stack (most recent call first):
/usr/share/root/cmake/ROOTConfig-targets.cmake:1168 (include)
/usr/share/root/cmake/ROOTConfig.cmake:81 (include)
rdf-utils/include.cmake:10 (find_package)
CMakeLists.txt:5 (include)


CMake Error at /usr/share/root/cmake/ROOTConfig-targets-optimized.cmake:618 (set_target_properties):
set_target_properties Can not find target to add properties to: ROOT::rootd
Call Stack (most recent call first):
/usr/share/root/cmake/ROOTConfig-targets.cmake:1168 (include)
/usr/share/root/cmake/ROOTConfig.cmake:81 (include)
rdf-utils/include.cmake:10 (find_package)
CMakeLists.txt:5 (include)


CMake Error at /usr/share/root/cmake/ROOTConfig-targets-optimized.cmake:637 (set_property):
set_property could not find TARGET ROOT::RLDAP. Perhaps it has not yet
been created.
Call Stack (most recent call first):
/usr/share/root/cmake/ROOTConfig-targets.cmake:1168 (include)
/usr/share/root/cmake/ROOTConfig.cmake:81 (include)
rdf-utils/include.cmake:10 (find_package)
CMakeLists.txt:5 (include)


CMake Error at /usr/share/root/cmake/ROOTConfig-targets-optimized.cmake:638 (set_target_properties):
set_target_properties Can not find target to add properties to: ROOT::RLDAP
Call Stack (most recent call first):
/usr/share/root/cmake/ROOTConfig-targets.cmake:1168 (include)
/usr/share/root/cmake/ROOTConfig.cmake:81 (include)
rdf-utils/include.cmake:10 (find_package)
CMakeLists.txt:5 (include)


CMake Error at /usr/share/root/cmake/ROOTConfig-targets-optimized.cmake:693 (set_property):
set_property could not find TARGET ROOT::mathtext. Perhaps it has not yet
been created.
Call Stack (most recent call first):
/usr/share/root/cmake/ROOTConfig-targets.cmake:1168 (include)
/usr/share/root/cmake/ROOTConfig.cmake:81 (include)
rdf-utils/include.cmake:10 (find_package)
CMakeLists.txt:5 (include)


CMake Error at /usr/share/root/cmake/ROOTConfig-targets-optimized.cmake:694 (set_target_properties):
set_target_properties Can not find target to add properties to:
ROOT::mathtext
Call Stack (most recent call first):
/usr/share/root/cmake/ROOTConfig-targets.cmake:1168 (include)
/usr/share/root/cmake/ROOTConfig.cmake:81 (include)
rdf-utils/include.cmake:10 (find_package)
CMakeLists.txt:5 (include)


CMake Error at /usr/share/root/cmake/ROOTConfig-targets-optimized.cmake:817 (set_property):
set_property could not find TARGET ROOT::GLEW. Perhaps it has not yet been
created.
Call Stack (most recent call first):
/usr/share/root/cmake/ROOTConfig-targets.cmake:1168 (include)
/usr/share/root/cmake/ROOTConfig.cmake:81 (include)
rdf-utils/include.cmake:10 (find_package)
CMakeLists.txt:5 (include)


CMake Error at /usr/share/root/cmake/ROOTConfig-targets-optimized.cmake:818 (set_target_properties):
set_target_properties Can not find target to add properties to: ROOT::GLEW
Call Stack (most recent call first):
/usr/share/root/cmake/ROOTConfig-targets.cmake:1168 (include)
/usr/share/root/cmake/ROOTConfig.cmake:81 (include)
rdf-utils/include.cmake:10 (find_package)
CMakeLists.txt:5 (include)


CMake Error at /usr/share/root/cmake/ROOTConfig-targets-optimized.cmake:828 (set_property):
set_property could not find TARGET ROOT::FTGL. Perhaps it has not yet been
created.
Call Stack (most recent call first):
/usr/share/root/cmake/ROOTConfig-targets.cmake:1168 (include)
/usr/share/root/cmake/ROOTConfig.cmake:81 (include)
rdf-utils/include.cmake:10 (find_package)
CMakeLists.txt:5 (include)


CMake Error at /usr/share/root/cmake/ROOTConfig-targets-optimized.cmake:829 (set_target_properties):
set_target_properties Can not find target to add properties to: ROOT::FTGL
Call Stack (most recent call first):
/usr/share/root/cmake/ROOTConfig-targets.cmake:1168 (include)
/usr/share/root/cmake/ROOTConfig.cmake:81 (include)
rdf-utils/include.cmake:10 (find_package)
CMakeLists.txt:5 (include)


CMake Error at /usr/share/root/cmake/ROOTConfig-targets-optimized.cmake:974 (set_property):
set_property could not find TARGET ROOT::proofd. Perhaps it has not yet
been created.
Call Stack (most recent call first):
/usr/share/root/cmake/ROOTConfig-targets.cmake:1168 (include)
/usr/share/root/cmake/ROOTConfig.cmake:81 (include)
rdf-utils/include.cmake:10 (find_package)
CMakeLists.txt:5 (include)


CMake Error at /usr/share/root/cmake/ROOTConfig-targets-optimized.cmake:975 (set_target_properties):
set_target_properties Can not find target to add properties to:
ROOT::proofd
Call Stack (most recent call first):
/usr/share/root/cmake/ROOTConfig-targets.cmake:1168 (include)
/usr/share/root/cmake/ROOTConfig.cmake:81 (include)
rdf-utils/include.cmake:10 (find_package)
CMakeLists.txt:5 (include)


CMake Error at /usr/share/root/cmake/ROOTConfig-targets-optimized.cmake:1015 (set_property):
set_property could not find TARGET ROOT::pq2. Perhaps it has not yet been
created.
Call Stack (most recent call first):
/usr/share/root/cmake/ROOTConfig-targets.cmake:1168 (include)
/usr/share/root/cmake/ROOTConfig.cmake:81 (include)
rdf-utils/include.cmake:10 (find_package)
CMakeLists.txt:5 (include)


CMake Error at /usr/share/root/cmake/ROOTConfig-targets-optimized.cmake:1016 (set_target_properties):
set_target_properties Can not find target to add properties to: ROOT::pq2
Call Stack (most recent call first):
/usr/share/root/cmake/ROOTConfig-targets.cmake:1168 (include)
/usr/share/root/cmake/ROOTConfig.cmake:81 (include)
rdf-utils/include.cmake:10 (find_package)
CMakeLists.txt:5 (include)


CMake Error at /usr/share/root/cmake/ROOTConfig-targets-optimized.cmake:1046 (set_property):
set_property could not find TARGET ROOT::VMC. Perhaps it has not yet been
created.
Call Stack (most recent call first):
/usr/share/root/cmake/ROOTConfig-targets.cmake:1168 (include)
/usr/share/root/cmake/ROOTConfig.cmake:81 (include)
rdf-utils/include.cmake:10 (find_package)
CMakeLists.txt:5 (include)


CMake Error at /usr/share/root/cmake/ROOTConfig-targets-optimized.cmake:1047 (set_target_properties):
set_target_properties Can not find target to add properties to: ROOT::VMC
Call Stack (most recent call first):
/usr/share/root/cmake/ROOTConfig-targets.cmake:1168 (include)
/usr/share/root/cmake/ROOTConfig.cmake:81 (include)
rdf-utils/include.cmake:10 (find_package)
CMakeLists.txt:5 (include)


CMake Error at /usr/share/root/cmake/ROOTConfig-targets-optimized.cmake:1121 (set_property):
set_property could not find TARGET ROOT::MemStat. Perhaps it has not yet
been created.
Call Stack (most recent call first):
/usr/share/root/cmake/ROOTConfig-targets.cmake:1168 (include)
/usr/share/root/cmake/ROOTConfig.cmake:81 (include)
rdf-utils/include.cmake:10 (find_package)
CMakeLists.txt:5 (include)


CMake Error at /usr/share/root/cmake/ROOTConfig-targets-optimized.cmake:1122 (set_target_properties):
set_target_properties Can not find target to add properties to:
ROOT::MemStat
Call Stack (most recent call first):
/usr/share/root/cmake/ROOTConfig-targets.cmake:1168 (include)
/usr/share/root/cmake/ROOTConfig.cmake:81 (include)
rdf-utils/include.cmake:10 (find_package)
CMakeLists.txt:5 (include)


CMake Error at /usr/share/root/cmake/ROOTConfig-targets-optimized.cmake:1151 (set_property):
set_property could not find TARGET ROOT::ssh2rpd. Perhaps it has not yet
been created.
Call Stack (most recent call first):
/usr/share/root/cmake/ROOTConfig-targets.cmake:1168 (include)
/usr/share/root/cmake/ROOTConfig.cmake:81 (include)
rdf-utils/include.cmake:10 (find_package)
CMakeLists.txt:5 (include)


CMake Error at /usr/share/root/cmake/ROOTConfig-targets-optimized.cmake:1152 (set_target_properties):
set_target_properties Can not find target to add properties to:
ROOT::ssh2rpd
Call Stack (most recent call first):
/usr/share/root/cmake/ROOTConfig-targets.cmake:1168 (include)
/usr/share/root/cmake/ROOTConfig.cmake:81 (include)
rdf-utils/include.cmake:10 (find_package)
CMakeLists.txt:5 (include)


CMake Error at /usr/share/root/cmake/ROOTConfig-targets-optimized.cmake:1244 (set_property):
set_property could not find TARGET ROOT::JupyROOT. Perhaps it has not yet
been created.
Call Stack (most recent call first):
/usr/share/root/cmake/ROOTConfig-targets.cmake:1168 (include)
/usr/share/root/cmake/ROOTConfig.cmake:81 (include)
rdf-utils/include.cmake:10 (find_package)
CMakeLists.txt:5 (include)


CMake Error at /usr/share/root/cmake/ROOTConfig-targets-optimized.cmake:1245 (set_target_properties):
set_target_properties Can not find target to add properties to:
ROOT::JupyROOT
Call Stack (most recent call first):
/usr/share/root/cmake/ROOTConfig-targets.cmake:1168 (include)
/usr/share/root/cmake/ROOTConfig.cmake:81 (include)
rdf-utils/include.cmake:10 (find_package)
CMakeLists.txt:5 (include)


CMake Error at /usr/share/root/cmake/ROOTConfig-targets.cmake:1178 (message):
The imported target "ROOT::Bonjour" references the file

"/usr/lib/root/libBonjour.so"

but this file does not exist. Possible reasons include:

* The file was deleted, renamed, or moved to another location.

* An install or uninstall procedure did not complete successfully.

* The installation package was faulty and contained

"/usr/share/root/cmake/ROOTConfig-targets.cmake"

but not all the files it references.

Call Stack (most recent call first):
/usr/share/root/cmake/ROOTConfig.cmake:81 (include)
rdf-utils/include.cmake:10 (find_package)
CMakeLists.txt:5 (include)


Additional info:
* package version(s): 6.18.04-4


Steps to reproduce:
- Attempt to link in ROOT using CMake
This task depends upon

Closed by  Konstantin Gizdov (kgizdov)
Monday, 24 February 2020, 12:17 GMT
Reason for closing:  Fixed
Comment by Konstantin Gizdov (kgizdov) - Wednesday, 27 November 2019, 09:07 GMT
This seems to be an upstream bug where the base install path is a relative path and thus the generated CMake config is using relative paths which do not respect install prefix. I'll update when I get it working.
Comment by Konstantin Gizdov (kgizdov) - Thursday, 28 November 2019, 00:01 GMT
please check community-testing/root-6.18.04-5 when it becomes available for you
Comment by beojan (beojan) - Tuesday, 03 December 2019, 15:46 GMT
I'm now getting
By not providing "FindROOT.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "ROOT", but
CMake did not find one.

Could not find a package configuration file provided by "ROOT" with any of
the following names:

ROOTConfig.cmake
root-config.cmake

Add the installation prefix of "ROOT" to CMAKE_PREFIX_PATH or set
"ROOT_DIR" to a directory containing one of the above files. If "ROOT"
provides a separate development package or SDK, be sure it has been
installed.

Which is confusing because ROOTConfig.cmake exists in /usr/lib/cmake.
Comment by Konstantin Gizdov (kgizdov) - Tuesday, 03 December 2019, 15:54 GMT
could you tell me what you're trying to compile? Which package, where you get the source from and how you compile. The issue here might be that the software you have expect ROOTConfig.cmake to be in one specific path and does not include `/usr/lib/cmake`. If you pass `cmake -DCMAKE_MODULE_PATH=/usr/lib/cmake`, does that help? Try with CMAKE_PREFIX_PATH and ROOT_DIR too.
Comment by Konstantin Gizdov (kgizdov) - Tuesday, 03 December 2019, 16:26 GMT
I did a test project like [this](https://gist.github.com/kgizdov/c895d970e2689694c6ba11e9cc89b28c) and it seems to work
Comment by Konstantin Gizdov (kgizdov) - Tuesday, 03 December 2019, 17:23 GMT
wait, I think I know what happened there. Should be fixed in 6.18.04-6

Loading...