-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[CMake] Attempt to write ClingConfig.cmake.tmp
to the external LLVM library directory, causing configuration failure
#11920
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
Labels
Comments
Also reproducible on gentoo.
|
13 tasks
This was referenced Feb 10, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When building with native LLVM (with CMake flag
-Dbuiltin_llvm=OFF
) with Nix and Nixpkgs, the builder tries to placelib/cmake/cling/ClingConfig.cmake.tmp
under the read-only/path/to/native/llvm/lib/
, and gets System Error.Not sure if this issue is reproducible on other platforms.
Partial command line output:
Possible source of the issue:
https://github.com/root-project/root/blob/master/interpreter/cling/cmake/modules/CMakeLists.txt#L4-L5
Expected behavior
To Reproduce
-Dbuiltin_llvm=OFF
.(See the external context for steps to reproduce the behavior with the Nix package manager and Nixpkgs.)
Setup
"x86_64-linux"
Linux 5.10.156, NixOS, 22.11 (Raccoon), 22.11.20221130.596a8e8
yes
yes
nix-env (Nix) 2.11.0
/nix/store/qwgw2b19ga8dr7c6wfpd6p87bdjyrnha-source
Additional context
Here is the build steps to reproduce the issue with Nix. It can be proceed as long as
nix
ordocker
is available.Copyright notice: The
default.nix
is derived/taken from pkgs/applications/science/misc/root/default.nix in Nixpkgs. The original work is licensed under the MIT license by Eelco Dolstra and the Nixpkgs/NixOS contributors.Run
mkdir test-root-6.27
Place the following files into the
test-root-6.27
directory:setup-hook.sh
andsw_vers.patch
from https://github.com/NixOS/nixpkgs/tree/2787fc7d1e51404678614bf0fe92fc296746eec0/pkgs/applications/science/misc/rootdefault.nix
nix --extra-experimental-features 'nix-command flakes' build --no-link --keep-failed --print-build-logs ./test-root-6.27#root
. Ifnix
is not available, rundocker run -ti -v "$PWD:/mnt" -v /tmp:/tmp --rm nixos/nix nix --extra-experimental-features 'nix-command flakes' build --no-link --keep-failed --print-build-logs /mnt/test-root-6.27#root
instead./tmp
, with a folder name likenix-build-root-6.27.00.drv-*
.The text was updated successfully, but these errors were encountered: