You are a saver!!! The rebuild works like magic! :) On Tue, Nov 26, 2013 at 2:40 PM, Jonathan Wakely <jwakely.gcc@xxxxxxxxx> wrote: > On 26 November 2013 13:22, dellair jie wrote: >> Thanks Jon, >> >> Regarding the "permisison denied" error, I have added >> "-DLOCAL_INCLUDE_DIR" and setup the environment variable to >> /usr/include folder. > > I'm not sure what you've done here. It would help to show the exact > commands you used. > >> However, I am still getting it in config.log. >> >> Any ideas on how to get this solved? >> >> Our environment is setup like: >> All standard head files are under /usr/include >> The /usr/local/include exist but only readable to root. > > GCC cannot be used if one of the directories in its search path is not readable. > > Have you tried using the --with-local-prefix=/usr configuration option? > See http://gcc.gnu.org/install/configure.html