Re: [sage-devel] Confused about ARB_LIBRARY

2020-03-09 Thread Matthias Koeppe
On Monday, March 9, 2020 at 12:58:12 PM UTC-4, Dima Pasechnik wrote: > > If you source build/bin/sage-build-env-config, i.e. > > $ . build/bin/sage-build-env-config > > then on Debian > > $ ./sage -c "print(sage.env.cython_aliases()['ARB_LIBRARY'])" > flint-arb > > as it should be. > > sage

Re: [sage-devel] Confused about ARB_LIBRARY

2020-03-09 Thread Matthias Koeppe
I have created #29305: Move ARB_LIBRARY back from sage-build-env-config to sage-env-config. On Monday, March 9, 2020 at 12:58:12 PM UTC-4, Dima Pasechnik wrote: > > This appears to be a result of https://trac.sagemath.org/ticket/29052 > Indeed, the rationale, wrong or not, is that the env. var.

Re: [sage-devel] Confused about ARB_LIBRARY

2020-03-09 Thread Dima Pasechnik
This appears to be a result of https://trac.sagemath.org/ticket/29052 Indeed, the rationale, wrong or not, is that the env. var. SAGE_ARB_LIBRARY is only needed for building, not for running, Sage, and setting of this variable has been therefore moved into build/bin/sage-build-env-config(.in). If

Re: [sage-devel] Confused about ARB_LIBRARY

2020-03-09 Thread Michael Orlitzky
On 3/9/20 10:00 AM, Marc Mezzarobba wrote: > Is it expected that ARB_LIBRARY is set to 'arb' (as opposed to > 'flint-arb') on a Debian box where Sage links against the system > arb? The "success" branch of the AC_CHECK_LIB([flint-arb],... call in arb's spkg-configure.m4 looks off to me, because AC

[sage-devel] Confused about ARB_LIBRARY

2020-03-09 Thread Marc Mezzarobba
Is it expected that ARB_LIBRARY is set to 'arb' (as opposed to 'flint-arb') on a Debian box where Sage links against the system arb? The linker complains about not finding -larb when I try to build an external cython module that uses sage.rings.complex_arb. And indeed, it should have looked for -l