i do set with multilib list, the problem is that gcc gets very messed up when trying to find where the libs located at build. like only trying to find lib64 in $targettriple/$targettriple/lib, lib32 in $targettriple/$targettriple/lib/32, libx32 in $targettriple/$targettriple/lib/x32 It won't find anywhere else for libc Get Outlook for Android<https://aka.ms/AAb9ysg> ________________________________ From: Arsen Arsenović <arsen@xxxxxxxxx> Sent: Wednesday, August 2, 2023, 10:03 To: unlvsur unlvsur <unlvsur@xxxxxxxx> Cc: gcc-help@xxxxxxxxxxx <gcc-help@xxxxxxxxxxx> Subject: Re: How to set sysroot for cross compiling? unlvsur unlvsur <unlvsur@xxxxxxxx> writes: > the problem is that with sysroot does not do anything on how to find multilibs for gcc I'm sorry, I'm not sure I follow. What problem are you running into and trying to solve? Please present more context and, if applicable, logs. Also see the flags present in the GCC configure specifically: ./gcc/configure --help ... namely, --with-multilib-list -- Arsen Arsenović