public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/18363] New: build fails when using optimization
@ 2004-11-07 21:05 gcc-bugzilla at gcc dot gnu dot org
2004-11-07 21:08 ` [Bug c++/18363] " aphexer at mailhaven dot com
` (9 more replies)
0 siblings, 10 replies; 11+ messages in thread
From: gcc-bugzilla at gcc dot gnu dot org @ 2004-11-07 21:05 UTC (permalink / raw)
To: gcc-bugs
The same code builds without the -O flag but gcc 'crashes' when adding optimization...
I wasn't sure if I had to include the binary Config.ii.bz2 in this mail... I'm using gccbug so it seems a bit odd to include binary data here.
Instead I uploaded it, you can download it here: http://aphexer.dyndns.org/bug/Config.ii.bz2 (in the same directory there are some other maybe
interesting files).
Environment:
System: Linux slack 2.4.26 #21 Mon Jun 14 19:17:44 PDT 2004 i686 unknown unknown GNU/Linux
Architecture: i686
host: i486-slackware-linux-gnu
build: i486-slackware-linux-gnu
target: i486-slackware-linux-gnu
configured with: ../gcc-3.3.4/configure --prefix=/usr --enable-shared --enable-threads=posix --enable-__cxa_atexit --disable-checking --with-gnu-ld --verbose --target=i486-slackware-linux --host=i486-slackware-linux
How-To-Repeat:
I use this to compile: g++ -Wall -save-temps -DHAVE_CONFIG_H -I. -I. -I../.. -g -O -MT Config.o -MD -MP -MF ".deps/Config.Tpo" -c -o Config.o Config.cpp
------- Additional Comments From Alex dot Prinsier at aphexer dot homedns dot org 2004-11-07 21:05 -------
Fix:
Remove the -O argument.
--
Summary: build fails when using optimization
Product: gcc
Version: 3.3.4
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: Alex dot Prinsier at aphexer dot homedns dot org
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i486-slackware-linux-gnu
GCC host triplet: i486-slackware-linux-gnu
GCC target triplet: i486-slackware-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18363
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/18363] build fails when using optimization
2004-11-07 21:05 [Bug c++/18363] New: build fails when using optimization gcc-bugzilla at gcc dot gnu dot org
@ 2004-11-07 21:08 ` aphexer at mailhaven dot com
2004-11-07 21:10 ` aphexer at mailhaven dot com
` (8 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: aphexer at mailhaven dot com @ 2004-11-07 21:08 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |aphexer at mailhaven dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18363
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/18363] build fails when using optimization
2004-11-07 21:05 [Bug c++/18363] New: build fails when using optimization gcc-bugzilla at gcc dot gnu dot org
2004-11-07 21:08 ` [Bug c++/18363] " aphexer at mailhaven dot com
@ 2004-11-07 21:10 ` aphexer at mailhaven dot com
2004-11-07 21:13 ` [Bug rtl-optimization/18363] " pinskia at gcc dot gnu dot org
` (7 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: aphexer at mailhaven dot com @ 2004-11-07 21:10 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From aphexer at mailhaven dot com 2004-11-07 21:10 -------
Created an attachment (id=7490)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7490&action=view)
this generates the error....
Didn't know I could attach this here... So now I did :) You can download
related code at http://aphexer.dyndns.org/bug/ (in case you want to see what I
actually wrote, this preprocessed thing seems a bit cryptic to me :))
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18363
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/18363] build fails when using optimization
2004-11-07 21:05 [Bug c++/18363] New: build fails when using optimization gcc-bugzilla at gcc dot gnu dot org
` (2 preceding siblings ...)
2004-11-07 21:13 ` [Bug rtl-optimization/18363] " pinskia at gcc dot gnu dot org
@ 2004-11-07 21:13 ` pinskia at gcc dot gnu dot org
2004-11-07 21:15 ` [Bug rtl-optimization/18363] " aphexer at mailhaven dot com
` (5 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-07 21:13 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-on-valid-code
Known to work| |3.3.3
Target Milestone|--- |3.3.6
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18363
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug rtl-optimization/18363] build fails when using optimization
2004-11-07 21:05 [Bug c++/18363] New: build fails when using optimization gcc-bugzilla at gcc dot gnu dot org
2004-11-07 21:08 ` [Bug c++/18363] " aphexer at mailhaven dot com
2004-11-07 21:10 ` aphexer at mailhaven dot com
@ 2004-11-07 21:13 ` pinskia at gcc dot gnu dot org
2004-11-07 21:13 ` [Bug c++/18363] " pinskia at gcc dot gnu dot org
` (6 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-07 21:13 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Component|c++ |rtl-optimization
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18363
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug rtl-optimization/18363] build fails when using optimization
2004-11-07 21:05 [Bug c++/18363] New: build fails when using optimization gcc-bugzilla at gcc dot gnu dot org
` (3 preceding siblings ...)
2004-11-07 21:13 ` [Bug c++/18363] " pinskia at gcc dot gnu dot org
@ 2004-11-07 21:15 ` aphexer at mailhaven dot com
2004-11-07 21:16 ` pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: aphexer at mailhaven dot com @ 2004-11-07 21:15 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From aphexer at mailhaven dot com 2004-11-07 21:15 -------
Can this be caused by insufficient memory? This machine only has 32MB of ram...
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18363
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug rtl-optimization/18363] build fails when using optimization
2004-11-07 21:05 [Bug c++/18363] New: build fails when using optimization gcc-bugzilla at gcc dot gnu dot org
` (4 preceding siblings ...)
2004-11-07 21:15 ` [Bug rtl-optimization/18363] " aphexer at mailhaven dot com
@ 2004-11-07 21:16 ` pinskia at gcc dot gnu dot org
2004-11-07 21:22 ` aphexer at mailhaven dot com
` (3 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-07 21:16 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-11-07 21:16 -------
Yes most likley.
What is the error message?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18363
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug rtl-optimization/18363] build fails when using optimization
2004-11-07 21:05 [Bug c++/18363] New: build fails when using optimization gcc-bugzilla at gcc dot gnu dot org
` (5 preceding siblings ...)
2004-11-07 21:16 ` pinskia at gcc dot gnu dot org
@ 2004-11-07 21:22 ` aphexer at mailhaven dot com
2004-11-07 21:24 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: aphexer at mailhaven dot com @ 2004-11-07 21:22 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From aphexer at mailhaven dot com 2004-11-07 21:22 -------
Now it's on that next file but it's the same error:
if g++ -DHAVE_CONFIG_H -I. -I. -I../.. -g -O2 -MT HFormat.o -MD -MP -MF
".deps/HFormat.Tpo" -c -o HFormat.o HFormat.cpp; \
then mv -f ".deps/HFormat.Tpo" ".deps/HFormat.Po"; else rm -f
".deps/HFormat.Tpo"; exit 1; fi
g++: Internal error: Killed (program cc1plus)
Please submit a full bug report.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
make: *** [HFormat.o] Error 1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18363
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug rtl-optimization/18363] build fails when using optimization
2004-11-07 21:05 [Bug c++/18363] New: build fails when using optimization gcc-bugzilla at gcc dot gnu dot org
` (6 preceding siblings ...)
2004-11-07 21:22 ` aphexer at mailhaven dot com
@ 2004-11-07 21:24 ` pinskia at gcc dot gnu dot org
2004-11-07 21:28 ` aphexer at mailhaven dot com
2004-11-07 21:29 ` pinskia at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-07 21:24 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-11-07 21:24 -------
Yes this is a case where 32M is just too little for compiling C++ code in 3.3, you might want to try 3.4.
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords|ice-on-valid-code |memory-hog
Target Milestone|3.3.6 |---
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18363
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug rtl-optimization/18363] build fails when using optimization
2004-11-07 21:05 [Bug c++/18363] New: build fails when using optimization gcc-bugzilla at gcc dot gnu dot org
` (7 preceding siblings ...)
2004-11-07 21:24 ` pinskia at gcc dot gnu dot org
@ 2004-11-07 21:28 ` aphexer at mailhaven dot com
2004-11-07 21:29 ` pinskia at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: aphexer at mailhaven dot com @ 2004-11-07 21:28 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From aphexer at mailhaven dot com 2004-11-07 21:28 -------
Isn't this error a bit misleading? Something like "Not enouph memory,
aborting..." seems alot more clear! Maybe this is something which can be changed
for a next release?
Well my problem is actually solved... just add more ram :)
Maybe it's a good idea too put another note on the checklist before reporting a
bug: "do you have enouph ram? (check with 'free' while compiling)".
Thanks for helping.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18363
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug rtl-optimization/18363] build fails when using optimization
2004-11-07 21:05 [Bug c++/18363] New: build fails when using optimization gcc-bugzilla at gcc dot gnu dot org
` (8 preceding siblings ...)
2004-11-07 21:28 ` aphexer at mailhaven dot com
@ 2004-11-07 21:29 ` pinskia at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-07 21:29 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-11-07 21:29 -------
g++: Internal error: Killed (program cc1plus)
The kernel is killing cc1plus for hitting memory limits and not gcc crashing.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18363
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2004-11-07 21:29 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-07 21:05 [Bug c++/18363] New: build fails when using optimization gcc-bugzilla at gcc dot gnu dot org
2004-11-07 21:08 ` [Bug c++/18363] " aphexer at mailhaven dot com
2004-11-07 21:10 ` aphexer at mailhaven dot com
2004-11-07 21:13 ` [Bug rtl-optimization/18363] " pinskia at gcc dot gnu dot org
2004-11-07 21:13 ` [Bug c++/18363] " pinskia at gcc dot gnu dot org
2004-11-07 21:15 ` [Bug rtl-optimization/18363] " aphexer at mailhaven dot com
2004-11-07 21:16 ` pinskia at gcc dot gnu dot org
2004-11-07 21:22 ` aphexer at mailhaven dot com
2004-11-07 21:24 ` pinskia at gcc dot gnu dot org
2004-11-07 21:28 ` aphexer at mailhaven dot com
2004-11-07 21:29 ` 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).