I tried installing PyFerret using python3 setup.py install.
I am getting the following error. Someone may please help me out. Thank you.
compile options: '-Ipyfermod -Ifer/common -Ifmt/cmn -Ifer/ef_utility -Ifer/grdel -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-x86_64-3.10/numpy/distutils/include -I/usr/include/python3.10 -c'
extra options: '-msse -msse2 -msse3'
x86_64-linux-gnu-gcc: pyfermod/set_memory.c
x86_64-linux-gnu-gcc: pyfermod/libpyferret.c
pyfermod/libpyferret.c: In function ‘pyferretStart’:
pyfermod/libpyferret.c:388:26: warning: passing argument 1 of ‘initmemory’ from incompatible pointer type [-Wincompatible-pointer-types]
388
FORTRAN(init_memory)(&mwMemSize);
^~~~~~
double *
In file included from pyfermod/libpyferret.c:46:
fer/common/ferret.h:126:35: note: expected ‘float ’ but argument is of type ‘double ’
126
void FORTRAN(init_memory)(DFTYPE *vmem_size_arg);
^
pyfermod/libpyferret.c: At top level:
pyfermod/libpyferret.c:477:6: error: conflicting types for ‘reallo_ppl_memory’; have ‘void(int)’
477
void reallo_ppl_memory(int new_size)
^~~~~
In file included from pyfermod/libpyferret.c:51:
/home/fahim/Ferret/ppl/tmap_inc/pplmem.h:65:6: note: previous declaration of ‘reallo_ppl_memory’ with type ‘void(int *)’
65
void reallo_ppl_memory(int *this_size);
^~~~~
pyfermod/libpyferret.c: In function ‘pyferretPutData’:
pyfermod/libpyferret.c:1084:16: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
1084
strptr = PyUnicode_AsUTF8(seqitem);
^
pyfermod/libpyferret.c:1112:16: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
1112
strptr = PyUnicode_AsUTF8(seqitem);
^
pyfermod/libpyferret.c: In function ‘pyefcnGetAxisBoxSizes’:
pyfermod/libpyferret.c:1881:58: warning: passing argument 6 of ‘ef_get_boxsize’ from incompatible pointer type [-Wincompatible-pointer-types]
1881
In file included from pyfermod/libpyferret.c:48:
fer/common/EF_Util.h:161:93: note: expected ‘float ’ but argument is of type ‘double ’
161
extern void FORTRAN(ef_get_box_size)(int id, int arg, int axis, int lo, int *hi, DFTYPE sizes[]);
pyfermod/libpyferret.c: In function ‘pyefcnGetArgOneVal’:
pyfermod/libpyferret.c:2209:46: warning: passing argument 3 of ‘ef_get_oneval’ from incompatible pointer type [-Wincompatible-pointer-types]
2209
FORTRAN(ef_get_one_val)(&id, &k, &float_val);
^~~~~~
double *
In file included from pyfermod/libpyferret.c:46:
fer/common/ferret.h:38:16: note: expected ‘float ’ but argument is of type ‘double ’
38 | #define DFTYPE float
fer/common/EF_Util.h:218:51: note: in expansion of macro ‘DFTYPE’
218 | extern void FORTRAN(ef_get_one_val)(int , int , DFTYPE *);
| ^~
error: Command "x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -I/home/fahim/Ferret/ppl/tmap_inc/ -I/home/fahim/PyFerret-7.6.5/ppl/tmap_inc/ -I/home/fahim/PyFerret-7.6.5-beta/ppl/tmap_inc/ -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ipyfermod -Ifer/common -Ifmt/cmn -Ifer/ef_utility -Ifer/grdel -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-x86_64-3.10/numpy/distutils/include -I/usr/include/python3.10 -c pyfermod/libpyferret.c -o build/temp.linux-x86_64-3.10/pyfermod/libpyferret.o -MMD -MF build/temp.linux-x86_64-3.10/pyfermod/libpyferret.o.d -msse -msse2 -msse3" failed with exit status 1
I tried installing PyFerret using python3 setup.py install. I am getting the following error. Someone may please help me out. Thank you.
~~~~~~~~~ In file included from pyfermod/libpyferret.c:51: /home/fahim/Ferret/ppl/tmap_inc/pplmem.h:65:6: note: previous declaration of ‘reallo_ppl_memory’ with type ‘void(int *)’ 65~~~~ pyfermod/libpyferret.c: In function ‘pyferretPutData’: pyfermod/libpyferret.c:1084:16: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] 1084~~~~~~~~~~~~~In file included from pyfermod/libpyferret.c:46: fer/common/ferret.h:38:16: note: expected ‘float ’ but argument is of type ‘double ’ 38 | #define DFTYPE float fer/common/EF_Util.h:218:51: note: in expansion of macro ‘DFTYPE’ 218 | extern void FORTRAN(ef_get_one_val)(int , int , DFTYPE *); | ^
~error: Command "x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -I/home/fahim/Ferret/ppl/tmap_inc/ -I/home/fahim/PyFerret-7.6.5/ppl/tmap_inc/ -I/home/fahim/PyFerret-7.6.5-beta/ppl/tmap_inc/ -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ipyfermod -Ifer/common -Ifmt/cmn -Ifer/ef_utility -Ifer/grdel -I/usr/lib/python3/dist-packages/numpy/core/include -Ibuild/src.linux-x86_64-3.10/numpy/distutils/include -I/usr/include/python3.10 -c pyfermod/libpyferret.c -o build/temp.linux-x86_64-3.10/pyfermod/libpyferret.o -MMD -MF build/temp.linux-x86_64-3.10/pyfermod/libpyferret.o.d -msse -msse2 -msse3" failed with exit status 1########### EXT COMPILER OPTIMIZATION ########### Platform : Architecture: x64 Compiler : gcc
CPU baseline : Requested : 'min' Enabled : SSE SSE2 SSE3 Flags : -msse -msse2 -msse3 Extra checks: none
CPU dispatch : Requested : 'max -xop -fma4' Enabled : SSSE3 SSE41 POPCNT SSE42 AVX F16C FMA3 AVX2 AVX512F AVX512CD AVX512_KNL AVX512_KNM AVX512_SKX AVX512_CLX AVX512_CNL AVX512_ICL Generated : none CCompilerOpt.cache_flush[809] : write cache to path -> /home/fahim/PyFerret-7.6.5/build/temp.linux-x86_64-3.10/ccompiler_opt_cache_ext.py