I'd be interested what you get if you build this program, which was 
written by one of the gcc guys to try to get to the bottom of this issue 
  with mpfr not building.

On the Sun T5240 ('t2') donated by Sun to the Sage project, it dumps core:

kir...@t2:[~] $ ./a.out
n=0
n=1
Abort (core dumped)

On my own Blade 2000 it runs like this:

drkir...@kestrel:[~] $ ./a.out
n=0
n=1
n=2
n=3
n=4
n=5
n=6
n=7
n=8
n=9
n=10

What does it do on your machine?

The Sun compiler refuses to compile it.

#include <stdio.h>
typedef __SIZE_TYPE__ size_t;
extern void *memset (void *, const void *, size_t);
extern void abort (void);
volatile size_t i = 0x80000000U, j = 0x80000000U;
char buf[16];

int main (void)
{
   int n;

   for (n=0 ; n <=10;++n) {
     printf("n=%d\n",n);
     if (sizeof (size_t) != 4)
       return 0;
     buf[n] = 6;
     memset (buf+n, 0, i + j);
     if (buf[n] != 6)
       abort ();
   }
   return 0;
}


--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send 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