Upgrading clang on CI
Devansh Varshney
varshney.devansh614 at gmail.com
Mon Feb 17 22:10:48 UTC 2025
I can't really recall as my pc is not working but I think I have been using
Clang 18 to build on my Ubuntu 22.04 LTS.
On Tue, Feb 18, 2025, 1:53 AM Hossein Nourikhah <hossein at libreoffice.org>
wrote:
> Hello,
>
> The baseline for LibreOffice C++ source code is now C++20. But, the
> clang 12 installed on CI machines is quite old, and lacks some important
> C++20 features.
> ("/home/tdf/lode/opt_private/clang-llvmorg-12.0.1/bin/clang" is visible
> in the build logs)
>
> C++ ranges library is one example:
> https://en.cppreference.com/w/cpp/ranges/reverse_view
>
> This is a related CI failure because of lacking C++ ranges library
> support:
> https://ci.libreoffice.org/job/gerrit_master_ml/35822/
>
> More details about C++20 support from different compilers can be seen
> here:
>
> C++20 library features
>
> https://en.cppreference.com/w/cpp/compiler_support#C.2B.2B20_library_features
>
> Looking into the details of clang releases, I think clang versions until
> and including 17 are no longer supported.
> https://llvm.org/docs/HowToReleaseLLVM.html
>
> The current stable release is 19, an the preview release is 20.
> https://releases.llvm.org/
>
> I am not sure about 18, but it is the version available in many Linux
> distributions, and it seems to build LibreOffice from sources smoothly.
>
> Ubuntu LTS: 20.04, 24.04, 22.04 (via llvm apt repository), RHEL 8 and 9
> (via Clang and LLVM Toolset) and many other distributions:
>
> https://packages.ubuntu.com/search?searchon=contents&keywords=clang&mode=exactfilename&suite=focal-updates&arch=any
>
> https://packages.ubuntu.com/search?searchon=contents&keywords=clang&mode=exactfilename&suite=noble-updates&arch=any
>
> Is it possible upgrade clang on CI machines to version 18 (or possibly,
> 19)?
>
> Regards,
> Hossein
>
> --
> Hossein Nourikhah, Ph.D., Developer Community Architect
> Tel: +49 30 5557992-65 | Email: hossein at libreoffice.org
> The Document Foundation, Winterfeldtstraße 52, 10781 Berlin
> <https://www.google.com/maps/search/Winterfeldtstra%C3%9Fe+52,+10781+Berlin?entry=gmail&source=g>,
> DE
> Gemeinnützige rechtsfähige Stiftung des bürgerlichen Rechts
> Legal details: https://www.documentfoundation.org/imprint
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice/attachments/20250218/848f1831/attachment.htm>
More information about the LibreOffice
mailing list