Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 27638 - Emerging gcc-3.2.3-r1 causes segfault
Summary: Emerging gcc-3.2.3-r1 causes segfault
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: All Linux
: High normal
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
: 27639 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-08-31 03:06 UTC by Jaakko Holster
Modified: 2003-09-16 12:09 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jaakko Holster 2003-08-31 03:06:26 UTC
When I try to upgrade gcc 3.2.2 -> 3.2.3-r1 by 'emerge -u system', compilation causes a 
segfault. 
 
--clip-- 
stage1/xgcc -Bstage1/ -B/usr/i686-pc-linux-gnu/bin/ -c -DIN_GCC    -march=athlon-xp -pipe 
-W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic 
-Wno-long-long  -DHAVE_CONFIG_H    -I. -I. 
-I/var/tmp/portage/gcc-3.2.3-r1/work/gcc-3.2.3/gcc 
-I/var/tmp/portage/gcc-3.2.3-r1/work/gcc-3.2.3/gcc/. 
-I/var/tmp/portage/gcc-3.2.3-r1/work/gcc-3.2.3/gcc/config 
-I/var/tmp/portage/gcc-3.2.3-r1/work/gcc-3.2.3/gcc/../include 
/var/tmp/portage/gcc-3.2.3-r1/work/gcc-3.2.3/gcc/regrename.c -o regrename.o 
stage1/xgcc -Bstage1/ -B/usr/i686-pc-linux-gnu/bin/ -c -DIN_GCC    -march=athlon-xp -pipe 
-W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic 
-Wno-long-long  -DHAVE_CONFIG_H    -I. -I. 
-I/var/tmp/portage/gcc-3.2.3-r1/work/gcc-3.2.3/gcc 
-I/var/tmp/portage/gcc-3.2.3-r1/work/gcc-3.2.3/gcc/. 
-I/var/tmp/portage/gcc-3.2.3-r1/work/gcc-3.2.3/gcc/config 
-I/var/tmp/portage/gcc-3.2.3-r1/work/gcc-3.2.3/gcc/../include 
/var/tmp/portage/gcc-3.2.3-r1/work/gcc-3.2.3/gcc/reload.c -o reload.o 
stage1/xgcc -Bstage1/ -B/usr/i686-pc-linux-gnu/bin/ -c -DIN_GCC    -march=athlon-xp -pipe 
-W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic 
-Wno-long-long  -DHAVE_CONFIG_H    -I. -I. 
-I/var/tmp/portage/gcc-3.2.3-r1/work/gcc-3.2.3/gcc 
-I/var/tmp/portage/gcc-3.2.3-r1/work/gcc-3.2.3/gcc/. 
-I/var/tmp/portage/gcc-3.2.3-r1/work/gcc-3.2.3/gcc/config 
-I/var/tmp/portage/gcc-3.2.3-r1/work/gcc-3.2.3/gcc/../include 
/var/tmp/portage/gcc-3.2.3-r1/work/gcc-3.2.3/gcc/reload1.c -o reload1.o 
/var/tmp/portage/gcc-3.2.3-r1/work/gcc-3.2.3/gcc/reload.c: In function 
`find_reloads_address_1': 
/var/tmp/portage/gcc-3.2.3-r1/work/gcc-3.2.3/gcc/reload.c:5674: warning: comparison 
between signed and unsigned 
/var/tmp/portage/gcc-3.2.3-r1/work/gcc-3.2.3/gcc/reload1.c: In function `eliminate_regs': 
/var/tmp/portage/gcc-3.2.3-r1/work/gcc-3.2.3/gcc/reload1.c:2666: internal error: 
Segmentation fault 
Please submit a full bug report, 
with preprocessed source if appropriate. 
See <URL:http://bugs.gentoo.org/> for instructions. 
make[2]: *** [reload1.o] Error 1 
make[2]: *** Waiting for unfinished jobs.... 
make[2]: Leaving directory `/var/tmp/portage/gcc-3.2.3-r1/work/build/gcc' 
make[1]: *** [stage2_build] Error 2 
make[1]: Leaving directory `/var/tmp/portage/gcc-3.2.3-r1/work/build/gcc' 
make: *** [bootstrap-lean] Error 2 
 
!!! ERROR: sys-devel/gcc-3.2.3-r1 failed. 
!!! Function src_compile, Line 371, Exitcode 2 
!!! (no error message)
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2003-09-01 11:45:57 UTC
*** Bug 27639 has been marked as a duplicate of this bug. ***
Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2003-09-01 11:47:11 UTC
Try without '-pipe' in C[XX]FLAGS, and please include info from 'emerge info'.
Comment 3 Jaakko Holster 2003-09-02 13:14:53 UTC
Thanks Martin. It compiled successfully without '-pipe'. I also dropped out 
'-fomit-frame-pointer' flag, thus I'm not sure which one caused the segfault. Anyway, 
this item can be marked as solved. 
 
Just for info: 
 
Failed flags: 
CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer" 
 
Ok flags: 
CFLAGS="-march=athlon-xp -O3" 
 
Comment 4 Martin Holzer (RETIRED) gentoo-dev 2003-09-16 12:09:06 UTC
dropping CFLAGS