I had a conflict between glibc's libintl.h and gettext's libintl.h and ended up with neither. GCC expects glibc's libintl.h. Cheers, Shaun http://sjackman.ca On 2 September 2014 10:25, Shaun Jackman <sjackman@xxxxxxxxx> wrote: > Hi, Jonathan. I haven't yet tried your suggestion of > `--with-clocale=generic`, but thanks for the response. Another > workaround for this problem is to symlink libintl.h into the directory > specified by --with-native-system-header-dir. I've successfully built > stage 1 of the compiler, and the required dependencies in > --with-native-system-header-dir are GLIBC, Linux headers and libintl.h > > Cheers, > Shaun > http://sjackman.ca > > > On 2 September 2014 04:29, Jonathan Wakely <jwakely.gcc@xxxxxxxxx> wrote: >> On 2 September 2014 07:39, Shaun Jackman wrote: >>> When compiling gcc --with-sysroot, I get the error `libintl.h: No such >>> file or directory` while compiling libstdc++-v3. I've tried adding >>> `--with-included-gettext`, without luck. The only headers that I've >>> provided in the `--with-native-system-lib-dir` are from glibc and the >>> Linux headers. `libintl.h` is available in the $sysroot/include >>> directory, but it doesn't seem to be searching there. See below for >>> more info, the command that's failing, and the error. >> >> You could try adding --with-clocale=generic to the configure command, >> although that is almost certainly not the right solution. >> >> I don't know what the problem is, I've never tried to build a setup like yours.