On Mon, Mar 18, 2013 at 3:13 AM, Andrew Haley <aph@xxxxxxxxxx> wrote: > On 03/18/2013 06:07 AM, zero modulo wrote: >> $ LDFLAGS="-L/sandbox/builds/lib" CPPFLAGS="-I/sandbox/builds/include" >> ./configure --prefix=$PREFIX >> [...] > > Don't run configure with the source dir as cwd. Instead, create a > build dir and run configure from there. > > In the top-level source dir, run ./contrib/download-prerequisites > before running configure. > > Andrew > Oops, forgot to reply to all. Anyway... Hi Andrew, I actually did that afterward while looking into the problem. I still had the same errors even after creating a separate build directory. I had it set up as ./gcc-4.7.2-build and ./gcc-4.7.2. I ended up passing the path to each include directory explicitly, using the --with-mpfr-include, --with-gmp-include, and --with-mpc-include options. These parameters resolved the issue. Although, I am now having issues with texinfo, but that's probably for a separate thread.