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. Please be more specific, i. e. how did you configure GCC? And what is the difference between your expectation and the actual behavior? -- Xi Ruoyao <xry111@xxxxxxxxxxx> School of Aerospace Science and Technology, Xidian University