Skip to content

Commit 0f3b651

Browse files
committed
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 <[email protected]>
1 parent 7107c32 commit 0f3b651

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

install-deps.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,8 +426,9 @@ else
426426
[ ! $NO_BOOST_PKGS ] && install_boost_on_ubuntu focal
427427
;;
428428
*Jammy*)
429-
[ ! $NO_BOOST_PKGS ] && install_boost_on_ubuntu jammy
430429
$SUDO apt-get install -y gcc
430+
ensure_decent_gcc_on_ubuntu 12 jammy
431+
[ ! $NO_BOOST_PKGS ] && install_boost_on_ubuntu jammy
431432
;;
432433
*)
433434
$SUDO apt-get install -y gcc

0 commit comments

Comments
 (0)