Even after 'make distclean && make' I still get an error. Here is the log. Any idea? Might this be related to
https://trac.sagemath.org/ticket/17635
Best, Anne ----- Found local metadata for givaro-4.0.2 Using cached file /Applications/sage/upstream/givaro-4.0.2.tar.gz givaro-4.0.2 ==================================================== Setting up build directory for givaro-4.0.2 Finished extraction **************************************************** Host system: Darwin lolita.local 14.5.0 Darwin Kernel Version 14.5.0: Wed Jul 29 02:26:53 PDT 2015; root:xnu-2782.40.9~1/RELEASE_X86_64 x86_64 **************************************************** C compiler: gcc C compiler version: Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/Applications/sage/local/libexec/gcc/x86_64-apple-darwin14.5.0/4.9.3/lto-wrapper Target: x86_64-apple-darwin14.5.0 Configured with: ../src/configure --prefix=/Applications/sage/local --with-local-prefix=/Applications/sage/local --with-gmp=/Applications/sage/local --with-mpfr=/Applications/sage/local --with-mpc=/Applications/sage/local --with-system-zlib --disable-multilib --disable-nls --enable-languages=c,c++,fortran --disable-libitm --with-build-config=bootstrap-debug --without-isl --without-cloog Thread model: posix gcc version 4.9.3 (GCC) **************************************************** checking build system type... x86_64-apple-darwin14.5.0 checking host system type... x86_64-apple-darwin14.5.0 checking target system type... x86_64-apple-darwin14.5.0 checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... build-aux/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 for rm... /bin/rm checking whether to enable maintainer-specific portions of Makefiles... no ----------------------------------------------- checking whether to enable debugging options in the library... no checking whether to enable profiling everything in the library... no checking whether to enable warnings when compiling the library... no checking whether to inline or not most of the code ?... no ----------------------------------------------- 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++ accepts -g... yes checking for family name of compiler... gcc (GCC) 4.9.3 checking whether g++ supports C++11 features by default... no checking whether g++ supports C++11 features with -std=gnu++11... yes checking how to run the C++ preprocessor... g++ -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes 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... yes checking for a sed that does not truncate output... /usr/bin/sed checking for fgrep... /usr/bin/grep -F checking for ld used by gcc... ld checking if the linker (ld) is GNU ld... no checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm checking the name lister (/usr/bin/nm) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 196608 checking whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... yes checking how to convert x86_64-apple-darwin14.5.0 file names to x86_64-apple-darwin14.5.0 format... func_convert_file_noop checking how to convert x86_64-apple-darwin14.5.0 file names to toolchain format... func_convert_file_noop checking for ld option to reload object files... -r checking for objdump... no 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... no checking for strip... strip checking for ranlib... ranlib checking command to parse /usr/bin/nm output from gcc object... ok checking for sysroot... no 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 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... no 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 (ld) supports shared libraries... yes checking dynamic linker characteristics... darwin14.5.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... yes checking how to run the C++ preprocessor... g++ -E checking for ld used by g++... ld checking if the linker (ld) is GNU ld... no checking whether the g++ linker (ld) supports shared libraries... yes checking for g++ option to produce PIC... -fno-common -DPIC checking if g++ PIC flag -fno-common -DPIC works... yes checking if g++ static flag -static works... no checking if g++ supports -c -o file.o... yes checking if g++ supports -c -o file.o... (cached) yes checking whether the g++ linker (ld) supports shared libraries... yes checking dynamic linker characteristics... darwin14.5.0 dyld checking how to hardcode library paths into programs... immediate ----------------------------------------------- START GIVARO CONFIG ----------------------------------------------- ----------------------------------------------- ----------------------------------------------- SIMD enabled checking for gcc __builtin_cpu_init function... yes checking for x86 mmx instruction support... yes checking for x86 popcnt instruction support... yes checking for x86 sse instruction support... yes checking for x86 sse2 instruction support... yes checking for x86 sse3 instruction support... yes checking for x86 sse4.1 instruction support... yes checking for x86 sse4.2 instruction support... yes checking for x86 sse4a instruction support... no checking for x86 avx instruction support... yes checking for x86 avx2 instruction support... yes checking for x86 avx512f instruction support... no checking for x86 fma instruction support... yes checking for x86 fma4 instruction support... no checking for x86 bmi instruction support... no checking for x86 bmi2 instruction support... no checking size of char... 1 checking size of short... 2 checking size of int... 4 checking size of long... 8 checking size of long long... 8 checking size of __int64_t... 8 checking for __int128_t... yes checking for ANSI C header files... (cached) yes checking float.h usability... yes checking float.h presence... yes checking for float.h... yes checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking stddef.h usability... yes checking stddef.h presence... yes checking for stddef.h... yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking for stdint.h... (cached) yes checking pthread.h usability... yes checking pthread.h presence... yes checking for pthread.h... yes checking whether byte ordering is bigendian... no Creating symbolic link for compilation ----------------------------------------------- ----------------------------------------------- checking for GMP >= 4.0.0 with cxx enabled... found checking whether to build documentation... no checking whether dot works... yes ----------------------------------------------- END GIVARO CONFIG ----------------------------------------------- checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating givaro-config config.status: creating givaro-makefile config.status: creating src/Makefile config.status: creating src/kernel/Makefile config.status: creating src/kernel/system/Makefile config.status: creating src/kernel/memory/Makefile config.status: creating src/kernel/gmp++/Makefile config.status: creating src/kernel/integer/Makefile config.status: creating src/kernel/bstruct/Makefile config.status: creating src/kernel/rational/Makefile config.status: creating src/kernel/recint/Makefile config.status: creating src/kernel/field/Makefile config.status: creating src/kernel/ring/Makefile config.status: creating src/library/Makefile config.status: creating src/library/vector/Makefile config.status: creating src/library/tools/Makefile config.status: creating src/library/poly1/Makefile config.status: creating src/library/matrix/Makefile config.status: creating macros/Makefile config.status: creating benchmarks/Makefile config.status: creating examples/Makefile config.status: creating examples/FiniteField/Makefile config.status: creating examples/Integer/Makefile config.status: creating examples/Rational/Makefile config.status: creating examples/RecInt/Makefile config.status: creating examples/Polynomial/Makefile config.status: creating tests/Makefile config.status: creating docs/Makefile config.status: creating givaro.pc config.status: creating config.h config.status: executing givaro-config.h commands config.status: creating givaro-config.h - prefix __GIVARO for config.h defines config.status: executing depfiles commands config.status: executing libtool commands ----------------------------------------------- make all-recursive Making all in src Making all in kernel Making all in system /bin/sh ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I../../.. -I../../../src/kernel/memory -O2 -Wall -g -DNDEBUG -UGIVARO_DEBUG -UDEBUG -I/Applications/sage/local//include -fPIC -I"/Applications/sage/local/include" -std=gnu++11 -mmmx -mpopcnt -msse -msse2 -msse3 -msse4.1 -msse4.2 -mavx -mavx2 -mfma -mfpmath=sse -fabi-version=6 -c -o givbasictype.lo givbasictype.C libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I../../.. -I../../../src/kernel/memory -O2 -Wall -g -DNDEBUG -UGIVARO_DEBUG -UDEBUG -I/Applications/sage/local//include -fPIC -I/Applications/sage/local/include -std=gnu++11 -mmmx -mpopcnt -msse -msse2 -msse3 -msse4.1 -msse4.2 -mavx -mavx2 -mfma -mfpmath=sse -fabi-version=6 -c givbasictype.C -fno-common -DPIC -o .libs/givbasictype.o libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I../../.. -I../../../src/kernel/memory -O2 -Wall -g -DNDEBUG -UGIVARO_DEBUG -UDEBUG -I/Applications/sage/local//include -fPIC -I/Applications/sage/local/include -std=gnu++11 -mmmx -mpopcnt -msse -msse2 -msse3 -msse4.1 -msse4.2 -mavx -mavx2 -mfma -mfpmath=sse -fabi-version=6 -c givbasictype.C -o givbasictype.o >/dev/null 2>&1 /bin/sh ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I../../.. -I../../../src/kernel/memory -O2 -Wall -g -DNDEBUG -UGIVARO_DEBUG -UDEBUG -I/Applications/sage/local//include -fPIC -I"/Applications/sage/local/include" -std=gnu++11 -mmmx -mpopcnt -msse -msse2 -msse3 -msse4.1 -msse4.2 -mavx -mavx2 -mfma -mfpmath=sse -fabi-version=6 -c -o giverror.lo giverror.C libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I../../.. -I../../../src/kernel/memory -O2 -Wall -g -DNDEBUG -UGIVARO_DEBUG -UDEBUG -I/Applications/sage/local//include -fPIC -I/Applications/sage/local/include -std=gnu++11 -mmmx -mpopcnt -msse -msse2 -msse3 -msse4.1 -msse4.2 -mavx -mavx2 -mfma -mfpmath=sse -fabi-version=6 -c giverror.C -fno-common -DPIC -o .libs/giverror.o libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I../../.. -I../../../src/kernel/memory -O2 -Wall -g -DNDEBUG -UGIVARO_DEBUG -UDEBUG -I/Applications/sage/local//include -fPIC -I/Applications/sage/local/include -std=gnu++11 -mmmx -mpopcnt -msse -msse2 -msse3 -msse4.1 -msse4.2 -mavx -mavx2 -mfma -mfpmath=sse -fabi-version=6 -c giverror.C -o giverror.o >/dev/null 2>&1 /bin/sh ../../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../.. -I../../.. -I../../../src/kernel/memory -O2 -Wall -g -DNDEBUG -UGIVARO_DEBUG -UDEBUG -I/Applications/sage/local//include -fPIC -I"/Applications/sage/local/include" -std=gnu++11 -mmmx -mpopcnt -msse -msse2 -msse3 -msse4.1 -msse4.2 -mavx -mavx2 -mfma -mfpmath=sse -fabi-version=6 -c -o givinit.lo givinit.C libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../../.. -I../../.. -I../../../src/kernel/memory -O2 -Wall -g -DNDEBUG -UGIVARO_DEBUG -UDEBUG -I/Applications/sage/local//include -fPIC -I/Applications/sage/local/include -std=gnu++11 -mmmx -mpopcnt -msse -msse2 -msse3 -msse4.1 -msse4.2 -mavx -mavx2 -mfma -mfpmath=sse -fabi-version=6 -c givinit.C -fno-common -DPIC -o .libs/givinit.o /var/folders/sq/gx2hlzhj315g48j_8r39s8p80000gp/T//ccleqUwl.s:517:no such instruction: `vzeroupper' /var/folders/sq/gx2hlzhj315g48j_8r39s8p80000gp/T//ccleqUwl.s:578:no such instruction: `vzeroupper' /var/folders/sq/gx2hlzhj315g48j_8r39s8p80000gp/T//ccleqUwl.s:591:no such instruction: `vzeroupper' /var/folders/sq/gx2hlzhj315g48j_8r39s8p80000gp/T//ccleqUwl.s:618:no such instruction: `vzeroupper' make[7]: *** [givinit.lo] Error 1 make[6]: *** [all-recursive] Error 1 make[5]: *** [all-recursive] Error 1 make[4]: *** [all-recursive] Error 1 make[3]: *** [all] Error 2 Error building givaro real 0m9.647s user 0m5.345s sys 0m4.427s ************************************************************************ Error installing package givaro-4.0.2 ************************************************************************ Please email sage-devel (http://groups.google.com/group/sage-devel) explaining the problem and including the relevant part of the log file /Applications/sage/logs/pkgs/givaro-4.0.2.log Describe your computer, operating system, etc. If you want to try to fix the problem yourself, *don't* just cd to /Applications/sage/local/var/tmp/sage/build/givaro-4.0.2 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 '/Applications/sage/local/var/tmp/sage/build/givaro-4.0.2' && '/Applications/sage/sage' --sh) When you are done debugging, you can type "exit" to leave the subshell. ************************************************************************
My suggestion would be to upgrade to xcode 10.11,
Hi Volker,
Thanks for the suggestion. I upgraded to OSX 10.12 and installed the latest version command line xcode. Now I get the following
error (even when compiling the latest stable release of sage):
Right, Sage's Python is broken. Try deleting sage/local/bin/python and python2, and also sage/local/lib/python2.7 and sage/local/lib/libpython2.7.dylib. Then the build process should use the system's Python until Sage builds a working one.
On Tuesday, October 11, 2016 at 7:47:47 PM UTC, John H Palmieri wrote:Right, Sage's Python is broken. Try deleting sage/local/bin/python and python2, and also sage/local/lib/python2.7 and sage/local/lib/libpython2.7.dylib. Then the build process should use the system's Python until Sage builds a working one.hmm, I don't understand. I think I tried starting from 'make distclean' and still got stuck at that No module named _scproxy thing.
On Tuesday, October 11, 2016 at 1:26:22 PM UTC-7, Dima Pasechnik wrote:
On Tuesday, October 11, 2016 at 7:47:47 PM UTC, John H Palmieri wrote:Right, Sage's Python is broken. Try deleting sage/local/bin/python and python2, and also sage/local/lib/python2.7 and sage/local/lib/libpython2.7.dylib. Then the build process should use the system's Python until Sage builds a working one.hmm, I don't understand. I think I tried starting from 'make distclean' and still got stuck at that No module named _scproxy thing.
Are you saying you did this with the 'develop' branch or with the branch from #21567? I can understand the former; that's why we have #21567.
When we build Python on OS X, we should test that _scproxy builds correctly before declaring the build a success.