YunQiang Su <wzssyqa@xxxxxxxxx> 于2023年7月29日周六 00:47写道: > > Xi Ruoyao <xry111@xxxxxxxxxxx> 于2023年7月28日周五 20:17写道: > > > > On Fri, 2023-07-28 at 19:13 +0800, YunQiang Su via Gcc-help wrote: > > > If I have a rootfs, which contains all necessary lib/headers in > > > standard paths. > > > For example it is an arm rootfs, it has > > > <sysroot>/usr/lib/ contains all libs > > > <sysroot>/usr/include contains all headers > > > > > > How can I build a cross gcc for it? > > > I tried lots of build time options, such as > > > --with-sysroot > > > --with-build-sysroot > > > But none of them work perfectly. > > > > Ohh, It is the bug (or maybe feature) of MIPS code of gcc. > Sorry for the noise. > > > Please be more specific, i. e. how did you configure GCC? And what is > > the difference between your expectation and the actual behavior? > > In fact, I was working on to build a cross toolchain (GCC/BInutils) for OpenBSD. Whoever has interesting can see the result here: https://github.com/wzssyqa/openbsd-gcc-cross/tree/main > > -- > > Xi Ruoyao <xry111@xxxxxxxxxxx> > > School of Aerospace Science and Technology, Xidian University > > > > -- > YunQiang Su -- YunQiang Su