On 29/12/12 15:02, Volker Braun wrote:
> A side effect of using a debug Python build is that Cython extensions
> are no longer compiled with -DNDEBUG. So C level assertions in headers
> are enabled. I guess this is what is happening. Sage is almost certainly
> passing something thats not allowed to linbox here.
> 
> 
> 
> 
> 
> On Saturday, December 29, 2012 12:45:50 AM UTC, Nils Bruin wrote:
> 
>     ERROR (at getWritePointer in /usr/local/sage/5.6b1/local/include/
>     linbox/matrix/permutation-matrix.h:175):
>     Precondition not met:P_.size()
>     terminate called after throwing an instance of
>     'LinBox::PreconditionFailed'
>     (SIGABRT)
> 

I can confirm that. On sage-on-gentoo the system python hasn't provided
-DNDEBUG to us for years. We had to add it manually to any modules
compiling against libsingular. Since the linbox upgrade we had to add it
for linbox as well. We tagged it to givaro as a mean to ensure that it
was with any extension built on linbox and singular:
sed -i "s:-D__STDC_LIMIT_MACROS:-D__STDC_LIMIT_MACROS', '-DNDEBUG:g" \
                module_list.py
modify the following line:
givaro_extra_compile_args =['-D__STDC_LIMIT_MACROS']
in module_list.py and every case where DNDEBUG is needed is covered exactly.

Francois

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
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.
Visit this group at http://groups.google.com/group/sage-devel?hl=en.


Reply via email to