# Link problem with Xcode 8 under Mac OS

**URL:** <https://root-forum.cern.ch/t/link-problem-with-xcode-8-under-mac-os/21894>\
**Category:** ROOT\
**Created:** [September 19, 2016, 12:37pm UTC](https://root-forum.cern.ch/t/link-problem-with-xcode-8-under-mac-os/21894 "2016-09-19T12:37:40Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![luca.lista](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/l/6f9a4e/32.png) [@luca.lista](https://root-forum.cern.ch/u/luca.lista)\
**Post date:** [September 19, 2016, 12:37pm UTC](https://root-forum.cern.ch/t/link-problem-with-xcode-8-under-mac-os/21894/1 "2016-09-19T12:37:40Z")

</div>

Hi, after updating to Xcode 8 under Mac OS 10.11.6, I had problem compiling root 6.06.08:

> make  
> clang++ -dynamiclib -single\_module -Wl,-dead\_strip\_dylibs -install\_name /usr/local/root/lib/root/libXMLParser.so -O2 -DNDEBUG -m64 -mmacosx-version-min=10.11 -stdlib=libc++ -o lib/libXMLParser.so io/xmlparser/src/TDOMParser.o io/xmlparser/src/TSAXParser.o io/xmlparser/src/TXMLAttr.o io/xmlparser/src/TXMLDocument.o io/xmlparser/src/TXMLNode.o io/xmlparser/src/TXMLParser.o io/xmlparser/src/G\_\_XMLParser.o -ldl -Llib -lCore -L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/lib -lxml2 -lz -lpthread -licucore -lm  
> ld: file not found: /usr/lib/system/libsystem\_symptoms.dylib for architecture x86\_64  
> clang: error: linker command failed with exit code 1 (use -v to see invocation)  
> make: \*\*\* [lib/libXMLParser.so] Error 1

I found a similar problem in a forum:

[stackoverflow.com/questions/3953 … in-xcode-8](http://stackoverflow.com/questions/39536144/libsystem-symptoms-dylib-missing-in-xcode-8)

I don’t know if there are way to overcome this.

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:** [September 19, 2016, 1:07pm UTC](https://root-forum.cern.ch/t/link-problem-with-xcode-8-under-mac-os/21894/2 "2016-09-19T13:07:30Z")

</div>

Hi Luca. I have not upgraded Xcode myself, but you have a problem building with CMake?  
Pere

---

<div class="post-metadata">

**Author:** ![rdm](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/rdm/32/11082_2.png) [@rdm](https://root-forum.cern.ch/u/rdm)\
**Post date:** [September 20, 2016, 7:58am UTC](https://root-forum.cern.ch/t/link-problem-with-xcode-8-under-mac-os/21894/3 "2016-09-20T07:58:09Z")

</div>

Hi Luca,

this is a known problem, Apple did not ship yet the CL tools for 10.11 for Xcode 8, hence the problem. See also:

[forums.developer.apple.com/thread/63250](https://forums.developer.apple.com/thread/63250)

So stay away from Xcode 8 until the correct CL tools are released or upgrade to Sierra next week and install Xcode 8.

Cheers, Fons.

---

<div class="post-metadata">

**Author:** ![deil](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/deil/32/11212_2.png) [@deil](https://root-forum.cern.ch/u/deil)\
**Post date:** [September 25, 2016, 3:00pm UTC](https://root-forum.cern.ch/t/link-problem-with-xcode-8-under-mac-os/21894/4 "2016-09-25T15:00:44Z")

</div>

I’m on macOS Sierra and would like to use ROOT 5.  
(Our large internal legacy analysis package doesn’t support ROOT 6.)

If it helps, I usually try to build ROOT via Macports and here’s the issue in the Macports tracker  
[trac.macports.org/ticket/52361](https://trac.macports.org/ticket/52361)  
and full build log:  
[gist.github.com/cdeil/a94001c1b … 3accde17a5](https://gist.github.com/cdeil/a94001c1b21e6d95133d193accde17a5)

---

<div class="post-metadata">

**Author:** ![rdm](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/rdm/32/11082_2.png) [@rdm](https://root-forum.cern.ch/u/rdm)\
**Post date:** [September 26, 2016, 12:20am UTC](https://root-forum.cern.ch/t/link-problem-with-xcode-8-under-mac-os/21894/5 "2016-09-26T00:20:20Z")

</div>

Hi,

the head of the v5-34-00-patches is now supported on macOS 10.12 Sierra.

Cheers, Fons.

---

<div class="post-metadata">

**Author:** ![deil](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/deil/32/11212_2.png) [@deil](https://root-forum.cern.ch/u/deil)\
**Post date:** [September 26, 2016, 6:29am UTC](https://root-forum.cern.ch/t/link-problem-with-xcode-8-under-mac-os/21894/6 "2016-09-26T06:29:03Z")

</div>

Thank you for still patching ROOT 5 to work on macOS sierra!

If you have the time to make a patch release in the near future, that would be great.

---

<div class="post-metadata">

**Author:** ![luca.lista](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/l/6f9a4e/32.png) [@luca.lista](https://root-forum.cern.ch/u/luca.lista)\
**Post date:** [October 25, 2016, 12:03pm UTC](https://root-forum.cern.ch/t/link-problem-with-xcode-8-under-mac-os/21894/7 "2016-10-25T12:03:12Z")

</div>

Could you please let me know if there is a patch for root 6 on Sierra?  
I get the following error with 6-06-08:

ld: library not found for -lCore  
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Thanks,

```
Luca
```

---

<div class="post-metadata">

**Author:** ![hegner](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/h/a183cd/32.png) [@hegner](https://root-forum.cern.ch/u/hegner)\
**Post date:** [October 25, 2016, 12:31pm UTC](https://root-forum.cern.ch/t/link-problem-with-xcode-8-under-mac-os/21894/8 "2016-10-25T12:31:43Z")

</div>

Hi Luca,

you may have a look here: [Compilation problem with: OS Sierra, Xcode 8, ROOT 6.06.08](https://root-forum.cern.ch/t/compilation-problem-with-os-sierra-xcode-8-root-6-06-08/22102/1)

Benedikt

---

<div class="post-metadata">

**Author:** ![oxon](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/oxon/32/12641_2.png) [@oxon](https://root-forum.cern.ch/u/oxon)\
**Post date:** [April 21, 2017, 12:59pm UTC](https://root-forum.cern.ch/t/link-problem-with-xcode-8-under-mac-os/21894/9 "2017-04-21T12:59:59Z")

</div>

Hello Fons,

I have the same issue with ROOT 6.08.06 on 10.11.6 (El Capitan) only when `configure` and `make` are used. `CMake` works fine.

```auto
$ ./configure
$ make
(snip)
clang++ -dynamiclib -single_module -Wl,-dead_strip_dylibs -install_name @rpath/libXMLParser.so -O2 -DNDEBUG -m64 -mmacosx-version-min=10.11 -stdlib=libc++ -Wl,-rpath,@loader_path/../lib -o lib/libXMLParser.so io/xmlparser/src/TDOMParser.o io/xmlparser/src/TSAXParser.o io/xmlparser/src/TXMLAttr.o io/xmlparser/src/TXMLDocument.o io/xmlparser/src/TXMLNode.o io/xmlparser/src/TXMLParser.o io/xmlparser/src/G__XMLParser.o -ldl -Llib -lCore -L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/lib -lxml2 -lz -lpthread -licucore -lm
ld: file not found: /usr/lib/system/libsystem_symptoms.dylib for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [lib/libXMLParser.so] Error 1

```

I do not understand why the command line tools is the reason of this compile error. This is a linker problem, and this error does not appear when `CMake` is used.

I know that `configure` is deprecated now, but when I teach students how to start using ROOT, I often tell them two different ways: `configure` and `CMake` for an educational purpose.

Would you please tell me if 6.08.06 + configure is supported on 10.11.6? Do you know how to build it without the linker error above?
