Hello,

I'm trying to install the latest version of sage, the developer version. 
I've done this before on my Mac before it got wiped, albeit with a lot of 
computer scientists' help to get past git hub errors. 

I followed the guide on wiki along with a quick guide written by Ben Hutz 
(attached) and I'm stuck on step 6. I'm on a Max with Mojave 10.14.6, I 
think I have python 2.7.16 (I don't know how to find the actual python 
file, and I don't know how to update it to python 3.0). I have way more 
than 6 gigs of space and 2gigs of ram (the recommended info on the guide). 
I installed homebrew as the guide said as well, since I'm running a more 
recent Mac OS. I also installed xcode as the guide suggested.

During the build I got an error:
"Error building Sage.
The following package(s) may have failed to build (not necessarily during 
this run of 'make all-start'):

* package:         pynac-0.7.26.sage-2020-04-03.p0
  last build time: Oct 2 21:54
  log file:        
/Users/bthompson/Dropbox/Sage_development/logs/pkgs/pynac-0.7.26.sage-2020-04-03.p0.log
  build directory: 
/Users/bthompson/Dropbox/Sage_development/local/var/tmp/sage/build/pynac-0.7.26.sage-2020-04-03.p0

......

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

make: *** [all] Error 2"

I've included one of the log files of the two above. I wasn't able to find 
the other log file. 

I would love to know if folk have some suggestions on getting past these 
errors. I am not well versed in computer science language and only know 
what I do from the sage workshops I've attended. 

Thank you!

Bianca Thompson

-- 
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/3757a446-da6b-475a-8cc2-fe9585252828n%40googlegroups.com.

Attachment: SetupSageAndGIT.pdf
Description: Adobe PDF document

Found local metadata for pynac-0.7.26.sage-2020-04-03.p0
Attempting to download package pynac-0.7.26.sage-2020-04-03.tar.bz2 from mirrors
http://mirrors.xmission.com/sage/spkg/upstream/pynac/pynac-0.7.26.sage-2020-04-03.tar.bz2
[......................................................................]
pynac-0.7.26.sage-2020-04-03.p0
====================================================
Setting up build directory for pynac-0.7.26.sage-2020-04-03.p0
Finished extraction
Applying patches from ../patches...
Applying ../patches/py_ssize_t_clean.patch
patching file ginac/function.cpp
patching file ginac/numeric.cpp
****************************************************
Host system:
Darwin ml20fa-bthompson 18.7.0 Darwin Kernel Version 18.7.0: Thu Jun 18 
20:50:10 PDT 2020; root:xnu-4903.278.43~1/RELEASE_X86_64 x86_64
****************************************************
C compiler: gcc
C compiler version:
Configured with: --prefix=/Library/Developer/CommandLineTools/usr 
--with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/c++/4.2.1
Apple LLVM version 10.0.1 (clang-1001.0.46.4)
Target: x86_64-apple-darwin18.7.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
****************************************************
Package 'pynac' is currently not installed
No legacy uninstaller found for 'pynac'; nothing to do
Starting build...
Running build_pynac...
Configuring pynac-0.7.26.sage-2020-04-03.p0
configure: WARNING: unrecognized options: --disable-maintainer-mode
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether sage-python23 version is >= 2.7... yes
checking for sage-python23 version... 3.8
checking for sage-python23 platform... darwin
checking for sage-python23 script directory... 
${prefix}/lib/python3.8/site-packages
checking for sage-python23 extension module directory... 
${exec_prefix}/lib/python3.8/site-packages
checking for Python preprocessor flags... 
-I/usr/local/Cellar/python@3.8/3.8.5/Frameworks/Python.framework/Versions/3.8/include/python3.8
 
-I/usr/local/Cellar/python@3.8/3.8.5/Frameworks/Python.framework/Versions/3.8/include/python3.8
 -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic 
-DNDEBUG -g -fwrapv -O3 -Wall -isysroot 
/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk 
-I/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include 
-I/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers
checking for Python library flags... -bundle -undefined dynamic_lookup 
-isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk 
-L/Users/bthompson/Dropbox/Sage_development/local/lib 
-Wl,-rpath,/Users/bthompson/Dropbox/Sage_development/local/lib
checking build system type... x86_64-apple-darwin18.7.0
checking host system type... x86_64-apple-darwin18.7.0
checking for Cygwin... 
checking whether make supports nested variables... (cached) yes
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ -std=gnu++11 accepts -g... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of g++ -std=gnu++11... none
checking how to run the C++ preprocessor... g++ -std=gnu++11 -E
checking how to print strings... printf
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... rm: conftest.dSYM: is a 
directory
yes
checking dependency style of gcc... none
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /Library/Developer/CommandLineTools/usr/bin/ld
checking if the linker (/Library/Developer/CommandLineTools/usr/bin/ld) is GNU 
ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... rm: conftest.dSYM: is a 
directory
BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 196608
checking how to convert x86_64-apple-darwin18.7.0 file names to 
x86_64-apple-darwin18.7.0 format... func_convert_file_noop
checking how to convert x86_64-apple-darwin18.7.0 file names to toolchain 
format... func_convert_file_noop
checking for /Library/Developer/CommandLineTools/usr/bin/ld option to reload 
object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for archiver @FILE support... rm: conftest.dSYM: is a directory
no
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... rm: 
conftest.dSYM: is a directory
ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for lipo... lipo
checking for otool... otool
checking for otool64... no
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking for -force_load linker flag... yes
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking for gcc option to produce PIC... -fno-common -DPIC
checking if gcc PIC flag -fno-common -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker 
(/Library/Developer/CommandLineTools/usr/bin/ld) supports shared libraries... 
yes
checking dynamic linker characteristics... darwin18.7.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking how to run the C++ preprocessor... g++ -std=gnu++11 -E
checking for ld used by g++ -std=gnu++11... 
/Library/Developer/CommandLineTools/usr/bin/ld
checking if the linker (/Library/Developer/CommandLineTools/usr/bin/ld) is GNU 
ld... no
checking whether the g++ -std=gnu++11 linker 
(/Library/Developer/CommandLineTools/usr/bin/ld) supports shared libraries... 
yes
checking for g++ -std=gnu++11 option to produce PIC... -fno-common -DPIC
checking if g++ -std=gnu++11 PIC flag -fno-common -DPIC works... yes
checking if g++ -std=gnu++11 static flag -static works... no
checking if g++ -std=gnu++11 supports -c -o file.o... yes
checking if g++ -std=gnu++11 supports -c -o file.o... (cached) yes
checking whether the g++ -std=gnu++11 linker 
(/Library/Developer/CommandLineTools/usr/bin/ld) supports shared libraries... 
yes
checking dynamic linker characteristics... darwin18.7.0 dyld
checking how to hardcode library paths into programs... immediate
checking gmp.h usability... yes
checking gmp.h presence... yes
checking for gmp.h... yes
checking for library containing __gmpz_get_str... -lgmp
checking flint/fmpq_poly.h usability... yes
checking flint/fmpq_poly.h presence... yes
checking for flint/fmpq_poly.h... yes
checking for library containing fmpq_get_mpz_frac... -lflint
checking size of int... 4
checking size of long... 8
checking size of long long... 8
checking size of long double... 16
checking size of void *... 8
checking whether g++ -std=gnu++11 supports C++11 features with -std=c++11... yes
checking iosfwd usability... yes
checking iosfwd presence... yes
checking for iosfwd... yes
checking iostream usability... yes
checking iostream presence... yes
checking for iostream... yes
checking vector usability... yes
checking vector presence... yes
checking for vector... yes
checking list usability... yes
checking list presence... yes
checking for list... yes
checking map usability... yes
checking map presence... yes
checking for map... yes
checking string usability... yes
checking string presence... yes
checking for string... yes
checking sstream usability... yes
checking sstream presence... yes
checking for sstream... yes
checking typeinfo usability... yes
checking typeinfo presence... yes
checking for typeinfo... yes
checking stdexcept usability... yes
checking stdexcept presence... yes
checking for stdexcept... yes
checking algorithm usability... yes
checking algorithm presence... yes
checking for algorithm... yes
checking limits usability... yes
checking limits presence... yes
checking for limits... yes
checking for pkg-config... /usr/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for FACTORY... yes
checking for rm... /bin/rm
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating pynac.spec
config.status: creating pynac.pc
config.status: creating ginac/Makefile
config.status: creating ginac/version.h
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing pynac-config.h commands
config.status: creating pynac-config.h - prefix PYNAC for config.h defines
configure: WARNING: unrecognized options: --disable-maintainer-mode
Configuration of GiNaC 0.7.26.sage-2020-04-03 done. Now type "make".
Building pynac-0.7.26.sage-2020-04-03.p0
make  all-recursive
Making all in ginac
/bin/bash ../libtool  --tag=CXX   --mode=compile g++ -std=gnu++11 -std=c++11 
-DHAVE_CONFIG_H -I. -I..  
-I/usr/local/Cellar/python@3.8/3.8.5/Frameworks/Python.framework/Versions/3.8/include/python3.8
 
-I/usr/local/Cellar/python@3.8/3.8.5/Frameworks/Python.framework/Versions/3.8/include/python3.8
 -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic 
-DNDEBUG -g -fwrapv -O3 -Wall -isysroot 
/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk 
-I/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include 
-I/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers
 -DSING_NDEBUG -DOM_NDEBUG -DSING_NDEBUG -DOM_NDEBUG 
-I/Users/bthompson/Dropbox/Sage_development/local/include/ -Wall -Wextra 
-Wshadow -Wnon-virtual-dtor -Wno-unused-parameter -Wno-unknown-pragmas 
-Wno-parentheses-equality   -O2 -g  -c -o libpynac_la-add.lo `test -f 'add.cpp' 
|| echo './'`add.cpp
libtool: compile:  g++ -std=gnu++11 -std=c++11 -DHAVE_CONFIG_H -I. -I.. 
-I/usr/local/Cellar/python@3.8/3.8.5/Frameworks/Python.framework/Versions/3.8/include/python3.8
 
-I/usr/local/Cellar/python@3.8/3.8.5/Frameworks/Python.framework/Versions/3.8/include/python3.8
 -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic 
-DNDEBUG -g -fwrapv -O3 -Wall -isysroot 
/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk 
-I/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include 
-I/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers
 -DSING_NDEBUG -DOM_NDEBUG -DSING_NDEBUG -DOM_NDEBUG 
-I/Users/bthompson/Dropbox/Sage_development/local/include/ -Wall -Wextra 
-Wshadow -Wnon-virtual-dtor -Wno-unused-parameter -Wno-unknown-pragmas 
-Wno-parentheses-equality -O2 -g -c add.cpp  -fno-common -DPIC -o 
.libs/libpynac_la-add.o
/bin/bash ../libtool  --tag=CXX   --mode=compile g++ -std=gnu++11 -std=c++11 
-DHAVE_CONFIG_H -I. -I..  
-I/usr/local/Cellar/python@3.8/3.8.5/Frameworks/Python.framework/Versions/3.8/include/python3.8
 
-I/usr/local/Cellar/python@3.8/3.8.5/Frameworks/Python.framework/Versions/3.8/include/python3.8
 -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic 
-DNDEBUG -g -fwrapv -O3 -Wall -isysroot 
/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk 
-I/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include 
-I/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers
 -DSING_NDEBUG -DOM_NDEBUG -DSING_NDEBUG -DOM_NDEBUG 
-I/Users/bthompson/Dropbox/Sage_development/local/include/ -Wall -Wextra 
-Wshadow -Wnon-virtual-dtor -Wno-unused-parameter -Wno-unknown-pragmas 
-Wno-parentheses-equality   -O2 -g  -c -o libpynac_la-archive.lo `test -f 
'archive.cpp' || echo './'`archive.cpp
In file included from add.cpp:23:
In file included from ./add.h:26:
In file included from ./expairseq.h:27:
In file included from ./expair.h:27:
./numeric.h:53:10: fatal error: 'gmp.h' file not found
#include <gmp.h>
         ^~~~~~~
libtool: compile:  g++ -std=gnu++11 -std=c++11 -DHAVE_CONFIG_H -I. -I.. 
-I/usr/local/Cellar/python@3.8/3.8.5/Frameworks/Python.framework/Versions/3.8/include/python3.8
 
-I/usr/local/Cellar/python@3.8/3.8.5/Frameworks/Python.framework/Versions/3.8/include/python3.8
 -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic 
-DNDEBUG -g -fwrapv -O3 -Wall -isysroot 
/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk 
-I/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include 
-I/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers
 -DSING_NDEBUG -DOM_NDEBUG -DSING_NDEBUG -DOM_NDEBUG 
-I/Users/bthompson/Dropbox/Sage_development/local/include/ -Wall -Wextra 
-Wshadow -Wnon-virtual-dtor -Wno-unused-parameter -Wno-unknown-pragmas 
-Wno-parentheses-equality -O2 -g -c archive.cpp  -fno-common -DPIC -o 
.libs/libpynac_la-archive.o
1 error generated.
make[7]: *** [libpynac_la-add.lo] Error 1
make[7]: *** Waiting for unfinished jobs....
In file included from archive.cpp:30:
./numeric.h:53:10: fatal error: 'gmp.h' file not found
#include <gmp.h>
         ^~~~~~~
1 error generated.
make[7]: *** [libpynac_la-archive.lo] Error 1
make[6]: *** [all-recursive] Error 1
make[5]: *** [all] Error 2
********************************************************************************
Error building pynac-0.7.26.sage-2020-04-03.p0
********************************************************************************

real    0m46.508s
user    0m15.831s
sys     0m10.303s
************************************************************************
Error installing package pynac-0.7.26.sage-2020-04-03.p0
************************************************************************
Please email sage-devel (http://groups.google.com/group/sage-devel)
explaining the problem and including the log file
  
/Users/bthompson/Dropbox/Sage_development/logs/pkgs/pynac-0.7.26.sage-2020-04-03.p0.log
Describe your computer, operating system, etc.
If you want to try to fix the problem yourself, *don't* just cd to
/Users/bthompson/Dropbox/Sage_development/local/var/tmp/sage/build/pynac-0.7.26.sage-2020-04-03.p0
 and type 'make' or whatever is appropriate.
Instead, the following commands setup all environment variables
correctly and load a subshell for you to debug the error:
  (cd 
'/Users/bthompson/Dropbox/Sage_development/local/var/tmp/sage/build/pynac-0.7.26.sage-2020-04-03.p0'
 && '/Users/bthompson/Dropbox/Sage_development/sage' --buildsh)
When you are done debugging, you can type "exit" to leave the subshell.
************************************************************************

Reply via email to