https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118369
--- Comment #9 from Matthias Klose <doko at gcc dot gnu.org> --- let's take that on irc, maybe quicker. I've never used the approach to get the build deps from the gcc-12 package, maybe try apt source gcc-12 cd gcc-12-12* apt buil-dep . or just apt build-dep gcc-12