public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/55163] New: Ongoing problem with gengtype-lex.c under CygWin with CRLF text mode line endings since 4.8
@ 2012-11-01 11:03 nico at josuttis dot de
  2013-02-08 15:42 ` [Bug bootstrap/55163] [4.8 Regression] " rguenth at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: nico at josuttis dot de @ 2012-11-01 11:03 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 55163
           Summary: Ongoing problem with gengtype-lex.c under CygWin with
                    CRLF text mode line endings since 4.8
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: nico@josuttis.de


For all versions of 4.8.0 I tried to compile, I run into the same problem
when building a C++ compiler in my CygWin environment.

The error is as follows:
========================
flex  -ogengtype-lex.c ../../src/gcc/gengtype-lex.l && { \
  echo '#include "bconfig.h"' > gengtype-lex.c.tmp; \
  cat gengtype-lex.c >> gengtype-lex.c.tmp; \
  mv gengtype-lex.c.tmp gengtype-lex.c; \
}
g++ -c   -g -O2 -DIN_GCC    -fno-exceptions -fno-rtti
-fasynchronous-unwind-tables -W -Wall -Wwrite-strings -Wcast-qual
-Wmissing-format-attribute -fno-common -Wno-error -DHAVE_CONFIG_H
-DGENERATOR_FILE -I. -Ibuild -I../../src/gcc -I../../src/gcc/build 
-I../../src/gcc/../include   -I../../src/gcc/../libcpp/include
-I/cygdrive/p/gcc/gcc-trunk-install/build/./gmp
-I/cygdrive/p/gcc/gcc-trunk-install/src/gmp
-I/cygdrive/p/gcc/gcc-trunk-install/build/./mpfr
-I/cygdrive/p/gcc/gcc-trunk-install/src/mpfr
-I/cygdrive/p/gcc/gcc-trunk-install/src/mpc/src 
-I../../src/gcc/../libdecnumber -I../../src/gcc/../libdecnumber/bid
-I../libdecnumber -I../../src/gcc/../libbacktrace     \
    -o build/gengtype-lex.o gengtype-lex.c
gengtype-lex.c:332: error: expected unqualified-id before "do"
gengtype-lex.c:332: error: expected `,' or `;' before "do"
gengtype-lex.c:352: error: expected unqualified-id before "while"
gengtype-lex.c:352: error: expected `,' or `;' before "while"
gengtype-lex.c:394: error: `yy_size_t' does not name a type
gengtype-lex.c:524: error: expected unqualified-id before '?' token
...

It seems that there is a CR/LF problem because I can fix it by
running
 /usr/bin/sed -e 's/^M$//' 
on the generated gengtype-lex.c and then continue with the build.

It looks like my CygWin settings let gengtype-lex.c get created with
some CR/LF combinations, which the compiler is then not able to handle.
This is probably caused by having DOS/text default file system type:
 $ mount -m
 none /cygdrive cygdrive text,posix=0,user 0 0

However, as I might not be the only one having text mode (with CRLF generated)
as default, we should better fix this problem.

Note that with gcc 4.7.x this problem does not exist, so this problem is new
with 4.8.


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

* [Bug bootstrap/55163] [4.8 Regression] Ongoing problem with gengtype-lex.c under CygWin with CRLF text mode line endings since 4.8
  2012-11-01 11:03 [Bug bootstrap/55163] New: Ongoing problem with gengtype-lex.c under CygWin with CRLF text mode line endings since 4.8 nico at josuttis dot de
@ 2013-02-08 15:42 ` rguenth at gcc dot gnu.org
  2013-02-15 10:32 ` steven at gcc dot gnu.org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-02-08 15:42 UTC (permalink / raw)
  To: gcc-bugs


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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |cygwin
               Host|                            |cygwin
   Target Milestone|---                         |4.8.0
            Summary|Ongoing problem with        |[4.8 Regression] Ongoing
                   |gengtype-lex.c under CygWin |problem with gengtype-lex.c
                   |with CRLF text mode line    |under CygWin with CRLF text
                   |endings since 4.8           |mode line endings since 4.8


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

* [Bug bootstrap/55163] [4.8 Regression] Ongoing problem with gengtype-lex.c under CygWin with CRLF text mode line endings since 4.8
  2012-11-01 11:03 [Bug bootstrap/55163] New: Ongoing problem with gengtype-lex.c under CygWin with CRLF text mode line endings since 4.8 nico at josuttis dot de
  2013-02-08 15:42 ` [Bug bootstrap/55163] [4.8 Regression] " rguenth at gcc dot gnu.org
@ 2013-02-15 10:32 ` steven at gcc dot gnu.org
  2013-02-20 14:06 ` rguenth at gcc dot gnu.org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: steven at gcc dot gnu.org @ 2013-02-15 10:32 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #1 from Steven Bosscher <steven at gcc dot gnu.org> 2013-02-15 10:32:22 UTC ---
What happens with GCC 4.7 if you configure with --enable-build-with-cxx ?


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

* [Bug bootstrap/55163] [4.8 Regression] Ongoing problem with gengtype-lex.c under CygWin with CRLF text mode line endings since 4.8
  2012-11-01 11:03 [Bug bootstrap/55163] New: Ongoing problem with gengtype-lex.c under CygWin with CRLF text mode line endings since 4.8 nico at josuttis dot de
  2013-02-08 15:42 ` [Bug bootstrap/55163] [4.8 Regression] " rguenth at gcc dot gnu.org
  2013-02-15 10:32 ` steven at gcc dot gnu.org
@ 2013-02-20 14:06 ` rguenth at gcc dot gnu.org
  2013-03-22 14:48 ` [Bug bootstrap/55163] [4.8/4.9 Regression] Ongoing problem with gengtype-lex.c under CygWin with CRLF text mode line endings since 4.8/4.9 jakub at gcc dot gnu.org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-02-20 14:06 UTC (permalink / raw)
  To: gcc-bugs


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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2013-02-20
     Ever Confirmed|0                           |1

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> 2013-02-20 14:05:37 UTC ---
Note that this is your host C++ compiler complaining - GCC now needs a C++
compiler to build.  What version is your host compiler?

It looks like there is a mismatch of the hosts flex / g++ expectations
about line-endings (though I don't remember that g++ ever cared for that
difference for me ...).

What's your LANG/LC_* environment?  Maybe you confuse GCCs input character
set somehow.


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

* [Bug bootstrap/55163] [4.8/4.9 Regression] Ongoing problem with gengtype-lex.c under CygWin with CRLF text mode line endings since 4.8/4.9
  2012-11-01 11:03 [Bug bootstrap/55163] New: Ongoing problem with gengtype-lex.c under CygWin with CRLF text mode line endings since 4.8 nico at josuttis dot de
                   ` (2 preceding siblings ...)
  2013-02-20 14:06 ` rguenth at gcc dot gnu.org
@ 2013-03-22 14:48 ` jakub at gcc dot gnu.org
  2013-05-31 11:00 ` jakub at gcc dot gnu.org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2013-03-22 14:48 UTC (permalink / raw)
  To: gcc-bugs


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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.8.0                       |4.8.1

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> 2013-03-22 14:46:08 UTC ---
GCC 4.8.0 is being released, adjusting target milestone.


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

* [Bug bootstrap/55163] [4.8/4.9 Regression] Ongoing problem with gengtype-lex.c under CygWin with CRLF text mode line endings since 4.8/4.9
  2012-11-01 11:03 [Bug bootstrap/55163] New: Ongoing problem with gengtype-lex.c under CygWin with CRLF text mode line endings since 4.8 nico at josuttis dot de
                   ` (3 preceding siblings ...)
  2013-03-22 14:48 ` [Bug bootstrap/55163] [4.8/4.9 Regression] Ongoing problem with gengtype-lex.c under CygWin with CRLF text mode line endings since 4.8/4.9 jakub at gcc dot gnu.org
@ 2013-05-31 11:00 ` jakub at gcc dot gnu.org
  2013-10-16  9:50 ` jakub at gcc dot gnu.org
  2013-10-25 11:49 ` rguenth at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2013-05-31 11:00 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.8.1                       |4.8.2

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 4.8.1 has been released.


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

* [Bug bootstrap/55163] [4.8/4.9 Regression] Ongoing problem with gengtype-lex.c under CygWin with CRLF text mode line endings since 4.8/4.9
  2012-11-01 11:03 [Bug bootstrap/55163] New: Ongoing problem with gengtype-lex.c under CygWin with CRLF text mode line endings since 4.8 nico at josuttis dot de
                   ` (4 preceding siblings ...)
  2013-05-31 11:00 ` jakub at gcc dot gnu.org
@ 2013-10-16  9:50 ` jakub at gcc dot gnu.org
  2013-10-25 11:49 ` rguenth at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2013-10-16  9:50 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.8.2                       |4.8.3

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 4.8.2 has been released.


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

* [Bug bootstrap/55163] [4.8/4.9 Regression] Ongoing problem with gengtype-lex.c under CygWin with CRLF text mode line endings since 4.8/4.9
  2012-11-01 11:03 [Bug bootstrap/55163] New: Ongoing problem with gengtype-lex.c under CygWin with CRLF text mode line endings since 4.8 nico at josuttis dot de
                   ` (5 preceding siblings ...)
  2013-10-16  9:50 ` jakub at gcc dot gnu.org
@ 2013-10-25 11:49 ` rguenth at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-10-25 11:49 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

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

--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> ---
No answer.


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

end of thread, other threads:[~2013-10-25 11:49 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-01 11:03 [Bug bootstrap/55163] New: Ongoing problem with gengtype-lex.c under CygWin with CRLF text mode line endings since 4.8 nico at josuttis dot de
2013-02-08 15:42 ` [Bug bootstrap/55163] [4.8 Regression] " rguenth at gcc dot gnu.org
2013-02-15 10:32 ` steven at gcc dot gnu.org
2013-02-20 14:06 ` rguenth at gcc dot gnu.org
2013-03-22 14:48 ` [Bug bootstrap/55163] [4.8/4.9 Regression] Ongoing problem with gengtype-lex.c under CygWin with CRLF text mode line endings since 4.8/4.9 jakub at gcc dot gnu.org
2013-05-31 11:00 ` jakub at gcc dot gnu.org
2013-10-16  9:50 ` jakub at gcc dot gnu.org
2013-10-25 11:49 ` rguenth at gcc dot gnu.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).