[Bug c/33575] New: segfault while building libgcc
karthikkumar at gmail dot com
gcc-bugzilla@gcc.gnu.org
Thu Sep 27 18:52:00 GMT 2007
Hi. an error occured while compiling to _muldi3.o of libgcc
A verbose/gdb shows a null reference somewhere in fold_builtin_1 in
gcc/builtins.c, line 9768
--------------------------------------------------------------
GNU gdb 6.6
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i486-slackware-linux"...
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) run
Starting program: /home/karthik/WS/act/gcc-mainline-dp-build/gcc/cc1 -quiet -v
-I. -I. -I../.././gcc -I../../../gcc-mainline-dp/libgcc
-I../../../gcc-mainline-dp/libgcc/. -I../../../gcc-mainline-dp/libgcc/../gcc
-I../../../gcc-mainline-dp/libgcc/../include
-I../../../gcc-mainline-dp/libgcc/config/libbid -iprefix
/home/karthik/WS/act/gcc-mainline-dp-build/gcc/../lib/gcc/i686-pc-linux-gnu/4.3.0/
-isystem /home/karthik/WS/act/gcc-mainline-dp-build/./gcc/include -isystem
/home/karthik/WS/act/gcc-mainline-dp-build/./gcc/include-fixed -MD _muldi3.d
-MF _muldi3.dep -MP -MT _muldi3.o -DIN_GCC -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2
-D__GCC_FLOAT_NOT_NEEDED -DENABLE_DECIMAL_BID_FORMAT -DHAVE_CC_TLS -DUSE_TLS
-DL_muldi3 -DHIDE_EXPORTS -isystem
/opt/gcc-mainline-dp/i686-pc-linux-gnu/include -isystem
/opt/gcc-mainline-dp/i686-pc-linux-gnu/sys-include -isystem ./include
../../../gcc-mainline-dp/libgcc/../gcc/libgcc2.c -quiet -dumpbase libgcc2.c
-mtune=generic -auxbase-strip _muldi3.o -g -g -g -O2 -O2 -O2 -O2 -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition
-version -fomit-frame-pointer -fPIC -fvisibility=hidden -o /tmp/cc77FHjt.s
ignoring nonexistent directory "/opt/gcc-mainline-dp/i686-pc-linux-gnu/include"
ignoring nonexistent directory
"/opt/gcc-mainline-dp/i686-pc-linux-gnu/sys-include"
ignoring nonexistent directory "./include"
ignoring nonexistent directory
"/home/karthik/WS/act/gcc-mainline-dp-build/gcc/../lib/gcc/i686-pc-linux-gnu/4.3.0/include"
ignoring nonexistent directory
"/home/karthik/WS/act/gcc-mainline-dp-build/gcc/../lib/gcc/i686-pc-linux-gnu/4.3.0/include-fixed"
ignoring nonexistent directory
"/home/karthik/WS/act/gcc-mainline-dp-build/gcc/../lib/gcc/i686-pc-linux-gnu/4.3.0/../../../../i686-pc-linux-gnu/include"
ignoring nonexistent directory "/opt/gcc-mainline-dp/include"
ignoring nonexistent directory
"/opt/gcc-mainline-dp/lib/gcc/i686-pc-linux-gnu/4.3.0/include"
ignoring nonexistent directory
"/opt/gcc-mainline-dp/lib/gcc/i686-pc-linux-gnu/4.3.0/include-fixed"
ignoring nonexistent directory "/opt/gcc-mainline-dp/i686-pc-linux-gnu/include"
ignoring duplicate directory "."
ignoring duplicate directory "../../../gcc-mainline-dp/libgcc/."
#include "..." search starts here:
#include <...> search starts here:
.
../.././gcc
../../../gcc-mainline-dp/libgcc
../../../gcc-mainline-dp/libgcc/../gcc
../../../gcc-mainline-dp/libgcc/../include
../../../gcc-mainline-dp/libgcc/config/libbid
/home/karthik/WS/act/gcc-mainline-dp-build/./gcc/include
/home/karthik/WS/act/gcc-mainline-dp-build/./gcc/include-fixed
/usr/local/include
/usr/include
End of search list.
GNU C (GCC) version 4.3.0 20070927 (experimental) (i686-pc-linux-gnu)
compiled by GNU C version 4.3.0 20070927 (experimental), GMP version
4.2.1, MPFR version 2.2.1-p1.
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: 1f5c3ab45e0ab524f80d84058122b450
Program received signal SIGSEGV, Segmentation fault.
0x08108292 in fold_builtin_1 (fndecl=0xb7ceb680, arg0=0xb7bb9bc0, ignore=0
'\0')
at ../../gcc-mainline-dp/gcc/builtins.c:9768
9768 {
--
Summary: segfault while building libgcc
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: karthikkumar at gmail dot com
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33575
More information about the Gcc-bugs
mailing list