public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Possibly hindering error when invoking "make"
@ 2012-01-11  6:13 Brian Lee
  2012-01-11  7:33 ` Ian Lance Taylor
  0 siblings, 1 reply; 8+ messages in thread
From: Brian Lee @ 2012-01-11  6:13 UTC (permalink / raw)
  To: gcc-help

To Whom It May Concern:

I got an error when I tried invoking "make" in order to install GCC 4.6.2. This is some of the output:

Makefile:26: *** missing separator.  Stop.
make[2]: *** [all-stage1-gcc] Error 2
make[1]: *** [stage1-bubble] Error 2
make: *** [all] Error 2

Is this an expected error? Thank you.

Sincerely,

Brian Lee

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Possibly hindering error when invoking "make"
  2012-01-11  6:13 Possibly hindering error when invoking "make" Brian Lee
@ 2012-01-11  7:33 ` Ian Lance Taylor
  0 siblings, 0 replies; 8+ messages in thread
From: Ian Lance Taylor @ 2012-01-11  7:33 UTC (permalink / raw)
  To: Brian Lee; +Cc: gcc-help

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

> I got an error when I tried invoking "make" in order to install GCC 4.6.2. This is some of the output:
>
> Makefile:26: *** missing separator.  Stop.
> make[2]: *** [all-stage1-gcc] Error 2
> make[1]: *** [stage1-bubble] Error 2
> make: *** [all] Error 2
>
> Is this an expected error? Thank you.

This is not an expected error.

Note that gcc can only be built with GNU make.  See
http://gcc.gnu.org/install/prerequisites.html .

Ian

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Possibly hindering error when invoking "make"
  2012-01-12 20:54     ` Ian Lance Taylor
  2012-01-13  9:30       ` Jonathan Wakely
@ 2012-01-16 10:44       ` Brian Lee
  1 sibling, 0 replies; 8+ messages in thread
From: Brian Lee @ 2012-01-16 10:44 UTC (permalink / raw)
  To: Ian Lance Taylor; +Cc: gcc-help

Dear Mr. Taylor:

I have successfully gone through the process of installing GCC 4.6.2. Thank you for helping me resolve my issue.

Sincerely,

Brian Lee

On Jan 12, 2012, at 11:59 AM, Ian Lance Taylor wrote:

> 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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Possibly hindering error when invoking "make"
  2012-01-12 20:54     ` Ian Lance Taylor
@ 2012-01-13  9:30       ` Jonathan Wakely
  2012-01-16 10:44       ` Brian Lee
  1 sibling, 0 replies; 8+ messages in thread
From: Jonathan Wakely @ 2012-01-13  9:30 UTC (permalink / raw)
  To: Brian Lee; +Cc: gcc-help

The simplest possible steps to build gcc are documented at
http://gcc.gnu.org/wiki/InstallingGCC

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Possibly hindering error when invoking "make"
  2012-01-12 19:59   ` Brian Lee
@ 2012-01-12 20:54     ` Ian Lance Taylor
  2012-01-13  9:30       ` Jonathan Wakely
  2012-01-16 10:44       ` Brian Lee
  0 siblings, 2 replies; 8+ messages in thread
From: Ian Lance Taylor @ 2012-01-12 20:54 UTC (permalink / raw)
  To: Brian Lee; +Cc: gcc-help

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Possibly hindering error when invoking "make"
  2012-01-12 18:55 ` Ian Lance Taylor
@ 2012-01-12 19:59   ` Brian Lee
  2012-01-12 20:54     ` Ian Lance Taylor
  0 siblings, 1 reply; 8+ messages in thread
From: Brian Lee @ 2012-01-12 19:59 UTC (permalink / raw)
  To: Ian Lance Taylor; +Cc: gcc-help

Dear Mr. Taylor:

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.

Sincerely,

Brian Lee

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Possibly hindering error when invoking "make"
  2012-01-12 18:13 Brian Lee
@ 2012-01-12 18:55 ` Ian Lance Taylor
  2012-01-12 19:59   ` Brian Lee
  0 siblings, 1 reply; 8+ messages in thread
From: Ian Lance Taylor @ 2012-01-12 18:55 UTC (permalink / raw)
  To: Brian Lee; +Cc: gcc-help

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Possibly hindering error when invoking "make"
@ 2012-01-12 18:13 Brian Lee
  2012-01-12 18:55 ` Ian Lance Taylor
  0 siblings, 1 reply; 8+ messages in thread
From: Brian Lee @ 2012-01-12 18:13 UTC (permalink / raw)
  To: gcc-help

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.

Sincerely,

Brian Lee

P.S. The following is the correspondence that I had with Mr. Taylor:

From: Ian Lance Taylor <iant@google.com>
Date: January 11, 2012 6:45:52 AM PST
To: Brian Lee <brian.h.lee.90@gmail.com>
Subject: Re: Possibly hindering error when invoking "make"

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

I had GNU Make 3.81 at the time of the error. Perhaps I needed a newer version of GNU Make? Thank you.

Please reply to the mailing list, not just to me.  Thanks.

As the web site explains, you need GNU make version 3.80.  But if you
are using GNU make, then that is probably not the problem.  Show us the
lines in the Makefile that make is complaining about.

Ian

On Jan 10, 2012, at 8:55 PM, Ian Lance Taylor wrote:

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

I got an error when I tried invoking "make" in order to install GCC 4.6.2. This is some of the output:

Makefile:26: *** missing separator.  Stop.
make[2]: *** [all-stage1-gcc] Error 2
make[1]: *** [stage1-bubble] Error 2
make: *** [all] Error 2

Is this an expected error? Thank you.

This is not an expected error.

Note that gcc can only be built with GNU make.  See
http://gcc.gnu.org/install/prerequisites.html .

Ian

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-01-16  7:38 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-11  6:13 Possibly hindering error when invoking "make" Brian Lee
2012-01-11  7:33 ` Ian Lance Taylor
2012-01-12 18:13 Brian Lee
2012-01-12 18:55 ` Ian Lance Taylor
2012-01-12 19:59   ` Brian Lee
2012-01-12 20:54     ` Ian Lance Taylor
2012-01-13  9:30       ` Jonathan Wakely
2012-01-16 10:44       ` Brian Lee

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).