upgrading to latest stable version

59 views
Skip to first unread message

Mike Zabrocki

unread,
May 31, 2020, 1:37:18 PM5/31/20
to sage-devel
Hi,

I'm trying to compile the latest stable version and it keeps getting stuck at the pplpy package.
Can someone tell me how to get around this?

I'm installing on Mac OSX 10.15.5

Log file is at:

Thanks,
-Mike

***************************************************************

Error building Sage.


The following package(s) may have failed to build (not necessarily

during this run of 'make all-start'):


* package:         pplpy-0.8.4

  last build time: May 31 13:26

  log file:        /Applications/sage/logs/pkgs/pplpy-0.8.4.log

  build directory: /Applications/sage/local/var/tmp/sage/build/pplpy-0.8.4


It is safe to delete any log files and build directories, but they

contain information that is helpful for debugging build problems.

WARNING: If you now run 'make' again, the build directory of the

same version of the package will, by default, be deleted. Set the

environment variable SAGE_KEEP_BUILT_SPKGS=yes to prevent this.


make[1]: *** [all-start] Error 1

make: *** [all] Error 2

Dima Pasechnik

unread,
May 31, 2020, 2:31:48 PM5/31/20
to sage-devel
please post the main config.log

are you trying to do something unusual, like using mpir instead of gmp?

is it a build from scratch?

(make distclean
helps most problems we see)


--
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/cc492bac-a564-49f6-941b-60d19741ccf7%40googlegroups.com.

Mike Zabrocki

unread,
May 31, 2020, 3:36:49 PM5/31/20
to sage-devel
I had started with a make distclean but then by installing a few things I thought I should start over again.  Did a "make distclean" and a "make" again with the same results.

Here is my config.log file:

I'm not (intentionally) doing something unusual.

Thanks,
-Mike
To unsubscribe from this group and stop receiving emails from it, send an email to sage-...@googlegroups.com.

Mike Zabrocki

unread,
Jun 1, 2020, 7:09:17 AM6/1/20
to sage-devel
I switched to the develop branch and ran into the same problem.
Could this be a conflict with OSX 10.15.5?  I installed the update to the system recently.

Thanks,
-Mike

Dima Pasechnik

unread,
Jun 1, 2020, 7:38:10 AM6/1/20
to sage-devel
you have a lot of stuff in /usr/local/opt, e.g. gmp, but some of it is
broken, e.g. in your config.log one sees

## ----------------------------------------------------- ##
## Checking whether SageMath should install SPKG mpir... ##
## ----------------------------------------------------- ##
configure:10249: checking gmp.h usability
configure:10249: g++ -std=gnu++11 -c -g -O2 conftest.cpp >&5
configure:10249: $? = 0
configure:10249: result: yes
configure:10249: checking gmp.h presence
configure:10249: g++ -E -std=gnu++11 conftest.cpp
configure:10249: $? = 0
configure:10249: result: yes
configure:10249: checking for gmp.h
configure:10249: result: yes
configure:10257: checking gmpxx.h usability
configure:10257: g++ -std=gnu++11 -c -g -O2 conftest.cpp >&5
conftest.cpp:56:10: fatal error: 'gmpxx.h' file not found
#include <gmpxx.h>
^~~~~~~~~
1 error generated.

Can you fix them? (probably they are from Homebrew?)
Have a look at https://doc.sagemath.org/html/en/installation/source.html#macos-recommended-installation
for details, in particular .homebrew-build-env needs to be sourced.


Or remove them, they cause conflicts, most probably.
> 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/9c3bc393-b402-4d62-9c06-133813a3fd3e%40googlegroups.com.

John H Palmieri

unread,
Jun 1, 2020, 12:18:08 PM6/1/20
to sage-devel
Did you follow the suggestion at the end of running 'configure'?

# To automatically take care of homebrew messages regarding 
# keg-only packages for the current shell session:
  $ source /Applications/sage/.homebrew-build-env

The plan, by the way, is to eventually require running `./configure` separately before running `make`, so that messages like this are more prominent.


Mike Zabrocki

unread,
Jun 1, 2020, 12:41:57 PM6/1/20
to sage-devel
@Dima
Thanks, that seems to have worked.
So what I did was try to reinstall gmp through brew (I couldn't uninstall it because it is required by other packages).
It refused to allow me to reinstall without first removing some copies of the gmp header files that were in /usr/local/share
because it seems that it was using these copies. So where I previously I saw the statements:

checking gmpxx.h usability... no

checking gmpxx.h presence... no

and these were "yes" when it finally did compile completely.

@John: yes I did follow the suggestions at the end of running configure.

Thanks,
-Mike
Reply all
Reply to author
Forward
0 new messages