# ROOT 6 and Fedora 24 / GCC 6

**URL:** <https://root-forum.cern.ch/t/root-6-and-fedora-24-gcc-6/22198>\
**Category:** ROOT\
**Created:** [November 12, 2016, 5:04pm UTC](https://root-forum.cern.ch/t/root-6-and-fedora-24-gcc-6/22198 "2016-11-12T17:04:36Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![marki](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/marki/32/12644_2.png) [@marki](https://root-forum.cern.ch/u/marki)\
**Post date:** [November 12, 2016, 5:30pm UTC](https://root-forum.cern.ch/t/root-6-and-fedora-24-gcc-6/22198/2 "2016-11-12T17:30:13Z")

</div>

OK. So I dropped back to 5.34.36 to avoid Cling. Here I get:

```auto
g++ -O2 -pipe -m64 -Wall -W -Woverloaded-virtual -fPIC -Iinclude -DG __REGEXP -DG__ UNIX -DG __SHAREDLIB -DG__ OSFDLL -DG __ROOT -DG__ REDIRECTIO -DG __STD_EXCEPTION -DG__ 64BIT -DG __HAVE_CONFIG -DG__ NOMAKEINFO -DG__CINTBODY -I/home/gluex/gluex_top/root/root_5.34.36/cint/cint/inc -I/home/gluex/gluex_top/root/root_5.34.36/cint/cint/src -I/home/gluex/gluex_top/root/root_5.34.36/cint/cint/src/dict -pthread -Icint/cint/lib/libstrm -Icint/cint/lib/stream -I. -o cint/cint/src/dict/libstrm.o -c cint/cint/src/dict/libstrm.cxx
In file included from cint/cint/src/dict/libstrm.h:37:0,
                 from cint/cint/src/dict/libstrm.cxx:14:
cint/cint/lib/stream/iostrm.h:24:22: fatal error: iostream.h: No such file or directory
 #include <iostream.h>
                      ^
compilation terminated.
Makefile:631: recipe for target 'cint/cint/src/dict/libstrm.o' failed
make[2]: *** [cint/cint/src/dict/libstrm.o] Error 1
make[2]: Leaving directory '/home/gluex/gluex_top/root/root_5.34.36'
```

I found the following post:

[url][Build failure with gcc 5.1.0: trying to include iostream.h](https://root-forum.cern.ch/t/build-failure-with-gcc-5-1-0-trying-to-include-iostream-h/19363/1)

One piece of advice given there is that ROOT 5 will not ever support GCC 5 and so one should move to ROOT 6.

There is also a patch at the end which I will try next, though it only claims to work for 5.34.00 \<= Root \< 5.34.30 and is untested.

---

_[View the full topic](https://root-forum.cern.ch/t/root-6-and-fedora-24-gcc-6/22198)._
