public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/18974] New: error in compiling gcc 4.0 for i686-pc-linux-gnu: gengtype-lex.c
@ 2004-12-14  4:48 bbeck4gofls at hotmail dot com
  2004-12-14  4:54 ` [Bug bootstrap/18974] " pinskia at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: bbeck4gofls at hotmail dot com @ 2004-12-14  4:48 UTC (permalink / raw)
  To: gcc-bugs

I posted the following on gcc-help but no one could answer, so I presume it is a
bug.  Looking at Changelog.11, under Per Bothner's 6-30-04 entry, I see "*
gengtype-lex.l: Temporary kludge to avoid duplicate typedef. * gengtype.c:
Update for now typedefs in input.h.  More kludges."  I presume this will be
fixed before the first release, as it seems to me to be a bootstrapping error
for a primary platform.

"Using Debian unstable, gcc 3.3.5, I'm trying to compile gcc 4.0. I unzip the
source into the folder gcc-4.0-20041128, and make another folder gcc. I then 'cd
gcc', '../gcc-4.0-20041128/configure --enable-languages=c,c++', and then 'make'.
After the first build stage, I get the errors: 'gcc: gengtype-lex.c: No such
file or directory', 'gcc: no input files', and 'make[1]: ***
[build/gengtype-lex.o] Error 1'. I've also tried 'make bootstrap', but that
fails with the same errors. I've read the install files, but I didn't see
anything that would help. Can the list help?
Thanks!
Brandon"

-- 
           Summary: error in compiling gcc 4.0 for i686-pc-linux-gnu:
                    gengtype-lex.c
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bbeck4gofls at hotmail dot com
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18974


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

* [Bug bootstrap/18974] error in compiling gcc 4.0 for i686-pc-linux-gnu: gengtype-lex.c
  2004-12-14  4:48 [Bug bootstrap/18974] New: error in compiling gcc 4.0 for i686-pc-linux-gnu: gengtype-lex.c bbeck4gofls at hotmail dot com
@ 2004-12-14  4:54 ` pinskia at gcc dot gnu dot org
  2004-12-14  8:11 ` bbeck4gofls at hotmail dot com
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-12-14  4:54 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-12-14 04:54 -------
There is an error above from {f,}lex, what is the error.

This might be a gcc bug or flex bug or it might be you not having installed flex.
Could you look at the log again and see if you see an error?

Also when released the released tar ball will contain a gengtype-lex.c.

Also nobody is having this problem until you.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18974


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

* [Bug bootstrap/18974] error in compiling gcc 4.0 for i686-pc-linux-gnu: gengtype-lex.c
  2004-12-14  4:48 [Bug bootstrap/18974] New: error in compiling gcc 4.0 for i686-pc-linux-gnu: gengtype-lex.c bbeck4gofls at hotmail dot com
  2004-12-14  4:54 ` [Bug bootstrap/18974] " pinskia at gcc dot gnu dot org
@ 2004-12-14  8:11 ` bbeck4gofls at hotmail dot com
  2004-12-14 13:09 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: bbeck4gofls at hotmail dot com @ 2004-12-14  8:11 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From bbeck4gofls at hotmail dot com  2004-12-14 08:11 -------
Thanks Andrew,
   There were two warnings before the earlier-mentioned error, saying bison and
flex are missing on my system, but that they were only needed if I modified a .y
or .l file.  After emailing gcc-help I installed bison and flex, and tried
compiling again, but kept getting errors referencing a missing 'lexer_line',
when gcc was (I think in stage1) was trying to build build/gengtype from
gengtype.o, gengtype-lex.o, gengtype-yacc.o, errors.o, and libiberty.a.  Again,
I'm using the 11-28-04 tarball, which is not a release, so it doesn't have
gengtype-lex.c, but I just wanted to let the developers know not to forget it in
the eventual release since I'm getting errors bootstrapping even with both bison
and flex installed.  I can give more information if you need it.
Thanks!
Brandon

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |NEW
     Ever Confirmed|                            |1


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18974


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

* [Bug bootstrap/18974] error in compiling gcc 4.0 for i686-pc-linux-gnu: gengtype-lex.c
  2004-12-14  4:48 [Bug bootstrap/18974] New: error in compiling gcc 4.0 for i686-pc-linux-gnu: gengtype-lex.c bbeck4gofls at hotmail dot com
  2004-12-14  4:54 ` [Bug bootstrap/18974] " pinskia at gcc dot gnu dot org
  2004-12-14  8:11 ` bbeck4gofls at hotmail dot com
@ 2004-12-14 13:09 ` pinskia at gcc dot gnu dot org
  2004-12-14 15:45 ` bbeck4gofls at hotmail dot com
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-12-14 13:09 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-12-14 13:08 -------
Can you attach the new log as again this works for everyone I know of.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org
             Status|NEW                         |WAITING


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18974


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

* [Bug bootstrap/18974] error in compiling gcc 4.0 for i686-pc-linux-gnu: gengtype-lex.c
  2004-12-14  4:48 [Bug bootstrap/18974] New: error in compiling gcc 4.0 for i686-pc-linux-gnu: gengtype-lex.c bbeck4gofls at hotmail dot com
                   ` (2 preceding siblings ...)
  2004-12-14 13:09 ` pinskia at gcc dot gnu dot org
@ 2004-12-14 15:45 ` bbeck4gofls at hotmail dot com
  2005-01-24 16:24 ` brett dot albertson at stratech dot com
  2005-01-24 16:28 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: bbeck4gofls at hotmail dot com @ 2004-12-14 15:45 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From bbeck4gofls at hotmail dot com  2004-12-14 15:45 -------
Tell me if you wanted me to include a log besides my standard or error output.
Thanks!

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |NEW


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18974


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

* [Bug bootstrap/18974] error in compiling gcc 4.0 for i686-pc-linux-gnu: gengtype-lex.c
  2004-12-14  4:48 [Bug bootstrap/18974] New: error in compiling gcc 4.0 for i686-pc-linux-gnu: gengtype-lex.c bbeck4gofls at hotmail dot com
                   ` (3 preceding siblings ...)
  2004-12-14 15:45 ` bbeck4gofls at hotmail dot com
@ 2005-01-24 16:24 ` brett dot albertson at stratech dot com
  2005-01-24 16:28 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: brett dot albertson at stratech dot com @ 2005-01-24 16:24 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From brett dot albertson at stratech dot com  2005-01-24 16:23 -------
I think I'm seeing the same problem on Sparc Solaris without bison on the 4.0
bootstrap.

gcc -c   -g -DENABLE_CHECKING -DENABLE_ASSERT_CHECKING -DIN_GCC   -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition
-fno-common   -DHAVE_CONFIG_H -DGENERATOR_FILE    -I. -Ibuild
-I/var/tmp/gcc-4.0-20050123/gcc -I/var/tmp/gcc-4.0-20050123/gcc/build
-I/var/tmp/gcc-4.0-20050123/gcc/../include -I./../intl
-I/var/tmp/gcc-4.0-20050123/gcc/../libcpp/include  \
 -o build/gengtype.o /var/tmp/gcc-4.0-20050123/gcc/gengtype.c
flex  -ogengtype-lex.c /var/tmp/gcc-4.0-20050123/gcc/gengtype-lex.l
/var/tmp/gcc-4.0-20050123/missing bison  -d -o gengtype-yacc.c
/var/tmp/gcc-4.0-20050123/gcc/gengtype-yacc.y
WARNING: `bison' missing on your system.  You should only need it if
         you modified a `.y' file.  You may need the `Bison' package
         in order for those modifications to take effect.  You can get
         `Bison' from any GNU archive site.
gcc -c   -g -DENABLE_CHECKING -DENABLE_ASSERT_CHECKING -DIN_GCC   -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition
-fno-common -Wno-error  -DHAVE_CONFIG_H -DGENERATOR_FILE    -I. -Ibuild
-I/var/tmp/gcc-4.0-20050123/gcc -I/var/tmp/gcc-4.0-20050123/gcc/build
-I/var/tmp/gcc-4.0-20050123/gcc/../include -I./../intl
-I/var/tmp/gcc-4.0-20050123/gcc/../libcpp/include  \
 -o build/gengtype-lex.o gengtype-lex.c
/var/tmp/gcc-4.0-20050123/gcc/gengtype-lex.l:31:27: gengtype-yacc.h: No such
file or directory
/var/tmp/gcc-4.0-20050123/gcc/gengtype-lex.l: In function `yylex':
/var/tmp/gcc-4.0-20050123/gcc/gengtype-lex.l:220: error: `yylval' undeclared
(first use in this function)
/var/tmp/gcc-4.0-20050123/gcc/gengtype-lex.l:220: error: (Each undeclared
identifier is reported only once
/var/tmp/gcc-4.0-20050123/gcc/gengtype-lex.l:220: error: for each function it
appears in.)
/var/tmp/gcc-4.0-20050123/gcc/gengtype-lex.l:225: error: `ENT_TYPEDEF_STRUCT'
undeclared (first use in this function)
/var/tmp/gcc-4.0-20050123/gcc/gengtype-lex.l:225: error: `ENT_STRUCT' undeclared
(first use in this function)
/var/tmp/gcc-4.0-20050123/gcc/gengtype-lex.l:231: error: `ENT_EXTERNSTATIC'
undeclared (first use in this function)
/var/tmp/gcc-4.0-20050123/gcc/gengtype-lex.l:237: error: `ENT_YACCUNION'
undeclared (first use in this function)
/var/tmp/gcc-4.0-20050123/gcc/gengtype-lex.l:280: error: `GTY_TOKEN' undeclared
(first use in this function)
/var/tmp/gcc-4.0-20050123/gcc/gengtype-lex.l:281: error: `UNION' undeclared
(first use in this function)
/var/tmp/gcc-4.0-20050123/gcc/gengtype-lex.l:282: error: `STRUCT' undeclared
(first use in this function)
/var/tmp/gcc-4.0-20050123/gcc/gengtype-lex.l:283: error: `ENUM' undeclared
(first use in this function)
/var/tmp/gcc-4.0-20050123/gcc/gengtype-lex.l:284: error: `ALIAS' undeclared
(first use in this function)
/var/tmp/gcc-4.0-20050123/gcc/gengtype-lex.l:285: error: `NESTED_PTR' undeclared
(first use in this function)
/var/tmp/gcc-4.0-20050123/gcc/gengtype-lex.l:286: error: `NUM' undeclared (first
use in this function)
/var/tmp/gcc-4.0-20050123/gcc/gengtype-lex.l:289: error: `PARAM_IS' undeclared
(first use in this function)
/var/tmp/gcc-4.0-20050123/gcc/gengtype-lex.l:301: error: `SCALAR' undeclared
(first use in this function)
/var/tmp/gcc-4.0-20050123/gcc/gengtype-lex.l:323: error: `ID' undeclared (first
use in this function)
/var/tmp/gcc-4.0-20050123/gcc/gengtype-lex.l:333: error: `STRING' undeclared
(first use in this function)
/var/tmp/gcc-4.0-20050123/gcc/gengtype-lex.l:337: error: `ARRAY' undeclared
(first use in this function)
/var/tmp/gcc-4.0-20050123/gcc/gengtype-lex.l:341: error: `PERCENT_ID' undeclared
(first use in this function)
/var/tmp/gcc-4.0-20050123/gcc/gengtype-lex.l:345: error: `CHAR' undeclared
(first use in this function)
/var/tmp/gcc-4.0-20050123/gcc/gengtype-lex.l:361: error: `PERCENTPERCENT'
undeclared (first use in this function)
gengtype-lex.c: In function `yy_get_next_buffer':
gengtype-lex.c:2623: warning: old-style parameter declaration
gengtype-lex.c: In function `yy_get_previous_state':
gengtype-lex.c:2755: warning: old-style parameter declaration
gengtype-lex.c: In function `input':
gengtype-lex.c:2868: warning: old-style parameter declaration
make[2]: *** [build/gengtype-lex.o] Error 1
make[2]: Leaving directory `/var/tmp/gcc-4.0-bin/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/var/tmp/gcc-4.0-bin/gcc'
make: *** [bootstrap] Error 2
dev-null:{root}#      




-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18974


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

* [Bug bootstrap/18974] error in compiling gcc 4.0 for i686-pc-linux-gnu: gengtype-lex.c
  2004-12-14  4:48 [Bug bootstrap/18974] New: error in compiling gcc 4.0 for i686-pc-linux-gnu: gengtype-lex.c bbeck4gofls at hotmail dot com
                   ` (4 preceding siblings ...)
  2005-01-24 16:24 ` brett dot albertson at stratech dot com
@ 2005-01-24 16:28 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-24 16:28 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-01-24 16:28 -------
Actually if you are compiling from source from a snapshot you need both bison and flex.

This is invalid.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18974


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

end of thread, other threads:[~2005-01-24 16:28 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-14  4:48 [Bug bootstrap/18974] New: error in compiling gcc 4.0 for i686-pc-linux-gnu: gengtype-lex.c bbeck4gofls at hotmail dot com
2004-12-14  4:54 ` [Bug bootstrap/18974] " pinskia at gcc dot gnu dot org
2004-12-14  8:11 ` bbeck4gofls at hotmail dot com
2004-12-14 13:09 ` pinskia at gcc dot gnu dot org
2004-12-14 15:45 ` bbeck4gofls at hotmail dot com
2005-01-24 16:24 ` brett dot albertson at stratech dot com
2005-01-24 16:28 ` pinskia at gcc dot gnu dot org

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