Closed svaverbe closed 4 years ago
Did you find a solution to this issue yet? I am stuck at the same point.
User reports that this is not an ellc problem but an issue with f2py running in virtual environment.
"I just switched to the base environment where the problem with f2py does not happen. The problem is not related to the code, but the python wrapper. It seems there is a compiler like -shared which solves this problem in all conda environments."
Dear Divya, See the update to this issue. Regards, -Pierre
On Wed, 10 Jun 2020 at 20:48, Divya Gulrajani notifications@github.com wrote:
Did you find a solution to this issue yet? I am stuck at the same point.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/pmaxted/ellc/issues/5#issuecomment-642220634, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEUQLXV2LE4OLOSXGH4BRG3RV7PQVANCNFSM4MS3CSBQ .
Thank you so much for the update! Divya.
I have tried to install ellc in python anaconda, but the build fails with the following errors:
compiling Fortran 90 module sources creating build/temp.linux-x86_64-3.7/ellc Fortran f77 compiler: /home/siegfried/anaconda3/envs/CARMENES/bin/x86_64-conda_cos6-linux-gnu-gfortran -Wall -g -ffixed-form -fno-second-underscore -fopenmp -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -O3 -funroll-loops Fortran f90 compiler: /home/siegfried/anaconda3/envs/science/bin/x86_64-conda_cos6-linux-gnu-gfortran -Wall -g -fno-second-underscore -fopenmp -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -O3 -funroll-loops Fortran fix compiler: /home/siegfried/anaconda3/envs/science/bin/x86_64-conda_cos6-linux-gnu-gfortran -Wall -g -ffixed-form -fno-second-underscore -Wall -g -fno-second-underscore -fopenmp -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -O3 -funroll-loops creating build/temp.linux-x86_64-3.7/f_src compile options: '-Ibuild/src.linux-x86_64-3.7/build/src.linux-x86_64-3.7 -I/home/siegfried/anaconda3/envs/CARMENES/lib/python3.7/site-packages/numpy/core/include -I/home/siegfried/anaconda3/envs/CARMENES/include/python3.7m -c' extra options: '-Jbuild/temp.linux-x86_64-3.7/ellc -Ibuild/temp.linux-x86_64-3.7/ellc' x86_64-conda_cos6-linux-gnu-gfortran:f90: ./f_src/constants.f90 x86_64-conda_cos6-linux-gnu-gfortran:f90: ./f_src/utils.f90 ./f_src/utils.f90:1071:47:
double precision function unitfunc(u,v,npar,par,verbose) 1 Warning: Unused dummy argument 'par' at (1) [-Wunused-dummy-argument] ./f_src/utils.f90:1071:36:
double precision function unitfunc(u,v,npar,par,verbose) 1 Warning: Unused dummy argument 'u' at (1) [-Wunused-dummy-argument] ./f_src/utils.f90:1071:38:
double precision function unitfunc(u,v,npar,par,verbose) 1 Warning: Unused dummy argument 'v' at (1) [-Wunused-dummy-argument] ./f_src/utils.f90:1071:55:
double precision function unitfunc(u,v,npar,par,verbose) 1 Warning: Unused dummy argument 'verbose' at (1) [-Wunused-dummy-argument] x86_64-conda_cos6-linux-gnu-gfortran:f90: ./f_src/coords.f90 x86_64-conda_cos6-linux-gnu-gfortran:f90: ./f_src/gauss_legendre.f90 x86_64-conda_cos6-linux-gnu-gfortran:f90: ./f_src/solve_real_poly.f90 x86_64-conda_cos6-linux-gnu-gfortran:f90: ./f_src/ellipse.f90 x86_64-conda_cos6-linux-gnu-gfortran:f90: ./f_src/stellar.f90 ./f_src/stellar.f90:189:0:
Warning: 'd' may be used uninitialized in this function [-Wmaybe-uninitialized] ./f_src/stellar.f90:189:0: Warning: 'd' may be used uninitialized in this function [-Wmaybe-uninitialized] x86_64-conda_cos6-linux-gnu-gfortran:f90: ./f_src/spots.f90 x86_64-conda_cos6-linux-gnu-gfortran:f90: ./f_src/ellc.f90 ./f_src/ellc.f90:1815:0:
Warning: 'flux_3' may be used uninitialized in this function [-Wmaybe-uninitialized] ./f_src/ellc.f90:1558:0:
Warning: 'ii_2.dim[1].stride' may be used uninitialized in this function [-Wmaybe-uninitialized] ./f_src/ellc.f90:1558:0: Warning: 'ii_2.offset' may be used uninitialized in this function [-Wmaybe-uninitialized] ./f_src/ellc.f90:1371:0:
Warning: 'ii_1.dim[1].stride' may be used uninitialized in this function [-Wmaybe-uninitialized] ./f_src/ellc.f90:1371:0: Warning: 'ii_1.offset' may be used uninitialized in this function [-Wmaybe-uninitialized] ./f_src/ellc.f90:1559:0:
Warning: 'df_2.dim[1].stride' may be used uninitialized in this function [-Wmaybe-uninitialized] ./f_src/ellc.f90:1559:0: Warning: 'df_2.offset' may be used uninitialized in this function [-Wmaybe-uninitialized] ./f_src/ellc.f90:1372:0:
Warning: 'df_1.dim[1].stride' may be used uninitialized in this function [-Wmaybe-uninitialized] ./f_src/ellc.f90:1372:0: Warning: 'df_1.offset' may be used uninitialized in this function [-Wmaybe-uninitialized] compiling Fortran sources Fortran f77 compiler: /home/siegfried/anaconda3/envs/CARMENES/bin/x86_64-conda_cos6-linux-gnu-gfortran -Wall -g -ffixed-form -fno-second-underscore -fopenmp -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -O3 -funroll-loops Fortran f90 compiler: /home/siegfried/anaconda3/envs/science/bin/x86_64-conda_cos6-linux-gnu-gfortran -Wall -g -fno-second-underscore -fopenmp -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -O3 -funroll-loops Fortran fix compiler: /home/siegfried/anaconda3/envs/science/bin/x86_64-conda_cos6-linux-gnu-gfortran -Wall -g -ffixed-form -fno-second-underscore -Wall -g -fno-second-underscore -fopenmp -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -O3 -funroll-loops compile options: '-Ibuild/src.linux-x86_64-3.7/build/src.linux-x86_64-3.7 -I/home/siegfried/anaconda3/envs/CARMENES/lib/python3.7/site-packages/numpy/core/include -I/home/siegfried/anaconda3/envs/CARMENES/include/python3.7m -c' extra options: '-Jbuild/temp.linux-x86_64-3.7/ellc -Ibuild/temp.linux-x86_64-3.7/ellc' x86_64-conda_cos6-linux-gnu-gfortran:f90: build/src.linux-x86_64-3.7/ellc_f-f2pywrappers2.f90 /home/siegfried/anaconda3/envs/science/bin/x86_64-conda_cos6-linux-gnu-gfortran -Wall -g -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags -Wl,--gc-sections build/temp.linux-x86_64-3.7/build/src.linux-x86_64-3.7/ellc_fmodule.o build/temp.linux-x86_64-3.7/build/src.linux-x86_64-3.7/build/src.linux-x86_64-3.7/fortranobject.o build/temp.linux-x86_64-3.7/f_src/constants.o build/temp.linux-x86_64-3.7/f_src/utils.o build/temp.linux-x86_64-3.7/f_src/coords.o build/temp.linux-x86_64-3.7/f_src/gauss_legendre.o build/temp.linux-x86_64-3.7/f_src/solve_real_poly.o build/temp.linux-x86_64-3.7/f_src/ellipse.o build/temp.linux-x86_64-3.7/f_src/stellar.o build/temp.linux-x86_64-3.7/f_src/spots.o build/temp.linux-x86_64-3.7/f_src/ellc.o build/temp.linux-x86_64-3.7/build/src.linux-x86_64-3.7/ellc_f-f2pywrappers2.o -L/home/siegfried/anaconda3/envs/CARMENES/bin/../x86_64-conda_cos6-linux-gnu/sysroot/lib/../lib -L/home/siegfried/anaconda3/envs/CARMENES/bin/../x86_64-conda_cos6-linux-gnu/sysroot/lib/../lib -lgfortran -o build/lib.linux-x86_64-3.7/ellc/ellc_f.cpython-37m-x86_64-linux-gnu.so /home/siegfried/anaconda3/envs/science/bin/../lib/gcc/x86_64-conda_cos6-linux-gnu/7.3.0/../../../../x86_64-conda_cos6-linux-gnu/bin/ld: /home/siegfried/anaconda3/envs/science/bin/../x86_64-conda_cos6-linux-gnu/sysroot/usr/lib/../lib/Scrt1.o: in function
_start': /home/rdonnelly/mc/conda-bld/compilers_linux-64_1534865402226/work/.build/src/glibc-2.12.2/csu/../sysdeps/x86_64/elf/start.S:99: undefined reference to
main' collect2: error: ld returned 1 exit status error: Command "/home/siegfried/anaconda3/envs/science/bin/x86_64-conda_cos6-linux-gnu-gfortran -Wall -g -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags -Wl,--gc-sections build/temp.linux-x86_64-3.7/build/src.linux-x86_64-3.7/ellc_fmodule.o build/temp.linux-x86_64-3.7/build/src.linux-x86_64-3.7/build/src.linux-x86_64-3.7/fortranobject.o build/temp.linux-x86_64-3.7/f_src/constants.o build/temp.linux-x86_64-3.7/f_src/utils.o build/temp.linux-x86_64-3.7/f_src/coords.o build/temp.linux-x86_64-3.7/f_src/gauss_legendre.o build/temp.linux-x86_64-3.7/f_src/solve_real_poly.o build/temp.linux-x86_64-3.7/f_src/ellipse.o build/temp.linux-x86_64-3.7/f_src/stellar.o build/temp.linux-x86_64-3.7/f_src/spots.o build/temp.linux-x86_64-3.7/f_src/ellc.o build/temp.linux-x86_64-3.7/build/src.linux-x86_64-3.7/ellc_f-f2pywrappers2.o -L/home/siegfried/anaconda3/envs/CARMENES/bin/../x86_64-conda_cos6-linux-gnu/sysroot/lib/../lib -L/home/siegfried/anaconda3/envs/CARMENES/bin/../x86_64-conda_cos6-linux-gnu/sysroot/lib/../lib -lgfortran -o build/lib.linux-x86_64-3.7/ellc/ellc_f.cpython-37m-x86_64-linux-gnu.so" failed with exit status 1ERROR: Failed building wheel for ellc Running setup.py clean for ellc Failed to build ellc Installing collected packages: ellc Running setup.py install for ellc ... error ERROR: Command errored out with exit status 1: command: /home/siegfried/anaconda3/envs/CARMENES/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-_9uwjv6u/ellc/setup.py'"'"'; file='"'"'/tmp/pip-install-_9uwjv6u/ellc/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-3sldqaxj/install-record.txt --single-version-externally-managed --compile cwd: /tmp/pip-install-_9uwjv6u/ellc/ Complete output (162 lines): running install running build running config_cc unifing config_cc, config, build_clib, build_ext, build commands --compiler options running config_fc unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options running build_src build_src building extension "ellc.ellc_f" sources f2py options: [] adding 'build/src.linux-x86_64-3.7/build/src.linux-x86_64-3.7/fortranobject.c' to sources. adding 'build/src.linux-x86_64-3.7/build/src.linux-x86_64-3.7' to include_dirs. adding 'build/src.linux-x86_64-3.7/ellc_f-f2pywrappers2.f90' to sources. building data_files sources build_src: building npy-pkg config files running build_py creating build/lib.linux-x86_64-3.7 creating build/lib.linux-x86_64-3.7/ellc copying ./init.py -> build/lib.linux-x86_64-3.7/ellc copying ./fluxes.py -> build/lib.linux-x86_64-3.7/ellc copying ./lc.py -> build/lib.linux-x86_64-3.7/ellc copying ./ldy.py -> build/lib.linux-x86_64-3.7/ellc copying ./rv.py -> build/lib.linux-x86_64-3.7/ellc copying ./version.py -> build/lib.linux-x86_64-3.7/ellc running build_ext customize UnixCCompiler C compiler: /home/siegfried/anaconda3/envs/CARMENES/bin/x86_64-conda_cos6-linux-gnu-cc -DNDEBUG -fwrapv -O2 -Wall -Wstrict-prototypes -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -fPIC
ERROR: Command errored out with exit status 1: /home/siegfried/anaconda3/envs/CARMENES/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-_9uwjv6u/ellc/setup.py'"'"'; file='"'"'/tmp/pip-install-_9uwjv6u/ellc/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-3sldqaxj/install-record.txt --single-version-externally-managed --compile Check the logs for full command output. (CARMENES) siegfried@FD-Computers-PC:/mnt/d/WD/ellc-1.8.5/examples/KPD1946+4340$