Hi,
is your Debian installation up to date?
It could be that an older gcc you have by default is due to this,
and if so, there is no telling as to what goes wrong.

Just in case you wonder what I mean, you ought to run
aptitude update
and then
aptitude safe-upgrade

and see if there are no "held back" packages left...

Best,
Dima

On 12 June, 23:30, orca <mocal...@gmail.com> wrote:
> Dear Sirs,
>
> I have a palin vanilla Debian lenny amd64 machine, which I use for
> quite some time now; I am reasonably conversant (but not much) with
> some installation commands for programs in general.
>
> I have just tried to compile Sage 4.4.3 from source under that
> machine. I had to circumvent some "small" issues:
>
> 1) I had to change the make command to
>
> make CC=gcc-4.2 FC=gfortran-4.2
>
> since the default vanilla C compiler, gcc, is version 4.3.2 and the
> default vanilla Fortran compiler, gfortran,  is version 4.3.2 as well,
> whereas the default vanilla C++ compiler, g++, is version 4.2.4. So I
> had to install these "downgraded" versions, which were available from
> the official Debian lenny repos, without any ado...
>
> 2) after issuing the above command, under the extracted Sage root
> directory, the following error shows up, after some minutes:
>
> .........
>
> flint-1.5.0.p4/.hgtags
> Finished extraction
> ****************************************************
> Host system
> uname -a:
> Linux andromeda 2.6.24-1-amd64 #1 SMP Sat May 10 09:28:10 UTC 2008
> x86_64 GNU/Linux
> ****************************************************
> ****************************************************
> CC Version
> gcc-4.2 -v
> Using built-in specs.
> Target: x86_64-linux-gnu
> Configured with: ../src/configure -v --enable-languages=c,c+
> +,fortran,objc,obj-c++ --prefix=/usr --enable-shared --with-system-
> zlib --libexecdir=/usr/lib --without-included-gettext --enable-
> threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.2
> --program-suffix=-4.2 --enable-clocale=gnu --enable-libstdcxx-debug --
> enable-objc-gc --enable-mpfr --with-tune=generic --enable-
> checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --
> target=x86_64-linux-gnu
> Thread model: posix
> gcc version 4.2.4 (Debian 4.2.4-6)
> ****************************************************
> 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.082s
> user    0m0.072s
> sys     0m0.008s
> sage: An error occurred while installing flint-1.5.0.p4
> Please email sage-develhttp://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    0m1.035s
> user    0m0.644s
> sys     0m0.080s
> 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
>
> Could you provide any help??
>
> Thanks in advance!

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to