Created attachment 40085 [details] intl duplicated directory error Hello! I have switched to GLIBC and the GMP issue is gone, but now when GCC builds, it searches for sysroot/usr/lib/libc.so.6 inside sysroot/git-toolchain-bin. It should be an absolute path, which is simply just sysroot/usr/lib/libc.so.6. "/home/<scrubbed>/git-toolchain-bin/usr/x86_64-pc-linux-gnu/bin/ld: cannot find /home/<scrubbed>/git-toolchain-bin/usr/lib/libc.so.6 inside /home/<scrubbed>/git-toolchain-bin" ~/git-toolchain-bin/usr/lib/libc.so.6 exists, but there is no /home/<scrubbed>/git-toolchain-bin/home/<scrubbed>/git-toolchain-bin/usr/lib/libc.so.6 as that would be silly. Configure line is as follows: mkdir build && cd build && ../configure --prefix=/home/<scrubbed>/git-toolchain-bin/usr --with-local-prefix=/home/<scrubbed>/git-toolchain-bin/usr --with-sysroot=/home/<scrubbed>/git-toolchain-bin --disable-nls --disable-shared --disable-multilib --disable-libatomic --disable-libgomp --disable-libmpx --disable-libquadmath --disable-libssp --disable-libvtv --disable-libstdcxx --enable-languages=c,c++ --disable-lto --with-system-zlib --disable-werror --disable-gold --without-isl --disable-libcilkrts --disable-libitm --disable-libsanitizer Removing or keeping --with-local-prefix has no effect. I initially started with having --with-native-system-header-dir set to sysroot-dir/include but having --with-sysroot=sysroot-dir set along with it caused redundancies, so I dropped --with-native-system-header-dir. --with-build-sysroot caused issues finding stdio.h (which was present in the directory that --with-native-system-header-dir was set to, not too sure what happened there, just changed configure options) so changing it to simply --with-sysroot got me a little further. Build log attached.
This is most likely coming from sysroot-dir/usr/lib/libc.so, which is uses an absolute file name that isn't rooted at the sysroot prefix.