# Option 'minuit2' is no longer supported in ROOT 6.32.06 but still present in build instructions

**URL:** <https://root-forum.cern.ch/t/option-minuit2-is-no-longer-supported-in-root-6-32-06-but-still-present-in-build-instructions/62059>\
**Category:** ROOT\
**Tags:** build\
**Created:** [October 31, 2024, 10:19am UTC](https://root-forum.cern.ch/t/option-minuit2-is-no-longer-supported-in-root-6-32-06-but-still-present-in-build-instructions/62059 "2024-10-31T10:19:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ako\_b](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/a/9f8e36/32.png) [@Ako\_b](https://root-forum.cern.ch/u/Ako_b)\
**Post date:** [October 31, 2024, 10:19am UTC](https://root-forum.cern.ch/t/option-minuit2-is-no-longer-supported-in-root-6-32-06-but-still-present-in-build-instructions/62059/1 "2024-10-31T10:19:15Z")

</div>

### Issue

According to [Building ROOT from source](https://root.cern/install/build_from_source/#all-build-options), option `minuit2` is a valid build option. However, during actual build with option `-Dminuit2=ON` CMake yields following error:  
`Option 'minuit2' is no longer supported in ROOT 6.32.06`

I’ve found [this thread](https://root-forum.cern.ch/t/will-minuit2-be-removed-from-root/58078/2):

> I suspect it means that you will no longer be able to ‘disable’ minuit2. It will be always turned ON. See [ROOT Version 6.30 Release Notes](https://root.cern/doc/v630/release-notes.html#minuit2-is-now-the-default-minimizer)

— ferhue

So, I am confused, does ROOT built with `-Dminimal=on` contain minuit2 by default?  
Also, I kindly ask to update the build instructions.

### To Reproduce

```bash
git clone --branch v6-32-06 --depth=1 \
    https://github.com/root-project/root.git \
    /opt/root-minimal-v6.32.06-source
cmake -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=/opt/root-minimal-v6.32.06 \
    -Dminimal=ON -Dminuit2=ON \
    -B /opt/root-minimal-v6.32.06-build
    -S /opt/root-minimal-v6.32.06-source

```

Error in output:

```auto
CMake Error at cmake/modules/RootBuildOptions.cmake:402 (message):
  >>> Option 'minuit2' is no longer supported in ROOT 6.32.06.
Call Stack (most recent call first):
  CMakeLists.txt:107 (include)

```

### Setup

_ROOT Version:_ 6.32.06  
_Platform:_ AlmaLinux 9.4 (Seafoam Ocelot) x86-64  
_Compiler:_ g++ (GCC) 11.4.1 20231218 (Red Hat 11.4.1-3)

* * *

---

<div class="post-metadata">

**Author:** ![jonas](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/jonas/32/24756_2.png) [@jonas](https://root-forum.cern.ch/u/jonas)\
**Post date:** [October 31, 2024, 10:46am UTC](https://root-forum.cern.ch/t/option-minuit2-is-no-longer-supported-in-root-6-32-06-but-still-present-in-build-instructions/62059/2 "2024-10-31T10:46:03Z")

</div>

Thanks a lot! I’m [fixing this](https://github.com/root-project/web/pull/1028).

Yes, ROOT builds always with Minuit2, because it’s now the default minimizer in all of ROOT. Therefore, it can’t be disabled anymore, even when building a minimal ROOT. The minimal ROOT includes fitting TH histograms, which now uses Minuit 2.

I hope that’s ok for you!

Cheers,  
Jonas

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [November 14, 2024, 10:46am UTC](https://root-forum.cern.ch/t/option-minuit2-is-no-longer-supported-in-root-6-32-06-but-still-present-in-build-instructions/62059/3 "2024-11-14T10:46:09Z")

</div>

Closed on November 14, 2024, 10:46am UTC

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