[Bug c/55609] New: Segmentation fault while compiling ncurses 5.9

2012-12-06 Thread gcc at uldall dot eu

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55609

 Bug #: 55609
   Summary: Segmentation fault while compiling ncurses 5.9
Classification: Unclassified
   Product: gcc
   Version: 4.6.1
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: g...@uldall.eu


Created attachment 28886
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28886
The preprocessed file

While compiling ncurses 5.9 on my system I get the following error:
make[1]: Entering directory `/home/cup/Downloads/ncurses-5.9/ncurses'
gcc -DHAVE_CONFIG_H -I../ncurses -I.  -D_GNU_SOURCE -DNDEBUG -I. -I../include
-O2 --param max-inline-insns-single=1200 -g -DTRACE -c
../ncurses/./trace/lib_tracedmp.c -o ../obj_g/lib_tracedmp.o
../ncurses/./trace/lib_tracedmp.c: In function ‘_tracedump’:
../ncurses/./trace/lib_tracedmp.c:180:1: internal compiler error: Segmentation
fault
Please submit a full bug report,
with preprocessed source if appropriate.
See  for instructions.
make[1]: *** [../obj_g/lib_tracedmp.o] Error 1
make[1]: Leaving directory `/home/cup/Downloads/ncurses-5.9/ncurses'
make: *** [all] Error 2

Output from gcc -v:
$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/x86_64-linux-gnu/gcc/x86_64-linux-gnu/4.6.1/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.6.0-3~ppa1'
--with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++,go --prefix=/usr
--program-suffix=-4.6 --enable-shared --enable-multiarch
--with-multiarch-defaults=x86_64-linux-gnu --enable-linker-build-id
--with-system-zlib --libexecdir=/usr/lib/x86_64-linux-gnu
--without-included-gettext --enable-threads=posix
--with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib/x86_64-linux-gnu
--enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug
--enable-libstdcxx-time=yes --enable-plugin --enable-objc-gc --disable-werror
--with-arch-32=i686 --with-tune=generic --enable-checking=release
--build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.6.1 20110409 (prerelease) (Ubuntu 4.6.0-3~ppa1) 

Command used:
~/Downloads/ncurses-5.9/ncurses$ gcc -DHAVE_CONFIG_H -I../ncurses -I. 
-D_GNU_SOURCE -DNDEBUG -I. -I../include -O2 --param
max-inline-insns-single=1200 -g -DTRACE -c ../ncurses/./trace/lib_tracedmp.c -o
../obj_g/lib_tracedmp.o
../ncurses/./trace/lib_tracedmp.c: In function ‘_tracedump’:
../ncurses/./trace/lib_tracedmp.c:180:1: internal compiler error: Segmentation
fault
Please submit a full bug report,
with preprocessed source if appropriate.
See  for instructions.

Please let me know if you need any more information.

Best regards,
Christian Uldall Pedersen


[Bug c/55609] Segmentation fault while compiling ncurses 5.9

2012-12-06 Thread gcc at uldall dot eu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55609



Christian Uldall Pedersen  changed:



   What|Removed |Added



 Status|UNCONFIRMED |RESOLVED

 Resolution||FIXED



--- Comment #1 from Christian Uldall Pedersen  2012-12-06 
13:38:03 UTC ---

I installed a new compiler (4.6.3) from source to replace the one ubuntu

supplied, and this fixed the problem.