# aliBuild O2Physics fails in ONNXRuntime

**URL:** <https://alice-talk.web.cern.ch/t/alibuild-o2physics-fails-in-onnxruntime/1578>\
**Category:** O²\
**Tags:** build\
**Created:** [June 4, 2024, 4:58am UTC](https://alice-talk.web.cern.ch/t/alibuild-o2physics-fails-in-onnxruntime/1578 "2024-06-04T04:58:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![coppedis](https://alice-talk.web.cern.ch/user_avatar/alice-talk.web.cern.ch/coppedis/32/97_2.png) [@coppedis](https://alice-talk.web.cern.ch/u/coppedis)\
**Post date:** [June 4, 2024, 4:58am UTC](https://alice-talk.web.cern.ch/t/alibuild-o2physics-fails-in-onnxruntime/1578/1 "2024-06-04T04:58:37Z")

</div>

Dear experts,  
I was happily using O2Physics till yesterday on my mac osx 14.5 with XCode 15.3, then I made a git pull and since then it is not compiling anymore. It fails in ONNXRuntime. From what I understand, the problem is related to XCode and the compiler since the errors are these:

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/include/c++/v1/\_\_format/formatter\_floating\_point.h:73:32: error: ‘to\_chars’ is unavailable: introduced in macOS 13.3  
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/include/c++/v1/\_\_format/formatter\_floating\_point.h:59:32: error: ‘to\_chars’ is unavailable: introduced in macOS 13.3  
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/include/c++/v1/\_\_format/formatter\_floating\_point.h:66:32: error: ‘to\_chars’ is unavailable: introduced in macOS 13.3  
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/include/c++/v1/\_\_format/formatter\_floating\_point.h:73:32: error: ‘to\_chars’ is unavailable: introduced in macOS 13.3  
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/include/c++/v1/\_\_format/formatter\_floating\_point.h:59:32: error: ‘to\_chars’ is unavailable: introduced in macOS 13.3  
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/include/c++/v1/\_\_format/formatter\_floating\_point.h:66:32: error: ‘to\_chars’ is unavailable: introduced in macOS 13.3  
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/include/c++/v1/\_\_format/formatter\_floating\_point.h:73:32: error: ‘to\_chars’ is unavailable: introduced in macOS 13.3  
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/include/c++/v1/\_\_format/formatter\_floating\_point.h:59:32: error: ‘to\_chars’ is unavailable: introduced in macOS 13.3  
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/include/c++/v1/\_\_format/formatter\_floating\_point.h:66:32: error: ‘to\_chars’ is unavailable: introduced in macOS 13.3

I am out of options to try, could anybody please help me with this issue?

Thanks a lot in advance for your help, kind regards,  
Chiara

---

<div class="post-metadata">

**Author:** ![bvonhall](https://alice-talk.web.cern.ch/user_avatar/alice-talk.web.cern.ch/bvonhall/32/8_2.png) [@bvonhall](https://alice-talk.web.cern.ch/u/bvonhall)\
**Post date:** [June 14, 2024, 7:47am UTC](https://alice-talk.web.cern.ch/t/alibuild-o2physics-fails-in-onnxruntime/1578/2 "2024-06-14T07:47:41Z")

</div>

Hi Chiara,  
Did you find a solution ? I am facing the same.  
@eulisse any idea ?  
Barth

---

<div class="post-metadata">

**Author:** ![bvonhall](https://alice-talk.web.cern.ch/user_avatar/alice-talk.web.cern.ch/bvonhall/32/8_2.png) [@bvonhall](https://alice-talk.web.cern.ch/u/bvonhall)\
**Post date:** [June 14, 2024, 1:27pm UTC](https://alice-talk.web.cern.ch/t/alibuild-o2physics-fails-in-onnxruntime/1578/3 "2024-06-14T13:27:37Z")

</div>

deleting `sw` fixed the issue.

---

<div class="post-metadata">

**Author:** ![eulisse](https://alice-talk.web.cern.ch/user_avatar/alice-talk.web.cern.ch/eulisse/32/19_2.png) [@eulisse](https://alice-talk.web.cern.ch/u/eulisse)\
**Post date:** [June 18, 2024, 9:14am UTC](https://alice-talk.web.cern.ch/t/alibuild-o2physics-fails-in-onnxruntime/1578/4 "2024-06-18T09:14:48Z")

</div>

What happens is that CMake stores the version specific path of the macOS SDK in its cache. I have not yet been able to find a way to avoid that.
