On Thu, May 7, 2020 at 8:25 AM Uros Bizjak <ubiz...@gmail.com> 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
Hmm. IIRC it required special-handling in the individual libs - Jakub may remeber (IIRC he implemented short-cutting libsanitizer builds) For libstdc++ there's also a bugreport I opened at some point - we're using the target runtime for the host when not cross-compiling but it would be better to build the host libraries only - target libs need not be bootstrapped and host ones are not multilib. Richard. > Uros.