public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/60633] New: When boostrapping 4.8.2 cc1 crashes with memory allocation problem
@ 2014-03-24 12:53 monochromec at gmail dot com
2014-03-24 13:04 ` [Bug bootstrap/60633] " pinskia at gcc dot gnu.org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: monochromec at gmail dot com @ 2014-03-24 12:53 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60633
Bug ID: 60633
Summary: When boostrapping 4.8.2 cc1 crashes with memory
allocation problem
Product: gcc
Version: 4.8.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: bootstrap
Assignee: unassigned at gcc dot gnu.org
Reporter: monochromec at gmail dot com
When trying to compile gcc 4.8.2, cc1 tries to allocate a ludicrous amount of
memory when building libgcc as part of stage 1:
make all-target-libgcc 2>&1
Checking multilib configuration for libgcc...
make[1]: Entering directory
`/volume1/homes/nasuser/dev/dsm/build_gcc/static/armv5tel-unknown-linux-gnueabi/libgcc'
# If this is the top-level multilib, build all the other
# multilibs.
/volume1/homes/nasuser/dev/dsm/build_gcc/static/./gcc/xgcc
-B/volume1/homes/nasuser/dev/dsm/build_gcc/static/./gcc/
-B/opt2/armv5tel-unknown-linux-gnueabi/bin/
-B/opt2/armv5tel-unknown-linux-gnueabi/lib/ -isystem
/opt2/armv5tel-unknown-linux-gnueabi/include -isystem
/opt2/armv5tel-unknown-linux-gnueabi/sys-include -g -O2 -O2 -g -O2 -DIN_GCC
-W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition -isystem ./include -fPIC -fno-inline -g -DIN_LIBGCC2
-fbuilding-libgcc -fno-stack-protector -fPIC -fno-inline -I. -I.
-I../.././gcc -I../../../../gcc-4.8.2/libgcc -I../../../../gcc-4.8.2/libgcc/.
-I../../../../gcc-4.8.2/libgcc/../gcc -I../../../../gcc-4.8.2/libgcc/../include
-DHAVE_CC_TLS -o _absvsi2.o -MT _absvsi2.o -MD -MP -MF _absvsi2.dep
-DL_absvsi2 -c ../../../../gcc-4.8.2/libgcc/libgcc2.c -fvisibility=hidden
-DHIDE_EXPORTS
cc1: out of memory allocating 4294967272 bytes after a total of 778240 bytes
make[1]: *** [_absvsi2.o] Error 1
make[1]: Leaving directory
`/volume1/homes/nasuser/dev/dsm/build_gcc/static/armv5tel-unknown-linux-gnueabi/libgcc'
make: *** [all-target-libgcc] Error 2
Target platform is armvtel-unknown-linux-gnueabi, build configuration is as
follows: configure --disable-multilib --prefix=/opt2 --disable-nls
--enable-languages=c. Build directory is different from source directory
hierarchy.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug bootstrap/60633] When boostrapping 4.8.2 cc1 crashes with memory allocation problem
2014-03-24 12:53 [Bug bootstrap/60633] New: When boostrapping 4.8.2 cc1 crashes with memory allocation problem monochromec at gmail dot com
@ 2014-03-24 13:04 ` pinskia at gcc dot gnu.org
2014-03-24 14:18 ` monochromec at gmail dot com
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2014-03-24 13:04 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60633
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Which compiler did you start with? This really sounds like a bug in the
original compiler if it is truly stage 1.
Also can you provide the preprocessed source?
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug bootstrap/60633] When boostrapping 4.8.2 cc1 crashes with memory allocation problem
2014-03-24 12:53 [Bug bootstrap/60633] New: When boostrapping 4.8.2 cc1 crashes with memory allocation problem monochromec at gmail dot com
2014-03-24 13:04 ` [Bug bootstrap/60633] " pinskia at gcc dot gnu.org
@ 2014-03-24 14:18 ` monochromec at gmail dot com
2014-03-24 14:23 ` monochromec at gmail dot com
2014-03-24 14:25 ` monochromec at gmail dot com
3 siblings, 0 replies; 5+ messages in thread
From: monochromec at gmail dot com @ 2014-03-24 14:18 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60633
--- Comment #2 from Chris Zimmermann <monochromec at gmail dot com> ---
Created attachment 32435
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32435&action=edit
Preprocessed source as requested
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug bootstrap/60633] When boostrapping 4.8.2 cc1 crashes with memory allocation problem
2014-03-24 12:53 [Bug bootstrap/60633] New: When boostrapping 4.8.2 cc1 crashes with memory allocation problem monochromec at gmail dot com
2014-03-24 13:04 ` [Bug bootstrap/60633] " pinskia at gcc dot gnu.org
2014-03-24 14:18 ` monochromec at gmail dot com
@ 2014-03-24 14:23 ` monochromec at gmail dot com
2014-03-24 14:25 ` monochromec at gmail dot com
3 siblings, 0 replies; 5+ messages in thread
From: monochromec at gmail dot com @ 2014-03-24 14:23 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60633
--- Comment #3 from Chris Zimmermann <monochromec at gmail dot com> ---
The native compiler of the build system is gcc 4.2.3.
An strace dump confirms that stage 1 cc1 is picked up from
/volume1/homes/nasuser/dev/dsm/build_gcc/static/./gcc/ as the first -B option
suggests.
Running /volume1/homes/nasuser/dev/dsm/build_gcc/static/./gcc/xgcc
-B/volume1/homes/nasuser/dev/dsm/build_gcc/static/./gcc/
-B/opt2/armv5tel-unknown-linux-gnueabi/bin/
-B/opt2/armv5tel-unknown-linux-gnueabi/lib/ -isystem
/opt2/armv5tel-unknown-linux-gnueabi/include -isystem
/opt2/armv5tel-unknown-linux-gnueabi/sys-include -g -O2 -O2 -g -O2 -DIN_GCC
-W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition -isystem ./include -fPIC -fno-inline -g -DIN_LIBGCC2
-fbuilding-libgcc -fno-stack-protector -fPIC -fno-inline -I. -I.
-I../.././gcc -I../../../../gcc-4.8.2/libgcc -I../../../../gcc-4.8.2/libgcc/.
-I../../../../gcc-4.8.2/libgcc/../gcc -I../../../../gcc-4.8.2/libgcc/../include
-DHAVE_CC_TLS -DL_absvsi2 ../../../../gcc-4.8.2/libgcc/libgcc2.c
-fvisibility=hidden -DHIDE_EXPORTS -I../armv5tel-unknown-linux-gnueabi/libgcc/
-E >_absvsi2.i
generates the attached preprocessed source.
Let me know if more details are required.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug bootstrap/60633] When boostrapping 4.8.2 cc1 crashes with memory allocation problem
2014-03-24 12:53 [Bug bootstrap/60633] New: When boostrapping 4.8.2 cc1 crashes with memory allocation problem monochromec at gmail dot com
` (2 preceding siblings ...)
2014-03-24 14:23 ` monochromec at gmail dot com
@ 2014-03-24 14:25 ` monochromec at gmail dot com
3 siblings, 0 replies; 5+ messages in thread
From: monochromec at gmail dot com @ 2014-03-24 14:25 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60633
--- Comment #4 from Chris Zimmermann <monochromec at gmail dot com> ---
PS: At first, I thought I had spotted a duplicate of #45177 but then this is no
cross-compilation and #45177 has been marked "fixed" in the tracker log with
the fix confirmed working.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-03-24 14:25 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-24 12:53 [Bug bootstrap/60633] New: When boostrapping 4.8.2 cc1 crashes with memory allocation problem monochromec at gmail dot com
2014-03-24 13:04 ` [Bug bootstrap/60633] " pinskia at gcc dot gnu.org
2014-03-24 14:18 ` monochromec at gmail dot com
2014-03-24 14:23 ` monochromec at gmail dot com
2014-03-24 14:25 ` monochromec at gmail dot com
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).