On Mon, Jun 14, 2010 at 5:12 PM, Bill Hart <goodwillh...@googlemail.com> wrote:
> Just a note: the standard gcc with Debian Lenny is gcc 4.3.2. This is
> so buggy it fails to compile MPIR correctly. And yes, we've checked
> that it is a gcc bug and it has been reported.

Is there a workaround?  E.g., using -O0 or something?  Just curious,
in case this comes up, since you've clearly thought about this more
than me.

William

>
> It is fixed in a later gcc. But that means all Debian Lenny users will
> not be able to get correct results until they upgrade their gcc.
>
> I think this is unprecedented, in that whilst standard system
> libraries distributed with a distro have had bugs before, this is the
> first gcc used as standard in a distro whose bugs are severe. It's a
> general rule that x.y.0 is buggy, but it is unusual for an x.y.2 to be
> so bad.
>
> Bill.
>
> On Jun 14, 11:49 am, "Dr. David Kirkby" <david.kir...@onetel.net>
> wrote:
>> The recent thread:
>>
>> "Error building Sage 4.4.3 under vanilla Debian lenny amd64: Error while
>> installing flint"
>>
>> http://groups.google.com/group/sage-devel/browse_thread/thread/54531b...
>>
>> is an example of where someone had a broken installation of Debian (different
>> versions of gcc and g++), so got an error from the 'prereq' script, which I
>> altered some time ago to detect different versions and exit.
>>
>> The poster then went on to try to get CC and/or CXX in order that he got the
>> same (older) versions of both.
>>
>> Such a plan will never work in Sage, as numerous bits of code make direct 
>> calls
>> to "gcc" or "g++" and ignore the environment variables. So any attempt to do
>> this results on C compiler being used to build one bit of Sage, and another 
>> to
>> build another bit of Sage. That seems a recipe for disaster.
>>
>> Hence I'd propose that any attempt to set CC, CXX, FC, or F77 caused the 
>> build
>> to exit with a warning. Then allow an environment variable like
>>
>> SAGE_ALLOW_SETTING_OF_COMPILERS
>>
>> (better name?)
>>
>> that will allow someone to do this, if they really want to.
>>
>> Not letting people set CC or similar seems a bit dumb, as it is very useful 
>> for
>> some sort of debugging, or porting to Sun Studio. But it is pretty dangerous 
>> for
>> a typical user to do, as it will never work as they would expect.
>>
>> The same is true really of CP, CHMOD and several other variables. They work 
>> in
>> some parts of Sage, and not in others.
>>
>> Dave
>
> --
> 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
>



-- 
William Stein
Professor of Mathematics
University of Washington
http://wstein.org

-- 
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