Hi,
I don’t know why clad acts up that way (maybe @Axel does) , but you can disable building clad running cmake -Dclad=OFF . in your build directory.
Or even better start from a new, empty build directory and run cmake -Dclad=OFF -Dyourotheroptions path/to/root_sources.
Cheers,
Enrico
EDIT: in case you are wondering what clad is, it’s a cling-based automatic differentiation tool. Still in the development stage, you most probably do not need it
Hi guys,
I just tried as @eguiraud suggested and the problem is still the same.
Many thanks for your suggestions.
Before disabling clad I would like to hear from @vvassilev once he is back from vacation.
Could you paste the content of /Users/dinardo/root_v6.18.02/myBuild/interpreter/llvm/src/tools/cling/tools/plugins/clad/clad-prefix/tmp/clad-gitclone.cmake and /Users/dinardo/root_v6.18.02/myBuild/interpreter/llvm/src/tools/cling/tools/plugins/clad/clad-prefix/src/clad-stamp/clad-download-*.log
I suspect it has something to do with your certificate
more /Users/dinardo/root_v6.18.02/myBuild/interpreter/llvm/src/tools/cling/tools/plugins/clad/clad-prefix/tmp/clad-gitclone.cmake
if("v0.5" STREQUAL "")
message(FATAL_ERROR "Tag for git checkout should not be empty.")
endif()
set(run 0)
if("/Users/dinardo/root_v6.18.02/myBuild/interpreter/llvm/src/tools/cling/tools/plugins/clad/clad-prefix/src/clad-stamp/clad-gitinfo.txt" IS_NEWER_THAN "/Users/dinardo/root_v6.18.02/myBuild/interpreter/llvm/src/tools/cling/tools/plugins/clad/clad-prefix/src/clad-stamp/clad-gitclone-lastrun.txt")
set(run 1)
endif()
if(NOT run)
message(STATUS "Avoiding repeated git clone, stamp file is up to date: '/Users/dinardo/root_v6.18.02/myBuild/interpreter/llvm/src/tools/cling/tools/plugins/clad/clad-prefix/src/clad-stamp/clad-gitclone-lastrun.txt'")
return()
endif()
execute_process(
COMMAND ${CMAKE_COMMAND} -E remove_directory "/Users/dinardo/root_v6.18.02/myBuild/interpreter/llvm/src/tools/cling/tools/plugins/clad/clad-prefix/src/clad"
RESULT_VARIABLE error_code
)
if(error_code)
message(FATAL_ERROR "Failed to remove directory: '/Users/dinardo/root_v6.18.02/myBuild/interpreter/llvm/src/tools/cling/tools/plugins/clad/clad-prefix/src/clad'")
endif()
set(git_options)
# disable cert checking if explicitly told not to do it
set(tls_verify "")
if(NOT "x" STREQUAL "x" AND NOT tls_verify)
list(APPEND git_options
-c http.sslVerify=false)
endif()
set(git_clone_options)
set(git_shallow "")
if(git_shallow)
list(APPEND git_clone_options --depth 1 --no-single-branch)
endif()
set(git_progress "")
if(git_progress)
list(APPEND git_clone_options --progress)
endif()
set(git_config "")
foreach(config IN LISTS git_config)
list(APPEND git_clone_options --config ${config})
endforeach()
# try the clone 3 times in case there is an odd git clone issue
set(error_code 1)
set(number_of_tries 0)
while(error_code AND number_of_tries LESS 3)
execute_process(
COMMAND "/usr/bin/git" ${git_options} clone ${git_clone_options} --origin "origin" "https://github.com/vgvassilev/clad.git" "clad"
WORKING_DIRECTORY "/Users/dinardo/root_v6.18.02/myBuild/interpreter/llvm/src/tools/cling/tools/plugins/clad/clad-prefix/src"
RESULT_VARIABLE error_code
)
math(EXPR number_of_tries "${number_of_tries} + 1")
endwhile()
if(number_of_tries GREATER 1)
message(STATUS "Had to git clone more than once:
${number_of_tries} times.")
endif()
if(error_code)
message(FATAL_ERROR "Failed to clone repository: 'https://github.com/vgvassilev/clad.git'")
endif()
execute_process(
COMMAND "/usr/bin/git" ${git_options} checkout v0.5 --
WORKING_DIRECTORY "/Users/dinardo/root_v6.18.02/myBuild/interpreter/llvm/src/tools/cling/tools/plugins/clad/clad-prefix/src/clad"
RESULT_VARIABLE error_code
)
if(error_code)
message(FATAL_ERROR "Failed to checkout tag: 'v0.5'")
endif()
execute_process(
COMMAND "/usr/bin/git" ${git_options} submodule init
WORKING_DIRECTORY "/Users/dinardo/root_v6.18.02/myBuild/interpreter/llvm/src/tools/cling/tools/plugins/clad/clad-prefix/src/clad"
RESULT_VARIABLE error_code
)
if(error_code)
message(FATAL_ERROR "Failed to init submodules in: '/Users/dinardo/root_v6.18.02/myBuild/interpreter/llvm/src/tools/cling/tools/plugins/clad/clad-prefix/src/clad'")
endif()
execute_process(
COMMAND "/usr/bin/git" ${git_options} submodule update --recursive --init
WORKING_DIRECTORY "/Users/dinardo/root_v6.18.02/myBuild/interpreter/llvm/src/tools/cling/tools/plugins/clad/clad-prefix/src/clad"
RESULT_VARIABLE error_code
)
if(error_code)
message(FATAL_ERROR "Failed to update submodules in: '/Users/dinardo/root_v6.18.02/myBuild/interpreter/llvm/src/tools/cling/tools/plugins/clad/clad-prefix/src/clad'")
endif()
# Complete success, update the script-last-run stamp file:
#
execute_process(
COMMAND ${CMAKE_COMMAND} -E copy
"/Users/dinardo/root_v6.18.02/myBuild/interpreter/llvm/src/tools/cling/tools/plugins/clad/clad-prefix/src/clad-stamp/clad-gitinfo.txt"
"/Users/dinardo/root_v6.18.02/myBuild/interpreter/llvm/src/tools/cling/tools/plugins/clad/clad-prefix/src/clad-stamp/clad-gitclone-lastrun.txt"
WORKING_DIRECTORY "/Users/dinardo/root_v6.18.02/myBuild/interpreter/llvm/src/tools/cling/tools/plugins/clad/clad-prefix/src/clad"
RESULT_VARIABLE error_code
)
if(error_code)
message(FATAL_ERROR "Failed to copy script-last-run stamp file: '/Users/dinardo/root_v6.18.02/myBuild/interpreter/llvm/src/tools/cling/tools/plugins/clad/clad-prefix/src/clad-stamp/clad-gitclone-lastrun.txt'")
endif()
and
more /Users/dinardo/root_v6.18.02/myBuild/interpreter/llvm/src/tools/cling/tools/plugins/clad/clad-prefix/src/clad-stamp/clad-download-err.log
Cloning into 'clad'...
fatal: invalid reference: v0.5
CMake Error at /Users/dinardo/root_v6.18.02/myBuild/interpreter/llvm/src/tools/cling/tools/plugins/clad/clad-prefix/tmp/clad-gitclone.cmake:75 (message):
Failed to checkout tag: 'v0.5'
The /Users/dinardo/root_v6.18.02/myBuild/interpreter/llvm/src/tools/cling/tools/plugins/clad/clad-prefix/src/clad-stamp/clad-download-out.log
is empty.
Alright, so yes, to quickly unblock you, the problem should go away if you simply disable clad. For the actual resolution of the problem, @vvassilev is the authority
None of this seems problematic. Could you paste the content of /Users/dinardo/root_v6.18.02/myBuild/interpreter/llvm/src/tools/cling/tools/plugins/clad/clad-prefix/tmp/clad-gitclone.cmake
PS: Sorry you already did!
Is there some content in /Users/dinardo/root_v6.18.02/myBuild/interpreter/llvm/src/tools/cling/tools/plugins/clad/clad-prefix/src? Was the clone successful and then the checkout that failed?
Hi @vvassilev,
the directory has a content (non empty sub directories) , though I don’t know whether it’s because I run the command that @oshadura asked me to run that populated the directory.
Unfortunately I didn’t check the content before running the command.