root-project / root

The official repository for ROOT: analyzing, storing and visualizing big data, scientifically
https://root.cern
Other
2.64k stars 1.26k forks source link

CMake and xrootd builtin #16149

Closed pcanal closed 2 months ago

pcanal commented 2 months ago

Check duplicate issues.

Description

With master, on a node without xrootd (so using builtin xrootd) doing on an empty directory:

cmake /Users/pcanal/root_working/code/rootcling -G Ninja -Dbuiltin_davix=OFF -Ddavix=OFF
cmake .

i.e. without buillding leads to:

CMake Error:
  Running

   '/Users/pcanal/bin/ninja' '-C' '/Users/pcanal/root_working/builds/master-xrootd-test' '-t' 'recompact'

  failed with:

   ninja: error: build.ninja:25026: multiple rules generate lib/libXrdCl.dylib

Reproducer

mkdir build
cd build
cmake /Users/pcanal/root_working/code/rootcling -G Ninja -Dbuiltin_davix=OFF -Ddavix=OFF
cmake .

ROOT version

master

Installation method

local build

Operating system

macos

Additional context

No response

vepadulano commented 2 months ago

Cannot reproduce, here is my system configuration.

╰─➤  uname -a
Darwin vpadulan-macbook.dyndns.cern.ch 23.4.0 Darwin Kernel Version 23.4.0: Fri Mar 15 00:12:25 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T6030 arm64
(root-dev) ╭─vpadulan@vpadulan-macbook ~/Programs/rootproject/mybuild
╰─➤  cmake --version
cmake version 3.28.1

CMake suite maintained and supported by Kitware (kitware.com/cmake).
(root-dev) ╭─vpadulan@vpadulan-macbook ~/Programs/rootproject/mybuild
╰─➤  clang --version
Apple clang version 15.0.0 (clang-1500.1.0.2.5)
Target: arm64-apple-darwin23.4.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
vepadulano commented 2 months ago

Disregard my previous comment, I can actually reproduce exactly the same error. I didn't see the requirement of builtin_xrootd=ON implied by the issue description.