On Sun, Jun 12, 2022 at 1:23 PM David Kohel <david.ko...@univ-amu.fr> wrote:
>
> I'm been unable to compile Sage on my MacOS laptop (Monterrey, x86 intel)
>
> I've tried installing all homebrew packages requested, but it tends to
> still not
> find them (path problem?).  I switched to using conda, following the
> directions
> here:
>
> https://doc.sagemath.org/html/en/installation/conda.html
>
> but it fails with the error message below (another path problem?). The
> config
> log file is attached.
>
> Any suggestions would be appreciated.
>
> --David Kohel
>
> Checking whether SageMath should install SPKG gmp...
> checking gmp.h usability... yes
> checking gmp.h presence... no
> configure: WARNING: gmp.h: accepted by the compiler, rejected by the
> preprocessor!
> configure: WARNING: gmp.h: proceeding with the compiler's result
> checking for gmp.h... yes
> checking gmpxx.h usability... yes
> checking gmpxx.h presence... no
> configure: WARNING: gmpxx.h: accepted by the compiler, rejected by the
> preprocessor!
> configure: WARNING: gmpxx.h: proceeding with the compiler's result
> checking for gmpxx.h... yes
> checking for library containing __gmpq_cmp_z... -lgmp
> configure: will use system package and not install SPKG gmp
> checking absolute name of <gmp.h>... checking for gmp.h... (cached) yes
>
> configure: error: failed to find absolute path to gmp.h despite it being
> reported found
>
this is due to the test in build/pkgs/gmp/spkg-configure.m4

AX_ABSOLUTE_HEADER([gmp.h])
        if test x$gl_cv_absolute_gmp_h = x; then
            AC_MSG_ERROR(m4_normalize([
                failed to find absolute path to gmp.h despite it being reported
                found
            ]))
        fi
        AC_SUBST(SAGE_GMP_INCLUDE, [`AS_DIRNAME($gl_cv_absolute_gmp_h)`])

Replace this fragment with

        AC_SUBST(SAGE_GMP_INCLUDE, [' '])

and re-run ./bootstrap

this will disable this check - I also assume that any package that
potentially needs
the correct value of SAGE_GMP_INCLUDE actually comes from Conda anyway, and so
this value, the absolute path to GMP include headers, is not relevant;
it can also be replaced with the value in question, say, /foo/bar,  if
needed, by using instead

       AC_SUBST(SAGE_GMP_INCLUDE, ['/foo/bar/'])






> --
> 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/86561d45-63e9-69fb-9361-4142fa731a9d%40univ-amu.fr.

-- 
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/CAAWYfq2D46-ebEaaSRwK0HFxntxFGPaStoUSgo_sQnPFBySpUA%40mail.gmail.com.

Reply via email to