Alberich de megres <alberich2k5@xxxxxxxxx> writes: > I am using --with-sysroot=/opt/x, on both gcc stage 1 and final. > you can check the configurations in my first email. > > But my problem is that uclibc files are at: > /opt/x/usr/arm-linux-uclibc/usr/include/stdio.h > > Do I need to change for gcc final stage the sysroot to: > --with-sysroot=/opt/x/usr/arm-linux-uclibc/ >From your description that should be the sysroot at every stage. The basic rule is that --with-sysroot should point at the directory that is the root of the file system as seen on the target system. On the target system you will have a file /usr/include/stdio.h. Therefore the sysroot should be /opt/x/usr/arm-linux-uclibc, because that will ensure that ${sysroot}/usr/include/stdio.h exists. Ian