[sage-devel] Re: If I run make twice in a row, shouldn't the second run be instant?

2022-08-24 Thread 'Travis Scrimshaw' via sage-devel
However, I don't think it should take 30 minutes, that seems far too long 
to me to check everything, even on a slow system. The longest part to me 
always seems to be checking the documentation part.

Samuel, how long does "make build" take for you?

Best,
Travis


On Thursday, August 25, 2022 at 4:45:13 AM UTC+9 Matthias Koeppe wrote:

> Our build system does not know the precise dependence of sagelib on its 
> source files and other components. 
> To know if it needs to be rebuilt, we just invoke sagelib's build system. 
> This is akin to https://trac.sagemath.org/ticket/29711
>
> Likewise for the docbuild: It kind of depends on source files and on the 
> built Sage library, but our build system does not know how it depends.
> So we just invoke the docbuild's build system and rely on its incremental 
> work to be as fast as it can be.
>
>
> On Wednesday, August 24, 2022 at 12:19:59 PM UTC-7 Samuel Lelievre wrote:
>
>> Dear sage-devel,
>>
>> Having built Sage successfully from source with the command
>> `make configure && make`, if I then immediately run `make`
>> a second time in the same shell session, shouldn't that second
>> run have nothing to build, and thus terminate almost instantly?
>>
>> Here is an example of building Sage successfully:
>>
>> ```
>> $ source .homebrew-build-env # recommended on macOS
>> $ make -s V=0 configure
>> $ make -s V=0
>>
>> ...
>>
>> [sage_conf-9.7.beta8] installing. Log file:
>> /opt/s/sage-9-7b8-fresh-clone/logs/pkgs/sage_conf-9.7.beta8.log
>> [sage_conf-9.7.beta8] successfully installed.
>> [sagelib-9.7.beta8] installing. Log file:
>> /opt/s/sage-9-7b8-fresh-clone/logs/pkgs/sagelib-9.7.beta8.log
>> [sagelib-9.7.beta8] successfully installed.
>> [sagemath_doc_html-none] installing. Log file:
>> /opt/s/sage-9-7b8-fresh-clone/logs/pkgs/sagemath_doc_html-none.log
>> [sagemath_doc_html-none] successfully installed.
>>
>> real 31m44.059s
>> user 23m35.949s
>> sys 4m3.652s
>> Sage build/upgrade complete!
>> ```
>>
>> Immediately after that, in the same session,
>> without having modified any file:
>>
>> ```
>> $ make -s V=0
>>
>> ...
>>
>> [sagelib-9.7.beta8] installing. Log file:
>> /opt/s/sage-9-7b8-fresh-clone/logs/pkgs/sagelib-9.7.beta8.log
>> [sagelib-9.7.beta8] successfully installed.
>> [sagemath_doc_html-none] installing. Log file:
>> /opt/s/sage-9-7b8-fresh-clone/logs/pkgs/sagemath_doc_html-none.log
>> [sagemath_doc_html-none] successfully installed.
>>
>> real 31m28.059s
>> user 22m3.713s
>> sys 4m12.429s
>> Sage build/upgrade complete!
>> ```
>>
>> I would have hoped for this to complete in a few seconds
>> and I find it surprising that it takes half an hour.
>>
>> Has that been reported and discussed already, either on
>> Sage Trac or on mailing lists?
>>
>> Doesn't that create problems for our Docker images?
>>
>> Apologies if I have already asked and forgotten, in which case
>> please refresh my memory. --Samuel
>>
>

-- 
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/aeef69c4-a362-4053-9226-4f6f048a8e32n%40googlegroups.com.


[sage-devel] Re: If I run make twice in a row, shouldn't the second run be instant?

2022-08-24 Thread Matthias Koeppe
Our build system does not know the precise dependence of sagelib on its 
source files and other components. 
To know if it needs to be rebuilt, we just invoke sagelib's build system. 
This is akin to https://trac.sagemath.org/ticket/29711

Likewise for the docbuild: It kind of depends on source files and on the 
built Sage library, but our build system does not know how it depends.
So we just invoke the docbuild's build system and rely on its incremental 
work to be as fast as it can be.


On Wednesday, August 24, 2022 at 12:19:59 PM UTC-7 Samuel Lelievre wrote:

> Dear sage-devel,
>
> Having built Sage successfully from source with the command
> `make configure && make`, if I then immediately run `make`
> a second time in the same shell session, shouldn't that second
> run have nothing to build, and thus terminate almost instantly?
>
> Here is an example of building Sage successfully:
>
> ```
> $ source .homebrew-build-env # recommended on macOS
> $ make -s V=0 configure
> $ make -s V=0
>
> ...
>
> [sage_conf-9.7.beta8] installing. Log file:
> /opt/s/sage-9-7b8-fresh-clone/logs/pkgs/sage_conf-9.7.beta8.log
> [sage_conf-9.7.beta8] successfully installed.
> [sagelib-9.7.beta8] installing. Log file:
> /opt/s/sage-9-7b8-fresh-clone/logs/pkgs/sagelib-9.7.beta8.log
> [sagelib-9.7.beta8] successfully installed.
> [sagemath_doc_html-none] installing. Log file:
> /opt/s/sage-9-7b8-fresh-clone/logs/pkgs/sagemath_doc_html-none.log
> [sagemath_doc_html-none] successfully installed.
>
> real 31m44.059s
> user 23m35.949s
> sys 4m3.652s
> Sage build/upgrade complete!
> ```
>
> Immediately after that, in the same session,
> without having modified any file:
>
> ```
> $ make -s V=0
>
> ...
>
> [sagelib-9.7.beta8] installing. Log file:
> /opt/s/sage-9-7b8-fresh-clone/logs/pkgs/sagelib-9.7.beta8.log
> [sagelib-9.7.beta8] successfully installed.
> [sagemath_doc_html-none] installing. Log file:
> /opt/s/sage-9-7b8-fresh-clone/logs/pkgs/sagemath_doc_html-none.log
> [sagemath_doc_html-none] successfully installed.
>
> real 31m28.059s
> user 22m3.713s
> sys 4m12.429s
> Sage build/upgrade complete!
> ```
>
> I would have hoped for this to complete in a few seconds
> and I find it surprising that it takes half an hour.
>
> Has that been reported and discussed already, either on
> Sage Trac or on mailing lists?
>
> Doesn't that create problems for our Docker images?
>
> Apologies if I have already asked and forgotten, in which case
> please refresh my memory. --Samuel
>

-- 
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/0dbe0c4d-4d8e-4218-a98f-4176404084d1n%40googlegroups.com.