I installed an Ubuntu Karmic virtual machine to see how Sage compiles
there...and right now, it doesn't.

I've tried on a 64-bit and 32-bit VM, with between 768 and about 1250 MB
of RAM allocated to the VM, and it consistently fails while compiling
base3.c from pari (src/basemath/base3.c).

When it gets to base3, the compiler gradually uses up more and more
memory, until it either gets killed by the kernel OOM stuff, or dies
with "gcc: Internal error: Killed (program cc1)".

This is with 4.1.2.alpha1, but the same behavior occurred with 4.1.1. In
Karmic, the compiler is:

$ gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu
4.4.1-3ubuntu3' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr
--enable-shared --enable-multiarch --enable-linker-build-id
--with-system-zlib --libexecdir=/usr/lib --without-included-gettext
--enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4
--program-suffix=-4.4 --enable-nls --enable-clocale=gnu
--enable-libstdcxx-debug --enable-mpfr --enable-objc-gc
--enable-targets=all --disable-werror --with-arch-32=i486
--with-tune=generic --enable-checking=release --build=i486-linux-gnu
--host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.4.1 (Ubuntu 4.4.1-3ubuntu3)

On a current Ubuntu Hardy system (like sage.math, but a 32-bit VM with
768 MB RAM) the compiler goes through base3.c with no trouble.

Can anyone else confirm (or perhaps even fix) this?

Dan

-- 
---  Dan Drake
-----  http://mathsci.kaist.ac.kr/~drake
-------

Attachment: signature.asc
Description: Digital signature

Reply via email to