Compilation fails under Catalina MAC OS X

When compiling ROOT I get the following errors

[100%] Building CXX object roofit/histfactory/CMakeFiles/hist2workspace.dir/src/hist2workspace.cxx.o
In file included from input_line_12:18:
In file included from ./etc/dictpch/allHeaders.h:631:
In file included from ./include/ROOT/RArrayView.hxx:33:
./include/ROOT/rhysd_array_view.hxx:150:8: error: redefinition of ‘check_bound_t’
struct check_bound_t {};
^
./include/ROOT/span.hxx:152:8: note: previous definition is here
struct check_bound_t {};
^
In file included from input_line_12:18:
In file included from ./etc/dictpch/allHeaders.h:631:
In file included from ./include/ROOT/RArrayView.hxx:33:
./include/ROOT/rhysd_array_view.hxx:151:32: error: redefinition of ‘check_bound’
static constexpr check_bound_t check_bound{};
^
./include/ROOT/span.hxx:153:32: note: previous definition is here
static constexpr check_bound_t check_bound{};
^
In file included from input_line_12:18:
In file included from ./etc/dictpch/allHeaders.h:631:
In file included from ./include/ROOT/RArrayView.hxx:33:
./include/ROOT/rhysd_array_view.hxx:555:8: error: redefinition of ‘make_view’
Result make_view(InputIterator begin, InputIterator end)
^
./include/ROOT/span.hxx:564:8: note: previous definition is here
Result make_view(InputIterator begin, InputIterator end)
^


Please read tips for efficient and successful posting and posting code

ROOT Version: v6-18-00-patche
Platform: Mac OS X Catalina 10.15.1 (19B88)
Compiler: Apple clang version 11.0.0 (clang-1100.0.33.12)


If that is not already the case, can you start from a fresh directory (this kind of error tend to happen when the build is re-used after changing the compiler or OS version or the C++ standard being used).

At the end it was probably my problem. After a clean start all works now. Best

Federico Carminati

Chief Innovation Officer

CERN openlab

1211 Geneva 23

Switzerland

Tel: +41 22 76 74959

Fax: +41 22 76 68505

Mobile: +41 75 411 4843

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.