Yocto versions supported for GCC

I see. Well as I said we will soon have releases of our BSP and Torizon on Scarthgap (within the next couple weeks). This should come with GCC 13 which you said does work for you.

Alternatively, if you are using Torizon OS you can create a custom container that has different versions of GCC compared to the host OS. Since your application would run in this container, it would not matter what version of GCC the host is using in this case. In this way you can construct your container with whatever versions and libraries of things you need for your application/software.

See this other comment for an example of how to construct such a container image with a custom version of GCC: Newer version of gcc for Torizon IDE Extension for better C++ 20 support? - #8 by leon.tx

Best Regards,
Jeremias