public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* build failure of gold (trunk)
@ 2011-03-04 17:02 Gabriel Dos Reis
  2011-03-04 18:44 ` Ian Lance Taylor
  0 siblings, 1 reply; 4+ messages in thread
From: Gabriel Dos Reis @ 2011-03-04 17:02 UTC (permalink / raw)
  To: iant; +Cc: binutils


Hi Ian,

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.

-- Gaby

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

* Re: build failure of gold (trunk)
  2011-03-04 17:02 build failure of gold (trunk) Gabriel Dos Reis
@ 2011-03-04 18:44 ` Ian Lance Taylor
  2011-03-04 21:45   ` Gabriel Dos Reis
  0 siblings, 1 reply; 4+ messages in thread
From: Ian Lance Taylor @ 2011-03-04 18:44 UTC (permalink / raw)
  To: Gabriel Dos Reis; +Cc: binutils

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

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

* Re: build failure of gold (trunk)
  2011-03-04 18:44 ` Ian Lance Taylor
@ 2011-03-04 21:45   ` Gabriel Dos Reis
  2011-03-04 23:39     ` Ian Lance Taylor
  0 siblings, 1 reply; 4+ messages in thread
From: Gabriel Dos Reis @ 2011-03-04 21:45 UTC (permalink / raw)
  To: Ian Lance Taylor; +Cc: binutils

Ian Lance Taylor <iant@google.com> writes:

| 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

I have bison 2.4.1.  

-- Gaby

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

* Re: build failure of gold (trunk)
  2011-03-04 21:45   ` Gabriel Dos Reis
@ 2011-03-04 23:39     ` Ian Lance Taylor
  0 siblings, 0 replies; 4+ messages in thread
From: Ian Lance Taylor @ 2011-03-04 23:39 UTC (permalink / raw)
  To: Gabriel Dos Reis; +Cc: binutils

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

> Ian Lance Taylor <iant@google.com> writes:
>
> | 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
>
> I have bison 2.4.1.  


What does YYSTYPE look like in the generated yyscript.h file?

Is script-c.h somehow #include'ing some yyscript.h file other than the
one in the build directory?  E.g., is there somehow a yyscript.h in the
source directory?

Ian

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

end of thread, other threads:[~2011-03-04 23:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-04 17:02 build failure of gold (trunk) Gabriel Dos Reis
2011-03-04 18:44 ` Ian Lance Taylor
2011-03-04 21:45   ` Gabriel Dos Reis
2011-03-04 23:39     ` Ian Lance Taylor

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).