Sage compilation

57 views
Skip to first unread message

David Kohel

unread,
Jun 12, 2022, 8:23:34 AM6/12/22
to sage-...@googlegroups.com
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
config.log

Dima Pasechnik

unread,
Jun 12, 2022, 9:06:45 AM6/12/22
to sage-devel
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+...@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.

David Kohel

unread,
Jun 12, 2022, 10:48:23 AM6/12/22
to sage-devel
This still gave the same error.  If I instead deactivate conda, I get further, but
with the homebrew installation it fails to find texinfo:

configure:

    hint: installing the following system packages, if not
    already present, may provide additional optional features:

      $ brew install texinfo
   
    Homebrew can issue suggestions regarding keg-only packages.
    The following command is to automatically apply these suggestions
    for packages relevant for Sage to make them available for the build.
    Run it once to apply the suggestions for the current session.
    Add it to your shell profile to apply them for all future sessions.
   
      $ source /usr/local/sage-9.6/.homebrew-build-env

configure:

    hint: After installation, re-run configure using:

      $ ./config.status --recheck && ./config.status

Following these instructions it verifies that the texinfo is installed, but I get the
same failure from configuration.

Is there any chance that this would be easier to debug?  The full log is attached.

--David
config.log

Dima Pasechnik

unread,
Jun 12, 2022, 10:55:06 AM6/12/22
to sage-devel
texinfo is not necessary.
Just try 

make build



Reply all
Reply to author
Forward
0 new messages