On Sun, Jan 12, 2020 at 9:58 AM Dima Pasechnik <dimp...@gmail.com> wrote: > > On Sun, Jan 12, 2020 at 12:10 AM Markus Wageringel > <markus.wagerin...@gmail.com> wrote: > > > > On macOS 10.13.6, trying to make use of #27870 using Homebrew's openblas, > > the build fails for me at cvxopt: > > > > gcc -bundle -undefined dynamic_lookup > > -L/Applications/SageMath/local/lib > > -Wl,-rpath,/Applications/SageMath/local/lib -L/usr/local/opt/openssl/lib > > -L. -L/Applications/SageMath/local/lib > > -Wl,-rpath,/Applications/SageMath/local/lib -L/usr/local/opt/openssl/lib > > -L/Applications/SageMath/local/lib > > -Wl,-rpath,/Applications/SageMath/local/lib > > build/temp.macosx-10.9-x86_64-3.7/src/C/gsl.o > > -L/Applications/SageMath/local -L/Applications/SageMath/local > > -L/Applications/SageMath/local/lib -lm -lgsl -lopenblas -o > > build/lib.macosx-10.9-x86_64-3.7/cvxopt/gsl.cpython-37m-darwin.so > > ld: library not found for -lopenblas > > clang: error: linker command failed with exit code 1 (use -v to see > > invocation) > > error: command 'gcc' failed with exit status 1 > > Running setup.py install for cvxopt: finished with status 'error' > > > > As openblas and readline are keg-only, I ran configure as > > > > ./configure \ > > LDFLAGS="-L/usr/local/opt/readline/lib -L/usr/local/opt/openblas/lib > > -L/usr/local/opt/mpfr/lib" \ > > CPPFLAGS="-I/usr/local/opt/readline/include > > -I/usr/local/opt/openblas/include" \ > > > > PKG_CONFIG_PATH="/usr/local/opt/readline/lib/pkgconfig:/usr/local/opt/openblas/lib/pkgconfig" > > > > but cvxopt does not seem to use this. > > cvxopt really needs env.vars CVXOPT_BLAS_LIB_DIR, CVXOPT_BLAS_LIB, > CVXOPT_LAPACK_LIB set, it does not use pkgconf. > (but it should). > We can propose an upstream fix for this, and meanwhile set these vars > in spkg-install > > > > > Other packages depending on BLAS like fflas_ffpack and suitsparse build > > successfully though, correctly using -L/usr/local/opt/openblas/lib. > > > > On the other hand, even though numpy builds successfully, the logs look > > like it does not find openblas either, but it picks the macOS blas from the > > Accelerate framework instead. > > numpy uses a file called site.cfg for these sorts of config settings, > which in turn is created by > build/pkgs/numpy/lapack_conf.py > > So one can hack the latter. > one obvious thing to try is to get rid of
if not (os.environ['UNAME'] == 'Darwin'): in build/pkgs/numpy/lapack_conf.py > > > > -- > > You received this message because you are subscribed to the Google Groups > > "sage-devel" group. > > To unsubscribe from this group and stop receiving emails from it, send an > > email to sage-devel+unsubscr...@googlegroups.com. > > To view this discussion on the web visit > > https://groups.google.com/d/msgid/sage-devel/038a20b3-7486-41bb-b2a5-c4ee189c6739%40googlegroups.com. -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/CAAWYfq2dbtHBsOb7Y5X88v%3DLeM%2B%3DzTOh4TrTHw3_Pcc%2BK0V7hA%40mail.gmail.com.