ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Wed, 10 May 2017 14:54:08 +0200Where is the source code ?https://ask.sagemath.org/question/37561/where-is-the-source-code/ Hello all,
I am using SageMath-7.5.1 on a Linux platform. Sometimes I am interested in the source code for studying implementation details. When asking for documentation or source code, e.g.
R.<x>=GF(61)[] ; p=x^3 + x^2 + 59*x + 60 ; p?
then the documentation may contain a line like:
~/.sage/temp/WJ1/6067/spyx/sage/rings/polynomial/polynomial_zmod/sage/rings/polynomial/polynomial_zmod_flint.pyx
But directory "~/.sage/temp/WJ1/6067" is empty! Neither does the SageMath installation directory "/usr/lib/sagemath" (recursively searched) contain a file "polynomial_zmod*.py*". So, where is the source code?
Thanks in advance wjansenWed, 10 May 2017 14:54:08 +0200https://ask.sagemath.org/question/37561/Why does source compile fail on archlinux at gcc?https://ask.sagemath.org/question/34172/why-does-source-compile-fail-on-archlinux-at-gcc/I am attempting to compile the most recent sage source code on my Archlinux system. I have all the required packages and tools, and so I would have expected that `make` would simply do its bit.
But it fails on the compile of gcc. I've included below the last few lines of my gcc log file. What is going wrong here, and how do I fix it?
Makefile:1058: recipe for target 'cp/except.o' failed
make[6]: *** [cp/except.o] Error 1
make[6]: Leaving directory '/opt/sage-7.2/local/var/tmp/sage/build/gcc-4.9.3.p1/gcc-build/gcc'
Makefile:4222: recipe for target 'all-stage1-gcc' failed
make[5]: *** [all-stage1-gcc] Error 2
make[5]: Leaving directory '/opt/sage-7.2/local/var/tmp/sage/build/gcc-4.9.3.p1/gcc-build'
Makefile:18866: recipe for target 'stage1-bubble' failed
make[4]: *** [stage1-bubble] Error 2
make[4]: Leaving directory '/opt/sage-7.2/local/var/tmp/sage/build/gcc-4.9.3.p1/gcc-build'
Makefile:889: recipe for target 'all' failed
make[3]: *** [all] Error 2
make[3]: Leaving directory '/opt/sage-7.2/local/var/tmp/sage/build/gcc-4.9.3.p1/gcc-build'
real 5m46.259s
user 4m57.797s
sys 0m23.407s
************************************************************************
Error installing package gcc-4.9.3.p1
************************************************************************
Please email sage-devel (http://groups.google.com/group/sage-devel)
explaining the problem and including the relevant part of the log file
/opt/sage-7.2/logs/pkgs/gcc-4.9.3.p1.log
Describe your computer, operating system, etc.
If you want to try to fix the problem yourself, *don't* just cd to
/opt/sage-7.2/local/var/tmp/sage/build/gcc-4.9.3.p1 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 '/opt/sage-7.2/local/var/tmp/sage/build/gcc-4.9.3.p1' && '/opt/sage-7.2/sage' --sh)
When you are done debugging, you can type "exit" to leave the subshell.
************************************************************************
AlasdairThu, 21 Jul 2016 13:01:46 +0200https://ask.sagemath.org/question/34172/