public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Ian Lance Taylor <iant@google.com>
To: Gabriel Dos Reis <gdr@cs.tamu.edu>
Cc: binutils@sourceware.org
Subject: Re: build failure of gold (trunk)
Date: Fri, 04 Mar 2011 18:44:00 -0000	[thread overview]
Message-ID: <mcrd3m620a4.fsf@google.com> (raw)
In-Reply-To: <87hbbiyg31.fsf@gauss.cs.tamu.edu> (Gabriel Dos Reis's message of	"Fri, 04 Mar 2011 11:02:10 -0600")

Gabriel Dos Reis <gdr@cs.tamu.edu> writes:

> A fresh check out of CVS gold fails to build with the following error:
>
> In file included from
> /home/gdr/src/sourceware/src/gold/expression.cc:33:0:
> /home/gdr/src/sourceware/src/gold/script-c.h:221:7: error: ‘yylex’ initialized and declared ‘extern’
> /home/gdr/src/sourceware/src/gold/script-c.h:221:7: error: ‘YYSTYPE’ was not declared in this scope
> /home/gdr/src/sourceware/src/gold/script-c.h:221:15: error: expected primary-expression before ‘,’ token
> /home/gdr/src/sourceware/src/gold/script-c.h:221:17: error: expected primary-expression before ‘void’
> /home/gdr/src/sourceware/src/gold/script-c.h:221:30: error: initializer expression list treated as compound expression
>
>
> this is with GCC-4.5.0.

What version of bison do you have installed on your system?

It looks like YYSTYPE is not defined in the generated file yyscript.h.
That file is generated by bison.  The definition should look like

typedef union YYSTYPE
{
  ...
} YYSTYPE;

Ian

  reply	other threads:[~2011-03-04 18:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-04 17:02 Gabriel Dos Reis
2011-03-04 18:44 ` Ian Lance Taylor [this message]
2011-03-04 21:45   ` Gabriel Dos Reis
2011-03-04 23:39     ` Ian Lance Taylor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=mcrd3m620a4.fsf@google.com \
    --to=iant@google.com \
    --cc=binutils@sourceware.org \
    --cc=gdr@cs.tamu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).