Re: [sage-devel] Re: Error while building

2020-03-09 Thread Ibrahim M. Akrab
Just found it. That makes it much easier. Thanks.

On Monday, March 9, 2020 at 10:17:27 PM UTC+2, Dima Pasechnik wrote:
>
> On Mon, Mar 9, 2020 at 7:49 PM Ibrahim M. Akrab 
> > wrote: 
> > 
> > I installed it and I think it no longer shows this error. However, it's 
> like we're playing cat and mouse since it keeps asking for packages and I 
> keep searching for and installing them. 
> > 
> > First, it was gfortran then r and now pynac. I think a list of required 
> packages would be great to install before building. 
>
> I've posted a topic with subject line starting from FAQ here few days 
> ago. It lists packages for Debian. 
> Not sure how different it is for Mint - one needs to try. 
>
> > 
> > Thanks for your help and time. 
> > 
> > 
> > On Mon, Mar 9, 2020, 7:35 PM Matthias Koeppe  > wrote: 
> >> 
> >> gfortran builds correctly in the current beta (9.1.beta7) on 
> linuxmint-19.3-minimal, as reproduced in 
> https://trac.sagemath.org/ticket/29304 
> >> 
> >> On Monday, March 9, 2020 at 12:36:50 PM UTC-4, Matthias Koeppe wrote: 
> >>> 
> >>> From the log: 
> >>> 
> >>> checking LIBRARY_PATH variable... contains current directory 
> >>> configure: error: 
> >>> *** LIBRARY_PATH shouldn't contain the current directory when 
> >>> *** building gcc. Please change the environment variable 
> >>> *** and run configure again. 
> >>> Makefile:4242: recipe for target 'configure-gcc' failed 
> >>> make[5]: *** [configure-gcc] Error 1 
> >>> make[5]: Leaving directory 
> '/home/ibrahim/projects/gsoc/sage/local/var/tmp/sage/build/gfortran-9.2.0/gcc-build'
>  
>
> >>> 
> >>> 
> >>> 
> >>> Please post config.log as well. 
> >>> 
> >>> A workaround is to install the system gfortran package. 
> >>> 
> >>> On Monday, March 9, 2020 at 12:12:06 PM UTC-4, Ibrahim M. Akrab wrote: 
>  
>  Hi. 
>  I was trying to build sage for development and contribution in gsoc 
> but I got this build error. I'm not an expert in make so I did as the 
> message told me to do and posted it here. 
>  My laptop is dell 5558 i7 with 8GB of ram. My OS is linux mint 19.3 
> cinnamon. 
>  
>  This is the message at the end of the failure: 
> > 
> > Error building Sage. 
> > 
> > The following package(s) may have failed to build (not necessarily 
> > during this run of 'make all-start'): 
> > 
> > * package: gfortran-9.2.0 
> >   last build time: Mar 9 00:27 
> >   log file:/PATH/sage/logs/pkgs/gfortran-9.2.0.log 
> >   build directory: 
> /PATH/sage/local/var/tmp/sage/build/gfortran-9.2.0 
> > 
> > It is safe to delete any log files and build directories, but they 
> > contain information that is helpful for debugging build problems. 
> > WARNING: If you now run 'make' again, the build directory of the 
> > same version of the package will, by default, be deleted. Set the 
> > environment variable SAGE_KEEP_BUILT_SPKGS=yes to prevent this. 
> > 
>  
>  thanks in advance. 
>  Ibrahim 
> >> 
> >> -- 
> >> 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-...@googlegroups.com . 
> >> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sage-devel/b31a1a2b-0917-4e68-bf6f-85d3024c28ac%40googlegroups.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-...@googlegroups.com . 
> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sage-devel/CAPj6Vx%3D54Gt0-dksuOHjOHjh50161VHj1e-MFnxegmU-_EK00Q%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/3c1e8d1b-7a8e-46eb-b0b5-1c2d959afd25%40googlegroups.com.


Re: [sage-devel] Re: Error while building

2020-03-09 Thread Dima Pasechnik
On Mon, Mar 9, 2020 at 7:49 PM Ibrahim M. Akrab
 wrote:
>
> I installed it and I think it no longer shows this error. However, it's like 
> we're playing cat and mouse since it keeps asking for packages and I keep 
> searching for and installing them.
>
> First, it was gfortran then r and now pynac. I think a list of required 
> packages would be great to install before building.

I've posted a topic with subject line starting from FAQ here few days
ago. It lists packages for Debian.
Not sure how different it is for Mint - one needs to try.

>
> Thanks for your help and time.
>
>
> On Mon, Mar 9, 2020, 7:35 PM Matthias Koeppe  wrote:
>>
>> gfortran builds correctly in the current beta (9.1.beta7) on 
>> linuxmint-19.3-minimal, as reproduced in 
>> https://trac.sagemath.org/ticket/29304
>>
>> On Monday, March 9, 2020 at 12:36:50 PM UTC-4, Matthias Koeppe wrote:
>>>
>>> From the log:
>>>
>>> checking LIBRARY_PATH variable... contains current directory
>>> configure: error:
>>> *** LIBRARY_PATH shouldn't contain the current directory when
>>> *** building gcc. Please change the environment variable
>>> *** and run configure again.
>>> Makefile:4242: recipe for target 'configure-gcc' failed
>>> make[5]: *** [configure-gcc] Error 1
>>> make[5]: Leaving directory 
>>> '/home/ibrahim/projects/gsoc/sage/local/var/tmp/sage/build/gfortran-9.2.0/gcc-build'
>>>
>>>
>>>
>>> Please post config.log as well.
>>>
>>> A workaround is to install the system gfortran package.
>>>
>>> On Monday, March 9, 2020 at 12:12:06 PM UTC-4, Ibrahim M. Akrab wrote:

 Hi.
 I was trying to build sage for development and contribution in gsoc but I 
 got this build error. I'm not an expert in make so I did as the message 
 told me to do and posted it here.
 My laptop is dell 5558 i7 with 8GB of ram. My OS is linux mint 19.3 
 cinnamon.

 This is the message at the end of the failure:
>
> Error building Sage.
>
> The following package(s) may have failed to build (not necessarily
> during this run of 'make all-start'):
>
> * package: gfortran-9.2.0
>   last build time: Mar 9 00:27
>   log file:/PATH/sage/logs/pkgs/gfortran-9.2.0.log
>   build directory: /PATH/sage/local/var/tmp/sage/build/gfortran-9.2.0
>
> It is safe to delete any log files and build directories, but they
> contain information that is helpful for debugging build problems.
> WARNING: If you now run 'make' again, the build directory of the
> same version of the package will, by default, be deleted. Set the
> environment variable SAGE_KEEP_BUILT_SPKGS=yes to prevent this.
>

 thanks in advance.
 Ibrahim
>>
>> --
>> 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/b31a1a2b-0917-4e68-bf6f-85d3024c28ac%40googlegroups.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/CAPj6Vx%3D54Gt0-dksuOHjOHjh50161VHj1e-MFnxegmU-_EK00Q%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/CAAWYfq29Mt8WEoEbOecsc6ewrfuusbdCM0iY_Ez-rXVyG%2BwWww%40mail.gmail.com.


Re: [sage-devel] Re: Error while building

2020-03-09 Thread Matthias Koeppe
config.log please

On Monday, March 9, 2020 at 3:49:57 PM UTC-4, Ibrahim M. Akrab wrote:
>
> I installed it and I think it no longer shows this error. However, it's 
> like we're playing cat and mouse since it keeps asking for packages and I 
> keep searching for and installing them. 
>
> First, it was gfortran then r and now pynac. I think a list of required 
> packages would be great to install before building.
>
> Thanks for your help and time. 
>
>
> On Mon, Mar 9, 2020, 7:35 PM Matthias Koeppe  > wrote:
>
>> gfortran builds correctly in the current beta (9.1.beta7) on 
>> linuxmint-19.3-minimal, as reproduced in 
>> https://trac.sagemath.org/ticket/29304
>>
>> On Monday, March 9, 2020 at 12:36:50 PM UTC-4, Matthias Koeppe wrote:
>>>
>>> From the log: 
>>>
>>> checking LIBRARY_PATH variable... contains current directory
>>> configure: error: 
>>> *** LIBRARY_PATH shouldn't contain the current directory when
>>> *** building gcc. Please change the environment variable
>>> *** and run configure again.
>>> Makefile:4242: recipe for target 'configure-gcc' failed
>>> make[5]: *** [configure-gcc] Error 1
>>> make[5]: Leaving directory 
>>> '/home/ibrahim/projects/gsoc/sage/local/var/tmp/sage/build/gfortran-9.2.0/gcc-build'
>>>
>>>
>>>
>>> Please post config.log as well.
>>>
>>> A workaround is to install the system gfortran package. 
>>>
>>> On Monday, March 9, 2020 at 12:12:06 PM UTC-4, Ibrahim M. Akrab wrote:

 Hi.
 I was trying to build sage for development and contribution in gsoc but 
 I got this build error. I'm not an expert in make so I did as the message 
 told me to do and posted it here.
 My laptop is dell 5558 i7 with 8GB of ram. My OS is linux mint 19.3 
 cinnamon.

 This is the message at the end of the failure:

> Error building Sage.
>
> The following package(s) may have failed to build (not necessarily
> during this run of 'make all-start'):
>
> * package: gfortran-9.2.0
>   last build time: Mar 9 00:27
>   log file:/PATH/sage/logs/pkgs/gfortran-9.2.0.log
>   build directory: /PATH/sage/local/var/tmp/sage/build/gfortran-9.2.0
>
> It is safe to delete any log files and build directories, but they
> contain information that is helpful for debugging build problems.
> WARNING: If you now run 'make' again, the build directory of the
> same version of the package will, by default, be deleted. Set the
> environment variable SAGE_KEEP_BUILT_SPKGS=yes to prevent this.
>
>  
 thanks in advance.
 Ibrahim

>>> -- 
>> 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-...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/sage-devel/b31a1a2b-0917-4e68-bf6f-85d3024c28ac%40googlegroups.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/7369bbfd-8680-4d99-8bda-d3c8378ed636%40googlegroups.com.


Re: [sage-devel] Re: Error while building

2020-03-09 Thread Ibrahim M. Akrab
I installed it and I think it no longer shows this error. However, it's
like we're playing cat and mouse since it keeps asking for packages and I
keep searching for and installing them.

First, it was gfortran then r and now pynac. I think a list of required
packages would be great to install before building.

Thanks for your help and time.


On Mon, Mar 9, 2020, 7:35 PM Matthias Koeppe 
wrote:

> gfortran builds correctly in the current beta (9.1.beta7) on
> linuxmint-19.3-minimal, as reproduced in
> https://trac.sagemath.org/ticket/29304
>
> On Monday, March 9, 2020 at 12:36:50 PM UTC-4, Matthias Koeppe wrote:
>>
>> From the log:
>>
>> checking LIBRARY_PATH variable... contains current directory
>> configure: error:
>> *** LIBRARY_PATH shouldn't contain the current directory when
>> *** building gcc. Please change the environment variable
>> *** and run configure again.
>> Makefile:4242: recipe for target 'configure-gcc' failed
>> make[5]: *** [configure-gcc] Error 1
>> make[5]: Leaving directory 
>> '/home/ibrahim/projects/gsoc/sage/local/var/tmp/sage/build/gfortran-9.2.0/gcc-build'
>>
>>
>>
>> Please post config.log as well.
>>
>> A workaround is to install the system gfortran package.
>>
>> On Monday, March 9, 2020 at 12:12:06 PM UTC-4, Ibrahim M. Akrab wrote:
>>>
>>> Hi.
>>> I was trying to build sage for development and contribution in gsoc but
>>> I got this build error. I'm not an expert in make so I did as the message
>>> told me to do and posted it here.
>>> My laptop is dell 5558 i7 with 8GB of ram. My OS is linux mint 19.3
>>> cinnamon.
>>>
>>> This is the message at the end of the failure:
>>>
 Error building Sage.

 The following package(s) may have failed to build (not necessarily
 during this run of 'make all-start'):

 * package: gfortran-9.2.0
   last build time: Mar 9 00:27
   log file:/PATH/sage/logs/pkgs/gfortran-9.2.0.log
   build directory: /PATH/sage/local/var/tmp/sage/build/gfortran-9.2.0

 It is safe to delete any log files and build directories, but they
 contain information that is helpful for debugging build problems.
 WARNING: If you now run 'make' again, the build directory of the
 same version of the package will, by default, be deleted. Set the
 environment variable SAGE_KEEP_BUILT_SPKGS=yes to prevent this.


>>> thanks in advance.
>>> Ibrahim
>>>
>> --
> 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/b31a1a2b-0917-4e68-bf6f-85d3024c28ac%40googlegroups.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/CAPj6Vx%3D54Gt0-dksuOHjOHjh50161VHj1e-MFnxegmU-_EK00Q%40mail.gmail.com.


Re: [sage-devel] nt.sagenb.org and sagenb.org

2020-03-09 Thread Thierry
Hi,

we should do something with those file, since there are very good ideas
in there.

How large is the whole nt.sagenb.org + sagenb.org data ?

Ciao,
Thierry



On Mon, Mar 09, 2020 at 10:05:49AM -0700, William Stein wrote:
> Hi,
> 
> Somebody asked me about a link to a public notebook on the long-gone server
> "nt.sagenb.org" at
> 
> https://mathoverflow.net/questions/54255/upper-bounds-for-ranks-of-modular-jacobians
> 
> 
> so I tracked down the files for nt.sagenb.org.  If anybody is interested in
> converting the 175 published files
> from nt.sagenb.org to sage worksheets (or Jupyter notebooks) and publishing
> them somewhere
> (e.g., on share.cocalc.com and github.com), let me know and I'll give you
> access.
> 
> I also still own the domain name sagenb.org, so if somebody wanted to put
> in some effort they could even
> make all the old sagenb.org links do something sensible.
> 
> Anyway, volunteer(s) welcome, since I don't have the bandwidth to do this
> all myself, but I do know where
> all the data is...
> 
>  -- William
> 
> -- 
> William (http://wstein.org)
> 
> -- 
> 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/CACLE5GAfwur7RcOgkUTs0rRHv-%3DjrNte762i_WEL_ODSpsCDPg%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/20200309174600.ugai5lr4znocve3k%40metelu.net.


[sage-devel] Re: Error while building

2020-03-09 Thread Matthias Koeppe
gfortran builds correctly in the current beta (9.1.beta7) on 
linuxmint-19.3-minimal, as reproduced in 
https://trac.sagemath.org/ticket/29304

On Monday, March 9, 2020 at 12:36:50 PM UTC-4, Matthias Koeppe wrote:
>
> From the log: 
>
> checking LIBRARY_PATH variable... contains current directory
> configure: error: 
> *** LIBRARY_PATH shouldn't contain the current directory when
> *** building gcc. Please change the environment variable
> *** and run configure again.
> Makefile:4242: recipe for target 'configure-gcc' failed
> make[5]: *** [configure-gcc] Error 1
> make[5]: Leaving directory 
> '/home/ibrahim/projects/gsoc/sage/local/var/tmp/sage/build/gfortran-9.2.0/gcc-build'
>
>
>
> Please post config.log as well.
>
> A workaround is to install the system gfortran package. 
>
> On Monday, March 9, 2020 at 12:12:06 PM UTC-4, Ibrahim M. Akrab wrote:
>>
>> Hi.
>> I was trying to build sage for development and contribution in gsoc but I 
>> got this build error. I'm not an expert in make so I did as the message 
>> told me to do and posted it here.
>> My laptop is dell 5558 i7 with 8GB of ram. My OS is linux mint 19.3 
>> cinnamon.
>>
>> This is the message at the end of the failure:
>>
>>> Error building Sage.
>>>
>>> The following package(s) may have failed to build (not necessarily
>>> during this run of 'make all-start'):
>>>
>>> * package: gfortran-9.2.0
>>>   last build time: Mar 9 00:27
>>>   log file:/PATH/sage/logs/pkgs/gfortran-9.2.0.log
>>>   build directory: /PATH/sage/local/var/tmp/sage/build/gfortran-9.2.0
>>>
>>> It is safe to delete any log files and build directories, but they
>>> contain information that is helpful for debugging build problems.
>>> WARNING: If you now run 'make' again, the build directory of the
>>> same version of the package will, by default, be deleted. Set the
>>> environment variable SAGE_KEEP_BUILT_SPKGS=yes to prevent this.
>>>
>>>  
>> thanks in advance.
>> Ibrahim
>>
>

-- 
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/b31a1a2b-0917-4e68-bf6f-85d3024c28ac%40googlegroups.com.


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-build-env-config is strictly for building sage. User packages should 
not try to use it.

 

-- 
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/faf21375-6034-4d68-988a-3022c9c19373%40googlegroups.com.


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. 
> 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 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. 
>
> Not sure whether anything should be fixed here. 
>
> Best 
> Dima 
>
>
> On Mon, Mar 9, 2020 at 4:26 PM Michael Orlitzky  > wrote: 
> > 
> > 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_CHECK_LIB (unlike 
> > AC_SEARCH_LIBS) doesn't prepend -l to LIBS if you provide a 
> > non-empty success branch. 
> > 
> > But, that doesn't explain why you're getting ARB_LIBRARY=arb. I would 
> > expect that to be ARB_LIBRARY=flint-arb in any case. You might be able 
> > to get more info by running ./configure again and looking for the arb 
> > stuff in config.log. 
> > 
> > -- 
> > 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-...@googlegroups.com . 
> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sage-devel/47efdae1-9a51-2880-5bfe-e247d933cf25%40orlitzky.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/152674d0-9e47-441a-aba4-12936306e4d8%40googlegroups.com.


[sage-devel] nt.sagenb.org and sagenb.org

2020-03-09 Thread William Stein
Hi,

Somebody asked me about a link to a public notebook on the long-gone server
"nt.sagenb.org" at

https://mathoverflow.net/questions/54255/upper-bounds-for-ranks-of-modular-jacobians


so I tracked down the files for nt.sagenb.org.  If anybody is interested in
converting the 175 published files
from nt.sagenb.org to sage worksheets (or Jupyter notebooks) and publishing
them somewhere
(e.g., on share.cocalc.com and github.com), let me know and I'll give you
access.

I also still own the domain name sagenb.org, so if somebody wanted to put
in some effort they could even
make all the old sagenb.org links do something sensible.

Anyway, volunteer(s) welcome, since I don't have the bandwidth to do this
all myself, but I do know where
all the data is...

 -- William

-- 
William (http://wstein.org)

-- 
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/CACLE5GAfwur7RcOgkUTs0rRHv-%3DjrNte762i_WEL_ODSpsCDPg%40mail.gmail.com.


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

Not sure whether anything should be fixed here.

Best
Dima


On Mon, Mar 9, 2020 at 4:26 PM Michael Orlitzky  wrote:
>
> 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_CHECK_LIB (unlike
> AC_SEARCH_LIBS) doesn't prepend -l to LIBS if you provide a
> non-empty success branch.
>
> But, that doesn't explain why you're getting ARB_LIBRARY=arb. I would
> expect that to be ARB_LIBRARY=flint-arb in any case. You might be able
> to get more info by running ./configure again and looking for the arb
> stuff in config.log.
>
> --
> 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/47efdae1-9a51-2880-5bfe-e247d933cf25%40orlitzky.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/CAAWYfq3wsiA_brFJCzuJLWz7duvCjc7eaCwN%3DFjrBS_TKeBjKQ%40mail.gmail.com.


[sage-devel] Re: Error while building

2020-03-09 Thread Matthias Koeppe
>From the log: 

checking LIBRARY_PATH variable... contains current directory
configure: error: 
*** LIBRARY_PATH shouldn't contain the current directory when
*** building gcc. Please change the environment variable
*** and run configure again.
Makefile:4242: recipe for target 'configure-gcc' failed
make[5]: *** [configure-gcc] Error 1
make[5]: Leaving directory 
'/home/ibrahim/projects/gsoc/sage/local/var/tmp/sage/build/gfortran-9.2.0/gcc-build'



Please post config.log as well.

A workaround is to install the system gfortran package. 

On Monday, March 9, 2020 at 12:12:06 PM UTC-4, Ibrahim M. Akrab wrote:
>
> Hi.
> I was trying to build sage for development and contribution in gsoc but I 
> got this build error. I'm not an expert in make so I did as the message 
> told me to do and posted it here.
> My laptop is dell 5558 i7 with 8GB of ram. My OS is linux mint 19.3 
> cinnamon.
>
> This is the message at the end of the failure:
>
>> Error building Sage.
>>
>> The following package(s) may have failed to build (not necessarily
>> during this run of 'make all-start'):
>>
>> * package: gfortran-9.2.0
>>   last build time: Mar 9 00:27
>>   log file:/PATH/sage/logs/pkgs/gfortran-9.2.0.log
>>   build directory: /PATH/sage/local/var/tmp/sage/build/gfortran-9.2.0
>>
>> It is safe to delete any log files and build directories, but they
>> contain information that is helpful for debugging build problems.
>> WARNING: If you now run 'make' again, the build directory of the
>> same version of the package will, by default, be deleted. Set the
>> environment variable SAGE_KEEP_BUILT_SPKGS=yes to prevent this.
>>
>>  
> thanks in advance.
> Ibrahim
>

-- 
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/a69b91ed-a013-4a4f-824f-04dc677a3cbc%40googlegroups.com.


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_CHECK_LIB (unlike
AC_SEARCH_LIBS) doesn't prepend -l to LIBS if you provide a
non-empty success branch.

But, that doesn't explain why you're getting ARB_LIBRARY=arb. I would
expect that to be ARB_LIBRARY=flint-arb in any case. You might be able
to get more info by running ./configure again and looking for the arb
stuff in config.log.

-- 
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/47efdae1-9a51-2880-5bfe-e247d933cf25%40orlitzky.com.


[sage-devel] Re: yanking sage doctests in vim

2020-03-09 Thread Marc Mezzarobba
Marc Mezzarobba wrote:
> vnoremap Y :call YankSageTest(visualmode(), 1)' missing at the end

-- 
Marc

-- 
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/r45n4l%24ouk%241%40ciao.gmane.io.


[sage-devel] Re: yanking sage doctests in vim

2020-03-09 Thread Sébastien Labbé
Ok, I see how to call it, I needed to define some .

But I am not getting errors, maybe my vim is too old (7.4.1689). I need to 
update my machine but I am always postponing this to tomorrow.

 │Erreur détectée en traitant function YankSageTest 
:  
 │ligne7 
:   
  

 │E121: Variable non définie : 
i   
 │E116: Arguments invalides pour la fonction 
filter
 │ligne8 
:   
  

 │E121: Variable non définie : 
i   
 │E116: Arguments invalides pour la fonction 
map   
 │E488: Caractères 
surnuméraires   


 │Appuyez sur ENTRÉE ou tapez une commande pour continuer 

-- 
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/fd119af0-ab7b-4a8b-a0a5-d2a2717dae92%40googlegroups.com.


[sage-devel] Re: yanking sage doctests in vim

2020-03-09 Thread Marc Mezzarobba
Sébastien Labbé wrote:
> Should I understand that it filters out the output? Can you tell how
> you use it?

It only works linewise, and is mapped to Y, which is 
probably something like \Y depending on your setup. You can use it 
either by selecting some text in visual mode and typing \Y, or typing \Y 
followed by a motion (e.g. \Yap). It will keep the input lines only and 
strip the sage: and : markers.

-- 
Marc

-- 
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/r45m4p%2427ml%241%40ciao.gmane.io.


[sage-devel] Re: yanking sage doctests in vim

2020-03-09 Thread Sébastien Labbé
Thanks Marc!

Should I understand that it filters out the output? Can you tell how you 
use it?

In vim, I am able to use "+y to yank some block of sage doctest to the 
register + (i.e., the paste bin). I tried "+Y with your code, but it does 
not seem to work.

Since 2 years with some update of the ipython, I am not able to copy paste 
in tmux a multiline block from one pane to the pane containing the sage 
command line: it only copies the first line. A workaround is to type 
%cpaste first in sage which is painful. If you have a fix for that, I am 
interested.

Sébastien

-- 
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/0b860956-8049-40a6-9494-458573702e09%40googlegroups.com.


[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 -lflint-arb:

~/co/sage:develop$ ldd /home/marc/co/sage/local/lib/python3.7/site-
packages/sage/rings/complex_arb.cpython-37m-x86_64-linux-gnu.so | grep arb
libflint-arb.so.2 => /lib/x86_64-linux-gnu/libflint-arb.so.2 
(0x7fbf0c11b000)

My setup.py calls cythonize(..., aliases=sage.env.cython_aliases().
I thought this should be enough to make it resolve the references to
ARB_LIBRARY in acb.pxd to the correct library. However,
cython_aliases() doesn't return what I'd expect:

~/co/sage:develop$ sage --nodotsage
┌┐
│ SageMath version 9.1.beta7, Release Date: 2020-03-08   │
│ Using Python 3.7.3. Type "help()" for help.│
└┘
┏┓
┃ Warning: this is a prerelease version, and it may be unstable. ┃
┗┛
sage: sage.env.cython_aliases()['ARB_LIBRARY']
'arb'

This is with yesterday's beta. I don't remember seeing this issue
before, but I may not have rebuilt this module with every release.

Am I doing something wrong, or is this a bug?

Thanks a lot,

-- 
Marc

-- 
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/r45i68%24vp0%241%40ciao.gmane.io.