[sage-devel] Re: cannot build 2.8.4 on sage.math

2007-09-08 Thread Craig Citro
Well, good news. I can tell you exactly what is causing the problem, and there are two easy ways to fix it. Here's what's going on: c_lib/ ntl_wrap.os is getting shipped with sage-2.8.4.tar, and that file was compiled with a compiler that includes the gnu stack-checking stuff (what they wer

[sage-devel] Re: cannot build 2.8.4 on sage.math

2007-09-08 Thread mabshoff
On Sep 9, 3:10 am, mabshoff <[EMAIL PROTECTED] dortmund.de> wrote: > On Sep 9, 2:40 am, "Joel B. Mohler" <[EMAIL PROTECTED]> wrote: > > > On Saturday 08 September 2007 17:49, mabshoff wrote: > > > > Executive Summary: SCons somehow gets its LD_LIBRARY_PATH or env in > > > general wrong and ends

[sage-devel] Re: cannot build 2.8.4 on sage.math

2007-09-08 Thread mabshoff
On Sep 9, 2:40 am, "Joel B. Mohler" <[EMAIL PROTECTED]> wrote: > On Saturday 08 September 2007 17:49, mabshoff wrote: > > > Executive Summary: SCons somehow gets its LD_LIBRARY_PATH or env in > > general wrong and ends up linking against the gmp 4.2.1 provided by > > Debian. Somehow the compiler

[sage-devel] Re: cannot build 2.8.4 on sage.math

2007-09-08 Thread Joel B. Mohler
On Saturday 08 September 2007 17:49, mabshoff wrote: > Executive Summary: SCons somehow gets its LD_LIBRARY_PATH or env in > general wrong and ends up linking against the gmp 4.2.1 provided by > Debian. Somehow the compiler gets it all wrong and *boom* > > How to fix: Fix SCons *ducks* - a short t

[sage-devel] Re: cannot build 2.8.4 on sage.math

2007-09-08 Thread mabshoff
Why does Sage 2.8.4 crash on sage.math? Executive Summary: SCons somehow gets its LD_LIBRARY_PATH or env in general wrong and ends up linking against the gmp 4.2.1 provided by Debian. Somehow the compiler gets it all wrong and *boom* How to fix: Fix SCons *ducks* - a short term solution seems to

[sage-devel] Re: cannot build 2.8.4 on sage.math

2007-09-08 Thread mabshoff
On Sep 8, 7:05 pm, David Harvey <[EMAIL PROTECTED]> wrote: > On Sep 8, 2007, at 1:03 PM, mabshoff wrote: > Hey David, > > Ok, I get loads of test failures on sage.math complaining about > > "__stack_chk_fail". That is gmp related. I am looking trying to use > > the old p9 gmp package and see w

[sage-devel] Re: cannot build 2.8.4 on sage.math

2007-09-08 Thread David Harvey
On Sep 8, 2007, at 1:03 PM, mabshoff wrote: > Ok, I get loads of test failures on sage.math complaining about > "__stack_chk_fail". That is gmp related. I am looking trying to use > the old p9 gmp package and see what will happen then. Great, so it's not just me then. I was really starting to g

[sage-devel] Re: cannot build 2.8.4 on sage.math

2007-09-08 Thread mabshoff
On Sep 8, 6:38 pm, Craig Citro <[EMAIL PROTECTED]> wrote: > Yeah, that doesn't sound like fun. Try the following from your sage- > main directory: cd c_lib ; rm -f libcsage.* ; scons install. You > should see scons rebuild the libcsage.so and then copy it to your > $SAGE_ROOT/local/lib ... let m

[sage-devel] Re: cannot build 2.8.4 on sage.math

2007-09-08 Thread Craig Citro
Yeah, that doesn't sound like fun. Try the following from your sage- main directory: cd c_lib ; rm -f libcsage.* ; scons install. You should see scons rebuild the libcsage.so and then copy it to your $SAGE_ROOT/local/lib ... let me know if that works. If it does, we might just need to be mor

[sage-devel] Re: cannot build 2.8.4 on sage.math

2007-09-08 Thread Joel B. Mohler
On Saturday 08 September 2007 11:09, David Harvey wrote: > > I think this may be something in your ambient environment which > > scons handles > > differently than autoconf and friends. > > Is "ambient environment" a technical unix term? Is that the same as > my environment? No, sorry. I was

[sage-devel] Re: cannot build 2.8.4 on sage.math

2007-09-08 Thread mabshoff
On Sep 8, 5:23 pm, David Harvey <[EMAIL PROTECTED]> wrote: > On Sep 8, 2007, at 11:21 AM, mabshoff wrote: > > >> It's already got that line in 2.8.4. > > > I would suggest commenting it out then. It was merged because of a > > build problem on RHEL 5. > > Okay, I'll try again with that line rest

[sage-devel] Re: cannot build 2.8.4 on sage.math

2007-09-08 Thread David Harvey
On Sep 8, 2007, at 11:21 AM, mabshoff wrote: >> It's already got that line in 2.8.4. >> > > I would suggest commenting it out then. It was merged because of a > build problem on RHEL 5. Okay, I'll try again with that line restored to how it was before. > >> Has anyone else actually built sage-

[sage-devel] Re: cannot build 2.8.4 on sage.math

2007-09-08 Thread mabshoff
On Sep 8, 5:09 pm, David Harvey <[EMAIL PROTECTED]> wrote: > On Sep 8, 2007, at 11:00 AM, Joel B. Mohler wrote: > > Hello, > > > Hi David, > > > I think this may be something in your ambient environment which > > scons handles > > differently than autoconf and friends. > > Is "ambient environm

[sage-devel] Re: cannot build 2.8.4 on sage.math

2007-09-08 Thread David Harvey
On Sep 8, 2007, at 11:00 AM, Joel B. Mohler wrote: > > Hi David, > > I think this may be something in your ambient environment which > scons handles > differently than autoconf and friends. Is "ambient environment" a technical unix term? Is that the same as my environment? > You could t

[sage-devel] Re: cannot build 2.8.4 on sage.math

2007-09-08 Thread Joel B. Mohler
Hi David, I think this may be something in your ambient environment which scons handles differently than autoconf and friends. You could try replacing *** env = Environment() *** with env = Environment(ENV = os.environ) *** near the top of the c_lib/SConstruct file. SCons does not copy envir