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. Cheers, Shaun http://sjackman.ca gcc 4.9.1 binutils 2.24 glibc 2.19 linux headers 3.15.9 The configure line is ../configure --with-sysroot=/home/sjackman/.linuxbrew --prefix=/Cellar/xgcc/4.9.1 --with-native-system-header-dir=/opt/xglibc/include --with-build-time-tools=/opt/xbinutils/bin --enable-languages=c,c++,objc,obj-c++,fortran --program-suffix=-4.9 --with-gmp=/home/sjackman/.linuxbrew/opt/gmp --with-mpfr=/home/sjackman/.linuxbrew/opt/mpfr --with-mpc=/home/sjackman/.linuxbrew/opt/libmpc --with-cloog=/home/sjackman/.linuxbrew/opt/cloog --with-isl=/home/sjackman/.linuxbrew/opt/isl --with-system-zlib --enable-libstdcxx-time=yes --enable-stage1-checking --enable-checking=release --enable-lto --disable-werror --with-pkgversion='Homebrew xgcc 4.9.1' --without-multilib --with-bugurl='https://github.com/Homebrew/homebrew/issues' --enable-plugin --disable-nls --disable-multilib make[3]: Entering directory '/var/tmp/sjackman/xgcc-f18997/gcc-4.9.1/build/x86_64-unknown-linux-gnu/libstdc++-v3' make "AR_FLAGS=rc" "CC_FOR_BUILD=/home/sjackman/.linuxbrew/bin/gcc-4.4" "CC_FOR_TARGET=/var/tmp/sjackman/xgcc-f18997/gcc-4.9.1/build/./gcc/xgcc -B/var/tmp/sjackman/xgcc-f18997/gcc-4.9.1/build/./gcc/" "CFLAGS=-g -O2 -Os -w -pipe -march=core2" "CXXFLAGS=-Os -w -pipe -march=core2 -D_GNU_SOURCE" "CFLAGS_FOR_BUILD=-Os -w -pipe -march=core2" "CFLAGS_FOR_TARGET=-g -O2 -Os -w -pipe -march=core2" "INSTALL=/home/sjackman/.linuxbrew/bin/ginstall -c" "INSTALL_DATA=/home/sjackman/.linuxbrew/bin/ginstall -c -m 644" "INSTALL_PROGRAM=/home/sjackman/.linuxbrew/bin/ginstall -c" "INSTALL_SCRIPT=/home/sjackman/.linuxbrew/bin/ginstall -c" "LDFLAGS=" "LIBCFLAGS=-g -O2 -Os -w -pipe -march=core2" "LIBCFLAGS_FOR_TARGET=-g -O2 -Os -w -pipe -march=core2" "MAKE=make" "MAKEINFO=makeinfo --split-size=5000000 --split-size=5000000 --split-size=5000000 " "SHELL=/bin/sh" "RUNTESTFLAGS=" "exec_prefix=/Cellar/xgcc/4.9.1" "infodir=/Cellar/xgcc/4.9.1/share/info" "libdir=/Cellar/xgcc/4.9.1/lib" "includedir=/Cellar/xgcc/4.9.1/include" "prefix=/Cellar/xgcc/4.9.1" "tooldir=/Cellar/xgcc/4.9.1/x86_64-unknown-linux-gnu" "gxx_include_dir=/Cellar/xgcc/4.9.1/include/c++/4.9.1" "AR=ar" "AS=/var/tmp/sjackman/xgcc-f18997/gcc-4.9.1/build/./gcc/as" "LD=/var/tmp/sjackman/xgcc-f18997/gcc-4.9.1/build/./gcc/collect-ld" "RANLIB=ranlib" "NM=/var/tmp/sjackman/xgcc-f18997/gcc-4.9.1/build/./gcc/nm" "NM_FOR_BUILD=" "NM_FOR_TARGET=nm" "DESTDIR=" "WERROR=" all-recursive make[4]: Entering directory '/var/tmp/sjackman/xgcc-f18997/gcc-4.9.1/build/x86_64-unknown-linux-gnu/libstdc++-v3' Making all in include make[5]: Entering directory '/var/tmp/sjackman/xgcc-f18997/gcc-4.9.1/build/x86_64-unknown-linux-gnu/libstdc++-v3/include' mkdir -p ./x86_64-unknown-linux-gnu/bits/stdc++.h.gch /var/tmp/sjackman/xgcc-f18997/gcc-4.9.1/build/./gcc/xgcc -shared-libgcc -B/var/tmp/sjackman/xgcc-f18997/gcc-4.9.1/build/./gcc -nostdinc++ -L/var/tmp/sjackman/xgcc-f18997/gcc-4.9.1/build/x86_64-unknown-linux-gnu/libstdc++-v3/src -L/var/tmp/sjackman/xgcc-f18997/gcc-4.9.1/build/x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs -L/var/tmp/sjackman/xgcc-f18997/gcc-4.9.1/build/x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs -B/Cellar/xgcc/4.9.1/x86_64-unknown-linux-gnu/bin/ -B/Cellar/xgcc/4.9.1/x86_64-unknown-linux-gnu/lib/ -isystem /Cellar/xgcc/4.9.1/x86_64-unknown-linux-gnu/include -isystem /Cellar/xgcc/4.9.1/x86_64-unknown-linux-gnu/sys-include -x c++-header -nostdinc++ -Os -w -pipe -march=core2 -D_GNU_SOURCE -I/var/tmp/sjackman/xgcc-f18997/gcc-4.9.1/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu -I/var/tmp/sjackman/xgcc-f18997/gcc-4.9.1/build/x86_64-unknown-linux-gnu/libstdc++-v3/include -I/var/tmp/sjackman/xgcc-f18997/gcc-4.9.1/libstdc++-v3/libsupc++ -O2 -g -std=gnu++0x /var/tmp/sjackman/xgcc-f18997/gcc-4.9.1/libstdc++-v3/include/precompiled/stdc++.h \ -o x86_64-unknown-linux-gnu/bits/stdc++.h.gch/O2ggnu++0x.gch In file included from /var/tmp/sjackman/xgcc-f18997/gcc-4.9.1/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/bits/locale_facets_nonio.h:1898:0, from /var/tmp/sjackman/xgcc-f18997/gcc-4.9.1/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/locale:41, from /var/tmp/sjackman/xgcc-f18997/gcc-4.9.1/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/iomanip:43, from /var/tmp/sjackman/xgcc-f18997/gcc-4.9.1/libstdc++-v3/include/precompiled/stdc++.h:71: /var/tmp/sjackman/xgcc-f18997/gcc-4.9.1/build/x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu/bits/messages_members.h:36:21: fatal error: libintl.h: No such file or directory #include <libintl.h> ^ compilation terminated. Makefile:1596: recipe for target 'x86_64-unknown-linux-gnu/bits/stdc++.h.gch/O2ggnu++0x.gch' failed make[5]: *** [x86_64-unknown-linux-gnu/bits/stdc++.h.gch/O2ggnu++0x.gch] Error 1 make[5]: Leaving directory '/var/tmp/sjackman/xgcc-f18997/gcc-4.9.1/build/x86_64-unknown-linux-gnu/libstdc++-v3/include' Makefile:485: recipe for target 'all-recursive' failed make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory '/var/tmp/sjackman/xgcc-f18997/gcc-4.9.1/build/x86_64-unknown-linux-gnu/libstdc++-v3' Makefile:391: recipe for target 'all' failed make[3]: *** [all] Error 2 make[3]: Leaving directory '/var/tmp/sjackman/xgcc-f18997/gcc-4.9.1/build/x86_64-unknown-linux-gnu/libstdc++-v3' Makefile:12248: recipe for target 'all-stage1-target-libstdc++-v3' failed make[2]: *** [all-stage1-target-libstdc++-v3] Error 2 make[2]: Leaving directory '/var/tmp/sjackman/xgcc-f18997/gcc-4.9.1/build' Makefile:19565: recipe for target 'stage1-bubble' failed make[1]: *** [stage1-bubble] Error 2 make[1]: Leaving directory '/var/tmp/sjackman/xgcc-f18997/gcc-4.9.1/build' Makefile:19885: recipe for target 'bootstrap' failed make: *** [bootstrap] Error 2