Utopia compilation failing on macOS (with and without TBB)
After !98 (merged), any model compilation on macOS (Catalina) is failing.
Summary
Albeit the C++ standard specifying that the execution
header is always available, this seems not to be the case on macOS with a standard Utopia installation.
Steps to reproduce
On a macOS system (basic installation as described in README), pull the latest master, configure, and run make dummy
.
What is the current bug behaviour?
Building any model fails with missing execution
header.
[ 0%] Building CXX object src/utopia/models/dummy/CMakeFiles/dummy.dir/dummy.cc.o
In file included from /Users/yunus/Documents/Science/Coding/Utopia/utopia/src/utopia/models/dummy/dummy.cc:2:
In file included from /Users/yunus/Documents/Science/Coding/Utopia/utopia/src/utopia/models/dummy/dummy.hh:4:
In file included from /Users/yunus/Documents/Science/Coding/Utopia/utopia/include/utopia/core/model.hh:10:
/Users/yunus/Documents/Science/Coding/Utopia/utopia/include/utopia/core/parallel.hh:10:10: fatal error: 'execution' file not
found
#include <execution>
^~~~~~~~~~~
1 error generated.
make[3]: *** [src/utopia/models/dummy/CMakeFiles/dummy.dir/dummy.cc.o] Error 1
make[2]: *** [src/utopia/models/dummy/CMakeFiles/dummy.dir/all] Error 2
make[1]: *** [src/utopia/models/dummy/CMakeFiles/dummy.dir/rule] Error 2
make: *** [dummy] Error 2
Building does not work with TBB installed, either.
What is the expected correct behaviour?
Building succeeds.
Ideas how to fix this?
- Hotfix: do not include
<execution>
at all if on macOS... or even the wholeparallel.hh
header. - Adjust cmake configuration or installation instructions to include a potential fix
- I attempted this, but to no avail