Re: [sage-devel] sage -b fails on SageMathCloud

2016-12-31 Thread jonha...@gmail.com
Hi William,

Yes, I was trying to get some older code to run.  Removing that line fixes 
the build problem.  So GMP is now available without additional includes? 
 That's great!  

Thanks,
-Jon

On Saturday, December 31, 2016 at 1:09:41 PM UTC-5, William wrote:
>
> The error you get is 
>
>Internal compiler error: '../ext/gmp.pxi' not found 
>
> There is no gmp.pxi in your tree: 
>
> ~/SAGE_INSTALL__2016-12-21/sage-7.4$ find . |grep gmp.pxi 
> ~/SAGE_INSTALL__2016-12-21/sage-7.4$ 
>
> In fact gmp.pxi was removed from sage years ago, evidently: 
>
> https://trac.sagemath.org/ticket/10103 
>
> Maybe you merged in some ancient bitrotted code that assumes that 
> gmp.pxi exists still?  Yep: 
>
> ~/SAGE_INSTALL__2016-12-21/sage-7.4$ git status 
> On branch develop 
> Your branch is up-to-date with 'origin/develop'. 
> Changes not staged for commit: 
>   (use "git add ..." to update what will be committed) 
>   (use "git checkout -- ..." to discard changes in working 
> directory) 
>
> modified:   src/sage/quadratic_forms/all.py 
>
> Untracked files: 
>   (use "git add ..." to include in what will be committed) 
>
> src/sage/quadratic_forms/table_hanke.py 
> src/sage/quadratic_forms/table_hanke.pyx 
> src/sage/quadratic_forms/ternary_table.pyx 
>
> On Sat, Dec 31, 2016 at 9:20 AM, jonh...@gmail.com  <
> jonh...@gmail.com > wrote: 
> > Hi, 
> > 
> > I'm trying to rebuild sage with the 'sage -b' command as described here 
> and 
> > get the error below.  Are there some additional shell variables that 
> need to 
> > be set for this to work?  I'm using sage 7.4 build from source on 
> > SageMathCloud. 
> > 
> > Thanks and Happy New Year! 
> > -Jon 
> > 
> >  
> > 
> > ~/SAGE_INSTALL__2016-12-21/sage-7.4$ ./sage -b 
> > (cd . 
> > \ 
> >  && export SAGE_ROOT=/doesnotexist 
> > \ 
> >SAGE_SRC=/doesnotexist 
> > \ 
> >SAGE_SRC_ROOT=/doesnotexist 
> > \ 
> >SAGE_DOC_SRC=/doesnotexist 
> > \ 
> >SAGE_SCRIPTS_DIR=/doesnotexist 
> > \ 
> >SAGE_BUILD_DIR=/doesnotexist 
> > \ 
> > 
> > 
> SAGE_PKGS=/projects/792d5859-fa0c-4251-93ec-a9cd4c700e1d/SAGE_INSTALL__2016-12-21/sage-7.4/build/pkgs
>  
>
> > \ 
> > 
> > 
> SAGE_CYTHONIZED=/projects/792d5859-fa0c-4251-93ec-a9cd4c700e1d/SAGE_INSTALL__2016-12-21/sage-7.4/src/build/cythonized
>  
>
> > \ 
> >  && python -u setup.py build install) 
> > You are using pip version 8.1.2, however version 9.0.1 is available. 
> > You should consider upgrading via the 'pip install --upgrade pip' 
> command. 
> > make[1]: Entering directory 
> > 
> '/projects/792d5859-fa0c-4251-93ec-a9cd4c700e1d/SAGE_INSTALL__2016-12-21/sage-7.4/src'
>  
>
> > make[1]: Nothing to be done for 'all'. 
> > make[1]: Leaving directory 
> > 
> '/projects/792d5859-fa0c-4251-93ec-a9cd4c700e1d/SAGE_INSTALL__2016-12-21/sage-7.4/src'
>  
>
> > Updating Cython code 
> > Enabling Cython debugging support 
> >  
> > Traceback (most recent call last): 
> >   File "setup.py", line 620, in  
> > run_cythonize() 
> >   File "setup.py", line 612, in run_cythonize 
> > 'profile': profile, 
> >   File 
> > 
> "/projects/792d5859-fa0c-4251-93ec-a9cd4c700e1d/SAGE_INSTALL__2016-12-21/sage-7.4/local/lib/python2.7/site-packages/Cython/Build/D
>  
>
> > ependencies.py", line 799, in cythonize 
> > aliases=aliases) 
> >   File 
> > 
> "/projects/792d5859-fa0c-4251-93ec-a9cd4c700e1d/SAGE_INSTALL__2016-12-21/sage-7.4/local/lib/python2.7/site-packages/Cython/Build/D
>  
>
> > ependencies.py", line 704, in create_extension_list 
> > kwds = deps.distutils_info(file, aliases, base).values 
> >   File 
> > 
> "/projects/792d5859-fa0c-4251-93ec-a9cd4c700e1d/SAGE_INSTALL__2016-12-21/sage-7.4/local/lib/python2.7/site-packages/Cython/Build/D
>  
>
> > ependencies.py", line 586, in distutils_info 
> > return (self.transitive_merge(filename, self.distutils_info0, 
> > DistutilsInfo.merge) 
> >   File 
> > 
> "/projects/792d5859-fa0c-4251-93ec-a9cd4c700e1d/SAGE_INSTALL__2016-12-21/sage-7.4/local/lib/python2.7/site-packages/Cython/Build/D
>  
>
> > ependencies.py", line 596, in transitive_merge 
> > node, extract, merge, seen, {}, self.cimported_files)[0] 
> >   File 
> > 
> "/projects/792d5859-fa0c-4251-93ec-a9cd4c700e1d/SAGE_INSTALL__2016-12-21/sage-7.4/local/lib/python2.7/site-packages/Cython/Build/D
>  
>
> > ependencies.py", line 601, in transitive_merge_helper 
> > deps = extract(node) 
> >   File 
> > 
> "/projects/792d5859-fa0c-4251-93ec-a9cd4c700e1d/SAGE_INSTALL__2016-12-21/sage-7.4/local/lib/python2.7/site-packages/Cython/Build/D
>  
>
> > ependencies.py", line 577, in distutils_info0 
> > externs = self.cimports_and_externs(filename)[1] 
> >   File 
> > 
> "/projects/792d5859-fa0c-4251-93ec-a9cd4c700e1d/SAGE_INSTALL__2016-12-21/sage-7.4/local/lib/python2.7/site-packages/Cython/Utils.p
>  
>
> > y", line 44, in wrapper 
> > 

Re: [sage-devel] sage -b fails on SageMathCloud

2016-12-31 Thread William Stein
The error you get is

   Internal compiler error: '../ext/gmp.pxi' not found

There is no gmp.pxi in your tree:

~/SAGE_INSTALL__2016-12-21/sage-7.4$ find . |grep gmp.pxi
~/SAGE_INSTALL__2016-12-21/sage-7.4$

In fact gmp.pxi was removed from sage years ago, evidently:

https://trac.sagemath.org/ticket/10103

Maybe you merged in some ancient bitrotted code that assumes that
gmp.pxi exists still?  Yep:

~/SAGE_INSTALL__2016-12-21/sage-7.4$ git status
On branch develop
Your branch is up-to-date with 'origin/develop'.
Changes not staged for commit:
  (use "git add ..." to update what will be committed)
  (use "git checkout -- ..." to discard changes in working directory)

modified:   src/sage/quadratic_forms/all.py

Untracked files:
  (use "git add ..." to include in what will be committed)

src/sage/quadratic_forms/table_hanke.py
src/sage/quadratic_forms/table_hanke.pyx
src/sage/quadratic_forms/ternary_table.pyx

On Sat, Dec 31, 2016 at 9:20 AM, jonha...@gmail.com  wrote:
> Hi,
>
> I'm trying to rebuild sage with the 'sage -b' command as described here and
> get the error below.  Are there some additional shell variables that need to
> be set for this to work?  I'm using sage 7.4 build from source on
> SageMathCloud.
>
> Thanks and Happy New Year!
> -Jon
>
> 
>
> ~/SAGE_INSTALL__2016-12-21/sage-7.4$ ./sage -b
> (cd .
> \
>  && export SAGE_ROOT=/doesnotexist
> \
>SAGE_SRC=/doesnotexist
> \
>SAGE_SRC_ROOT=/doesnotexist
> \
>SAGE_DOC_SRC=/doesnotexist
> \
>SAGE_SCRIPTS_DIR=/doesnotexist
> \
>SAGE_BUILD_DIR=/doesnotexist
> \
>
> SAGE_PKGS=/projects/792d5859-fa0c-4251-93ec-a9cd4c700e1d/SAGE_INSTALL__2016-12-21/sage-7.4/build/pkgs
> \
>
> SAGE_CYTHONIZED=/projects/792d5859-fa0c-4251-93ec-a9cd4c700e1d/SAGE_INSTALL__2016-12-21/sage-7.4/src/build/cythonized
> \
>  && python -u setup.py build install)
> You are using pip version 8.1.2, however version 9.0.1 is available.
> You should consider upgrading via the 'pip install --upgrade pip' command.
> make[1]: Entering directory
> '/projects/792d5859-fa0c-4251-93ec-a9cd4c700e1d/SAGE_INSTALL__2016-12-21/sage-7.4/src'
> make[1]: Nothing to be done for 'all'.
> make[1]: Leaving directory
> '/projects/792d5859-fa0c-4251-93ec-a9cd4c700e1d/SAGE_INSTALL__2016-12-21/sage-7.4/src'
> Updating Cython code
> Enabling Cython debugging support
> 
> Traceback (most recent call last):
>   File "setup.py", line 620, in 
> run_cythonize()
>   File "setup.py", line 612, in run_cythonize
> 'profile': profile,
>   File
> "/projects/792d5859-fa0c-4251-93ec-a9cd4c700e1d/SAGE_INSTALL__2016-12-21/sage-7.4/local/lib/python2.7/site-packages/Cython/Build/D
> ependencies.py", line 799, in cythonize
> aliases=aliases)
>   File
> "/projects/792d5859-fa0c-4251-93ec-a9cd4c700e1d/SAGE_INSTALL__2016-12-21/sage-7.4/local/lib/python2.7/site-packages/Cython/Build/D
> ependencies.py", line 704, in create_extension_list
> kwds = deps.distutils_info(file, aliases, base).values
>   File
> "/projects/792d5859-fa0c-4251-93ec-a9cd4c700e1d/SAGE_INSTALL__2016-12-21/sage-7.4/local/lib/python2.7/site-packages/Cython/Build/D
> ependencies.py", line 586, in distutils_info
> return (self.transitive_merge(filename, self.distutils_info0,
> DistutilsInfo.merge)
>   File
> "/projects/792d5859-fa0c-4251-93ec-a9cd4c700e1d/SAGE_INSTALL__2016-12-21/sage-7.4/local/lib/python2.7/site-packages/Cython/Build/D
> ependencies.py", line 596, in transitive_merge
> node, extract, merge, seen, {}, self.cimported_files)[0]
>   File
> "/projects/792d5859-fa0c-4251-93ec-a9cd4c700e1d/SAGE_INSTALL__2016-12-21/sage-7.4/local/lib/python2.7/site-packages/Cython/Build/D
> ependencies.py", line 601, in transitive_merge_helper
> deps = extract(node)
>   File
> "/projects/792d5859-fa0c-4251-93ec-a9cd4c700e1d/SAGE_INSTALL__2016-12-21/sage-7.4/local/lib/python2.7/site-packages/Cython/Build/D
> ependencies.py", line 577, in distutils_info0
> externs = self.cimports_and_externs(filename)[1]
>   File
> "/projects/792d5859-fa0c-4251-93ec-a9cd4c700e1d/SAGE_INSTALL__2016-12-21/sage-7.4/local/lib/python2.7/site-packages/Cython/Utils.p
> y", line 44, in wrapper
> res = cache[args] = f(self, *args)
>   File
> "/projects/792d5859-fa0c-4251-93ec-a9cd4c700e1d/SAGE_INSTALL__2016-12-21/sage-7.4/local/lib/python2.7/site-packages/Cython/Build/D
> ependencies.py", line 487, in cimports_and_externs
> for include in self.included_files(filename):
>   File
> "/projects/792d5859-fa0c-4251-93ec-a9cd4c700e1d/SAGE_INSTALL__2016-12-21/sage-7.4/local/lib/python2.7/site-packages/Cython/Utils.p
> y", line 44, in wrapper
> res = cache[args] = f(self, *args)
>   File
> "/projects/792d5859-fa0c-4251-93ec-a9cd4c700e1d/SAGE_INSTALL__2016-12-21/sage-7.4/local/lib/python2.7/site-packages/Cython/Build/D
> ependencies.py", line 470, in 

[sage-devel] sage -b fails on SageMathCloud

2016-12-31 Thread jonha...@gmail.com
Hi,

I'm trying to rebuild sage with the 'sage -b' command as described here 
 and get 
the error below.  Are there some additional shell variables that need to be 
set for this to work?  I'm using sage 7.4 build from source on 
SageMathCloud. 

Thanks and Happy New Year!
-Jon



~/SAGE_INSTALL__2016-12-21/sage-7.4$ ./sage -b
(cd .   
\
 && export SAGE_ROOT=/doesnotexist  
\
   SAGE_SRC=/doesnotexist   
\
   SAGE_SRC_ROOT=/doesnotexist  
\
   SAGE_DOC_SRC=/doesnotexist   
\
   SAGE_SCRIPTS_DIR=/doesnotexist   
\
   SAGE_BUILD_DIR=/doesnotexist 
\
   
SAGE_PKGS=/projects/792d5859-fa0c-4251-93ec-a9cd4c700e1d/SAGE_INSTALL__2016-12-21/sage-7.4/build/pkgs
\
   
SAGE_CYTHONIZED=/projects/792d5859-fa0c-4251-93ec-a9cd4c700e1d/SAGE_INSTALL__2016-12-21/sage-7.4/src/build/cythonized
\
 && python -u setup.py build install)
You are using pip version 8.1.2, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
make[1]: Entering directory 
'/projects/792d5859-fa0c-4251-93ec-a9cd4c700e1d/SAGE_INSTALL__2016-12-21/sage-7.4/src'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory 
'/projects/792d5859-fa0c-4251-93ec-a9cd4c700e1d/SAGE_INSTALL__2016-12-21/sage-7.4/src'
Updating Cython code
Enabling Cython debugging support

Traceback (most recent call last):
  File "setup.py", line 620, in 
run_cythonize()
  File "setup.py", line 612, in run_cythonize
'profile': profile,
  File 
"/projects/792d5859-fa0c-4251-93ec-a9cd4c700e1d/SAGE_INSTALL__2016-12-21/sage-7.4/local/lib/python2.7/site-packages/Cython/Build/D
ependencies.py", line 799, in cythonize
aliases=aliases)
  File 
"/projects/792d5859-fa0c-4251-93ec-a9cd4c700e1d/SAGE_INSTALL__2016-12-21/sage-7.4/local/lib/python2.7/site-packages/Cython/Build/D
ependencies.py", line 704, in create_extension_list
kwds = deps.distutils_info(file, aliases, base).values
  File 
"/projects/792d5859-fa0c-4251-93ec-a9cd4c700e1d/SAGE_INSTALL__2016-12-21/sage-7.4/local/lib/python2.7/site-packages/Cython/Build/D
ependencies.py", line 586, in distutils_info
return (self.transitive_merge(filename, self.distutils_info0, 
DistutilsInfo.merge)
  File 
"/projects/792d5859-fa0c-4251-93ec-a9cd4c700e1d/SAGE_INSTALL__2016-12-21/sage-7.4/local/lib/python2.7/site-packages/Cython/Build/D
ependencies.py", line 596, in transitive_merge
node, extract, merge, seen, {}, self.cimported_files)[0]
  File 
"/projects/792d5859-fa0c-4251-93ec-a9cd4c700e1d/SAGE_INSTALL__2016-12-21/sage-7.4/local/lib/python2.7/site-packages/Cython/Build/D
ependencies.py", line 601, in transitive_merge_helper
deps = extract(node)
  File 
"/projects/792d5859-fa0c-4251-93ec-a9cd4c700e1d/SAGE_INSTALL__2016-12-21/sage-7.4/local/lib/python2.7/site-packages/Cython/Build/D
ependencies.py", line 577, in distutils_info0
externs = self.cimports_and_externs(filename)[1]
  File 
"/projects/792d5859-fa0c-4251-93ec-a9cd4c700e1d/SAGE_INSTALL__2016-12-21/sage-7.4/local/lib/python2.7/site-packages/Cython/Utils.p
y", line 44, in wrapper
res = cache[args] = f(self, *args)
  File 
"/projects/792d5859-fa0c-4251-93ec-a9cd4c700e1d/SAGE_INSTALL__2016-12-21/sage-7.4/local/lib/python2.7/site-packages/Cython/Build/D
ependencies.py", line 487, in cimports_and_externs
for include in self.included_files(filename):
  File 
"/projects/792d5859-fa0c-4251-93ec-a9cd4c700e1d/SAGE_INSTALL__2016-12-21/sage-7.4/local/lib/python2.7/site-packages/Cython/Utils.p
y", line 44, in wrapper
res = cache[args] = f(self, *args)
  File 
"/projects/792d5859-fa0c-4251-93ec-a9cd4c700e1d/SAGE_INSTALL__2016-12-21/sage-7.4/local/lib/python2.7/site-packages/Cython/Build/D
ependencies.py", line 470, in included_files
include_path = self.context.find_include_file(include, None)
  File 
"/projects/792d5859-fa0c-4251-93ec-a9cd4c700e1d/SAGE_INSTALL__2016-12-21/sage-7.4/local/lib/python2.7/site-packages/Cython/Compile
r/Main.py", line 274, in find_include_file
error(pos, "'%s' not found" % filename)
  File 
"/projects/792d5859-fa0c-4251-93ec-a9cd4c700e1d/SAGE_INSTALL__2016-12-21/sage-7.4/local/lib/python2.7/site-packages/Cython/Compile
r/Errors.py", line 177, in error
raise InternalError(message)
InternalError: Internal compiler error: '../ext/gmp.pxi' not found

Error building the Sage library