Sorry Marik and Bradshaw, but I use Debian for some five years now and
I just have a plain vanilla Debian lenny (current stable) and the
NORMAL gcc, g++ and gfortran, as I have suggested in my first post in
this thread, and as I state categorically now, sure do not all match:
the stock lenny gcc is 4.3.2, g++ is 4.2.4, and gfortran is 4.3.2. I
have now installed both versions 4.2 and 4.3 from the official Debian
lenny repositories for all three mentioned compilers. I have now tried
the following make command in order to drive the building with the
matched 4.2 versions of all these compilers:
make CC=gcc-4.2 FC=gfortran-4.2
The following error is now issued:
Found gcc 4 or later
make[2]: Entering directory `/home/orca/sage/sage-4.4.3/spkg/build/
flint-1.5.0.p4/src'
gcc-4.2 -I/home/orca/sage/sage-4.4.3/local/include/ -I/home/orca/sage/
sage-4.4.3/local/include -fPIC -funroll-loops -O2 -DNDEBUG -o
zn_mod.o -c zn_poly/src/zn_mod.c
In file included from zn_poly/src/zn_poly_internal.h:50,
from zn_poly/src/zn_mod.c:23:
zn_poly/src/../../mpn_extras.h: In function ‘F_mpn_negate’:
zn_poly/src/../../mpn_extras.h:75: error: ‘for’ loop initial
declaration used outside C99 mode
zn_poly/src/../../mpn_extras.h: In function ‘F_mpn_copy’:
zn_poly/src/../../mpn_extras.h:96: error: ‘for’ loop initial
declaration used outside C99 mode
zn_poly/src/../../mpn_extras.h: In function ‘F_mpn_copy_forward’:
zn_poly/src/../../mpn_extras.h:104: error: ‘for’ loop initial
declaration used outside C99 mode
zn_poly/src/../../mpn_extras.h: In function ‘F_mpn_clear’:
zn_poly/src/../../mpn_extras.h:118: error: ‘for’ loop initial
declaration used outside C99 mode
zn_poly/src/../../mpn_extras.h: In function ‘F_mpn_set’:
zn_poly/src/../../mpn_extras.h:129: error: ‘for’ loop initial
declaration used outside C99 mode
zn_poly/src/../../mpn_extras.h: In function ‘F_mpn_printx’:
zn_poly/src/../../mpn_extras.h:145: error: ‘for’ loop initial
declaration used outside C99 mode
make[2]: *** [zn_mod.o] Error 1
make[2]: Leaving directory `/home/orca/sage/sage-4.4.3/spkg/build/
flint-1.5.0.p4/src'
Error building flint shared library.
real 0m0.098s
user 0m0.068s
sys 0m0.024s
sage: An error occurred while installing flint-1.5.0.p4
Please email sage-devel http://groups.google.com/group/sage-devel
explaining the problem and send the relevant part of
of /home/orca/sage/sage-4.4.3/install.log. Describe your computer,
operating system, etc.
If you want to try to fix the problem yourself, *don't* just cd to
/home/orca/sage/sage-4.4.3/spkg/build/flint-1.5.0.p4 and type 'make
check' or whatever is appropriate.
Instead, the following commands setup all environment variables
correctly and load a subshell for you to debug the error:
(cd '/home/orca/sage/sage-4.4.3/spkg/build/flint-1.5.0.p4' && '/home/
orca/sage/sage-4.4.3/sage' -sh)
When you are done debugging, you can type "exit" to leave the
subshell.
make[1]: *** [installed/flint-1.5.0.p4] Error 1
make[1]: Leaving directory `/home/orca/sage/sage-4.4.3/spkg'
real 26m35.080s
user 21m55.518s
sys 3m11.324s
Error building Sage.
./sage -docbuild all html 2>&1 | tee -a dochtml.log
python: can't open file '/home/orca/sage/sage-4.4.3/devel/sage/doc/
common/builder.py': [Errno 2] No such file or directory
I wil take the liberty to forward this error to the sage-dev list as
well...
Any other concrete directions are warmly appreciated!
On Jun 12, 1:06 pm, Robert Bradshaw <[email protected]>
wrote:
> On Jun 12, 2010, at 7:51 AM, [email protected] wrote:
>
> > Hi, I do not understand the suggestion in this thread, but Sage
> > compiles fine on Debian Lenny
>
> Yes, it does. This thread was started due to a mismatch in the gcc and
> g++ versions. If both versions are the same (which is the norm), it
> should compile from source just fine.
>
> - Robert
--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org