I have just tried to upgrade my main Sage install from 8.7 to 8.8, but the 
optional package Giacpy_sage fails to build. The logs mention several 
errors reported by gcc – the log file is attached. This is on OS X 10.13.6 
with Clang 10.0.0, but I have observed this problem on a Linux machine as 
well (where I also tried a clean install, but the package still does not 
build). This is odd, as Giacpy_sage has not been changed since 8.7.

Best,
Markus

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-devel.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/5f4ace6f-e0dd-46d5-81e4-750a2ed2800a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Found local metadata for giacpy_sage-0.6.7
Using cached file /Applications/SageMath/upstream/giacpy_sage-0.6.7.tar.gz
giacpy_sage-0.6.7
====================================================
Setting up build directory for giacpy_sage-0.6.7
Finished extraction
No patch files found in ../patches
****************************************************
Host system:
Darwin markus-2.local 17.7.0 Darwin Kernel Version 17.7.0: Wed Apr 24 21:17:24 
PDT 2019; root:xnu-4570.71.45~1/RELEASE_X86_64 x86_64
****************************************************
C compiler: gcc
C compiler version:
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr 
--with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 10.0.0 (clang-1000.11.45.5)
Target: x86_64-apple-darwin17.7.0
Thread model: posix
InstalledDir: 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
****************************************************
Package 'giacpy_sage' is currently not installed
No legacy uninstaller found for 'giacpy_sage'; nothing to do
Deleting /Applications/SageMath/local/lib/python*/site-packages/giacpy-*
Deleting /Applications/SageMath/local/lib/python*/site-packages/giacpy.so
Deleting /Applications/SageMath/local/lib/python*/site-packages/giacpy_sage*
Installing giacpy_sage-0.6.7
/Applications/SageMath/local/lib/python2.7/site-packages/Cython/Compiler/Main.py:367:
 FutureWarning: Cython directive 'language_level' not set, using 2 for now 
(Py2). This will change in a later release! File: 
/Applications/SageMath/local/var/tmp/sage/build/giacpy_sage-0.6.7/src/giacpy_sage.pxd
  tree = Parsing.p_module(s, pxd, full_module_name)
Warning: This package has a badly-behaved setup.py which outputs
more than the package name for 'setup.py --name'; using the last
line as the package name: giacpy_sage
Installing package giacpy_sage using pip2
Ignoring indexes: https://pypi.org/simple
Created temporary directory: 
/private/var/folders/f1/dnhtvscx21sc9_bnlkbxhjmr0000gn/T/pip-ephem-wheel-cache-2SXDAj
Created temporary directory: 
/private/var/folders/f1/dnhtvscx21sc9_bnlkbxhjmr0000gn/T/pip-req-tracker-qjDBgf
Created requirements tracker 
'/private/var/folders/f1/dnhtvscx21sc9_bnlkbxhjmr0000gn/T/pip-req-tracker-qjDBgf'
Created temporary directory: 
/private/var/folders/f1/dnhtvscx21sc9_bnlkbxhjmr0000gn/T/pip-install-W47tqA
Processing /Applications/SageMath/local/var/tmp/sage/build/giacpy_sage-0.6.7/src
  Created temporary directory: 
/private/var/folders/f1/dnhtvscx21sc9_bnlkbxhjmr0000gn/T/pip-req-build-axb0ZG
  Added 
file:///Applications/SageMath/local/var/tmp/sage/build/giacpy_sage-0.6.7/src to 
build tracker 
'/private/var/folders/f1/dnhtvscx21sc9_bnlkbxhjmr0000gn/T/pip-req-tracker-qjDBgf'
  Running setup.py 
(path:/private/var/folders/f1/dnhtvscx21sc9_bnlkbxhjmr0000gn/T/pip-req-build-axb0ZG/setup.py)
 egg_info for package from 
file:///Applications/SageMath/local/var/tmp/sage/build/giacpy_sage-0.6.7/src
    Running command python setup.py egg_info
    running egg_info
    creating pip-egg-info/giacpy_sage.egg-info
    writing pip-egg-info/giacpy_sage.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/giacpy_sage.egg-info/top_level.txt
    writing dependency_links to 
pip-egg-info/giacpy_sage.egg-info/dependency_links.txt
    writing manifest file 'pip-egg-info/giacpy_sage.egg-info/SOURCES.txt'
    reading manifest file 'pip-egg-info/giacpy_sage.egg-info/SOURCES.txt'
    writing manifest file 'pip-egg-info/giacpy_sage.egg-info/SOURCES.txt'
  Source in 
/private/var/folders/f1/dnhtvscx21sc9_bnlkbxhjmr0000gn/T/pip-req-build-axb0ZG 
has version 0.6.7, which satisfies requirement giacpy-sage==0.6.7 from 
file:///Applications/SageMath/local/var/tmp/sage/build/giacpy_sage-0.6.7/src
  Removed giacpy-sage==0.6.7 from 
file:///Applications/SageMath/local/var/tmp/sage/build/giacpy_sage-0.6.7/src 
from build tracker 
'/private/var/folders/f1/dnhtvscx21sc9_bnlkbxhjmr0000gn/T/pip-req-tracker-qjDBgf'
Installing collected packages: giacpy-sage
  Created temporary directory: 
/private/var/folders/f1/dnhtvscx21sc9_bnlkbxhjmr0000gn/T/pip-record-KcLhq2
  Running setup.py install for giacpy-sage: started
    Running command /Applications/SageMath/local/bin/python2 -u -c "import 
setuptools, 
tokenize;__file__='/private/var/folders/f1/dnhtvscx21sc9_bnlkbxhjmr0000gn/T/pip-req-build-axb0ZG/setup.py';f=getattr(tokenize,
 'open', open)(__file__);code=f.read().replace('\r\n', 
'\n');f.close();exec(compile(code, __file__, 'exec'))" --no-user-cfg install 
--record 
/private/var/folders/f1/dnhtvscx21sc9_bnlkbxhjmr0000gn/T/pip-record-KcLhq2/install-record.txt
 --single-version-externally-managed --root 
/Applications/SageMath/local/var/tmp/sage/build/giacpy_sage-0.6.7/inst --compile
    running install
    running build
    running build_ext
    building 'giacpy_sage' extension
    creating build
    creating build/temp.macosx-10.9-x86_64-2.7
    gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wno-unused 
-I/Applications/SageMath/local/lib/python2.7/site-packages/sage/cpython 
-I/Applications/SageMath/local/lib/python2.7/site-packages/sage/libs/ntl 
-I/Applications/SageMath/local/lib/python2.7/site-packages/cysignals 
-I/Applications/SageMath/local/include 
-I/Applications/SageMath/local/lib/python2.7/site-packages 
-I/Applications/SageMath/local/lib/python2.7/site-packages/sage/ext 
-I/Applications/SageMath/local/include/python2.7 
-I/Applications/SageMath/local/lib/python2.7/site-packages/numpy/core/include 
-I/Applications/SageMath/local/include/python2.7 -c giacpy_sage.cpp -o 
build/temp.macosx-10.9-x86_64-2.7/giacpy_sage.o
    In file included from giacpy_sage.cpp:659:
    In file included from /Applications/SageMath/local/include/giac/giac.h:5:
    In file included from /Applications/SageMath/local/include/giac/poly.h:25:
    /Applications/SageMath/local/include/giac/index.h:32:9: warning: unknown 
pragma ignored [-Wunknown-pragmas]
    #pragma anon_unions
            ^
    In file included from giacpy_sage.cpp:661:
    In file included from 
/Applications/SageMath/local/lib/python2.7/site-packages/sage/libs/ntl/ntlwrap.h:5:
    In file included from /Applications/SageMath/local/include/NTL/ZZ.h:19:
    /Applications/SageMath/local/include/NTL/tools.h:1026:1: error: unknown 
type name 'constexpr'; did you mean 'context'?
    constexpr bool Relocate_aux_has_trivial_copy(T*)
    ^~~~~~~~~
    context
    /Applications/SageMath/local/include/giac/threaded.h:90:9: note: 'context' 
declared here
      class context;
            ^
    In file included from giacpy_sage.cpp:661:
    In file included from 
/Applications/SageMath/local/lib/python2.7/site-packages/sage/libs/ntl/ntlwrap.h:5:
    In file included from /Applications/SageMath/local/include/NTL/ZZ.h:19:
    /Applications/SageMath/local/include/NTL/tools.h:1026:11: error: cannot 
combine with previous 'type-name' declaration specifier
    constexpr bool Relocate_aux_has_trivial_copy(T*)
              ^
    /Applications/SageMath/local/include/NTL/tools.h:1034:1: error: unknown 
type name 'constexpr'; did you mean 'context'?
    constexpr bool Relocate_aux_has_any_copy(T*)
    ^~~~~~~~~
    context
    /Applications/SageMath/local/include/giac/threaded.h:90:9: note: 'context' 
declared here
      class context;
            ^
    In file included from giacpy_sage.cpp:661:
    In file included from 
/Applications/SageMath/local/lib/python2.7/site-packages/sage/libs/ntl/ntlwrap.h:5:
    In file included from /Applications/SageMath/local/include/NTL/ZZ.h:19:
    /Applications/SageMath/local/include/NTL/tools.h:1034:11: error: cannot 
combine with previous 'type-name' declaration specifier
    constexpr bool Relocate_aux_has_any_copy(T*)
              ^
    /Applications/SageMath/local/include/NTL/tools.h:1102:1: error: unknown 
type name 'constexpr'; did you mean 'context'?
    constexpr bool DeclareRelocatableType(T*)
    ^~~~~~~~~
    context
    /Applications/SageMath/local/include/giac/threaded.h:90:9: note: 'context' 
declared here
      class context;
            ^
    In file included from giacpy_sage.cpp:661:
    In file included from 
/Applications/SageMath/local/lib/python2.7/site-packages/sage/libs/ntl/ntlwrap.h:5:
    In file included from /Applications/SageMath/local/include/NTL/ZZ.h:19:
    /Applications/SageMath/local/include/NTL/tools.h:1102:11: error: cannot 
combine with previous 'type-name' declaration specifier
    constexpr bool DeclareRelocatableType(T*)
              ^
    In file included from giacpy_sage.cpp:661:
    In file included from 
/Applications/SageMath/local/lib/python2.7/site-packages/sage/libs/ntl/ntlwrap.h:5:
    In file included from /Applications/SageMath/local/include/NTL/ZZ.h:20:
    /Applications/SageMath/local/include/NTL/vector.h:211:11: error: unknown 
type name 'constexpr'; did you mean 'context'?
       static constexpr bool relocatable = DeclareRelocatableType((T*)0);
              ^~~~~~~~~
              context
    /Applications/SageMath/local/include/giac/threaded.h:90:9: note: 'context' 
declared here
      class context;
            ^
    In file included from giacpy_sage.cpp:661:
    In file included from 
/Applications/SageMath/local/lib/python2.7/site-packages/sage/libs/ntl/ntlwrap.h:5:
    In file included from /Applications/SageMath/local/include/NTL/ZZ.h:20:
    /Applications/SageMath/local/include/NTL/vector.h:211:21: error: cannot 
combine with previous 'type-name' declaration specifier
       static constexpr bool relocatable = DeclareRelocatableType((T*)0);
                        ^
    /Applications/SageMath/local/include/NTL/vector.h:211:26: error: non-const 
static data member must be initialized out of line
       static constexpr bool relocatable = DeclareRelocatableType((T*)0);
                             ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /Applications/SageMath/local/include/NTL/vector.h:212:11: error: unknown 
type name 'constexpr'; did you mean 'context'?
       static constexpr bool copyable = Relocate_aux_has_any_copy((T*)0);
              ^~~~~~~~~
              context
    /Applications/SageMath/local/include/giac/threaded.h:90:9: note: 'context' 
declared here
      class context;
            ^
    In file included from giacpy_sage.cpp:661:
    In file included from 
/Applications/SageMath/local/lib/python2.7/site-packages/sage/libs/ntl/ntlwrap.h:5:
    In file included from /Applications/SageMath/local/include/NTL/ZZ.h:20:
    /Applications/SageMath/local/include/NTL/vector.h:212:21: error: cannot 
combine with previous 'type-name' declaration specifier
       static constexpr bool copyable = Relocate_aux_has_any_copy((T*)0);
                        ^
    /Applications/SageMath/local/include/NTL/vector.h:212:26: error: non-const 
static data member must be initialized out of line
       static constexpr bool copyable = Relocate_aux_has_any_copy((T*)0);
                             ^          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /Applications/SageMath/local/include/NTL/vector.h:248:11: warning: rvalue 
references are a C++11 extension [-Wc++11-extensions]
       Vec(Vec&& a)  NTL_FAKE_NOEXCEPT
              ^
    /Applications/SageMath/local/include/NTL/vector.h:248:16: error: expected 
';' at end of declaration list
       Vec(Vec&& a)  NTL_FAKE_NOEXCEPT
                   ^
                   ;
    /Applications/SageMath/local/include/NTL/vector.h:465:20: error: unknown 
type name 'constexpr'; did you mean 'context'?
    template <class T> NTL_DECLARE_RELOCATABLE((Vec<T>*))
                       ^
    /Applications/SageMath/local/include/NTL/tools.h:1125:36: note: expanded 
from macro 'NTL_DECLARE_RELOCATABLE'
    #define NTL_DECLARE_RELOCATABLE(x) NTL_DECLARE_RELOCATABLE_WHEN(x) \
                                       ^
    /Applications/SageMath/local/include/NTL/tools.h:1007:41: note: expanded 
from macro 'NTL_DECLARE_RELOCATABLE_WHEN'
    #define NTL_DECLARE_RELOCATABLE_WHEN(x) \
                                            ^
    /Applications/SageMath/local/include/giac/threaded.h:90:9: note: 'context' 
declared here
      class context;
            ^
    In file included from giacpy_sage.cpp:661:
    In file included from 
/Applications/SageMath/local/lib/python2.7/site-packages/sage/libs/ntl/ntlwrap.h:5:
    In file included from /Applications/SageMath/local/include/NTL/ZZ.h:20:
    /Applications/SageMath/local/include/NTL/vector.h:465:20: error: cannot 
combine with previous 'type-name' declaration specifier
    template <class T> NTL_DECLARE_RELOCATABLE((Vec<T>*))
                       ^
    /Applications/SageMath/local/include/NTL/tools.h:1125:36: note: expanded 
from macro 'NTL_DECLARE_RELOCATABLE'
    #define NTL_DECLARE_RELOCATABLE(x) NTL_DECLARE_RELOCATABLE_WHEN(x) \
                                       ^
    /Applications/SageMath/local/include/NTL/tools.h:1008:11: note: expanded 
from macro 'NTL_DECLARE_RELOCATABLE_WHEN'
    constexpr bool DeclareRelocatableType x
              ^
    In file included from giacpy_sage.cpp:661:
    In file included from 
/Applications/SageMath/local/lib/python2.7/site-packages/sage/libs/ntl/ntlwrap.h:5:
    In file included from /Applications/SageMath/local/include/NTL/ZZ.h:20:
    /Applications/SageMath/local/include/NTL/vector.h:465:20: error: no viable 
conversion from returned value of type 'bool' to function return type 
'giac::context'
    template <class T> NTL_DECLARE_RELOCATABLE((Vec<T>*))
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /Applications/SageMath/local/include/NTL/tools.h:1126:13: note: expanded 
from macro 'NTL_DECLARE_RELOCATABLE'
       { return true; }
                ^~~~
    /Applications/SageMath/local/include/giac/global.h:629:5: note: candidate 
constructor not viable: no known conversion from 'bool' to 'const giac::context 
&' for 1st argument
        context(const context & c);
        ^
    /Applications/SageMath/local/include/giac/global.h:632:5: note: candidate 
constructor not viable: no known conversion from 'bool' to 'const std::string 
&' (aka 'const basic_string<char, char_traits<char>, allocator<char> > &') for 
1st argument
        context(const std::string & name);
        ^
    In file included from giacpy_sage.cpp:661:
    In file included from 
/Applications/SageMath/local/lib/python2.7/site-packages/sage/libs/ntl/ntlwrap.h:5:
    In file included from /Applications/SageMath/local/include/NTL/ZZ.h:20:
    /Applications/SageMath/local/include/NTL/vector.h:838:14: error: 
out-of-line definition of 'kill' does not match any declaration in 'Vec<T>'
    void Vec<T>::kill()
                 ^~~~
    In file included from giacpy_sage.cpp:661:
    In file included from 
/Applications/SageMath/local/lib/python2.7/site-packages/sage/libs/ntl/ntlwrap.h:5:
    In file included from /Applications/SageMath/local/include/NTL/ZZ.h:21:
    /Applications/SageMath/local/include/NTL/SmartPtr.h:298:21: warning: rvalue 
references are a C++11 extension [-Wc++11-extensions]
       SmartPtr(SmartPtr&& other) noexcept : dp(other.dp), cp(other.cp)
                        ^
    /Applications/SageMath/local/include/NTL/SmartPtr.h:298:30: error: expected 
';' at end of declaration list
       SmartPtr(SmartPtr&& other) noexcept : dp(other.dp), cp(other.cp)
                                 ^
                                 ;
    /Applications/SageMath/local/include/NTL/SmartPtr.h:365:20: error: unknown 
type name 'constexpr'; did you mean 'context'?
    template <class T> NTL_DECLARE_RELOCATABLE((SmartPtr<T>*))
                       ^
    /Applications/SageMath/local/include/NTL/tools.h:1125:36: note: expanded 
from macro 'NTL_DECLARE_RELOCATABLE'
    #define NTL_DECLARE_RELOCATABLE(x) NTL_DECLARE_RELOCATABLE_WHEN(x) \
                                       ^
    /Applications/SageMath/local/include/NTL/tools.h:1007:41: note: expanded 
from macro 'NTL_DECLARE_RELOCATABLE_WHEN'
    #define NTL_DECLARE_RELOCATABLE_WHEN(x) \
                                            ^
    /Applications/SageMath/local/include/giac/threaded.h:90:9: note: 'context' 
declared here
      class context;
            ^
    fatal error: too many errors emitted, stopping now [-ferror-limit=]
    3 warnings and 20 errors generated.
    error: command 'gcc' failed with exit status 1
    Running setup.py install for giacpy-sage: finished with status 'error'
Cleaning up...
  Removing source in 
/private/var/folders/f1/dnhtvscx21sc9_bnlkbxhjmr0000gn/T/pip-req-build-axb0ZG
Removed build tracker 
'/private/var/folders/f1/dnhtvscx21sc9_bnlkbxhjmr0000gn/T/pip-req-tracker-qjDBgf'
Command "/Applications/SageMath/local/bin/python2 -u -c "import setuptools, 
tokenize;__file__='/private/var/folders/f1/dnhtvscx21sc9_bnlkbxhjmr0000gn/T/pip-req-build-axb0ZG/setup.py';f=getattr(tokenize,
 'open', open)(__file__);code=f.read().replace('\r\n', 
'\n');f.close();exec(compile(code, __file__, 'exec'))" --no-user-cfg install 
--record 
/private/var/folders/f1/dnhtvscx21sc9_bnlkbxhjmr0000gn/T/pip-record-KcLhq2/install-record.txt
 --single-version-externally-managed --root 
/Applications/SageMath/local/var/tmp/sage/build/giacpy_sage-0.6.7/inst 
--compile" failed with error code 1 in 
/private/var/folders/f1/dnhtvscx21sc9_bnlkbxhjmr0000gn/T/pip-req-build-axb0ZG/
Exception information:
Traceback (most recent call last):
  File 
"/Applications/SageMath/local/lib/python2.7/site-packages/pip/_internal/cli/base_command.py",
 line 143, in main
    status = self.run(options, args)
  File 
"/Applications/SageMath/local/lib/python2.7/site-packages/pip/_internal/commands/install.py",
 line 366, in run
    use_user_site=options.use_user_site,
  File 
"/Applications/SageMath/local/lib/python2.7/site-packages/pip/_internal/req/__init__.py",
 line 49, in install_given_reqs
    **kwargs
  File 
"/Applications/SageMath/local/lib/python2.7/site-packages/pip/_internal/req/req_install.py",
 line 791, in install
    spinner=spinner,
  File 
"/Applications/SageMath/local/lib/python2.7/site-packages/pip/_internal/utils/misc.py",
 line 705, in call_subprocess
    % (command_desc, proc.returncode, cwd))
InstallationError: Command "/Applications/SageMath/local/bin/python2 -u -c 
"import setuptools, 
tokenize;__file__='/private/var/folders/f1/dnhtvscx21sc9_bnlkbxhjmr0000gn/T/pip-req-build-axb0ZG/setup.py';f=getattr(tokenize,
 'open', open)(__file__);code=f.read().replace('\r\n', 
'\n');f.close();exec(compile(code, __file__, 'exec'))" --no-user-cfg install 
--record 
/private/var/folders/f1/dnhtvscx21sc9_bnlkbxhjmr0000gn/T/pip-record-KcLhq2/install-record.txt
 --single-version-externally-managed --root 
/Applications/SageMath/local/var/tmp/sage/build/giacpy_sage-0.6.7/inst 
--compile" failed with error code 1 in 
/private/var/folders/f1/dnhtvscx21sc9_bnlkbxhjmr0000gn/T/pip-req-build-axb0ZG/
Error: installing with pip2 failed
********************************************************************************
Error installing giacpy_sage-0.6.7
********************************************************************************

real    0m20.426s
user    0m16.143s
sys     0m3.752s
************************************************************************
Error installing package giacpy_sage-0.6.7
************************************************************************
Please email sage-devel (http://groups.google.com/group/sage-devel)
explaining the problem and including the log file
  /Applications/SageMath/logs/pkgs/giacpy_sage-0.6.7.log
Describe your computer, operating system, etc.
If you want to try to fix the problem yourself, *don't* just cd to
/Applications/SageMath/local/var/tmp/sage/build/giacpy_sage-0.6.7 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/SageMath/local/var/tmp/sage/build/giacpy_sage-0.6.7' && 
'/Applications/SageMath/sage' --sh)
When you are done debugging, you can type "exit" to leave the subshell.
************************************************************************

Reply via email to