Possibly hindering error when invoking "make"

Ian Lance Taylor iant@google.com
Thu Jan 12 20:54:00 GMT 2012


Brian Lee <brian.h.lee.90@gmail.com> writes:

> I tried to follow the instructions on the page http://gcc.gnu.org/install/configure.html to the best of my ability. I created a directory called "objdir" under my home directory, entered that directory, and invoked "gcc/configure --enable-languages=c,c++". Thank you.

If you literally typed "gcc/configure", that won't work.  It implies
that you put the gcc sources in a gcc subdirectory of your objdir
directory.  That will fail.

If you have unpacked your sources into a directory gcc, then do
something like

mkdir objdir
cd objdir
../gcc/configure --enable-languages=c,c++

That is, run the configure script in an empty directory.

Ian


> On Jan 12, 2012, at 10:13 AM, Ian Lance Taylor wrote:
>
>> Brian Lee <brian.h.lee.90@gmail.com> writes:
>> 
>>> To Whom It May Concern:
>>> 
>>> I cannot retrieve the output when I invoked "make" at the time of the error. However, I just invoked "make" and the following output showed up:
>>> 
>>> [ -f stage_final ] || echo stage3 > stage_final
>>> rm -f stage_current
>>> /bin/sh: gcc/mkinstalldirs: No such file or directory
>>> make[2]: *** [stage1-start] Error 127
>>> Makefile:786: gcc/config/bootstrap-debug.mk: No such file or directory
>>> make[2]: *** No rule to make target `gcc/config/bootstrap-debug.mk'.  Stop.
>>> make[1]: *** [stage1-bubble] Error 2
>>> make: *** [all] Error 2
>>> 
>>> The "gcc" directory under the build/object directory that I created appears to be missing, but there is a "stage1-gcc" directory. Thank you.
>> 
>> How exactly did you run the configure script?
>> 
>> Ian



More information about the Gcc-help mailing list