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

Henning Meyerhenke henning.meyerhenke at kit.edu
Mon Jan 4 11:08:18 CET 2016


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>
                        ^
     compilation terminated.
     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>
                        ^
     compilation terminated.
     read compiler information from build.conf
     testing	g++-4.9 -Wfatal-errors -flat_namespace
     g++-4.9 -Wfatal-errors -flat_namespace is not installed
     testing	g++
     testing	g++-5.2
     g++-5.2 is not installed
     testing	g++-5.1
     g++-5.1 is not installed
     testing	g++-5
     g++-5 is not installed
     testing	g++-4.9
     testing	g++-4.8
     g++-4.8 is not installed
     testing	g++-4.9 -Wfatal-errors -flat_namespace
     g++-4.9 -Wfatal-errors -flat_namespace is not installed
     testing	g++
     testing	g++-5.2
     g++-5.2 is not installed
     testing	g++-5.1
     g++-5.1 is not installed
     testing	g++-5
     g++-5 is not installed
     testing	g++-4.9
     testing	g++-4.8
     g++-4.8 is not installed
     ERROR: Please install GCC/g++ 4.8 or later and rerun
     Complete output from command python setup.py egg_info:
     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>

                    ^

compilation terminated.

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>

                    ^

compilation terminated.

read compiler information from build.conf

testing	g++-4.9 -Wfatal-errors -flat_namespace

g++-4.9 -Wfatal-errors -flat_namespace is not installed

testing	g++

testing	g++-5.2

g++-5.2 is not installed

testing	g++-5.1

g++-5.1 is not installed

testing	g++-5

g++-5 is not installed

testing	g++-4.9

testing	g++-4.8

g++-4.8 is not installed

testing	g++-4.9 -Wfatal-errors -flat_namespace

g++-4.9 -Wfatal-errors -flat_namespace is not installed

testing	g++

testing	g++-5.2

g++-5.2 is not installed

testing	g++-5.1

g++-5.1 is not installed

testing	g++-5

g++-5 is not installed

testing	g++-4.9

testing	g++-4.8

g++-4.8 is not installed

ERROR: Please install GCC/g++ 4.8 or later and rerun

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in 
/Users/Henning/Documents/workspace/NetworKit
Storing debug log for failure in /Users/Henning/.pip/pip.log



Am 04.01.16 um 10:51 schrieb Maximilian Vogel:
> On 03.01.2016 12:45, Christian Staudt wrote:
>> I just upgraded to OS X El Capitan, and I assume that my system
>> configuration is basically preserved through the upgrade.
> Did you verify that? Is it possible to compile the Unittests with SCons?
> You didn't change anything else on your system besides the OS upgrade?
>
>> However, the NetworKit setup does not find my compiler “g++-4.9” anymore:
>>
>> cls at clsmba ~/w/NetworKit> pip3 install -e .
>> Obtaining
>> <file:///Users/cls/workspace/NetworKit>file:///Users/cls/workspace/NetworKit
>>     Complete output from command python setup.py egg_info:
>>     ERROR: Please install GCC/g++ 4.8 or later and rerun
>>
>>
>> ----------------------------------------
>> Command "python setup.py egg_info" failed with error code 1 in
>> /Users/cls/workspace/NetworKit
>>
>> Max explained how the setup tries to guess the compiler, but I’m still
>> surprised that “g++-4.9” isn’t found:
>>
>>> 1. Read build.conf. Can't be present in this case because it's an
>>> installation via pip.
>>> 2. Check the $CXX environment variable. If it is set and also an
>>> element of a predefined compiler list, move it to the front there.
>>> 3. Iterate through the list of compiler candidates and use the first
>>> one, that passes the test compilation successfully.
>>
>> I’m using the fish shell (but the same happens with bash). If setup
>> tries to read from the environment variable CXX, it seems to be empty
>> (but I think it was empty before).
> I'm under the impression, that $CXX is empty on many systems. You can try
> CXX=g++-4.9 pip3 install -e .
> although I doubt that'll do.
>
> I've attached a patch that prints more information about the compiler
> detection process. You can apply it with
> hg import compiler_detection_verbose.patch --no-commit
>
> 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
==========================================================

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5399 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://lists.ira.uni-karlsruhe.de/mailman/private/networkit/attachments/20160104/ef0be5d1/attachment-0001.p7s>


More information about the NetworKit mailing list