# Build problem on Catalina

**URL:** <https://root-forum.cern.ch/t/build-problem-on-catalina/38458>\
**Category:** ROOT\
**Created:** [March 18, 2020, 1:33pm UTC](https://root-forum.cern.ch/t/build-problem-on-catalina/38458 "2020-03-18T13:33:48Z")\
**Posts on this page:** 13\
**Page:** 1

<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:** [March 18, 2020, 1:33pm UTC](https://root-forum.cern.ch/t/build-problem-on-catalina/38458/1 "2020-03-18T13:33:48Z")

</div>

Hi,

I’m having build problems of version 6.20 on Catalina with the latest Xcode. I’m using:

cmake …/root-6.20.00/ -DCMAKE\_INSTALL\_PREFIX=/usr/local/root -Droofit=ON -Dtmva=ON -Dminuit2=ON -Dpython=ON

cmake --build . – -j4

but I have a problem with missing GL/glew.h

[61%] Building C object build/CMakeFiles/rmkdepend.dir/rmkdepend/include.c.o  
In file included from /Users/lista/Desktop/root-6.20.00/graf3d/ftgl/src/FTBitmapGlyph.cxx:3:  
In file included from /Users/lista/Desktop/root-6.20.00/graf3d/ftgl/inc/FTBitmapGlyph.h:9:  
In file included from /Users/lista/Desktop/root-6.20.00/graf3d/ftgl/inc/FTGL.h:21:  
/Users/lista/Desktop/root\_build/include/TGLIncludes.h:21:10: fatal error: ‘GL/glew.h’ file  
not found  
#include \<GL/glew.h\>  
^ ~~~~~~~~~~  
1 error generated.  
make[2]: \*\*\* [graf3d/ftgl/CMakeFiles/FTGL.dir/src/FTBitmapGlyph.cxx.o] Error 1  
make[1]: \*\*\* [graf3d/ftgl/CMakeFiles/FTGL.dir/all] Error 2  
make[1]: \*\*\* Waiting for unfinished jobs…

Do you have any suggestion?

Thanks,

```
Luca
```

---

<div class="post-metadata">

**Author:** ![etejedor](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/e/e79b87/32.png) [@etejedor](https://root-forum.cern.ch/u/etejedor)\
**Post date:** [March 18, 2020, 3:38pm UTC](https://root-forum.cern.ch/t/build-problem-on-catalina/38458/2 "2020-03-18T15:38:49Z")

</div>

Looks like it is not finding glew, can you try to build with `-Dbuiltin_glew=ON` ?

@oshadura

---

<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:** [March 18, 2020, 3:51pm UTC](https://root-forum.cern.ch/t/build-problem-on-catalina/38458/3 "2020-03-18T15:51:06Z")

</div>

Lorenzo privately suggested to try with -Dgl=OFF. I’m rebuilding right now, will let you know how it goes (it’s taking 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:** [March 18, 2020, 4:05pm UTC](https://root-forum.cern.ch/t/build-problem-on-catalina/38458/4 "2020-03-18T16:05:55Z")

</div>

-Dgl=OFF doesn’t help, I’ll try with -Dbuiltin\_glew=ON. But will take time with trial and error. Is there any tested recipe for Mac OS Catalina?

---

<div class="post-metadata">

**Author:** ![oshadura](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/oshadura/32/14460_2.png) [@oshadura](https://root-forum.cern.ch/u/oshadura)\
**Post date:** [March 18, 2020, 4:15pm UTC](https://root-forum.cern.ch/t/build-problem-on-catalina/38458/5 "2020-03-18T16:15:15Z")

</div>

@llista yes we build with Catalina and with the latest Xcode. `-Dbuiltin_glew=ON` should help you, but it is very strange that it was not enabled automatically. Do you have `opengl=ON`?

Can you send me please output of your configuration step (when do you run cmake)

---

<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:** [March 18, 2020, 4:19pm UTC](https://root-forum.cern.ch/t/build-problem-on-catalina/38458/6 "2020-03-18T16:19:55Z")

</div>

Got worse now:

In file included from /Users/lista/Desktop/root\_build/include/TMathBase.h:32:  
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cmath:318:9: error: no member named ‘signbit’ in the global namespace  
using ::signbit;  
~~^  
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cmath:319:9: error: no member named ‘fpclassify’ in the global namespace  
using ::fpclassify;  
~~^  
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cmath:320:9: error: no member named ‘isfinite’ in the global namespace  
using ::isfinite;  
~~^  
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/cmath:321:9: error: no member named ‘isinf’ in the global namespace  
using ::isinf;  
~~^

---

<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:** [March 18, 2020, 4:22pm UTC](https://root-forum.cern.ch/t/build-problem-on-catalina/38458/7 "2020-03-18T16:22:52Z")

</div>

> [@oshadura](#):
>
> Can you send me please output of your configuration step (when do you run cmake)

[log.txt](https://root-forum.cern.ch/uploads/short-url/bIYcQe4F0OjHFbdylIaJn5IYLTZ.txt) (4.0 KB)

---

<div class="post-metadata">

**Author:** ![oshadura](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/oshadura/32/14460_2.png) [@oshadura](https://root-forum.cern.ch/u/oshadura)\
**Post date:** [March 18, 2020, 4:30pm UTC](https://root-forum.cern.ch/t/build-problem-on-catalina/38458/8 "2020-03-18T16:30:01Z")

</div>

@Axel can you help us please to understand what is happening on Catalina with latest XCode?

---

<div class="post-metadata">

**Author:** ![oshadura](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/oshadura/32/14460_2.png) [@oshadura](https://root-forum.cern.ch/u/oshadura)\
**Post date:** [March 18, 2020, 4:41pm UTC](https://root-forum.cern.ch/t/build-problem-on-catalina/38458/9 "2020-03-18T16:41:51Z")

</div>

check here: [Root catalina bug report](https://root-forum.cern.ch/t/root-catalina-bug-report/36693/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:** [March 18, 2020, 5:10pm UTC](https://root-forum.cern.ch/t/build-problem-on-catalina/38458/10 "2020-03-18T17:10:18Z")

</div>

Well, the bug report says:

These issues are fixed in the HEAD of the 6.18 branch and the master. Alternatively just download [https://root.cern/download/nightly/root\_v6.18.99.macosx64-10.15-clang110.pkg](https://root.cern/download/nightly/root_v6.18.99.macosx64-10.15-clang110.pkg) or the upcoming v6.20/00 or v6.18/06.

I’m actually using ROOT 6.20.00. What should I do?

---

<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:** [March 19, 2020, 7:52am UTC](https://root-forum.cern.ch/t/build-problem-on-catalina/38458/11 "2020-03-19T07:52:38Z")

</div>

Hi Luca,

- Could you share your `CMakeCache.txt`?
- Did you upgrade and then continue with the same build?
- What’s the output of compiling

```auto
// test.cxx:
auto b = isfinite(0.2);
return 0;

```

`$ clang++ -c test.cxx`

Axel.

---

<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:** [March 19, 2020, 8:04am UTC](https://root-forum.cern.ch/t/build-problem-on-catalina/38458/12 "2020-03-19T08:04:15Z")

</div>

clang++ -c test.cxx  
test.cxx:1:1: warning: ‘auto’ type specifier is a C++11 extension [-Wc++11-extensions]  
auto b = isfinite(0.2);  
^  
test.cxx:1:10: error: use of undeclared identifier ‘isfinite’  
auto b = isfinite(0.2);  
^  
test.cxx:2:1: error: expected unqualified-id  
return 0;  
^  
1 warning and 2 errors generated.

---

<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:** [April 2, 2020, 8:05am UTC](https://root-forum.cern.ch/t/build-problem-on-catalina/38458/13 "2020-04-02T08:05:39Z")

</div>

Closed on April 2, 2020, 8:05am UTC

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