* [Bug pch/12606] internal compiler error: in ggc_pch_read, at ggc-page.c:2099
2003-10-13 23:31 [Bug pch/12606] New: internal compiler error: in ggc_pch_read, at ggc-page.c:2099 carlo at gcc dot gnu dot org
@ 2003-10-13 23:37 ` pinskia at gcc dot gnu dot org
2003-10-14 1:04 ` carlo at gcc dot gnu dot org
` (13 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-10-13 23:37 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12606
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-10-13 23:37 -------
>From <http://gcc.gnu.org/bugs.html>, (we do not care if it is a small example, as long as the
example works):
Detailed bug reporting instructions when using a precompiled header
If you're encountering a bug when using a precompiled header, the first thing to do is to delete the
precompiled header, and try running the same GCC command again. If the bug happens again, the
bug doesn't really involve precompiled headers, please report it without using them by following
the instructions above.
If you've found a bug while building a precompiled header (for instance, the compiler crashes),
follow the usual instructions above.
If you've found a real precompiled header bug, what we'll need to reproduce it is the sources to
build the precompiled header (as a single .i file), the source file that uses the precompiled header,
any other headers that source file includes, and the command lines that you used to build the
precompiled header and to use it.
Please don't send us the actual precompiled header. It is likely to be very large and we can't use it
to reproduce the problem.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug pch/12606] internal compiler error: in ggc_pch_read, at ggc-page.c:2099
2003-10-13 23:31 [Bug pch/12606] New: internal compiler error: in ggc_pch_read, at ggc-page.c:2099 carlo at gcc dot gnu dot org
2003-10-13 23:37 ` [Bug pch/12606] " pinskia at gcc dot gnu dot org
@ 2003-10-14 1:04 ` carlo at gcc dot gnu dot org
2003-10-14 1:10 ` pinskia at gcc dot gnu dot org
` (12 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: carlo at gcc dot gnu dot org @ 2003-10-14 1:04 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12606
carlo at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2003-10-14 01:03:59
date| |
------- Additional Comments From carlo at gcc dot gnu dot org 2003-10-14 01:03 -------
I know, I know!
But... I can't produce a preprocessed file.
This is how far I have gotten now:
$ rm pch.h.gch
$ /usr/src/GNU/install/libexec/gcc/i686-pc-linux-gnu/3.4/cc1plus -quiet -v
-I../include -I../include -MD pch.h.d -MF .deps/pch.Tpo -MP -MQ pch.h.gch
-D_GNU_SOURCE -DHAVE_CONFIG_H -DCWDEBUG -DPIC -include pch.h pch.h -quiet
-dumpbase pch.h -mtune=pentiumpro -auxbase-strip pch.h.gch -g -Wall
-Woverloaded-virtual -Wundef -Wpointer-arith -Wwrite-strings -Werror
-Winvalid-pch -version -fno-exceptions -fPIC -o /tmp/ccs0JqN5.s --output-pch=
pch.h.gch
ignoring nonexistent directory
"/usr/src/GNU/install/lib/gcc/i686-pc-linux-gnu/3.4/../../../../i686-pc-linux-gnu/include"
ignoring duplicate directory "../include"
#include "..." search starts here:
#include <...> search starts here:
../include
/usr/src/GNU/install/lib/gcc/i686-pc-linux-gnu/3.4/../../../../include/c++/3.4
/usr/src/GNU/install/lib/gcc/i686-pc-linux-gnu/3.4/../../../../include/c++/3.4/i686-pc-linux-gnu
/usr/src/GNU/install/lib/gcc/i686-pc-linux-gnu/3.4/../../../../include/c++/3.4/backward
/usr/local/include
/usr/src/GNU/install/include
/usr/src/GNU/install/lib/gcc/i686-pc-linux-gnu/3.4/include
/usr/include
End of search list.
GNU C++ version 3.4 20031013 (experimental) (i686-pc-linux-gnu)
compiled by GNU C version 3.2.3 20030422 (Red Hat Linux 3.2.3-4).
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
runs fine thus, no error. And then again,
$ /usr/src/GNU/install/libexec/gcc/i686-pc-linux-gnu/3.4/cc1plus -quiet -v
-I../include -I../include -MD pch.h.d -MF .deps/pch.Tpo -MP -MQ pch.h.gch
-D_GNU_SOURCE -DHAVE_CONFIG_H -DCWDEBUG -DPIC -include pch.h pch.h -quiet
-dumpbase pch.h -mtune=pentiumpro -auxbase-strip pch.h.gch -g -Wall
-Woverloaded-virtual -Wundef -Wpointer-arith -Wwrite-strings -Werror
-Winvalid-pch -version -fno-exceptions -fPIC -o /tmp/ccs0JqN5.s --output-pch=
pch.h.gch
ignoring nonexistent directory
"/usr/src/GNU/install/lib/gcc/i686-pc-linux-gnu/3.4/../../../../i686-pc-linux-gnu/include"
ignoring duplicate directory "../include"
#include "..." search starts here:
#include <...> search starts here:
../include
/usr/src/GNU/install/lib/gcc/i686-pc-linux-gnu/3.4/../../../../include/c++/3.4
/usr/src/GNU/install/lib/gcc/i686-pc-linux-gnu/3.4/../../../../include/c++/3.4/i686-pc-linux-gnu
/usr/src/GNU/install/lib/gcc/i686-pc-linux-gnu/3.4/../../../../include/c++/3.4/backward
/usr/local/include
/usr/src/GNU/install/include
/usr/src/GNU/install/lib/gcc/i686-pc-linux-gnu/3.4/include
/usr/include
End of search list.
GNU C++ version 3.4 20031013 (experimental) (i686-pc-linux-gnu)
compiled by GNU C version 3.2.3 20030422 (Red Hat Linux 3.2.3-4).
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
<command line>:1: internal compiler error: in ggc_pch_read, at ggc-page.c:2099
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
Assuming this still falls in the category 'building a PCH',
I should produce preprocessed sources using -save-temps. But,
suprise:
$ rm pch.h.gch
$ g++-cvs-3.4 -DHAVE_CONFIG_H -I../include -I../include -DCWDEBUG -Wall
-Woverloaded-virtual -Wundef -Wpointer-arith -Wwrite-strings -Werror
-Winvalid-pch -include pch.h -g -fno-exceptions -pipe -MD -MP -MF .deps/pch.Tpo
-DPIC -fPIC -c -o pch.h.gch pch.h -v -save-temps
g++: warning: -pipe ignored because -save-temps specified
Reading specs from /usr/src/GNU/install/lib/gcc/i686-pc-linux-gnu/3.4/specs
Configured with: ../../gcc/gcc-mainline/configure --prefix=/usr/src/GNU/install
--enable-shared --with-gnu-as --with-gnu-ld --enable-languages=c++
--enable-debug --enable-threads
Thread model: posix
gcc version 3.4 20031013 (experimental)
/usr/src/GNU/install/libexec/gcc/i686-pc-linux-gnu/3.4/cc1plus -E -quiet -v
-I../include -I../include -MD pch.h.d -MF .deps/pch.Tpo -MP -MQ pch.h.gch
-D_GNU_SOURCE -DHAVE_CONFIG_H -DCWDEBUG -DPIC -include pch.h pch.h
-mtune=pentiumpro -Wall -Woverloaded-virtual -Wundef -Wpointer-arith
-Wwrite-strings -Werror -Winvalid-pch -fno-exceptions -fPIC -fworking-directory
-o pch.ii
ignoring nonexistent directory
"/usr/src/GNU/install/lib/gcc/i686-pc-linux-gnu/3.4/../../../../i686-pc-linux-gnu/include"
ignoring duplicate directory "../include"
#include "..." search starts here:
#include <...> search starts here:
../include
/usr/src/GNU/install/lib/gcc/i686-pc-linux-gnu/3.4/../../../../include/c++/3.4
/usr/src/GNU/install/lib/gcc/i686-pc-linux-gnu/3.4/../../../../include/c++/3.4/i686-pc-linux-gnu
/usr/src/GNU/install/lib/gcc/i686-pc-linux-gnu/3.4/../../../../include/c++/3.4/backward
/usr/local/include
/usr/src/GNU/install/include
/usr/src/GNU/install/lib/gcc/i686-pc-linux-gnu/3.4/include
/usr/include
End of search list.
/usr/src/GNU/install/libexec/gcc/i686-pc-linux-gnu/3.4/cc1plus -fpreprocessed
pch.ii -quiet -dumpbase pch.h -mtune=pentiumpro -auxbase-strip pch.h.gch -g
-Wall -Woverloaded-virtual -Wundef -Wpointer-arith -Wwrite-strings -Werror
-Winvalid-pch -version -fno-exceptions -fPIC -o pch.s --output-pch= pch.h.gch
GNU C++ version 3.4 20031013 (experimental) (i686-pc-linux-gnu)
compiled by GNU C version 3.2.3 20030422 (Red Hat Linux 3.2.3-4).
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
(first time: compiled fine)
$ g++-cvs-3.4 -DHAVE_CONFIG_H -I../include -I../include -DCWDEBUG -Wall
-Woverloaded-virtual -Wundef -Wpointer-arith -Wwrite-strings -Werror
-Winvalid-pch -include pch.h -g -fno-exceptions -pipe -MD -MP -MF .deps/pch.Tpo
-DPIC -fPIC -c -o pch.h.gch pch.h -v -save-temps
g++: warning: -pipe ignored because -save-temps specified
Reading specs from /usr/src/GNU/install/lib/gcc/i686-pc-linux-gnu/3.4/specs
Configured with: ../../gcc/gcc-mainline/configure --prefix=/usr/src/GNU/install
--enable-shared --with-gnu-as --with-gnu-ld --enable-languages=c++
--enable-debug --enable-threads
Thread model: posix
gcc version 3.4 20031013 (experimental)
/usr/src/GNU/install/libexec/gcc/i686-pc-linux-gnu/3.4/cc1plus -E -quiet -v
-I../include -I../include -MD pch.h.d -MF .deps/pch.Tpo -MP -MQ pch.h.gch
-D_GNU_SOURCE -DHAVE_CONFIG_H -DCWDEBUG -DPIC -include pch.h pch.h
-mtune=pentiumpro -Wall -Woverloaded-virtual -Wundef -Wpointer-arith
-Wwrite-strings -Werror -Winvalid-pch -fno-exceptions -fPIC -fworking-directory
-o pch.ii
ignoring nonexistent directory
"/usr/src/GNU/install/lib/gcc/i686-pc-linux-gnu/3.4/../../../../i686-pc-linux-gnu/include"
ignoring duplicate directory "../include"
#include "..." search starts here:
#include <...> search starts here:
../include
/usr/src/GNU/install/lib/gcc/i686-pc-linux-gnu/3.4/../../../../include/c++/3.4
/usr/src/GNU/install/lib/gcc/i686-pc-linux-gnu/3.4/../../../../include/c++/3.4/i686-pc-linux-gnu
/usr/src/GNU/install/lib/gcc/i686-pc-linux-gnu/3.4/../../../../include/c++/3.4/backward
/usr/local/include
/usr/src/GNU/install/include
/usr/src/GNU/install/lib/gcc/i686-pc-linux-gnu/3.4/include
/usr/include
End of search list.
/usr/src/GNU/install/libexec/gcc/i686-pc-linux-gnu/3.4/cc1plus -fpreprocessed
pch.ii -quiet -dumpbase pch.h -mtune=pentiumpro -auxbase-strip pch.h.gch -g
-Wall -Woverloaded-virtual -Wundef -Wpointer-arith -Wwrite-strings -Werror
-Winvalid-pch -version -fno-exceptions -fPIC -o pch.s --output-pch= pch.h.gch
GNU C++ version 3.4 20031013 (experimental) (i686-pc-linux-gnu)
compiled by GNU C version 3.2.3 20030422 (Red Hat Linux 3.2.3-4).
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Second time... also worked fine.
No ICE.
Please tell me how to produce a preprocessed file (.ii)
in this case and how to *reproduce* the ICE with that
.ii file.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug pch/12606] internal compiler error: in ggc_pch_read, at ggc-page.c:2099
2003-10-13 23:31 [Bug pch/12606] New: internal compiler error: in ggc_pch_read, at ggc-page.c:2099 carlo at gcc dot gnu dot org
2003-10-13 23:37 ` [Bug pch/12606] " pinskia at gcc dot gnu dot org
2003-10-14 1:04 ` carlo at gcc dot gnu dot org
@ 2003-10-14 1:10 ` pinskia at gcc dot gnu dot org
2003-10-14 1:18 ` carlo at alinoe dot com
` (11 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-10-14 1:10 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12606
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2003-10-14 01:03:59 |2003-10-14 01:10:43
date| |
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-10-14 01:10 -------
I found the way to reproduce it, create an empty file call it pch.h
run the following:
gcc pch.h -include pch.h
gcc pch.h -include pch.h
And it will produce the ICE.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug pch/12606] internal compiler error: in ggc_pch_read, at ggc-page.c:2099
2003-10-13 23:31 [Bug pch/12606] New: internal compiler error: in ggc_pch_read, at ggc-page.c:2099 carlo at gcc dot gnu dot org
` (2 preceding siblings ...)
2003-10-14 1:10 ` pinskia at gcc dot gnu dot org
@ 2003-10-14 1:18 ` carlo at alinoe dot com
2003-10-14 6:54 ` steven at gcc dot gnu dot org
` (10 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: carlo at alinoe dot com @ 2003-10-14 1:18 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12606
------- Additional Comments From carlo at alinoe dot com 2003-10-14 01:18 -------
Subject: Re: internal compiler error: in ggc_pch_read, at ggc-page.c:2099
You're a genious! What do you need a 10 Megabyte preprocessed file for
when pinskia can do it with /dev/null? :))
Works for me too, with any name it seems.
/tmp>touch qqq.h
/tmp>gcc-cvs-3.4 -c qqq.h -include qqq.h
/tmp>gcc-cvs-3.4 -c qqq.h -include qqq.h
<command line>:1: internal compiler error: in ggc_pch_read, at ggc-page.c:2099
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
Thanks! Now only someone to fix it!
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug pch/12606] internal compiler error: in ggc_pch_read, at ggc-page.c:2099
2003-10-13 23:31 [Bug pch/12606] New: internal compiler error: in ggc_pch_read, at ggc-page.c:2099 carlo at gcc dot gnu dot org
` (3 preceding siblings ...)
2003-10-14 1:18 ` carlo at alinoe dot com
@ 2003-10-14 6:54 ` steven at gcc dot gnu dot org
2003-10-14 7:06 ` steven at gcc dot gnu dot org
` (9 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: steven at gcc dot gnu dot org @ 2003-10-14 6:54 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12606
------- Additional Comments From steven at gcc dot gnu dot org 2003-10-14 06:54 -------
It is complaining about a "Bad file descriptor":
$ ./cc1 pch.h -include pch.h -quiet -v -iprefix
/opt/experimental/bin/../lib/gcc/i686-pc-linux-gnu/3.5-tree-ssa/ -include pch.h
pch.h -quiet -dumpbase pch.h -mtune=pentiumpro -auxbase pch -version -o
/tmp/cc23xmPt.s --output-pch=pch.h.gch
ignoring nonexistent directory
"/opt/experimental/bin/../lib/gcc/i686-pc-linux-gnu/3.5-tree-ssa/../../../../i686-pc-linux-gnu/include"
ignoring nonexistent directory
"/opt/experimental//lib/gcc/i686-pc-linux-gnu/3.4/include"
ignoring nonexistent directory
"/opt/experimental//lib/gcc/i686-pc-linux-gnu/../../../i686-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
/opt/experimental/bin/../lib/gcc/i686-pc-linux-gnu/3.5-tree-ssa/include
/usr/local/include
/opt/experimental//include
/usr/include
End of search list.
GNU C version 3.4 20031013 (experimental) (i686-pc-linux-gnu)
compiled by GNU C version 3.4 20031013 (experimental).
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
$ ../cc1 pch.h -include pch.h -quiet -v -iprefix
/opt/experimental/bin/../lib/gcc/i686-pc-linux-gnu/3.5-tree-ssa/ -include pch.h
pch.h -quiet -dumpbase pch.h -mtune=pentiumpro -auxbase pch -version -o
/tmp/cc23xmPt.s --output-pch=pch.h.gch
ignoring nonexistent directory
"/opt/experimental/bin/../lib/gcc/i686-pc-linux-gnu/3.5-tree-ssa/../../../../i686-pc-linux-gnu/include"
ignoring nonexistent directory
"/opt/experimental//lib/gcc/i686-pc-linux-gnu/3.4/include"
ignoring nonexistent directory
"/opt/experimental//lib/gcc/i686-pc-linux-gnu/../../../i686-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
/opt/experimental/bin/../lib/gcc/i686-pc-linux-gnu/3.5-tree-ssa/include
/usr/local/include
/opt/experimental//include
/usr/include
End of search list.
GNU C version 3.4 20031013 (experimental) (i686-pc-linux-gnu)
compiled by GNU C version 3.4 20031013 (experimental).
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
cc1: calling fdopen: Bad file descriptor
<command line>:1: internal compiler error: in ggc_pch_read, at ggc-page.c:2139
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug pch/12606] internal compiler error: in ggc_pch_read, at ggc-page.c:2099
2003-10-13 23:31 [Bug pch/12606] New: internal compiler error: in ggc_pch_read, at ggc-page.c:2099 carlo at gcc dot gnu dot org
` (4 preceding siblings ...)
2003-10-14 6:54 ` steven at gcc dot gnu dot org
@ 2003-10-14 7:06 ` steven at gcc dot gnu dot org
2003-10-25 1:37 ` pinskia at gcc dot gnu dot org
` (8 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: steven at gcc dot gnu dot org @ 2003-10-14 7:06 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12606
------- Additional Comments From steven at gcc dot gnu dot org 2003-10-14 07:06 -------
Perhaps someone could teach PCH not to go looking for pch's if the header that
is being pre-compiled depends on itself? :) Looks like it's trying to read a
pch that is just being created...
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug pch/12606] internal compiler error: in ggc_pch_read, at ggc-page.c:2099
2003-10-13 23:31 [Bug pch/12606] New: internal compiler error: in ggc_pch_read, at ggc-page.c:2099 carlo at gcc dot gnu dot org
` (5 preceding siblings ...)
2003-10-14 7:06 ` steven at gcc dot gnu dot org
@ 2003-10-25 1:37 ` pinskia at gcc dot gnu dot org
2003-11-07 14:31 ` carlo at gcc dot gnu dot org
` (7 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-10-25 1:37 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12606
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|critical |normal
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug pch/12606] internal compiler error: in ggc_pch_read, at ggc-page.c:2099
2003-10-13 23:31 [Bug pch/12606] New: internal compiler error: in ggc_pch_read, at ggc-page.c:2099 carlo at gcc dot gnu dot org
` (6 preceding siblings ...)
2003-10-25 1:37 ` pinskia at gcc dot gnu dot org
@ 2003-11-07 14:31 ` carlo at gcc dot gnu dot org
2003-11-18 7:36 ` pinskia at gcc dot gnu dot org
` (6 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: carlo at gcc dot gnu dot org @ 2003-11-07 14:31 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12606
carlo at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |3.4
------- Additional Comments From carlo at gcc dot gnu dot org 2003-11-07 14:31 -------
Although it is easy to work around this ICE
by removing the .gch file prior to generating
it (ie in a Makefile) when it already exists,
a lot of innocent people are bound to run into it
when this bug will still be in an official release.
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug pch/12606] internal compiler error: in ggc_pch_read, at ggc-page.c:2099
2003-10-13 23:31 [Bug pch/12606] New: internal compiler error: in ggc_pch_read, at ggc-page.c:2099 carlo at gcc dot gnu dot org
` (7 preceding siblings ...)
2003-11-07 14:31 ` carlo at gcc dot gnu dot org
@ 2003-11-18 7:36 ` pinskia at gcc dot gnu dot org
2003-11-18 7:37 ` pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-11-18 7:36 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-11-18 07:36 -------
Now on the mainline I get this error so closing as fixed.:
<command line>:1: fatal error: can't read PCH file: No such file or directory
compilation terminated.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12606
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug pch/12606] internal compiler error: in ggc_pch_read, at ggc-page.c:2099
2003-10-13 23:31 [Bug pch/12606] New: internal compiler error: in ggc_pch_read, at ggc-page.c:2099 carlo at gcc dot gnu dot org
` (8 preceding siblings ...)
2003-11-18 7:36 ` pinskia at gcc dot gnu dot org
@ 2003-11-18 7:37 ` pinskia at gcc dot gnu dot org
2003-11-28 8:39 ` pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-11-18 7:37 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-11-18 07:37 -------
actually that is only after the thrid invoke of gcc so it is still busted.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12606
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug pch/12606] internal compiler error: in ggc_pch_read, at ggc-page.c:2099
2003-10-13 23:31 [Bug pch/12606] New: internal compiler error: in ggc_pch_read, at ggc-page.c:2099 carlo at gcc dot gnu dot org
` (9 preceding siblings ...)
2003-11-18 7:37 ` pinskia at gcc dot gnu dot org
@ 2003-11-28 8:39 ` pinskia at gcc dot gnu dot org
2003-12-16 18:34 ` [Bug pch/12606] PCH file is used while it is being written geoffk at gcc dot gnu dot org
` (3 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-11-28 8:39 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-11-28 08:39 -------
The problem is that GCC is doing the following:
1st time: including the header (source file) twice.
2nd time: including PCH file twice but over writing it
3rd time: trying to read in the currupted PCH file and fails.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |NEW
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12606
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug pch/12606] PCH file is used while it is being written
2003-10-13 23:31 [Bug pch/12606] New: internal compiler error: in ggc_pch_read, at ggc-page.c:2099 carlo at gcc dot gnu dot org
` (10 preceding siblings ...)
2003-11-28 8:39 ` pinskia at gcc dot gnu dot org
@ 2003-12-16 18:34 ` geoffk at gcc dot gnu dot org
2003-12-17 23:07 ` cvs-commit at gcc dot gnu dot org
` (2 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: geoffk at gcc dot gnu dot org @ 2003-12-16 18:34 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Last reconfirmed|2003-10-14 01:10:43 |2003-12-16 18:22:41
date| |
Summary|internal compiler error: in |PCH file is used while it is
|ggc_pch_read, at ggc- |being written
|page.c:2099 |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12606
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug pch/12606] PCH file is used while it is being written
2003-10-13 23:31 [Bug pch/12606] New: internal compiler error: in ggc_pch_read, at ggc-page.c:2099 carlo at gcc dot gnu dot org
` (11 preceding siblings ...)
2003-12-16 18:34 ` [Bug pch/12606] PCH file is used while it is being written geoffk at gcc dot gnu dot org
@ 2003-12-17 23:07 ` cvs-commit at gcc dot gnu dot org
2003-12-19 10:01 ` pinskia at gcc dot gnu dot org
2004-08-19 5:36 ` pinskia at gcc dot gnu dot org
14 siblings, 0 replies; 16+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2003-12-17 23:07 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2003-12-17 22:04 -------
Subject: Bug 12606
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: geoffk@gcc.gnu.org 2003-12-17 22:04:34
Modified files:
gcc : ChangeLog c-pch.c
Log message:
PR 12480
* c-pch.c (pch_init): Improve error message when precompiled
header can't be written.
PR 12606
* c-pch.c (pch_init): Make a PCH file appear invalid while it's
being written.
(c_common_write_pch): Make it valid once it's done.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.2023&r2=2.2024
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-pch.c.diff?cvsroot=gcc&r1=1.18&r2=1.19
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12606
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug pch/12606] PCH file is used while it is being written
2003-10-13 23:31 [Bug pch/12606] New: internal compiler error: in ggc_pch_read, at ggc-page.c:2099 carlo at gcc dot gnu dot org
` (12 preceding siblings ...)
2003-12-17 23:07 ` cvs-commit at gcc dot gnu dot org
@ 2003-12-19 10:01 ` pinskia at gcc dot gnu dot org
2004-08-19 5:36 ` pinskia at gcc dot gnu dot org
14 siblings, 0 replies; 16+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-19 10:01 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|3.4.0 |---
Version|unknown |3.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12606
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug pch/12606] PCH file is used while it is being written
2003-10-13 23:31 [Bug pch/12606] New: internal compiler error: in ggc_pch_read, at ggc-page.c:2099 carlo at gcc dot gnu dot org
` (13 preceding siblings ...)
2003-12-19 10:01 ` pinskia at gcc dot gnu dot org
@ 2004-08-19 5:36 ` pinskia at gcc dot gnu dot org
14 siblings, 0 replies; 16+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-19 5:36 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-08-19 05:36 -------
Actually this was fixed for 3.4.0 but never closed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |3.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12606
^ permalink raw reply [flat|nested] 16+ messages in thread