[Networkit] Compiler detection fails after upgrade to OS X El Capitan

Maximilian Vogel maximilian.vogel at student.kit.edu
Mon Jan 4 12:10:00 CET 2016


On 04.01.2016 11:08, Henning Meyerhenke wrote:
> Same problem here after the OS X upgrade. Below is the output after 
> applying Max's patch.
>
> Henning
>
>
> HMs-MacBook-Pro:NetworKit Henning$ CXX=g++-4.9 sudo pip3 install -e .
> Obtaining file:///Users/Henning/Documents/workspace/NetworKit
>   Running setup.py 
> (path:/Users/Henning/Documents/workspace/NetworKit/setup.py) egg_info 
> for package from file:///Users/Henning/Documents/workspace/NetworKit
>     sample.cpp:13:11: fatal error: 'omp.h' file not found
>             #include <omp.h>
>                      ^
>     1 error generated.
>     In file included from 
> /usr/local/Cellar/gcc/4.9.2_1/include/c++/4.9.2/bits/postypes.h:40:0,
>                      from 
> /usr/local/Cellar/gcc/4.9.2_1/include/c++/4.9.2/iosfwd:40,
>                      from 
> /usr/local/Cellar/gcc/4.9.2_1/include/c++/4.9.2/ios:38,
>                      from 
> /usr/local/Cellar/gcc/4.9.2_1/include/c++/4.9.2/ostream:38,
>                      from 
> /usr/local/Cellar/gcc/4.9.2_1/include/c++/4.9.2/iostream:39,
>                      from sample.cpp:14:
>     /usr/local/Cellar/gcc/4.9.2_1/include/c++/4.9.2/cwchar:44:19: 
> fatal error: wchar.h: No such file or directory
>      #include <wchar.h>
Well, "g++-4.9" is checked first and it is installed, but for some 
reason, several headers are missing. I assume that the upgrade somehow 
messed with the GCC installation, but I'm not familiar with OS X, so I 
can't help any further. To me it looks like setup.py works as it is 
supposed to.

Best
Max



More information about the NetworKit mailing list