Build failing with Makefile Errors

971 views
Skip to first unread message

Avinash

unread,
Jan 28, 2011, 9:21:52 AM1/28/11
to golang-dev
bash-2.05b$ ./all.bash
Make.inc:33: Extraneous text after `else' directive
Make.inc:34: Extraneous text after `else' directive
Make.inc:34: *** only one `else' per conditional. Stop.
Did not find Go environment variables.
bash-2.05b$ make --version
GNU Make 3.80
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
bash-2.05b$ echo $GOOS
linux
bash-2.05b$ echo $GOROOT
/home/avdongre/work/go
bash-2.05b$ echo $GOARCH
386
bash-2.05b$ uname -a
Linux <hostname> 2.4.21-9.ELsmp #1 SMP Thu Jan 8 17:08:56 EST 2004
i686 i686 i386 GNU/Linux

Russ Cox

unread,
Jan 28, 2011, 9:26:17 AM1/28/11
to Avinash, golang-dev
On Fri, Jan 28, 2011 at 09:21, Avinash <dongre....@gmail.com> wrote:
> bash-2.05b$ ./all.bash
> Make.inc:33: Extraneous text after `else' directive
> Make.inc:34: Extraneous text after `else' directive
> Make.inc:34: *** only one `else' per conditional.  Stop.
> Did not find Go environment variables.
> bash-2.05b$ make --version
> GNU Make 3.80
> Copyright (C) 2002  Free Software Foundation, Inc.

If you upgrade to a newer version of GNU make
the build will be fine. The version 3.80 does not know
about "else if". (It is also 9 years old!)

Russ

Avinash Dongre

unread,
Jan 28, 2011, 9:49:24 AM1/28/11
to r...@golang.org, golang-dev
Thanks, it started working

Christian Himpel

unread,
Jan 28, 2011, 9:52:38 AM1/28/11
to Avinash, golang-dev
On Fri, Jan 28, 2011 at 3:21 PM, Avinash <dongre....@gmail.com> wrote:
> bash-2.05b$ uname -a
> Linux <hostname> 2.4.21-9.ELsmp #1 SMP Thu Jan 8 17:08:56 EST 2004

consider that not everything might work as expected on pre-2.6 kernels[1]..

[1]: <http://groups.google.com/group/golang-nuts/msg/956e1714ac3756d1>

cheers..

Reply all
Reply to author
Forward
0 new messages