Compilation error in HFitImpl

ROOT Version: 6.32.08
Platform: Mac OS M1 Sequoia 15.3
Compiler: Apple clang version 16.0.0 (Xcode 15.2)


I get the following error when attempting to compile ROOT on my machine:

In file included from /Users/haleyreid/analysis/root-6.32.08/hist/hist/src/HFitImpl.cxx:15:
In file included from /Users/haleyreid/analysis/root-6.32.08/math/mathcore/inc/Fit/Fitter.h:30:
/Users/haleyreid/analysis/root-6.32.08/math/mathcore/inc/Math/IParamFunction.h:107:62: error: no template named 'IBaseFunctionMultiDimTempl'; did you mean 'IParametricFunctionMultiDimTempl'?
  107 |       class IParametricFunctionMultiDimTempl: virtual public IBaseFunctionMultiDimTempl<T>,
      |                                                              ^~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                              IParametricFunctionMultiDimTempl
/Users/haleyreid/analysis/root-6.32.08/math/mathcore/inc/Math/IParamFunction.h:107:13: note: 'IParametricFunctionMultiDimTempl' declared here
  107 |       class IParametricFunctionMultiDimTempl: virtual public IBaseFunctionMultiDimTempl<T>,
      |             ^
/Users/haleyreid/analysis/root-6.32.08/math/mathcore/inc/Math/IParamFunction.h:107:62: error: circular inheritance between 'IParametricFunctionMultiDimTempl<T>' and 'IParametricFunctionMultiDimTempl<T>'
  107 |       class IParametricFunctionMultiDimTempl: virtual public IBaseFunctionMultiDimTempl<T>,
      |                                                              ^
/Users/haleyreid/analysis/root-6.32.08/math/mathcore/inc/Math/IParamFunction.h:111:18: error: no template named 'IBaseFunctionMultiDimTempl'
  111 |          typedef IBaseFunctionMultiDimTempl<T>  BaseFunc;
      |                  ^
/Users/haleyreid/analysis/root-6.32.08/math/mathcore/inc/Math/IParamFunction.h:231:31: error: no template named 'IGradientFunctionMultiDimTempl'; did you mean 'IParametricFunctionMultiDimTempl'?
  231 |          using BaseGradFunc = IGradientFunctionMultiDimTempl<T>;
      |                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                               IParametricFunctionMultiDimTempl

I wasn’t able to find any similar errors, any help or suggestions would be appreciated!

Thanks,
Haley

Welcome to the ROOT forum

Which cmake options did you use ?

Thank you
For CMake options, I use the default options as shown in the screenshot below, and I turned off pyroot, xrootd, and builtin_xrootd


On 15.3 the command:

pkgutil --pkg-info=com.apple.pkg.CLTools_Executables

should give version: 16.2.0.0.1.1733547573

When it refuses to build I noticed the followwing should work:

# remove the current Command Line Tools
sudo rm -r /Library/Developer/CommandLineTools

# Reset xcode-select
xcode-select -r

# Then install. You will be asked to click a button 
xcode-select --install

# Go in the System Settings -> General -> Software Update 
# if there is a new version of the Command Line Tools, update it.

# Install ROOT
git clone https://github.com/root-project/root.git
mkdir root-build
cd root-build
cmake ../root
make -j8


Thank you for investigating. I tried the steps included in your reply, and when checking for a new version of the Command Line Tools, I was already up to date. I installed ROOT via git clone and received the same error at the same step in the build.

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