# ERROR in cling::CIFactory::createCI(): cannot extract standard library include paths!

**URL:** <https://root-forum.cern.ch/t/error-in-cling-cifactory-createci-cannot-extract-standard-library-include-paths/27808>\
**Category:** Cling\
**Created:** [February 4, 2018, 3:45pm UTC](https://root-forum.cern.ch/t/error-in-cling-cifactory-createci-cannot-extract-standard-library-include-paths/27808 "2018-02-04T15:45:46Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shreya\_Saha](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/shreya_saha/32/19798_2.png) [@Shreya\_Saha](https://root-forum.cern.ch/u/Shreya_Saha)\
**Post date:** [February 4, 2018, 3:45pm UTC](https://root-forum.cern.ch/t/error-in-cling-cifactory-createci-cannot-extract-standard-library-include-paths/27808/1 "2018-02-04T15:45:46Z")

</div>

Hello,  
I am trying to install ROOT v6.12.04on Mac OS Sierra 10.12.6 and it gives me the following error related to Cling. I have re accepted the XCode license as well, still gives the same error.

```auto
ERROR in cling::CIFactory::createCI(): cannot extract standard library include paths!
Invoking:
  LC_ALL=C /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -O2 -DNDEBUG -xc++ -E -v /dev/null 2>&1 >/dev/null | awk '/^#include </,/^End of search/{if (!/^#include </ && !/^End of search/){ print }}' | GREP_OPTIONS= grep -E "(c|g)\+\+"
Results was:
With exit code 256
input_line_1:1:10: fatal error: 'new' file not found
#include <new>
         ^ ~~~~
input_line_3:36:10: fatal error: 'string' file not found
#include <string>

```

Any help is appreciated !

---

<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 4, 2018, 5:06pm UTC](https://root-forum.cern.ch/t/error-in-cling-cifactory-createci-cannot-extract-standard-library-include-paths/27808/2 "2018-02-04T17:06:54Z")

</div>

What’s the output of

```auto
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -O2 -DNDEBUG -xc++ -E -v /dev/null

```

?

---

<div class="post-metadata">

**Author:** ![Shreya\_Saha](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/shreya_saha/32/19798_2.png) [@Shreya\_Saha](https://root-forum.cern.ch/u/Shreya_Saha)\
**Post date:** [February 5, 2018, 12:24am UTC](https://root-forum.cern.ch/t/error-in-cling-cifactory-createci-cannot-extract-standard-library-include-paths/27808/3 "2018-02-05T00:24:51Z")

</div>

Hi Axel,  
Extremely sorry for the late reply. .Following is the output -  
-bash:

```auto
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++: No such file or directory

```

Let me know if that helps to solve this error.  
Thank you  
Best,  
Shreya

---

<div class="post-metadata">

**Author:** ![Shreya\_Saha](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/shreya_saha/32/19798_2.png) [@Shreya\_Saha](https://root-forum.cern.ch/u/Shreya_Saha)\
**Post date:** [February 5, 2018, 1:05am UTC](https://root-forum.cern.ch/t/error-in-cling-cifactory-createci-cannot-extract-standard-library-include-paths/27808/4 "2018-02-05T01:05:34Z")

</div>

Hi Axel,  
So I moved my XCode.app to my Applications folder and ran the same command as before and following is the output -

```auto
Apple LLVM version 9.0.0 (clang-900.0.38)
Target: x86_64-apple-darwin16.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
 "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang" -cc1 -triple x86_64-apple-macosx10.12.0 -Wdeprecated-objc-isa-usage -Werror=deprecated-objc-isa-usage -E -disable-free -disable-llvm-verifier -discard-value-names -main-file-name null -mrelocation-model pic -pic-level 2 -mthread-model posix -mdisable-fp-elim -fno-strict-return -masm-verbose -munwind-tables -target-cpu penryn -target-linker-version 302.3.1 -v -dwarf-column-info -debugger-tuning=lldb -resource-dir /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.0.0 -D NDEBUG -stdlib=libc++ -O2 -fdeprecated-macro -fdebug-compilation-dir /Applications -ferror-limit 19 -fmessage-length 115 -stack-protector 1 -fblocks -fobjc-runtime=macosx-10.12.0 -fencode-extended-block-signature -fcxx-exceptions -fexceptions -fmax-type-align=16 -fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp -o - -x c++ /dev/null
clang -cc1 version 9.0.0 (clang-900.0.38) default target x86_64-apple-darwin16.7.0
ignoring nonexistent directory "/usr/include/c++/v1"
ignoring nonexistent directory "/usr/local/include"
#include "..." search starts here:
#include <...> search starts here:
 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1
 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.0.0/include
 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include
 /usr/include
 /System/Library/Frameworks (framework directory)
 /Library/Frameworks (framework directory)
End of search list.
# 1 "/dev/null"
# 1 "<built-in>" 1
# 1 "<built-in>" 3
# 342 "<built-in>" 3
# 1 "<command line>" 1
# 1 "<built-in>" 2
# 1 "/dev/null" 2

```

---

<div class="post-metadata">

**Author:** ![Shreya\_Saha](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/shreya_saha/32/19798_2.png) [@Shreya\_Saha](https://root-forum.cern.ch/u/Shreya_Saha)\
**Post date:** [February 5, 2018, 4:58pm UTC](https://root-forum.cern.ch/t/error-in-cling-cifactory-createci-cannot-extract-standard-library-include-paths/27808/5 "2018-02-05T16:58:47Z")

</div>

Hi Alex,  
I just moved the XCode.app to the same place where I have the Root folder, It works well now !  
Thank you.

Best,  
Shreya

---

<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 5, 2018, 5:01pm UTC](https://root-forum.cern.ch/t/error-in-cling-cifactory-createci-cannot-extract-standard-library-include-paths/27808/6 "2018-02-05T17:01:58Z")

</div>

Moving Xcode to the Applications folder should have done the trick.

---

<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:** [February 19, 2018, 5:02pm UTC](https://root-forum.cern.ch/t/error-in-cling-cifactory-createci-cannot-extract-standard-library-include-paths/27808/7 "2018-02-19T17:02:14Z")

</div>

Closed on February 19, 2018, 5:02pm UTC

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