public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/16024] New: gengtype crashes with mingw and c++ extension
@ 2004-06-16 19:26 jfierstone at gmx dot net
  2004-06-16 19:30 ` [Bug c++/16024] " jfierstone at gmx dot net
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: jfierstone at gmx dot net @ 2004-06-16 19:26 UTC (permalink / raw)
  To: gcc-bugs

When building gcc 3.4 with c++, gengtype.exe crashes (without the c++ extension
package, it works):

gcc -v -save-temps -c   -g  -DIN_GCC -DCROSS_COMPILE  -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long   
-DHAVE_CONFIG_H -DGENERATOR_FILE    -I. -I.
-I../../source/gcc-3.4.0-20040501-1/gcc
-I../../source/gcc-3.4.0-20040501-1/gcc/.
-I../../source/gcc-3.4.0-20040501-1/gcc/../include -I../intl
/c/build/gcc/dev/gcc_3.4.0/source/gcc-3.4.0-20040501-1/gcc/gengtype.c -o gengtype.o
flex  -ogengtype-lex.c
/c/build/gcc/dev/gcc_3.4.0/source/gcc-3.4.0-20040501-1/gcc/gengtype-lex.l
bison  -d -o gengtype-yacc.c
/c/build/gcc/dev/gcc_3.4.0/source/gcc-3.4.0-20040501-1/gcc/gengtype-yacc.y
gcc -v -save-temps -c   -g  -DIN_GCC -DCROSS_COMPILE  -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long  -Wno-error 
-DHAVE_CONFIG_H -DGENERATOR_FILE    -I. -I.
-I../../source/gcc-3.4.0-20040501-1/gcc
-I../../source/gcc-3.4.0-20040501-1/gcc/.
-I../../source/gcc-3.4.0-20040501-1/gcc/../include -I../intl \
 gengtype-lex.c -o gengtype-lex.o
gcc -v -save-temps -c   -g  -DIN_GCC -DCROSS_COMPILE  -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long  -Wno-error 
-DHAVE_CONFIG_H -DGENERATOR_FILE    -I. -I.
-I../../source/gcc-3.4.0-20040501-1/gcc
-I../../source/gcc-3.4.0-20040501-1/gcc/.
-I../../source/gcc-3.4.0-20040501-1/gcc/../include -I../intl \
 gengtype-yacc.c -o gengtype-yacc.o
gcc -v -save-temps   -g  -DIN_GCC -DCROSS_COMPILE  -W -Wall -Wwrite-strings
-Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long   
-DHAVE_CONFIG_H -DGENERATOR_FILE  -o gengtype.exe \
 gengtype.o gengtype-lex.o gengtype-yacc.o ../libiberty/libiberty.a
./gengtype

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

Configure command line :
/c/build/gcc/dev/gcc_3.4.0/source/gcc-3.4.0-20040501-1/gcc/configure
--cache-file=./config.cache --build=i686-pc-mingw32 --host=i686-pc-mingw32
--target=i386-elf -v --prefix=/c/build/gcc/dev/gcc_3.4.0/build/cross-tools
--enable-languages=c,c++ --without-headers --enable-threads --with-gnu-as
--with-gnu-ld --disable-win32-registry --with-newlib --disable-shared
--with-gcc-version-trigger=/c/build/gcc/dev/gcc_3.4.0/source/gcc-3.4.0-20040501-1/gcc/version.c
--program-transform-name=s,^,i386-elf-,; 
--srcdir=/c/build/gcc/dev/gcc_3.4.0/source/gcc-3.4.0-20040501-1/gcc

Attached the gengtype*.i

I can send more info if needed.
Thanks in adavance
Jeremy

-- 
           Summary: gengtype crashes with mingw and c++ extension
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jfierstone at gmx dot net
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-mingw32
  GCC host triplet: i686-pc-mingw32
GCC target triplet: i386-pc-elf


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


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

* [Bug c++/16024] gengtype crashes with mingw and c++ extension
  2004-06-16 19:26 [Bug c++/16024] New: gengtype crashes with mingw and c++ extension jfierstone at gmx dot net
@ 2004-06-16 19:30 ` jfierstone at gmx dot net
  2004-06-16 19:31 ` jfierstone at gmx dot net
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: jfierstone at gmx dot net @ 2004-06-16 19:30 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From jfierstone at gmx dot net  2004-06-16 19:30 -------
Created an attachment (id=6541)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=6541&action=view)
gengtype.i preprocessed file

Please find attached the corresponding preprocessed file

-- 


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


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

* [Bug c++/16024] gengtype crashes with mingw and c++ extension
  2004-06-16 19:26 [Bug c++/16024] New: gengtype crashes with mingw and c++ extension jfierstone at gmx dot net
  2004-06-16 19:30 ` [Bug c++/16024] " jfierstone at gmx dot net
  2004-06-16 19:31 ` jfierstone at gmx dot net
@ 2004-06-16 19:31 ` jfierstone at gmx dot net
  2004-06-16 21:06 ` pinskia at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: jfierstone at gmx dot net @ 2004-06-16 19:31 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From jfierstone at gmx dot net  2004-06-16 19:31 -------
Created an attachment (id=6543)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=6543&action=view)
preprocessed file


-- 


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


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

* [Bug c++/16024] gengtype crashes with mingw and c++ extension
  2004-06-16 19:26 [Bug c++/16024] New: gengtype crashes with mingw and c++ extension jfierstone at gmx dot net
  2004-06-16 19:30 ` [Bug c++/16024] " jfierstone at gmx dot net
@ 2004-06-16 19:31 ` jfierstone at gmx dot net
  2004-06-16 19:31 ` jfierstone at gmx dot net
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: jfierstone at gmx dot net @ 2004-06-16 19:31 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From jfierstone at gmx dot net  2004-06-16 19:31 -------
Created an attachment (id=6542)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=6542&action=view)
preprocessed file


-- 


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


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

* [Bug c++/16024] gengtype crashes with mingw and c++ extension
  2004-06-16 19:26 [Bug c++/16024] New: gengtype crashes with mingw and c++ extension jfierstone at gmx dot net
                   ` (2 preceding siblings ...)
  2004-06-16 19:31 ` jfierstone at gmx dot net
@ 2004-06-16 21:06 ` pinskia at gcc dot gnu dot org
  2004-06-16 21:21 ` [Bug bootstrap/16024] " pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-16 21:06 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-06-16 21:06 -------
What gcc are you starting with?

-- 


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


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

* [Bug bootstrap/16024] gengtype crashes with mingw and c++ extension
  2004-06-16 19:26 [Bug c++/16024] New: gengtype crashes with mingw and c++ extension jfierstone at gmx dot net
                   ` (3 preceding siblings ...)
  2004-06-16 21:06 ` pinskia at gcc dot gnu dot org
@ 2004-06-16 21:21 ` pinskia at gcc dot gnu dot org
  2004-06-16 21:41 ` dannysmith at users dot sourceforge dot net
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-16 21:21 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
          Component|c++                         |bootstrap


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


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

* [Bug bootstrap/16024] gengtype crashes with mingw and c++ extension
  2004-06-16 19:26 [Bug c++/16024] New: gengtype crashes with mingw and c++ extension jfierstone at gmx dot net
                   ` (4 preceding siblings ...)
  2004-06-16 21:21 ` [Bug bootstrap/16024] " pinskia at gcc dot gnu dot org
@ 2004-06-16 21:41 ` dannysmith at users dot sourceforge dot net
  2004-06-17  8:57 ` jfierstone at gmx dot net
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: dannysmith at users dot sourceforge dot net @ 2004-06-16 21:41 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dannysmith at users dot sourceforge dot net  2004-06-16 21:41 -------
Could you try the TARGET_IS_PE_COFF patch to cp/method.c and cygming.h 
commutted to 3.4.1 branch 

by Jim Wilson on at 
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14808

(Comment 12)

I think that is the problem.

Danny

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dannysmith at users dot
                   |                            |sourceforge dot net


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


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

* [Bug bootstrap/16024] gengtype crashes with mingw and c++ extension
  2004-06-16 19:26 [Bug c++/16024] New: gengtype crashes with mingw and c++ extension jfierstone at gmx dot net
                   ` (5 preceding siblings ...)
  2004-06-16 21:41 ` dannysmith at users dot sourceforge dot net
@ 2004-06-17  8:57 ` jfierstone at gmx dot net
  2004-06-17  9:46 ` jfierstone at gmx dot net
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: jfierstone at gmx dot net @ 2004-06-17  8:57 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From jfierstone at gmx dot net  2004-06-17 08:57 -------
(In reply to comment #4)
> What gcc are you starting with?

gcc 3.2.3 from Mingw (standard distrib)

$ gcc -v 
Reading specs from c:/bin/MinGW/bin/../lib/gcc-lib/mingw32/3.2.3/specs
Configured with: ../gcc/configure --with-gcc --with-gnu-ld --with-gnu-as
--host=mingw32 --target=mingw32 --prefix=/mingw --enable-threads --disable-nls
--enable-languages=c++,f77,objc --disable-win32-registry --disable-shared
--enable-sjlj-exceptions
Thread model: win32
gcc version 3.2.3 (mingw special 20030504-1)


-- 


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


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

* [Bug bootstrap/16024] gengtype crashes with mingw and c++ extension
  2004-06-16 19:26 [Bug c++/16024] New: gengtype crashes with mingw and c++ extension jfierstone at gmx dot net
                   ` (6 preceding siblings ...)
  2004-06-17  8:57 ` jfierstone at gmx dot net
@ 2004-06-17  9:46 ` jfierstone at gmx dot net
  2004-06-17 11:07 ` dannysmith at users dot sourceforge dot net
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: jfierstone at gmx dot net @ 2004-06-17  9:46 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From jfierstone at gmx dot net  2004-06-17 09:46 -------
It doesn't solve the problem.
I found a trick, by replacing absolute path by relative path in the
gcc/gcc/Makefile for srcdir, GTFILES_SRCDIR, which change gcc/gtyp-gen.h paths
into relative paths.
I think this bug is due to mingw vs w$ paths management (/c/... in mingw and c:\
for w$) which causes this crashes in executable file built by mingw/gcc.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |SUSPENDED


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


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

* [Bug bootstrap/16024] gengtype crashes with mingw and c++ extension
  2004-06-16 19:26 [Bug c++/16024] New: gengtype crashes with mingw and c++ extension jfierstone at gmx dot net
                   ` (7 preceding siblings ...)
  2004-06-17  9:46 ` jfierstone at gmx dot net
@ 2004-06-17 11:07 ` dannysmith at users dot sourceforge dot net
  2004-09-16  2:04 ` pinskia at gcc dot gnu dot org
  2005-01-24 17:21 ` guardia at sympatico dot ca
  10 siblings, 0 replies; 12+ messages in thread
From: dannysmith at users dot sourceforge dot net @ 2004-06-17 11:07 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dannysmith at users dot sourceforge dot net  2004-06-17 11:07 -------
> I think this bug is due to mingw vs w$ paths management (/c/... in mingw and 
c:\
> for w$) which causes this crashes in executable file built by mingw/gcc.

Oh, you should have mentioned that you were using the "msys" shell environment.
This problem does not occur when using cygwin's bash (with apropriate mounts) 
to build a mingw host.  The /c/... method of specifying absolute paths is going 
to confuse the windows runtime

I think you will find that still need the TARGET_IS_PE_COFF patch to build 
libstdc++

Danny

-- 


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


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

* [Bug bootstrap/16024] gengtype crashes with mingw and c++ extension
  2004-06-16 19:26 [Bug c++/16024] New: gengtype crashes with mingw and c++ extension jfierstone at gmx dot net
                   ` (8 preceding siblings ...)
  2004-06-17 11:07 ` dannysmith at users dot sourceforge dot net
@ 2004-09-16  2:04 ` pinskia at gcc dot gnu dot org
  2005-01-24 17:21 ` guardia at sympatico dot ca
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-09-16  2:04 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|critical                    |normal


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


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

* [Bug bootstrap/16024] gengtype crashes with mingw and c++ extension
  2004-06-16 19:26 [Bug c++/16024] New: gengtype crashes with mingw and c++ extension jfierstone at gmx dot net
                   ` (9 preceding siblings ...)
  2004-09-16  2:04 ` pinskia at gcc dot gnu dot org
@ 2005-01-24 17:21 ` guardia at sympatico dot ca
  10 siblings, 0 replies; 12+ messages in thread
From: guardia at sympatico dot ca @ 2005-01-24 17:21 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From guardia at sympatico dot ca  2005-01-24 17:20 -------
I think the "relative path" issue with MSYS and MinGW should be added for
example in the notes at:

http://gcc.gnu.org/install/specific.html

It would save a lot of grief from people trying to build it on MSYS.

-- 


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


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

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

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-16 19:26 [Bug c++/16024] New: gengtype crashes with mingw and c++ extension jfierstone at gmx dot net
2004-06-16 19:30 ` [Bug c++/16024] " jfierstone at gmx dot net
2004-06-16 19:31 ` jfierstone at gmx dot net
2004-06-16 19:31 ` jfierstone at gmx dot net
2004-06-16 21:06 ` pinskia at gcc dot gnu dot org
2004-06-16 21:21 ` [Bug bootstrap/16024] " pinskia at gcc dot gnu dot org
2004-06-16 21:41 ` dannysmith at users dot sourceforge dot net
2004-06-17  8:57 ` jfierstone at gmx dot net
2004-06-17  9:46 ` jfierstone at gmx dot net
2004-06-17 11:07 ` dannysmith at users dot sourceforge dot net
2004-09-16  2:04 ` pinskia at gcc dot gnu dot org
2005-01-24 17:21 ` guardia at sympatico dot ca

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