# Compilation problem with: OS Sierra, Xcode 8, ROOT 6.06.08

**URL:** <https://root-forum.cern.ch/t/compilation-problem-with-os-sierra-xcode-8-root-6-06-08/22102>\
**Category:** ROOT\
**Created:** [October 25, 2016, 10:50am UTC](https://root-forum.cern.ch/t/compilation-problem-with-os-sierra-xcode-8-root-6-06-08/22102 "2016-10-25T10:50:43Z")\
**Posts on this page:** 7\
**Page:** 2

<div class="post-metadata">

**Author:** ![llista](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/l/2acd7d/32.png) [@llista](https://root-forum.cern.ch/u/llista)\
**Post date:** [November 4, 2016, 1:57pm UTC](https://root-forum.cern.ch/t/compilation-problem-with-os-sierra-xcode-8-root-6-06-08/22102/21 "2016-11-04T13:57:46Z")

</div>

[quote=“mato”]Hi Luca,  
I have upgraded by mac to Sierra to try to see if I have a similar problem, which is not the case. ‘cocoa’ is default for Mac, so you do not need to set it. I understand that you cleared the complete area of /opt/local. It must me a difference between your system and mine. So, lets debug it.  
[/quote]  
Thanks! By the way, I just tried to recompile usin X11 instead of Cocoa. The splash screen now triggers XQartz, but still no TCanvas and no TBrowser are displayed.

That’s what I did in my last attempt:

> rm -rf \*  
> cmake …/root-6.06.08 -DCMAKE\_INSTALL\_PREFIX=/usr/local/root -Droofit=ON -Dtmva=ON -Dcocoa=OFF -Dmacos\_native=ON -Dminuit2=ON -Dbuiltin\_zlib=ON -Dbuiltin\_lzma=ON -Dx11=ON  
> cmake --build . – -j4  
> sudo cmake --build . --target install

> [@mato](#):
>
> - Send me the file CMakeCache.txt after a configuration with cmake in a clean area.

It’s in attachment.

[quote=“mato”]

- Do you have a .rootrc in $HOME or in the CWD?[/quote]  
No

[quote=“mato”]

- Have to changed anything in SIP (System Integrity Protection)?[/quote]  
…hmm… If I remember correctly, I disable some protection in order to allow one application to run on my Mac long ago, but I don’t remember what I did at that time.

---

<div class="post-metadata">

**Author:** ![llista](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/l/2acd7d/32.png) [@llista](https://root-forum.cern.ch/u/llista)\
**Post date:** [November 4, 2016, 2:08pm UTC](https://root-forum.cern.ch/t/compilation-problem-with-os-sierra-xcode-8-root-6-06-08/22102/22 "2016-11-04T14:08:36Z")

</div>

[quote=“llista”]

[quote=“mato”]

- Have to changed anything in SIP (System Integrity Protection)?[/quote]  
…hmm… If I remember correctly, I disable some protection in order to allow one application to run on my Mac long ago, but I don’t remember what I did at that time.[/quote]

If I remember correctly I disable temporarily SIP using “csrutil disable” in recovery mode, then I enabled it again with “csrutil enable”. I get now:

> csrutil status  
> System Integrity Protection status: enabled.

Cheers,

```
 Luca

```

---

<div class="post-metadata">

**Author:** ![mato](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/mato/32/12317_2.png) [@mato](https://root-forum.cern.ch/u/mato)\
**Post date:** [November 8, 2016, 10:15am UTC](https://root-forum.cern.ch/t/compilation-problem-with-os-sierra-xcode-8-root-6-06-08/22102/23 "2016-11-08T10:15:54Z")

</div>

Hi Luca, What I see as different between ours systems is that I have SIP disabled and and I do not have the /usr/X11R6 (from where you get some of the packages) although I have installed XQuartz version 2.7.10\_beta2. Mine /usr/X11 points to /opt/X11. I your /usr/X11R6 points to /opt/X11? If not, can you remove/move it and try again? From my side I will enable SIP and see if there is a difference.  
Pere

---

<div class="post-metadata">

**Author:** ![llista](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/l/2acd7d/32.png) [@llista](https://root-forum.cern.ch/u/llista)\
**Post date:** [November 9, 2016, 9:43am UTC](https://root-forum.cern.ch/t/compilation-problem-with-os-sierra-xcode-8-root-6-06-08/22102/24 "2016-11-09T09:43:29Z")

</div>

Hi Pere,

[quote=“mato”]Hi Luca, What I see as different between ours systems is that I have SIP disabled and and I do not have the /usr/X11R6 (from where you get some of the packages) although I have installed XQuartz version 2.7.10\_beta2. Mine /usr/X11 points to /opt/X11. I your /usr/X11R6 points to /opt/X11? If not, can you remove/move it and try again? From my side I will enable SIP and see if there is a difference.  
Pere[/quote]

Yes, my /usr/X11R6 to /opt/X11:

ls -la /usr/X11R6  
lrwxr-xr-x 1 root wheel 8 4 Nov 14:11 /usr/X11R6 -\> /opt/X11

I can try what happens by disabling SIP.

Cheers,  
Luca

---

<div class="post-metadata">

**Author:** ![llista](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/l/2acd7d/32.png) [@llista](https://root-forum.cern.ch/u/llista)\
**Post date:** [November 9, 2016, 10:18am UTC](https://root-forum.cern.ch/t/compilation-problem-with-os-sierra-xcode-8-root-6-06-08/22102/25 "2016-11-09T10:18:35Z")

</div>

> [@llista](#):
>
> I can try what happens by disabling SIP.

Same problem by disabling SIP, unfortunately ☹

Luca

---

<div class="post-metadata">

**Author:** ![llista](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/l/2acd7d/32.png) [@llista](https://root-forum.cern.ch/u/llista)\
**Post date:** [November 9, 2016, 1:44pm UTC](https://root-forum.cern.ch/t/compilation-problem-with-os-sierra-xcode-8-root-6-06-08/22102/26 "2016-11-09T13:44:55Z")

</div>

Hi,

I just scratched the X11 installation (I disabled SIP first), then reinstalled XQartz from scratch, and root seems to work. I really don’t know what went wrong (I already updated XQartz before), but now everything seems to work.

Thanks for your help!

Luca

---

<div class="post-metadata">

**Author:** ![llista](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/l/2acd7d/32.png) [@llista](https://root-forum.cern.ch/u/llista)\
**Post date:** [November 9, 2016, 2:34pm UTC](https://root-forum.cern.ch/t/compilation-problem-with-os-sierra-xcode-8-root-6-06-08/22102/27 "2016-11-09T14:34:28Z")

</div>

I just discovered another problem:

If I try to draw a TLegend object, I get the following error:

Error in TClass::LoadClassInfo: no interpreter information for class TGX11 is available even though it has a TClass initialization routine.

If I generate a pdf picture (canvas.SaveAs(“pict.pdf”)) the legend displays fine.

Cheers,

```
 Luca
```

[Previous page](https://root-forum.cern.ch/t/compilation-problem-with-os-sierra-xcode-8-root-6-06-08/22102.md?page=1)
