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

Christian Staudt christian.staudt at kit.edu
Mon Jan 4 19:40:48 CET 2016


The issue was that the upgrade messed up paths somewhere so that various library headers couldn’t be found. The compiler was found, so our error message is somewhat misleading. I suggest not having too many assumptions in the error message and not shielding the user too much from error output.

Reinstalling (not upgrading) GCC 4.9. (brew remove gcc49; brew install gcc49) solved it for me.



> On 04 Jan 2016, at 14:22, Henning Meyerhenke <henning.meyerhenke at kit.edu> wrote:
> 
> It works for me now after
> (i) upgrading GCC with homebrew
> (ii) changing the compiler name in build.conf to g++-5 (due to the upgrade) and deleting the flags afterwards.
> 
> Hope this helps,
> Henning
> 
> 
> Am 04.01.16 um 12:10 schrieb Maximilian Vogel:
>> 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
>> 
>> _______________________________________________
>> NetworKit mailing list
>> NetworKit at ira.uni-karlsruhe.de
>> https://lists.ira.uni-karlsruhe.de/mailman/listinfo/networkit
> 
> --
> 
> ==========================================================
> Karlsruhe Institute of Technology (KIT)
> Institute of Theoretical Informatics (ITI)
> 
> Prof. Dr. Henning Meyerhenke
> Theoret. Informatics / Parallel Computing
> 
> Phone: +49-721-608-41876
> Web: http://parco.iti.kit.edu/henningm/
> 
> KIT - The Research University in the Helmholtz Association
> ==========================================================
> 
> _______________________________________________
> NetworKit mailing list
> NetworKit at ira.uni-karlsruhe.de
> https://lists.ira.uni-karlsruhe.de/mailman/listinfo/networkit

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 495 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <https://lists.ira.uni-karlsruhe.de/mailman/private/networkit/attachments/20160104/bb106ef6/attachment.sig>


More information about the NetworKit mailing list