ellc icon indicating copy to clipboard operation
ellc copied to clipboard

Errors when installing in M1 with python 3.11

Open jlillo opened this issue 2 years ago • 1 comments

Hello. I am trying to install ellc in my mac M1 with the upgraded python version of 3.11 and the installation through pip fails with a long list of errors ending in the text below. It looks like a problem with libraries but I had ellc running without problems in my python 3.7 in the same mac and macOC version. Any ideas? Thanks a lot.

  ./f_src/ellc.f90:1374:0: Warning: puede ser que se utilice ‘df_1.offset’ sin inicializar en esta función [-Wmaybe-uninitialized]
  INFO: compiling Fortran sources
  INFO: Fortran f77 compiler: /usr/local/bin/gfortran -Wall -g -ffixed-form -fno-second-underscore -fPIC -O3 -funroll-loops
  Fortran f90 compiler: /usr/local/bin/gfortran -Wall -g -fno-second-underscore -fPIC -O3 -funroll-loops
  Fortran fix compiler: /usr/local/bin/gfortran -Wall -g -ffixed-form -fno-second-underscore -Wall -g -fno-second-underscore -fPIC -O3 -funroll-loops
  INFO: compile options: '-Ibuild/src.macosx-11.1-arm64-3.11/build/src.macosx-11.1-arm64-3.11 -I/Users/lillo_box/anaconda3/lib/python3.11/site-packages/numpy/core/include -Ibuild/src.macosx-11.1-arm64-3.11/numpy/distutils/include -I/Users/lillo_box/anaconda3/include/python3.11 -c'
  extra options: '-Jbuild/temp.macosx-11.1-arm64-cpython-311/ellc -Ibuild/temp.macosx-11.1-arm64-cpython-311/ellc'
  INFO: gfortran:f90: build/src.macosx-11.1-arm64-3.11/ellc_f-f2pywrappers2.f90
  INFO: /usr/local/bin/gfortran -Wall -g -Wall -g -undefined dynamic_lookup -bundle build/temp.macosx-11.1-arm64-cpython-311/build/src.macosx-11.1-arm64-3.11/ellc_fmodule.o build/temp.macosx-11.1-arm64-cpython-311/build/src.macosx-11.1-arm64-3.11/build/src.macosx-11.1-arm64-3.11/fortranobject.o build/temp.macosx-11.1-arm64-cpython-311/f_src/constants.o build/temp.macosx-11.1-arm64-cpython-311/f_src/utils.o build/temp.macosx-11.1-arm64-cpython-311/f_src/coords.o build/temp.macosx-11.1-arm64-cpython-311/f_src/gauss_legendre.o build/temp.macosx-11.1-arm64-cpython-311/f_src/solve_real_poly.o build/temp.macosx-11.1-arm64-cpython-311/f_src/ellipse.o build/temp.macosx-11.1-arm64-cpython-311/f_src/stellar.o build/temp.macosx-11.1-arm64-cpython-311/f_src/spots.o build/temp.macosx-11.1-arm64-cpython-311/f_src/ellc.o build/temp.macosx-11.1-arm64-cpython-311/build/src.macosx-11.1-arm64-3.11/ellc_f-f2pywrappers2.o -L/usr/local/lib/gcc/x86_64-apple-darwin14.4.0/5.1.0 -L/usr/local/lib/gcc/x86_64-apple-darwin14.4.0/5.1.0/../../.. -L/usr/local/lib/gcc/x86_64-apple-darwin14.4.0/5.1.0/../../.. -lgfortran -o build/lib.macosx-11.1-arm64-cpython-311/ellc/ellc_f.cpython-311-darwin.so
  ld: library not found for -lSystem
  collect2: error: ld devolvió el estado de salida 1
  error: Command "/usr/local/bin/gfortran -Wall -g -Wall -g -undefined dynamic_lookup -bundle build/temp.macosx-11.1-arm64-cpython-311/build/src.macosx-11.1-arm64-3.11/ellc_fmodule.o build/temp.macosx-11.1-arm64-cpython-311/build/src.macosx-11.1-arm64-3.11/build/src.macosx-11.1-arm64-3.11/fortranobject.o build/temp.macosx-11.1-arm64-cpython-311/f_src/constants.o build/temp.macosx-11.1-arm64-cpython-311/f_src/utils.o build/temp.macosx-11.1-arm64-cpython-311/f_src/coords.o build/temp.macosx-11.1-arm64-cpython-311/f_src/gauss_legendre.o build/temp.macosx-11.1-arm64-cpython-311/f_src/solve_real_poly.o build/temp.macosx-11.1-arm64-cpython-311/f_src/ellipse.o build/temp.macosx-11.1-arm64-cpython-311/f_src/stellar.o build/temp.macosx-11.1-arm64-cpython-311/f_src/spots.o build/temp.macosx-11.1-arm64-cpython-311/f_src/ellc.o build/temp.macosx-11.1-arm64-cpython-311/build/src.macosx-11.1-arm64-3.11/ellc_f-f2pywrappers2.o -L/usr/local/lib/gcc/x86_64-apple-darwin14.4.0/5.1.0 -L/usr/local/lib/gcc/x86_64-apple-darwin14.4.0/5.1.0/../../.. -L/usr/local/lib/gcc/x86_64-apple-darwin14.4.0/5.1.0/../../.. -lgfortran -o build/lib.macosx-11.1-arm64-cpython-311/ellc/ellc_f.cpython-311-darwin.so" failed with exit status 1
  INFO:
  ########### EXT COMPILER OPTIMIZATION ###########
  INFO: Platform      :
    Architecture: aarch64
    Compiler    : clang

  CPU baseline  :
    Requested   : 'min'
    Enabled     : NEON NEON_FP16 NEON_VFPV4 ASIMD
    Flags       : none
    Extra checks: none

  CPU dispatch  :
    Requested   : 'max -xop -fma4'
    Enabled     : ASIMDHP ASIMDDP ASIMDFHM
    Generated   : none
  INFO: CCompilerOpt.cache_flush[857] : write cache to path -> /private/tmp/pip-install-vza8uaqd/ellc_5d08be8e6e9346e0a09bc9c4e9794fd3/build/temp.macosx-11.1-arm64-cpython-311/ccompiler_opt_cache_ext.py
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for ellc Running setup.py clean for ellc Failed to build ellc ERROR: Could not build wheels for ellc, which is required to install pyproject.toml-based projects

jlillo avatar Nov 21 '23 13:11 jlillo

The issue here is " ld: library not found for -lSystem", which either means that this library is installed or that the linker cannot find it. If it is installed you may be able to get everything linked using LD_LIBRARY_PATH

pmaxted avatar Nov 21 '23 14:11 pmaxted