On Thu, 7 May 2020 at 07:28, Uros Bizjak via Gcc <gcc@gcc.gnu.org> wrote: > > On Thu, May 7, 2020 at 8:16 AM Richard Biener > <richard.guent...@gmail.com> wrote: > > > > On May 6, 2020 11:15:08 PM GMT+02:00, Uros Bizjak via Gcc <gcc@gcc.gnu.org> > > wrote: > > >Hello! > > > > > >I wonder, if the build process really needs to build all multilibs in > > >stage-1 bootstrap build. IIRC, stage-1 uses system compiler to build > > >stage-1 gcc, so there is no need for multilibs, apart from library > > >that will be used by stage-1 gcc during compilation of stage-2 > > >compiler. > > > > Correct. Only stage3 needs those. But IIRC we already avoid building them? > > Likewise we avoid building libsanitizer and friends in stage 1/2 unless > > ubsan bootstrap is enabled. > > Looking at: > > [gcc-build]$ ls stage1-x86_64-pc-linux-gnu/32/ > libgcc libgomp libstdc++-v3 > > it seems that 32bit multilibs are built anyway, also in stage2: > > [gcc-build]$ ls prev-x86_64-pc-linux-gnu/32/ > libgcc libgomp libstdc++-v3
Debian have a local patch to skip those: https://gcc.gnu.org/legacy-ml/libstdc++/2015-11/msg00164.html The libstdc++-v3/acinclude.m4 part was committed as https://gcc.gnu.org/g:86f73527aa3556b7d5ead9b03d8a5c91d351a409 but not the top-level part for multilibs.