After having a successful configuration
Code: Select all
> ./waf configure --lapack_mkl=/opt/intel/mkl --install_all_deps
Code: Select all
Checking for program 'gcc, cc' : /usr/bin/gcc
gcc not found(cause : Could not find g++, if renamed try eg: CXX=g++48 waf configure
(complete log in /Users/Jorge/Dropbox/Programacion/Cosmomc/plc-2.0/build/config.log))
Checking for program 'icc, ICL' : not found
icc not found (cause : Could not find the program ['icc', 'ICL']
(complete log in /Users/Jorge/Dropbox/Programacion/Cosmomc/plc-2.0/build/config.log))
Checking for program 'clang' : /usr/bin/clang
Code: Select all
> ./waf install
Code: Select all
clang: error: unsupported option '-fopenmp'
../src/clik_example_c.c:45:19: warning: implicit declaration of function 'read_double_vector' is invalid in C99 [-Wimplicit-function-declaration]
cl_and_pars = read_double_vector(argv[i],ndim,err);
^
../src/clik_example_c.c:45:17: warning: incompatible integer to pointer conversion assigning to 'double *' from 'int' [-Wint-conversion]
cl_and_pars = read_double_vector(argv[i],ndim,err);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/clik_example_c.c:135:17: warning: incompatible integer to pointer conversion assigning to 'double *' from 'int' [-Wint-conversion]
cl_and_pars = read_double_vector(argv[i],ndim,err);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3 warnings generated.
clang: warning: -Wl,-compatibility_version,1: 'linker' input unused [-Wunused-command-line-argument]
clang: warning: -Wl,-current_version,1: 'linker' input unused [-Wunused-command-line-argument]
clang: warning: argument unused during compilation: '-dynamiclib' [-Wunused-command-line-argument]
ifort: command line remark #10411: option '-openmp' is deprecated and will be removed in a future release. Please use the replacement option '-qopenmp'
Waf: Leaving directory `/Users/Jorge/Dropbox/Programacion/Cosmomc/plc-2.0/build'
Build failed
-> task in 'rel2015' failed (exit status 1):
{task 4522435472: c rel2015.pyx.c -> rel2015.pyx.c.4.o}
['/usr/bin/clang', '-fopenmp', '-fPIC', '-dynamiclib', '-Wl,-compatibility_version,1', '-Wl,-current_version,1', '-fPIC', '-fPIC', '-fPIC', '-fPIC', '-I/Users/Jorge/Dropbox/Programacion/Cosmomc/plc-2.0/build/src/python/clik', '-I/Users/Jorge/Dropbox/Programacion/Cosmomc/plc-2.0/src/python/clik', '-I/Users/Jorge/Dropbox/Programacion/Cosmomc/plc-2.0/build/src/python', '-I/Users/Jorge/Dropbox/Programacion/Cosmomc/plc-2.0/src/python', '-I/Users/Jorge/Dropbox/Programacion/Cosmomc/plc-2.0/build/src', '-I/Users/Jorge/Dropbox/Programacion/Cosmomc/plc-2.0/src', '-I/Users/Jorge/Dropbox/Programacion/Cosmomc/plc-2.0/build/src/plik', '-I/Users/Jorge/Dropbox/Programacion/Cosmomc/plc-2.0/src/plik', '-I/Users/Jorge/Dropbox/Programacion/Cosmomc/plc-2.0/build/src/minipmc', '-I/Users/Jorge/Dropbox/Programacion/Cosmomc/plc-2.0/src/minipmc', '-I/Users/Jorge/Dropbox/Programacion/Cosmomc/plc-2.0/include', '-I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7', '-I/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/core/include', '-DPYTHONDIR="/Library/Python/2.7/site-packages"', '-DPYTHONARCHDIR="/Library/Python/2.7/site-packages"', '-DHAVE_PYEMBED=1', '-DHAVE_PYTHON_H=1', '-DHAS_LAPACK', '-DLAPACK_CLIK', '-DHAS_RTLD_DEFAULT', 'src/plik/component_plugin/rel2015/rel2015.pyx.c', '-c', '-o', '/Users/Jorge/Dropbox/Programacion/Cosmomc/plc-2.0/build/src/plik/component_plugin/rel2015/rel2015.pyx.c.4.o']
Now, the problem I thing is that in the configuration waf doesn't recognize that I have install gcc, for instance:
Code: Select all
> gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 8.1.0 (clang-802.0.42)
Target: x86_64-apple-darwin16.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
> gcc-5
> g++
and with those I have openmp
Can anyone knows how to deal with this problem?
Thanks in advance!
Jorge[/url]
Code: Select all