A quick fix I used was to change OPTFLAGS=-O3 in PARI's get_cc script to
OPTFLAGS=-O1. I wrote down the specific steps here: <
http://thesweeheng.wordpress.com/2009/08/28/building-sage-4-1-1-on-fedora-11/>.
Hope that helps.

Swee Heng

On Thu, Sep 10, 2009 at 11:17 PM, William Stein <wst...@gmail.com> wrote:

>
> On Thu, Sep 10, 2009 at 12:48 AM, Dan Drake <dr...@kaist.edu> wrote:
> > 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?
>
> This is a GCC bug which has been discussed a lot on the Pari listed,
> and reported in at least three places to GCC and Ubuntu.   The only
> stated workaround at present is to build pari with -O0 instead of -O3:
>
> http://www.nabble.com/Ubuntu-9.10-and-gcc-4.4-failure-td24853751.html
>
> William
>
> William
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to