public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Compilation Error with
@ 2012-08-15 17:35 Ron Stubbs
  2012-08-15 17:45 ` Jonathan Wakely
  0 siblings, 1 reply; 2+ messages in thread
From: Ron Stubbs @ 2012-08-15 17:35 UTC (permalink / raw)
  To: gcc-help

Hi,

I get the following compiler error when building GCC 4.8
(gcc-4.8-20120812) on an x86_64 system running Scientific Linux 6.2.

=========================================================
build/gengtype.o: In function `create_optional_field_':
/opt/gcc-4.8-20120812/host-x86_64-unknown-linux-gnu/gcc/../.././gcc/gengtype.c:854:
undefined reference to `lexer_line'
build/gengtype.o: In function `adjust_field_rtx_def':
/opt/gcc-4.8-20120812/host-x86_64-unknown-linux-gnu/gcc/../.././gcc/gengtype.c:989:
undefined reference to `lexer_line'
/opt/gcc-4.8-20120812/host-x86_64-unknown-linux-gnu/gcc/../.././gcc/gengtype.c:1045:
undefined reference to `lexer_line'
/opt/gcc-4.8-20120812/host-x86_64-unknown-linux-gnu/gcc/../.././gcc/gengtype.c:1055:
undefined reference to `lexer_line'
/opt/gcc-4.8-20120812/host-x86_64-unknown-linux-gnu/gcc/../.././gcc/gengtype.c:1120:
undefined reference to `lexer_line'
build/gengtype.o:/opt/gcc-4.8-20120812/host-x86_64-unknown-linux-gnu/gcc/../.././gcc/gengtype.c:1159:
more undefined references to `lexer_line' follow
build/gengtype-parse.o: In function `token':
/opt/gcc-4.8-20120812/host-x86_64-unknown-linux-gnu/gcc/../.././gcc/gengtype-parse.c:53:
undefined reference to `yylex'
build/gengtype-parse.o: In function `parse_error':
/opt/gcc-4.8-20120812/host-x86_64-unknown-linux-gnu/gcc/../.././gcc/gengtype-parse.c:142:
undefined reference to `lexer_line'
/opt/gcc-4.8-20120812/host-x86_64-unknown-linux-gnu/gcc/../.././gcc/gengtype-parse.c:142:
undefined reference to `lexer_line'
build/gengtype-parse.o: In function `struct_field_seq':
/opt/gcc-4.8-20120812/host-x86_64-unknown-linux-gnu/gcc/../.././gcc/gengtype-parse.c:689:
undefined reference to `lexer_line'
build/gengtype-parse.o: In function `type':
/opt/gcc-4.8-20120812/host-x86_64-unknown-linux-gnu/gcc/../.././gcc/gengtype-parse.c:723:
undefined reference to `lexer_line'
/opt/gcc-4.8-20120812/host-x86_64-unknown-linux-gnu/gcc/../.././gcc/gengtype-parse.c:755:
undefined reference to `lexer_line'
build/gengtype-parse.o:/opt/gcc-4.8-20120812/host-x86_64-unknown-linux-gnu/gcc/../.././gcc/gengtype-parse.c:755:
more undefined references to `lexer_line' follow
build/gengtype-parse.o: In function `parse_file':
/opt/gcc-4.8-20120812/host-x86_64-unknown-linux-gnu/gcc/../.././gcc/gengtype-parse.c:948:
undefined reference to `yybegin'
/opt/gcc-4.8-20120812/host-x86_64-unknown-linux-gnu/gcc/../.././gcc/gengtype-parse.c:983:
undefined reference to `lexer_toplevel_done'
/opt/gcc-4.8-20120812/host-x86_64-unknown-linux-gnu/gcc/../.././gcc/gengtype-parse.c:988:
undefined reference to `yyend'
collect2: ld returned 1 exit status
make[3]: *** [build/gengtype] Error 1
make[3]: Leaving directory
`/opt/gcc-4.8-20120812/host-x86_64-unknown-linux-gnu/gcc'
make[2]: *** [all-stage1-gcc] Error 2
make[2]: Leaving directory `/opt/gcc-4.8-20120812'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/opt/gcc-4.8-20120812'
make: *** [all] Error 2
=======================================================================


Any guidance would be appreciated.

Thanks,
Ron

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Ron Stubbs MS CS
Senior Systems Programmer
Research Computing
Pratt School of Engineering
410 Teer Bldg. P.O. Box 90271
Duke University, Durham, N.C. 27708-0271
office: (919)660-5339   cell:(919)641-5689
fax: (919) 613-9156
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

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

* Re: Compilation Error with
  2012-08-15 17:35 Compilation Error with Ron Stubbs
@ 2012-08-15 17:45 ` Jonathan Wakely
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Wakely @ 2012-08-15 17:45 UTC (permalink / raw)
  To: ron.stubbs; +Cc: gcc-help

On 15 August 2012 18:32, Ron Stubbs wrote:
> Hi,
>
> I get the following compiler error when building GCC 4.8
> (gcc-4.8-20120812) on an x86_64 system running Scientific Linux 6.2.
>
> =========================================================
> build/gengtype.o: In function `create_optional_field_':
> /opt/gcc-4.8-20120812/host-x86_64-unknown-linux-gnu/gcc/../.././gcc/gengtype.c:854:
> undefined reference to `lexer_line'

I think this means you need to install Flex 2.5.4 or later.

http://gcc.gnu.org/install/prerequisites.html documents it as
"Necessary to build GCC during development because the generated
output files are not included in the SVN repository. They are included
in releases. "

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

end of thread, other threads:[~2012-08-15 17:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-15 17:35 Compilation Error with Ron Stubbs
2012-08-15 17:45 ` Jonathan Wakely

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