<p dir="ltr">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.</p>
<br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Tue, Feb 18, 2025, 1:53 AM Hossein Nourikhah <<a href="mailto:hossein@libreoffice.org">hossein@libreoffice.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
The baseline for LibreOffice C++ source code is now C++20. But, the <br>
clang 12 installed on CI machines is quite old, and lacks some important <br>
C++20 features. <br>
("/home/tdf/lode/opt_private/clang-llvmorg-12.0.1/bin/clang" is visible <br>
in the build logs)<br>
<br>
C++ ranges library is one example:<br>
<a href="https://en.cppreference.com/w/cpp/ranges/reverse_view" rel="noreferrer noreferrer" target="_blank">https://en.cppreference.com/w/cpp/ranges/reverse_view</a><br>
<br>
This is a related CI failure because of lacking C++ ranges library <br>
support:<br>
<a href="https://ci.libreoffice.org/job/gerrit_master_ml/35822/" rel="noreferrer noreferrer" target="_blank">https://ci.libreoffice.org/job/gerrit_master_ml/35822/</a><br>
<br>
More details about C++20 support from different compilers can be seen <br>
here:<br>
<br>
C++20 library features<br>
<a href="https://en.cppreference.com/w/cpp/compiler_support#C.2B.2B20_library_features" rel="noreferrer noreferrer" target="_blank">https://en.cppreference.com/w/cpp/compiler_support#C.2B.2B20_library_features</a><br>
<br>
Looking into the details of clang releases, I think clang versions until <br>
and including 17 are no longer supported.<br>
<a href="https://llvm.org/docs/HowToReleaseLLVM.html" rel="noreferrer noreferrer" target="_blank">https://llvm.org/docs/HowToReleaseLLVM.html</a><br>
<br>
The current stable release is 19, an the preview release is 20.<br>
<a href="https://releases.llvm.org/" rel="noreferrer noreferrer" target="_blank">https://releases.llvm.org/</a><br>
<br>
I am not sure about 18, but it is the version available in many Linux <br>
distributions, and it seems to build LibreOffice from sources smoothly.<br>
<br>
Ubuntu LTS: 20.04, 24.04, 22.04 (via llvm apt repository), RHEL 8 and 9 <br>
(via Clang and LLVM Toolset) and many other distributions:<br>
<a href="https://packages.ubuntu.com/search?searchon=contents&keywords=clang&mode=exactfilename&suite=focal-updates&arch=any" rel="noreferrer noreferrer" target="_blank">https://packages.ubuntu.com/search?searchon=contents&keywords=clang&mode=exactfilename&suite=focal-updates&arch=any</a><br>
<a href="https://packages.ubuntu.com/search?searchon=contents&keywords=clang&mode=exactfilename&suite=noble-updates&arch=any" rel="noreferrer noreferrer" target="_blank">https://packages.ubuntu.com/search?searchon=contents&keywords=clang&mode=exactfilename&suite=noble-updates&arch=any</a><br>
<br>
Is it possible upgrade clang on CI machines to version 18 (or possibly, <br>
19)?<br>
<br>
Regards,<br>
Hossein<br>
<br>
-- <br>
Hossein Nourikhah, Ph.D., Developer Community Architect<br>
Tel: +49 30 5557992-65 | Email: <a href="mailto:hossein@libreoffice.org" target="_blank" rel="noreferrer">hossein@libreoffice.org</a><br>
The Document Foundation, <a href="https://www.google.com/maps/search/Winterfeldtstra%C3%9Fe+52,+10781+Berlin?entry=gmail&source=g">Winterfeldtstraße 52, 10781 Berlin</a>, DE<br>
Gemeinnützige rechtsfähige Stiftung des bürgerlichen Rechts<br>
Legal details: <a href="https://www.documentfoundation.org/imprint" rel="noreferrer noreferrer" target="_blank">https://www.documentfoundation.org/imprint</a><br>
</blockquote></div>