Re: [sage-devel] multi-arch Linux setup breaks doctests

2021-04-16 Thread François Bissey
Mainly https://trac.sagemath.org/ticket/31578 but really
https://github.com/sagemath/sage/blob/develop/src/sage/misc/cython.py#L56
had the potential to leak that kind of stuff forever.

> On 16/04/2021, at 21:58, Dima Pasechnik  wrote:
> 
> Since a while I see on Gentoo (with the profile
> "default/linux/amd64/17.1/desktop") many doctest errors of the kind
> 
> File "src/sage/misc/sageinspect.py", line 2251, in
> sage.misc.sageinspect.sage_getsourcelines
> Failed example:
>cython('''cpdef test_funct(x,y): return''')
> Expected nothing
> Got:
>
> /usr/lib/gcc/x86_64-pc-linux-gnu/8.3.1/../../../../x86_64-pc-linux-gnu/bin/ld:
> skipping incompatible ///usr/lib/libm.so when searching for -lm
>
> /usr/lib/gcc/x86_64-pc-linux-gnu/8.3.1/../../../../x86_64-pc-linux-gnu/bin/ld:
> skipping incompatible ///usr/lib/libm.a when searching for -lm
>
> /usr/lib/gcc/x86_64-pc-linux-gnu/8.3.1/../../../../x86_64-pc-linux-gnu/bin/ld:
> skipping incompatible ///usr/lib/libpthread.so when searching for
> -lpthread
>
> /usr/lib/gcc/x86_64-pc-linux-gnu/8.3.1/../../../../x86_64-pc-linux-gnu/bin/ld:
> skipping incompatible ///usr/lib/libpthread.a when searching for
> -lpthread
>
> /usr/lib/gcc/x86_64-pc-linux-gnu/8.3.1/../../../../x86_64-pc-linux-gnu/bin/ld:
> skipping incompatible ///usr/lib/libc.so when searching for -lc
>
> /usr/lib/gcc/x86_64-pc-linux-gnu/8.3.1/../../../../x86_64-pc-linux-gnu/bin/ld:
> skipping incompatible ///usr/lib/libc.a when searching for -lc
> 
> all these incompatible libs are 32-bit libs (on a 64-bit system). Is
> it a Sage (cython?)  bug/feature, or is there something else that can
> be done, short of removing all the traces of 32-bit libs from the box?
> 
> Thanks
> Dima
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to sage-devel+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sage-devel/CAAWYfq2p3J8G3Ss39G45QkhKtnO37tav7EBmkEGXf%3DkD2LaGhA%40mail.gmail.com.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/449998CE-909B-4476-84A4-C32BDAB50CEE%40gmail.com.


[sage-devel] multi-arch Linux setup breaks doctests

2021-04-16 Thread Dima Pasechnik
Since a while I see on Gentoo (with the profile
"default/linux/amd64/17.1/desktop") many doctest errors of the kind

File "src/sage/misc/sageinspect.py", line 2251, in
sage.misc.sageinspect.sage_getsourcelines
Failed example:
cython('''cpdef test_funct(x,y): return''')
Expected nothing
Got:

/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.1/../../../../x86_64-pc-linux-gnu/bin/ld:
skipping incompatible ///usr/lib/libm.so when searching for -lm

/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.1/../../../../x86_64-pc-linux-gnu/bin/ld:
skipping incompatible ///usr/lib/libm.a when searching for -lm

/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.1/../../../../x86_64-pc-linux-gnu/bin/ld:
skipping incompatible ///usr/lib/libpthread.so when searching for
-lpthread

/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.1/../../../../x86_64-pc-linux-gnu/bin/ld:
skipping incompatible ///usr/lib/libpthread.a when searching for
-lpthread

/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.1/../../../../x86_64-pc-linux-gnu/bin/ld:
skipping incompatible ///usr/lib/libc.so when searching for -lc

/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.1/../../../../x86_64-pc-linux-gnu/bin/ld:
skipping incompatible ///usr/lib/libc.a when searching for -lc

all these incompatible libs are 32-bit libs (on a 64-bit system). Is
it a Sage (cython?)  bug/feature, or is there something else that can
be done, short of removing all the traces of 32-bit libs from the box?

Thanks
Dima

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/CAAWYfq2p3J8G3Ss39G45QkhKtnO37tav7EBmkEGXf%3DkD2LaGhA%40mail.gmail.com.