On Sun, Nov 21, 2021 at 6:10 PM Dima Pasechnik <[email protected]> wrote:
>
> Hi William,
>
> please do
>
> brew install pkg-config
>
> and try again. From your log, it appears missing,for some reason,
>
> configure:6572: checking for pkg-config
> configure:6605: result: no
>
>
> and this breaks everything in ./configure that relies on it.
> Yes, for some packages there are workarounds for corner cases which
> are meant to work without it, but I'd rather
> not spend time debugging them too much...

in this particular case it's probably just the following fix:

--- a/.homebrew-build-env
+++ b/.homebrew-build-env
@@ -23,7 +23,7 @@ export PKG_CONFIG_PATH
 LIBRARY_PATH="$HOMEBREW/lib$LIBRARY_PATH"
 [ -z "$CPATH" ] || CPATH=":${CPATH}"
 CPATH="$HOMEBREW/include$CPATH"
-for l in readline bzip2 ntl polymake; do
+for l in readline bzip2 ntl polymake openblas; do
     if [ -d "$HOMEBREW/opt/$l/lib" ]; then
         LIBRARY_PATH="$HOMEBREW/opt/$l/lib:$LIBRARY_PATH"
     fi

but on Homebrew openblas has pkg-config .pc file installed, so
strictly speaking it's not needed
(unless pkg-config is somehow gone AWOL)

Dima


>
> Cheers
> Dima
>
>
>
> On Sun, Nov 21, 2021 at 5:06 PM William Stein <[email protected]> wrote:
> >
> > On Sat, Nov 20, 2021 at 3:53 PM Matthias Köppe <[email protected]> 
> > wrote:
> > >
> > > > checking for library containing openblas_get_config... no
> > >
> > > config.log please
> >
> > See attached.  It's looks like a gfortran linking issue involving a
> > test program, but I don't really know...
>
> Normally speaking,
> >
> > >
> > > On Saturday, November 20, 2021 at 3:17:37 PM UTC-8 William Stein wrote:
> > >>
> > >> On Sat, Nov 20, 2021 at 2:23 PM Matthias Köppe <[email protected]> 
> > >> wrote:
> > >> >
> > >> > On Saturday, November 20, 2021 at 1:57:40 PM UTC-8 William Stein wrote:
> > >> >>
> > >> >>
> > >> >> So I do "brew install openblas && ./configure && make" to continue 
> > >> >> onward:
> > >> >>
> > >> >> This fundamentally fails, because the brew installed openblas doesn't
> > >> >> get detected by ./configure, and make results in immediately building
> > >> >> trying to build it, which fails again.
> > >> >>
> > >> >
> > >> > A message at the end of the configure run tells you an extra step for 
> > >> > homebrew.
> > >>
> > >>
> > >> Detection of openblas does not work for me, even when doing that extra 
> > >> step.
> > >>
> > >> /Users/wstein/build/sage$ ./config.status --recheck 2>&1 |grep
> > >> openblas && ./config.status 2>&1 | grep openblas
> > >> running CONFIG_SHELL=/bin/sh /bin/sh ./configure
> > >> PKG_CONFIG_PATH=/opt/homebrew/opt/sqlite/lib/pkgconfig:/opt/homebrew/opt/readline/lib/pkgconfig:/opt/homebrew/opt/openblas/lib/pkgconfig:/opt/homebrew/lib/pkgconfig:
> > >> --no-create --no-recursion
> > >> Checking whether SageMath should install SPKG openblas...
> > >> checking for library containing openblas_get_config... no
> > >> configure: no suitable system package found for SPKG openblas
> > >> checking whether any of openblas zlib bzip2 is installed as or will be
> > >> installed as SPKG... yes; install cbc as well
> > >> checking whether any of givaro gmp openblas is installed as or will be
> > >> installed as SPKG... yes; install fflas_ffpack as well
> > >> checking whether any of openblas is installed as or will be installed
> > >> as SPKG... yes; install gsl as well
> > >> checking whether any of glpk openblas gmp is installed as or will be
> > >> installed as SPKG... yes; install igraph as well
> > >> checking whether any of gmp openblas is installed as or will be
> > >> installed as SPKG... yes; install iml as well
> > >> checking whether any of openblas iconv readline bzip2 liblzma pcre
> > >> curl is installed as or will be installed as SPKG... yes; install r as
> > >> well
> > >> checking whether any of openblas is installed as or will be installed
> > >> as SPKG... yes; install suitesparse as well
> > >> openblas-0.3.18: no suitable system
> > >> package; standard, will be installed as an SPKG
> > >>
> > >>
> > >> The openblas brew package is definitely installed:
> > >>
> > >> /Users/wstein/build/sage$ find /opt/homebrew |grep openblas
> > >> /opt/homebrew/Library/Taps/homebrew/homebrew-core/Formula/openblas.rb
> > >> /opt/homebrew/opt/openblas
> > >> /opt/homebrew/Cellar/openblas
> > >> /opt/homebrew/Cellar/openblas/0.3.18
> > >> /opt/homebrew/Cellar/openblas/0.3.18/INSTALL_RECEIPT.json
> > >> /opt/homebrew/Cellar/openblas/0.3.18/LICENSE
> > >> /opt/homebrew/Cellar/openblas/0.3.18/.brew
> > >> /opt/homebrew/Cellar/openblas/0.3.18/.brew/openblas.rb
> > >> /opt/homebrew/Cellar/openblas/0.3.18/include
> > >> /opt/homebrew/Cellar/openblas/0.3.18/include/lapacke_utils.h
> > >> /opt/homebrew/Cellar/openblas/0.3.18/include/lapacke.h
> > >> /opt/homebrew/Cellar/openblas/0.3.18/include/f77blas.h
> > >> /opt/homebrew/Cellar/openblas/0.3.18/include/openblas_config.h
> > >> /opt/homebrew/Cellar/openblas/0.3.18/include/lapacke_config.h
> > >> /opt/homebrew/Cellar/openblas/0.3.18/include/cblas.h
> > >> /opt/homebrew/Cellar/openblas/0.3.18/include/lapack.h
> > >> /opt/homebrew/Cellar/openblas/0.3.18/include/lapacke_mangling.h
> > >> /opt/homebrew/Cellar/openblas/0.3.18/README.md
> > >> /opt/homebrew/Cellar/openblas/0.3.18/lib
> > >> /opt/homebrew/Cellar/openblas/0.3.18/lib/libopenblas.a
> > >> /opt/homebrew/Cellar/openblas/0.3.18/lib/liblapack.dylib
> > >> /opt/homebrew/Cellar/openblas/0.3.18/lib/pkgconfig
> > >> /opt/homebrew/Cellar/openblas/0.3.18/lib/pkgconfig/openblas.pc
> > >> /opt/homebrew/Cellar/openblas/0.3.18/lib/cmake
> > >> /opt/homebrew/Cellar/openblas/0.3.18/lib/cmake/openblas
> > >> /opt/homebrew/Cellar/openblas/0.3.18/lib/cmake/openblas/OpenBLASConfigVersion.cmake
> > >> /opt/homebrew/Cellar/openblas/0.3.18/lib/cmake/openblas/OpenBLASConfig.cmake
> > >> /opt/homebrew/Cellar/openblas/0.3.18/lib/libopenblasp-r0.3.18.a
> > >> /opt/homebrew/Cellar/openblas/0.3.18/lib/libopenblasp-r0.3.18.dylib
> > >> /opt/homebrew/Cellar/openblas/0.3.18/lib/libopenblas.dylib
> > >> /opt/homebrew/Cellar/openblas/0.3.18/lib/libblas.dylib
> > >> /opt/homebrew/Cellar/openblas/0.3.18/lib/libopenblas.0.dylib
> > >> /opt/homebrew/Cellar/openblas/0.3.18/Changelog.txt
> > >>
> > >>
> > >> >
> > >> >
> > >> >
> > >> > --
> > >> > You received this message because you are subscribed to the Google 
> > >> > Groups "sage-release" group.
> > >> > To unsubscribe from this group and stop receiving emails from it, send 
> > >> > an email to [email protected].
> > >> > To view this discussion on the web visit 
> > >> > https://groups.google.com/d/msgid/sage-release/26acca4c-25fb-4cda-b063-2f3fee14b52cn%40googlegroups.com.
> > >>
> > >>
> > >>
> > >> --
> > >> William (http://wstein.org)
> > >
> > > --
> > > You received this message because you are subscribed to the Google Groups 
> > > "sage-release" group.
> > > To unsubscribe from this group and stop receiving emails from it, send an 
> > > email to [email protected].
> > > To view this discussion on the web visit 
> > > https://groups.google.com/d/msgid/sage-release/9cc3e707-f4de-4bb7-97d1-e7260612374en%40googlegroups.com.
> >
> >
> >
> > --
> > William (http://wstein.org)
> >
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "sage-release" group.
> > To unsubscribe from this group and stop receiving emails from it, send an 
> > email to [email protected].
> > To view this discussion on the web visit 
> > https://groups.google.com/d/msgid/sage-release/CACLE5GB-BLhN_Kn5Gwm6yP_KxXoJJAHAqr9i3r5B4rKn7Jm5xQ%40mail.gmail.com.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-release" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-release/CAAWYfq2t%3Dc0s%2BcgFm9LNuOeEFu2%2BYvgT09dMacTm7g_3HbTvpg%40mail.gmail.com.

Reply via email to