mirror of
https://github.com/ceph/ceph
synced 2026-08-02 07:03:18 +00:00
install-deps.sh: use gcc-12 for ubuntu jammy
Clang relies on the system's libstdc++ headers for standard C++ features. On Ubuntu Jammy, gcc-11 is the default and it's libstdc++ is missing some of the newer features supported by C++20. This causes build failures as certain standard headers are incomplete. To fix this, we install gcc-12 explicitly so that Clang can pick up the newer libstdc++ headers. Signed-off-by: Aishwarya Mathuria <amathuri@redhat.com>
This commit is contained in:
parent
7107c3283a
commit
0f3b651fcc
@ -426,8 +426,9 @@ else
|
||||
[ ! $NO_BOOST_PKGS ] && install_boost_on_ubuntu focal
|
||||
;;
|
||||
*Jammy*)
|
||||
[ ! $NO_BOOST_PKGS ] && install_boost_on_ubuntu jammy
|
||||
$SUDO apt-get install -y gcc
|
||||
ensure_decent_gcc_on_ubuntu 12 jammy
|
||||
[ ! $NO_BOOST_PKGS ] && install_boost_on_ubuntu jammy
|
||||
;;
|
||||
*)
|
||||
$SUDO apt-get install -y gcc
|
||||
|
||||
Loading…
Reference in New Issue
Block a user