Skip to content

[cmake] Build only the library of the xrootd client#7539

Merged
guitargeek merged 1 commit into
root-project:masterfrom
stwunsch:xrd-client-lib-only
Oct 18, 2023
Merged

[cmake] Build only the library of the xrootd client#7539
guitargeek merged 1 commit into
root-project:masterfrom
stwunsch:xrd-client-lib-only

Conversation

@stwunsch

Copy link
Copy Markdown
Contributor

Hey! One commit I found locally, may be used to fix #7441

  • Enabled by the XRDCL_LIB_ONLY=ON cmake flag
  • Prevents building the client binaries such as xrdcp in our build dir
    but not exposing them in the installation

Fixes #7441

@stwunsch
stwunsch requested a review from oshadura as a code owner March 16, 2021 13:20
@phsft-bot

Copy link
Copy Markdown

Starting build on ROOT-debian10-i386/cxx14, ROOT-performance-centos8-multicore/default, ROOT-fedora30/cxx14, ROOT-fedora31/noimt, ROOT-ubuntu16/nortcxxmod, mac1014/python3, mac11.0/cxx17, windows10/cxx14
How to customize builds

@phsft-bot

Copy link
Copy Markdown

Build failed on ROOT-fedora31/noimt.
Running on root-fedora-31-2.cern.ch:/home/sftnight/build/workspace/root-pullrequests-build
See console output.

Errors:

  • [2021-03-16T13:23:24.930Z] /home/sftnight/build/workspace/root-pullrequests-build/root/net/netx/src/TXNetFile.cxx:58:10: fatal error: XrdClient/XrdClient.hh: No such file or directory
  • [2021-03-16T13:23:24.930Z] /home/sftnight/build/workspace/root-pullrequests-build/root/net/netx/src/TXNetSystem.cxx:37:10: fatal error: XrdClient/XrdClientVector.hh: No such file or directory

@phsft-bot

Copy link
Copy Markdown

Build failed on ROOT-ubuntu16/nortcxxmod.
Running on sft-ubuntu-1604-3.cern.ch:/build/workspace/root-pullrequests-build
See console output.

Errors:

  • [2021-03-16T13:26:20.062Z] FAILED: /usr/bin/ccache /usr/bin/c++ -I/mnt/build/workspace/root-pullrequests-build/root/net/netx/inc -I/mnt/build/workspace/root-pullrequests-build/root/core/unix/inc -I/mnt/build/workspace/root-pullrequests-build/root/core/clingutils/inc -I/mnt/build/workspace/root-pullrequests-build/root/core/textinput/inc -I/mnt/build/workspace/root-pullrequests-build/root/core/thread/inc -I/mnt/build/workspace/root-pullrequests-build/root/core/zip/inc -I/mnt/build/workspace/root-pullrequests-build/root/core/rint/inc -I/mnt/build/workspace/root-pullrequests-build/root/core/clib/inc -I/mnt/build/workspace/root-pullrequests-build/root/core/meta/inc -I/mnt/build/workspace/root-pullrequests-build/root/core/gui/inc -I/mnt/build/workspace/root-pullrequests-build/root/core/cont/inc -I/mnt/build/workspace/root-pullrequests-build/root/core/foundation/inc -I/mnt/build/workspace/root-pullrequests-build/root/core/base/inc -Iginclude -I/mnt/build/workspace/root-pullrequests-build/root/net/net/inc -I/mnt/build/workspace/root-pullrequests-build/root/io/io/inc -I/mnt/build/workspace/root-pullrequests-build/root/core/clib/res -I/mnt/build/workspace/root-pullrequests-build/root/builtins -Iinclude/xrootd -Iinclude/xrootd/private -I/mnt/build/workspace/root-pullrequests-build/root/proof/proofd/inc -fdiagnostics-color=always -std=c++11 -pipe -Wshadow -Wall -W -Woverloaded-virtual -fsigned-char -pthread -O3 -fPIC -DROOTXRDVERS=400120008 -std=c++11 -MD -MT net/netx/CMakeFiles/Netx.dir/src/TXNetFile.cxx.o -MF net/netx/CMakeFiles/Netx.dir/src/TXNetFile.cxx.o.d -o net/netx/CMakeFiles/Netx.dir/src/TXNetFile.cxx.o -c /mnt/build/workspace/root-pullrequests-build/root/net/netx/src/TXNetFile.cxx
  • [2021-03-16T13:26:20.062Z] /mnt/build/workspace/root-pullrequests-build/root/net/netx/src/TXNetFile.cxx:58:34: fatal error: XrdClient/XrdClient.hh: No such file or directory
  • [2021-03-16T13:26:20.062Z] FAILED: /usr/bin/ccache /usr/bin/c++ -I/mnt/build/workspace/root-pullrequests-build/root/net/netx/inc -I/mnt/build/workspace/root-pullrequests-build/root/core/unix/inc -I/mnt/build/workspace/root-pullrequests-build/root/core/clingutils/inc -I/mnt/build/workspace/root-pullrequests-build/root/core/textinput/inc -I/mnt/build/workspace/root-pullrequests-build/root/core/thread/inc -I/mnt/build/workspace/root-pullrequests-build/root/core/zip/inc -I/mnt/build/workspace/root-pullrequests-build/root/core/rint/inc -I/mnt/build/workspace/root-pullrequests-build/root/core/clib/inc -I/mnt/build/workspace/root-pullrequests-build/root/core/meta/inc -I/mnt/build/workspace/root-pullrequests-build/root/core/gui/inc -I/mnt/build/workspace/root-pullrequests-build/root/core/cont/inc -I/mnt/build/workspace/root-pullrequests-build/root/core/foundation/inc -I/mnt/build/workspace/root-pullrequests-build/root/core/base/inc -Iginclude -I/mnt/build/workspace/root-pullrequests-build/root/net/net/inc -I/mnt/build/workspace/root-pullrequests-build/root/io/io/inc -I/mnt/build/workspace/root-pullrequests-build/root/core/clib/res -I/mnt/build/workspace/root-pullrequests-build/root/builtins -Iinclude/xrootd -Iinclude/xrootd/private -I/mnt/build/workspace/root-pullrequests-build/root/proof/proofd/inc -fdiagnostics-color=always -std=c++11 -pipe -Wshadow -Wall -W -Woverloaded-virtual -fsigned-char -pthread -O3 -fPIC -DROOTXRDVERS=400120008 -std=c++11 -MD -MT net/netx/CMakeFiles/Netx.dir/src/TXNetSystem.cxx.o -MF net/netx/CMakeFiles/Netx.dir/src/TXNetSystem.cxx.o.d -o net/netx/CMakeFiles/Netx.dir/src/TXNetSystem.cxx.o -c /mnt/build/workspace/root-pullrequests-build/root/net/netx/src/TXNetSystem.cxx
  • [2021-03-16T13:26:20.062Z] /mnt/build/workspace/root-pullrequests-build/root/net/netx/src/TXNetSystem.cxx:37:40: fatal error: XrdClient/XrdClientVector.hh: No such file or directory

@stwunsch

Copy link
Copy Markdown
Contributor Author

Uhm, this flag seems to disable more than expected :/

@oshadura

Copy link
Copy Markdown
Collaborator

It will be possible probably only with #7335

@stwunsch

Copy link
Copy Markdown
Contributor Author

Thanks for pointing this out!

@phsft-bot

Copy link
Copy Markdown

Build failed on ROOT-performance-centos8-multicore/default.
Running on null:/data/sftnight/workspace/root-pullrequests-build
See console output.

Errors:

  • [2021-03-16T14:10:43.793Z] /data/sftnight/workspace/root-pullrequests-build/root/net/netx/src/TXNetSystem.cxx:37:10: fatal error: XrdClient/XrdClientVector.hh: No such file or directory
  • [2021-03-16T14:10:43.793Z] /data/sftnight/workspace/root-pullrequests-build/root/net/netx/src/TXNetFile.cxx:58:10: fatal error: XrdClient/XrdClient.hh: No such file or directory

@phsft-bot

Copy link
Copy Markdown

Build failed on ROOT-fedora30/cxx14.
Running on root-fedora30-2.cern.ch:/home/sftnight/build/workspace/root-pullrequests-build
See console output.

Errors:

  • [2021-03-16T14:23:02.221Z] FAILED: net/netx/CMakeFiles/Netx.dir/src/TXNetSystem.cxx.o
  • [2021-03-16T14:23:02.221Z] /home/sftnight/build/workspace/root-pullrequests-build/root/net/netx/src/TXNetSystem.cxx:37:10: fatal error: XrdClient/XrdClientVector.hh: No such file or directory
  • [2021-03-16T14:23:02.221Z] FAILED: net/netx/CMakeFiles/Netx.dir/src/TXNetFile.cxx.o
  • [2021-03-16T14:23:02.481Z] /home/sftnight/build/workspace/root-pullrequests-build/root/net/netx/src/TXNetFile.cxx:58:10: fatal error: XrdClient/XrdClient.hh: No such file or directory

@phsft-bot

Copy link
Copy Markdown

Build failed on mac11.0/cxx17.
Running on macphsft23.dyndns.cern.ch:/Users/sftnight/build/workspace/root-pullrequests-build
See console output.

Errors:

  • [2021-03-16T15:26:34.499Z] FAILED: net/netx/CMakeFiles/Netx.dir/src/TXNetFile.cxx.o
  • [2021-03-16T15:26:35.073Z] /Users/sftnight/build/workspace/root-pullrequests-build/root/net/netx/src/TXNetFile.cxx:58:10: fatal error: 'XrdClient/XrdClient.hh' file not found
  • [2021-03-16T15:26:35.073Z] FAILED: net/netx/CMakeFiles/Netx.dir/src/TXNetSystem.cxx.o
  • [2021-03-16T15:26:35.335Z] /Users/sftnight/build/workspace/root-pullrequests-build/root/net/netx/src/TXNetSystem.cxx:37:10: fatal error: 'XrdClient/XrdClientVector.hh' file not found

@phsft-bot

Copy link
Copy Markdown

Build failed on mac1014/python3.
Running on macitois21.dyndns.cern.ch:/Users/sftnight/build/workspace/root-pullrequests-build
See console output.

Errors:

  • [2021-03-16T15:33:39.221Z] FAILED: net/netx/CMakeFiles/Netx.dir/src/TXNetFile.cxx.o
  • [2021-03-16T15:33:39.482Z] /Volumes/HD2/build/workspace/root-pullrequests-build/root/net/netx/src/TXNetFile.cxx:58:10: fatal error: 'XrdClient/XrdClient.hh' file not found
  • [2021-03-16T15:33:39.759Z] FAILED: net/netx/CMakeFiles/Netx.dir/src/TXNetSystem.cxx.o
  • [2021-03-16T15:33:40.018Z] /Volumes/HD2/build/workspace/root-pullrequests-build/root/net/netx/src/TXNetSystem.cxx:37:10: fatal error: 'XrdClient/XrdClientVector.hh' file not found

@phsft-bot

Copy link
Copy Markdown

Build failed on ROOT-debian10-i386/cxx14.
Running on pcepsft10.dyndns.cern.ch:/build/workspace/root-pullrequests-build
See console output.

Errors:

  • [2021-03-16T16:32:05.017Z] /home/sftnight/build/workspace/root-pullrequests-build/root/net/netx/src/TXNetSystem.cxx:37:10: fatal error: XrdClient/XrdClientVector.hh: No such file or directory
  • [2021-03-16T16:32:05.017Z] /home/sftnight/build/workspace/root-pullrequests-build/root/net/netx/src/TXNetFile.cxx:58:10: fatal error: XrdClient/XrdClient.hh: No such file or directory

@phsft-bot

Copy link
Copy Markdown

Build failed on windows10/cxx14.
Running on null:C:\build\workspace\root-pullrequests-build
See console output.

Failing tests:

@stwunsch

Copy link
Copy Markdown
Contributor Author

I've just investigated and indeed with xrootd5 it should work like this, though in the current inbuilt version it's basically impossible to make this work with existing cmake flags. So waiting for #7335 :)

@stwunsch
stwunsch marked this pull request as draft April 9, 2021 10:15
- Enabled by the XRDCL_LIB_ONLY=ON cmake flag
- Prevents building the client binaries such as xrdcp in our build dir
but not exposing them in the installation

Fixes root-project#7441
@guitargeek
guitargeek marked this pull request as ready for review October 18, 2023 09:47
@guitargeek
guitargeek requested a review from bellenot as a code owner October 18, 2023 09:47
@phsft-bot

Copy link
Copy Markdown

Starting build on ROOT-performance-centos8-multicore/soversion, ROOT-ubuntu2204/nortcxxmod, ROOT-ubuntu2004/python3, mac12arm/cxx20, windows10/default
How to customize builds

@guitargeek guitargeek left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! It's a good idea to not build the binary artifacts if they are not used 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

xrdcp CLI tools should be installed or disabled

4 participants