You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been trying to install pycamb but it fails due to incompatibility of CAMB version with pycamb.
First I have built the latest version of camb from this website : http://camb.info/sources/downred/downld.php
and then I tried to install pycamb by making a directory named 'camb' in the source directory and copying all the file with suffix .f90 and .mod in this directory but I have got this following error message
x86_64-linux-gnu-gcc: build/src.linux-x86_64-2.7/src/_pycambmodule.c
In file included from /vol/anaconda/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1781:0,
from /vol/anaconda/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:18,
from /vol/anaconda/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,
from build/src.linux-x86_64-2.7/fortranobject.h:13,
from build/src.linux-x86_64-2.7/src/_pycambmodule.c:19:
/vol/anaconda/lib/python2.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
#warning "Using deprecated NumPy API, disable it by "
^
build/src.linux-x86_64-2.7/src/_pycambmodule.c: In function ‘f2py_setup_pycamb_mod’:
build/src.linux-x86_64-2.7/src/_pycambmodule.c:1428:38: warning: assignment from incompatible pointer type [enabled by default]
f2py_pycamb_mod_def[i_f2py++].func = matter_power_sigma8;
^
build/src.linux-x86_64-2.7/src/_pycambmodule.c:1429:38: warning: assignment from incompatible pointer type [enabled by default]
f2py_pycamb_mod_def[i_f2py++].func = transfers;
^
build/src.linux-x86_64-2.7/src/_pycambmodule.c:1430:38: warning: assignment from incompatible pointer type [enabled by default]
f2py_pycamb_mod_def[i_f2py++].func = transfers_sigma8;
^
build/src.linux-x86_64-2.7/src/_pycambmodule.c:1431:38: warning: assignment from incompatible pointer type [enabled by default]
f2py_pycamb_mod_def[i_f2py++].func = matter_power_kh;
^
build/src.linux-x86_64-2.7/src/_pycambmodule.c:1433:38: warning: assignment from incompatible pointer type [enabled by default]
f2py_pycamb_mod_def[i_f2py++].func = matter_power;
^
build/src.linux-x86_64-2.7/src/_pycambmodule.c:1434:38: warning: assignment from incompatible pointer type [enabled by default]
f2py_pycamb_mod_def[i_f2py++].func = transfers_k;
^
build/src.linux-x86_64-2.7/src/_pycambmodule.c: At top level:
build/src.linux-x86_64-2.7/src/_pycambmodule.c:145:12: warning: ‘f2py_size’ defined but not used [-Wunused-function]
static int f2py_size(PyArrayObject* var, ...)
^
compiling Fortran 90 module sources
creating build/temp.linux-x86_64-2.7/pycamb
Fortran f77 compiler: /usr/bin/gfortran -Wall -g -ffixed-form -fno-second-underscore -fPIC -O2 -march=x86-64 -DMS_WIN64 -mtune=generic -msse2
Fortran f90 compiler: /usr/bin/gfortran -Wall -g -fno-second-underscore -fPIC -O2 -march=x86-64 -DMS_WIN64 -mtune=generic -msse2
Fortran fix compiler: /usr/bin/gfortran -Wall -g -ffixed-form -fno-second-underscore -Wall -g -fno-second-underscore -fPIC -O2 -march=x86-64 -DMS_WIN64 -mtune=generic -msse2
creating build/temp.linux-x86_64-2.7/camb
creating build/temp.linux-x86_64-2.7/src
compile options: '-I/vol/anaconda/lib/python2.7/site-packages/numpy/core/include -Ibuild/src.linux-x86_64-2.7 -I/vol/anaconda/lib/python2.7/site-packages/numpy/core/include -I/usr/include/python2.7 -c'
extra options: '-Jbuild/temp.linux-x86_64-2.7/pycamb -Ibuild/temp.linux-x86_64-2.7/pycamb'
extra f90 options: '-ffree-line-length-none -O0 -g -Dintp=npy_intp -fopenmp'
gfortran:f90: camb/constants.f90
camb/constants.f90:12.11:
use precision
1
Fatal Error: File 'precision.mod' opened at (1) is not a GNU Fortran module file
camb/constants.f90:12.11:
use precision
1
Fatal Error: File 'precision.mod' opened at (1) is not a GNU Fortran module file
error: Command "/usr/bin/gfortran -Wall -g -fno-second-underscore -fPIC -O2 -march=x86-64 -DMS_WIN64 -mtune=generic -msse2 -I/vol/anaconda/lib/python2.7/site-packages/numpy/core/include -Ibuild/src.linux-x86_64-2.7 -I/vol/anaconda/lib/python2.7/site-packages/numpy/core/include -I/usr/include/python2.7 -c -c camb/constants.f90 -o build/temp.linux-x86_64-2.7/camb/constants.o -Jbuild/temp.linux-x86_64-2.7/pycamb -Ibuild/temp.linux-x86_64-2.7/pycamb -ffree-line-length-none -O0 -g -Dintp=npy_intp -fopenmp" failed with exit status 1
z
I don't know how I can make Fortran compiler compatible, any suggestion for installation would be appreciated
The text was updated successfully, but these errors were encountered:
Hi there,
I have been trying to install pycamb but it fails due to incompatibility of CAMB version with pycamb.
First I have built the latest version of camb from this website :
http://camb.info/sources/downred/downld.php
and then I tried to install pycamb by making a directory named 'camb' in the source directory and copying all the file with suffix .f90 and .mod in this directory but I have got this following error message
x86_64-linux-gnu-gcc: build/src.linux-x86_64-2.7/src/_pycambmodule.c
In file included from /vol/anaconda/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1781:0,
from /vol/anaconda/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:18,
from /vol/anaconda/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,
from build/src.linux-x86_64-2.7/fortranobject.h:13,
from build/src.linux-x86_64-2.7/src/_pycambmodule.c:19:
/vol/anaconda/lib/python2.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
#warning "Using deprecated NumPy API, disable it by "
^
build/src.linux-x86_64-2.7/src/_pycambmodule.c: In function ‘f2py_setup_pycamb_mod’:
build/src.linux-x86_64-2.7/src/_pycambmodule.c:1428:38: warning: assignment from incompatible pointer type [enabled by default]
f2py_pycamb_mod_def[i_f2py++].func = matter_power_sigma8;
^
build/src.linux-x86_64-2.7/src/_pycambmodule.c:1429:38: warning: assignment from incompatible pointer type [enabled by default]
f2py_pycamb_mod_def[i_f2py++].func = transfers;
^
build/src.linux-x86_64-2.7/src/_pycambmodule.c:1430:38: warning: assignment from incompatible pointer type [enabled by default]
f2py_pycamb_mod_def[i_f2py++].func = transfers_sigma8;
^
build/src.linux-x86_64-2.7/src/_pycambmodule.c:1431:38: warning: assignment from incompatible pointer type [enabled by default]
f2py_pycamb_mod_def[i_f2py++].func = matter_power_kh;
^
build/src.linux-x86_64-2.7/src/_pycambmodule.c:1433:38: warning: assignment from incompatible pointer type [enabled by default]
f2py_pycamb_mod_def[i_f2py++].func = matter_power;
^
build/src.linux-x86_64-2.7/src/_pycambmodule.c:1434:38: warning: assignment from incompatible pointer type [enabled by default]
f2py_pycamb_mod_def[i_f2py++].func = transfers_k;
^
build/src.linux-x86_64-2.7/src/_pycambmodule.c: At top level:
build/src.linux-x86_64-2.7/src/_pycambmodule.c:145:12: warning: ‘f2py_size’ defined but not used [-Wunused-function]
static int f2py_size(PyArrayObject* var, ...)
^
compiling Fortran 90 module sources
creating build/temp.linux-x86_64-2.7/pycamb
Fortran f77 compiler: /usr/bin/gfortran -Wall -g -ffixed-form -fno-second-underscore -fPIC -O2 -march=x86-64 -DMS_WIN64 -mtune=generic -msse2
Fortran f90 compiler: /usr/bin/gfortran -Wall -g -fno-second-underscore -fPIC -O2 -march=x86-64 -DMS_WIN64 -mtune=generic -msse2
Fortran fix compiler: /usr/bin/gfortran -Wall -g -ffixed-form -fno-second-underscore -Wall -g -fno-second-underscore -fPIC -O2 -march=x86-64 -DMS_WIN64 -mtune=generic -msse2
creating build/temp.linux-x86_64-2.7/camb
creating build/temp.linux-x86_64-2.7/src
compile options: '-I/vol/anaconda/lib/python2.7/site-packages/numpy/core/include -Ibuild/src.linux-x86_64-2.7 -I/vol/anaconda/lib/python2.7/site-packages/numpy/core/include -I/usr/include/python2.7 -c'
extra options: '-Jbuild/temp.linux-x86_64-2.7/pycamb -Ibuild/temp.linux-x86_64-2.7/pycamb'
extra f90 options: '-ffree-line-length-none -O0 -g -Dintp=npy_intp -fopenmp'
gfortran:f90: camb/constants.f90
camb/constants.f90:12.11:
Fatal Error: File 'precision.mod' opened at (1) is not a GNU Fortran module file
camb/constants.f90:12.11:
Fatal Error: File 'precision.mod' opened at (1) is not a GNU Fortran module file
error: Command "/usr/bin/gfortran -Wall -g -fno-second-underscore -fPIC -O2 -march=x86-64 -DMS_WIN64 -mtune=generic -msse2 -I/vol/anaconda/lib/python2.7/site-packages/numpy/core/include -Ibuild/src.linux-x86_64-2.7 -I/vol/anaconda/lib/python2.7/site-packages/numpy/core/include -I/usr/include/python2.7 -c -c camb/constants.f90 -o build/temp.linux-x86_64-2.7/camb/constants.o -Jbuild/temp.linux-x86_64-2.7/pycamb -Ibuild/temp.linux-x86_64-2.7/pycamb -ffree-line-length-none -O0 -g -Dintp=npy_intp -fopenmp" failed with exit status 1
z
I don't know how I can make Fortran compiler compatible, any suggestion for installation would be appreciated
The text was updated successfully, but these errors were encountered: