[tlbuild] asy-2.75 and C++17
Johannes Hielscher
jhielscher at posteo.de
Thu Jan 13 10:53:36 CET 2022
Sorry for the noise! I somehow had missed the memo, back in
April/August 2019 [0, 1], that asy's CXXFLAGS were lifted from
-ansi to -std=c++11.
My build helper had tried to compile according to C++98, which somehow
has still worked with asy-2.70, when I built it last time (in August
2021). The new asy-2.75 builds fine with C++11, but I didn't realise
this first, since overzealously using C++17 of course fixed the issue
too.
Thanks,
Johannes
[0]
https://web.archive.org/web/20190321201325/https://www.tug.org/texlive/build.html
https://web.archive.org/web/20190427071159/https://tug.org/texlive/build.html
[1]
https://tug.org/svn/texlive/trunk/Master/tlpkg/bin/tl-update-asy?r1=51857&r2=51858&
https://tug.org/svn/texlive/trunk/Build/source/utils/asymptote/configure.ac?sortby=date&r1=51856&r2=51855&pathrev=51856
Am Wed, 12 Jan 2022 19:33:50 +0000
schrieb Johannes Hielscher <jhielscher at posteo.de>:
> 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
More information about the tlbuild
mailing list.