[tlbuild] [jhielscher at posteo.de: asy-2.75 and C++17]

John Bowman bowman at ualberta.ca
Wed Jan 12 23:03:10 CET 2022


Hi Karl,

That's an outdated commit from last summer's development. For
./configure --disable-lsp
you need only C++-11.

If you really want to use the default configuration, which enables the
Language Server Protocol,
./configure --enable-lsp
then you will need C++-14 but not C++-17. But why not just drop lsp for TL,
as I already suggested and then you can continue to use C++-11 as usual?

You can thank me for thinking ahead and doing these backports last fall, to
avoid trouble now. Porting the LspCpp repo to C++-14 was particularly time
consuming.

-- John


On Wed, Jan 12, 2022 at 2:42 PM Karl Berry <karl at freefriends.org> wrote:

> John, is the requirement of C++17 intended/necessary?
> That is quite aggressive. (see msg from Johannes below.)
>
> Oddly, I hadn't noticed this, and my test build a couple days ago worked
> for me with c++11.
>
> Johannes, thanks for trying it out. --best, karl.
>
>
> Date: Wed, 12 Jan 2022 19:33:50 +0000
> From: Johannes Hielscher <jhielscher at posteo.de>
> To:  <tlbuild at tug.org>
> Subject: [tlbuild] asy-2.75 and C++17
>
> Hi,
>
> the asymptote sources, updated to the 2.75 branch since the last
> pretest/build season (TL SVN -r61580), had a spectacular build failure
> within my usual build setup. The ChangeLog tells that, as of this
> summer, they raised the C++ standard level to C++17 (commit
> ad6f30f006b1bb277ec7d241c1696073c80a4d34 and [0]).
>
> This smells like a patch of the form:
>
>
> Index: Master/tlpkg/bin/tl-update-asy
> ===================================================================
> --- Master/tlpkg/bin/tl-update-asy      (revision 61580)
> +++ Master/tlpkg/bin/tl-update-asy      (working copy)
> @@ -66,7 +66,7 @@
>    ./configure --prefix=/tmp/ainst \
>      --with-latex=/tmp/ainst/latex --with-context=/tmp/ainst/context \
>      --disable-fftw --disable-gl --disable-gsl \
> -    --enable-texlive-build CFLAGS=-g CXXFLAGS=-std=c++11 #-ansi
> +    --enable-texlive-build CFLAGS=-g CXXFLAGS=-std=c++17 #-ansi
>    make
>    make check
>    make install-prebuilt
>
>
> and respective changes on the TL website [1].
>
> Builds went fine once I put C++17 in the CXXFLAGS. The GCC in my Debian
> Buster (oldstable) environment is just barely capable of that -- there
> are other cases where gcc-8.3.0 doesn't quite satisfy the requirements
> for C++17 coverage.
>
> Best,
> Johannes
>
>
>
> [0]
>
> https://github.com/vectorgraphics/asymptote/commit/ad6f30f006b1bb277ec7d241c1696073c80a4d34
> [1]
> https://tug.org/texlive/build.html#asymptote
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/tlbuild/attachments/20220112/4b80b026/attachment.html>


More information about the tlbuild mailing list.