# Patch Release 6.12/06 is out! With C++17 / GCC7.3!

**URL:** <https://root-forum.cern.ch/t/patch-release-6-12-06-is-out-with-c-17-gcc7-3/27873>\
**Category:** News\
**Created:** [February 9, 2018, 4:15pm UTC](https://root-forum.cern.ch/t/patch-release-6-12-06-is-out-with-c-17-gcc7-3/27873 "2018-02-09T16:15:39Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![Axel](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/axel/32/11084_2.png) [@Axel](https://root-forum.cern.ch/u/Axel)\
**Post date:** [February 9, 2018, 4:15pm UTC](https://root-forum.cern.ch/t/patch-release-6-12-06-is-out-with-c-17-gcc7-3/27873/1 "2018-02-09T16:15:40Z")

</div>

Hi,

We are happy to announce the ROOT patch release 6.12/06. It fixes a couple of crucial bugs; we recommend migrating to it!

Most notably and upon popular demand, it’s the first release to support **GCC 7.3 with C++17**.

You can download binaries and sources from [https://root.cern/content/release-61206](https://root.cern/content/release-61206) The page also links to updated release notes.

Thanks to everyone who fixed and reported bugs!

Cheers, Axel,  
for the ROOT Team.

---

<div class="post-metadata">

**Author:** ![eguiraud](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/eguiraud/32/32217_2.png) [@eguiraud](https://root-forum.cern.ch/u/eguiraud)\
**Post date:** [February 10, 2018, 8:27pm UTC](https://root-forum.cern.ch/t/patch-release-6-12-06-is-out-with-c-17-gcc7-3/27873/2 "2018-02-10T20:27:20Z")

</div>

Pinned globally on February 10, 2018, 8:27pm UTC



---

<div class="post-metadata">

**Author:** ![whit](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/whit/32/11128_2.png) [@whit](https://root-forum.cern.ch/u/whit)\
**Post date:** [February 14, 2018, 4:02am UTC](https://root-forum.cern.ch/t/patch-release-6-12-06-is-out-with-c-17-gcc7-3/27873/3 "2018-02-14T04:02:22Z")

</div>

FWIW I had to add `#include <algorithm>` to  
graf2d/gpad/v7/src/TPadUserAxis.cxx so that `std::max` wasn’t missing.

---

<div class="post-metadata">

**Author:** ![eguiraud](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/eguiraud/32/32217_2.png) [@eguiraud](https://root-forum.cern.ch/u/eguiraud)\
**Post date:** [February 14, 2018, 11:50am UTC](https://root-forum.cern.ch/t/patch-release-6-12-06-is-out-with-c-17-gcc7-3/27873/4 "2018-02-14T11:50:52Z")

</div>

Hi @whit,  
thanks a lot for your report.  
The issue was fixed in commit a3cb09cb59 but unfortunately it did not make it into the patch release.

Cheers,  
Enrico

---

<div class="post-metadata">

**Author:** ![Axel](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/axel/32/11084_2.png) [@Axel](https://root-forum.cern.ch/u/Axel)\
**Post date:** [February 15, 2018, 8:29am UTC](https://root-forum.cern.ch/t/patch-release-6-12-06-is-out-with-c-17-gcc7-3/27873/5 "2018-02-15T08:29:48Z")

</div>

Hi @whit and @eguiraud - that problem existed for a couple of hours in the _master_, not in v6-12-00-patches let alone in v6.12/06. So this report (indeed - thanks for reporting!) has nothing to do with this topic…

---

<div class="post-metadata">

**Author:** ![eguiraud](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/eguiraud/32/32217_2.png) [@eguiraud](https://root-forum.cern.ch/u/eguiraud)\
**Post date:** [February 15, 2018, 8:58am UTC](https://root-forum.cern.ch/t/patch-release-6-12-06-is-out-with-c-17-gcc7-3/27873/6 "2018-02-15T08:58:02Z")

</div>

Thanks Axel, I should have checked more carefully!

---

<div class="post-metadata">

**Author:** ![berserker](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/berserker/32/17693_2.png) [@berserker](https://root-forum.cern.ch/u/berserker)\
**Post date:** [February 22, 2018, 4:47pm UTC](https://root-forum.cern.ch/t/patch-release-6-12-06-is-out-with-c-17-gcc7-3/27873/7 "2018-02-22T16:47:30Z")

</div>

> [@Axel](#):
>
> it’s the first release to support GCC 7.3 with C++17.

But the binaries in the official distribution are still built with only `cxx11` support in Cling ☹

---

<div class="post-metadata">

**Author:** ![Axel](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/axel/32/11084_2.png) [@Axel](https://root-forum.cern.ch/u/Axel)\
**Post date:** [February 27, 2018, 8:55am UTC](https://root-forum.cern.ch/t/patch-release-6-12-06-is-out-with-c-17-gcc7-3/27873/8 "2018-02-27T08:55:56Z")

</div>

You mean the CC7 binaries? Yes - we really don’t want to see GCC4.8 do C++14 😉 But we could indeed bump the other compilers to C++14. So far we have not received a lot of requests for this.

---

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [February 27, 2018, 9:03am UTC](https://root-forum.cern.ch/t/patch-release-6-12-06-is-out-with-c-17-gcc7-3/27873/9 "2018-02-27T09:03:15Z")

</div>

New request here.  
Please make sure that any new ROOT binary releases for Ubuntu 18.04 LTS, using its default system provided gcc 7.3, support C++17 out of the box.

---

<div class="post-metadata">

**Author:** ![berserker](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/berserker/32/17693_2.png) [@berserker](https://root-forum.cern.ch/u/berserker)\
**Post date:** [February 27, 2018, 9:30am UTC](https://root-forum.cern.ch/t/patch-release-6-12-06-is-out-with-c-17-gcc7-3/27873/10 "2018-02-27T09:30:46Z")

</div>

> [@Axel](#):
>
> You mean the CC7 binaries?

No, I mean new Ubuntu 17.10 gcc 7.2 binaries.

---

<div class="post-metadata">

**Author:** ![Axel](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/axel/32/11084_2.png) [@Axel](https://root-forum.cern.ch/u/Axel)\
**Post date:** [February 27, 2018, 12:39pm UTC](https://root-forum.cern.ch/t/patch-release-6-12-06-is-out-with-c-17-gcc7-3/27873/11 "2018-02-27T12:39:17Z")

</div>

Just to let you know: enabling C++17 means ROOT is built with C++17 - and that means all other C++ software linked or loaded should also be built with C++17 (due to possible API incompatibilities between C++ “versions”). You still want C++17? 🙂

---

<div class="post-metadata">

**Author:** ![pcanal](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pcanal/32/12439_2.png) [@pcanal](https://root-forum.cern.ch/u/pcanal)\
**Post date:** [February 27, 2018, 1:02pm UTC](https://root-forum.cern.ch/t/patch-release-6-12-06-is-out-with-c-17-gcc7-3/27873/12 "2018-02-27T13:02:53Z")

</div>

Maybe we can offer both (or 3?) builds on “Ubuntu 17.10 gcc 7.2 binaries.”?

---

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [February 27, 2018, 1:50pm UTC](https://root-forum.cern.ch/t/patch-release-6-12-06-is-out-with-c-17-gcc7-3/27873/13 "2018-02-27T13:50:10Z")

</div>

I think Philippe’s proposal is very good (if there are really incompatibilities between libraries built with and without C++17).  
For sure we need a ROOT binary version which is fully compatible with any default system provided libraries (which means that, if C++ related libraries on Ubuntu 18.04 LTS by default use C++17 then also ROOT should use it by default).

---

<div class="post-metadata">

**Author:** ![berserker](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/berserker/32/17693_2.png) [@berserker](https://root-forum.cern.ch/u/berserker)\
**Post date:** [February 27, 2018, 3:30pm UTC](https://root-forum.cern.ch/t/patch-release-6-12-06-is-out-with-c-17-gcc7-3/27873/14 "2018-02-27T15:30:36Z")

</div>

> [@Axel](#):
>
> all other C++ software linked or loaded should also be built with C++17 (due to possible API incompatibilities between C++ “versions”).

Are there really ABI incompatibilities between C++11 and C++14/17? I’ve thought the last ABI break was a transition to C++11 (with non-refcounted strings etc.).

---

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [February 27, 2018, 3:50pm UTC](https://root-forum.cern.ch/t/patch-release-6-12-06-is-out-with-c-17-gcc7-3/27873/15 "2018-02-27T15:50:36Z")

</div>

The official [GCC 7 changes web page](https://gcc.gnu.org/gcc-7/changes.html) says nothing about any new ABI specific to C++17.  
Though they explicitly say “[experimental support for all of the current C++17 draft](https://gcc.gnu.org/projects/cxx-status.html)”.  
Maybe then one should rather stay with C++14 (“full support”)?

---

<div class="post-metadata">

**Author:** ![berserker](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/berserker/32/17693_2.png) [@berserker](https://root-forum.cern.ch/u/berserker)\
**Post date:** [March 5, 2018, 11:54pm UTC](https://root-forum.cern.ch/t/patch-release-6-12-06-is-out-with-c-17-gcc7-3/27873/16 "2018-03-05T23:54:30Z")

</div>

> [@berserker](#):
>
> Are there really ABI incompatibilities between C++11 and C++14/17?

And the answer is «yes». `noexcept` in C++17 is a part of a function type, so this will be reflected in name mangling.

---

<div class="post-metadata">

**Author:** ![Axel](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/axel/32/11084_2.png) [@Axel](https://root-forum.cern.ch/u/Axel)\
**Post date:** [March 19, 2018, 11:54pm UTC](https://root-forum.cern.ch/t/patch-release-6-12-06-is-out-with-c-17-gcc7-3/27873/17 "2018-03-19T23:54:41Z")

</div>

Closed on March 19, 2018, 11:54pm UTC

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