Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[skip-CI][cling] Refine build and usage guide #549

Closed
wants to merge 1 commit into from

Conversation

JeffBla
Copy link

@JeffBla JeffBla commented Mar 26, 2025

Clarify standalone and LLVM-integrated build methods, along with usage instructions. Improved installation steps to ensure successful execution.

Build Cling As Standalone Project

Clarifies the distinct build processes for standalone Cling and Cling integrated with LLVM, addressing common user errors related to missing dependencies and incorrect build commands. Standalone Cling's header file locations differ from LLVM-integrated builds, causing potential file not found.

$ ./bin/cling                   
input_line_2:1:10: fatal error: 'cling/Interpreter/RuntimeUniverse.h' file not found
#include <cling/Interpreter/RuntimeUniverse.h>
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

****************** CLING ******************
* Type C++ code and press enter to run it *
*             Type .q to exit             *
*******************************************
[cling]$ 

Build Cling Along with LLVM

issue#533, issue#536, issue#531 and issue#543 highlight a common error: building Cling with cmake --build . --target cling within an LLVM source tree fails because it only builds the Cling target, not the necessary Clang dependencies, clang.

Clarified standalone and LLVM-integrated build methods, along with
usage instructions. Improved installation steps to ensure successful
execution.
@ferdymercury
Copy link
Contributor

Thanks! Let's stay with root-project/root#18161, this repo will be auto-synced.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants