Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 114590 - /lib/cpp from gcc-3.4.4 dies with internal error (segmentation fault)
Summary: /lib/cpp from gcc-3.4.4 dies with internal error (segmentation fault)
Status: RESOLVED DUPLICATE of bug 20600
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: All Linux
: High blocker (vote)
Assignee: Please assign to toolchain
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-05 19:49 UTC by Brandon Kilgore
Modified: 2005-12-06 05:59 UTC (History)
0 users

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 Brandon Kilgore 2005-12-05 19:49:14 UTC
I just upgraded to i686-pc-linux-gnu-3.4.4 and now /lib/cpp (or, more specifically, when it calls cc1plus) dies with a segmentation fault when compiling anything. 

As an example, I ran:
  echo "#include <stdio.h>" > foo.cc
  /lib/cpp foo.cc
  
And I get back:
  In file included from foo.cc:0:
  <internal>:0: internal compiler error: Segmentation fault
  Please submit a full bug report,
  with preprocessed source if appropriate.
  See <URL:http://bugs.gentoo.org/> for instructions.

Here's some more info:
  /usr/libexec/gcc/i686-pc-linux-gnu/3.4.4/cc1plus --version
    GNU C++ version 3.4.4 (Gentoo 3.4.4-r1, ssp-3.4.4-1.0, pie-8.7.8) (i686-pc-linux-gnu)
        compiled by GNU C version 3.3.5-20050130 (Gentoo 3.3.5.20050130-r1, ssp-3.3.5.20050130-1, pie-8.7.7.1).
    GGC heuristics: --param ggc-min-expand=64 --param ggc-min-heapsize=64208

  /usr/libexec/gcc/i686-pc-linux-gnu/3.4.4/cc1plus -v foo.cc
    ignoring nonexistent directory "/usr/local/include"
    ignoring nonexistent directory "/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/../../../../i686-pc-linux-gnu/include"
    #include "..." search starts here:
    #include <...> search starts here:
     /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/include/g++-v3
     /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/include/g++-v3/i686-pc-linux-gnu
     /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/include/g++-v3/backward
     /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/include
     /usr/include
    End of search list.
    In file included from foo.cc:1:
    <internal>:0: internal compiler error: Segmentation fault
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See <URL:http://bugs.gentoo.org/> for instructions.

Reproducible: Always
Steps to Reproduce:
1.gcc-config i686-pc-linux-gnu-3.4.4
2.echo "#include <stdio.h>" > foo.cc
3./lib/cpp foo.cc
Actual Results:  
In file included from foo.cc:0:
<internal>:0: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugs.gentoo.org/> for instructions.

Expected Results:  
Compiled...

Severity is set as Blocker because it is preventing me from compiling and using any software that uses /lib/cpp at the moment.
Comment 1 SpanKY gentoo-dev 2005-12-05 20:34:03 UTC
works just fine for me

you neglected to post `emerge info` like the bug report page told you to
Comment 2 Brandon Kilgore 2005-12-05 22:02:25 UTC
My bad...

emerge info

Portage 2.0.51.22-r3 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r2,
2.6.14-gentoo-r2 i686)
=================================================================
System uname: 2.6.14-gentoo-r2 i686 Intel(R) Pentium(R) 4 CPU 2.26GHz
Gentoo Base System version 1.6.13
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distro.ibiblio.org/pub/linux/distributions/gentoo/
http://mirror.datapipe.net/gentoo http://gentoo.cs.lewisu.edu/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="x86 X alsa apache2 apm arts audiofile avi bash-completion berkdb
bitmap-fonts bzip2 cdr crypt cups dio dri dvd dvdr dvdread eds emboss encode
exif expat fam ffmpeg foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2
hal idn imagemagick imlib ipv6 jabber java jpeg kde lcms libg++ libwww lirc mad
mikmod mmx mng motif mozilla mp3 mpeg mysql mysqli ncurses nls odb offensive ogg
oggvorbis opengl oss pam pcre pdflib perl png python qt quicktime readline samba
sdl sockets spell sse ssl tcpd tiff truetype truetype-fonts type1-fonts udev usb
v4l vorbis xml2 xmlrpc xmms xv xvid zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 3 Mark Loeser (RETIRED) gentoo-dev 2005-12-06 05:59:12 UTC
Well, doesn't look like its a problem with over-zealous CFLAGs, so I'm going to
assume hardware issues.  I'd run memcheck86+ overnight and ensure you have no
memory problems.  Heat issues could also be another factor.  If you didn't
un-emerge GCC-3.3 yet, switch back to it and try re-compiling gcc-3.4.4.  If you
want to grab a binary of gcc-3.4.4:
ftp://tinderbox.x86.dev.gentoo.org/default-linux/x86/2005.1/sys-devel/gcc-3.4.4-r1.tbz2

Please reopen the bug if any of the above turns out to be untrue and it isn't
hardware related.

*** This bug has been marked as a duplicate of 20600 ***