When compiling the file prefrocessed file gccSEGV.cpp.gz gcc 4.1.1 fails with internal compiler error: Segmentation fault. $ gcc -c jasmin.cpp jasmin.cpp: In constructor 'jl::jvm::ConstantArgT<T>::ConstantArgT(T) [with T = char*]': jasmin.cpp:229: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugs.gentoo.org/> for instructions. Preprocessed source stored into /tmp/ccR8uUwW.out file, please attach this to your bugreport. $ gcc --version gcc (GCC) 4.1.1 (Gentoo 4.1.1) Copyright
When compiling the file prefrocessed file gccSEGV.cpp.gz gcc 4.1.1 fails with internal compiler error: Segmentation fault. $ gcc -c jasmin.cpp jasmin.cpp: In constructor 'jl::jvm::ConstantArgT<T>::ConstantArgT(T) [with T = char*]': jasmin.cpp:229: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugs.gentoo.org/> for instructions. Preprocessed source stored into /tmp/ccR8uUwW.out file, please attach this to your bugreport. $ gcc --version gcc (GCC) 4.1.1 (Gentoo 4.1.1) Copyright © 2006 Free Software Foundation, Inc This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Created attachment 99404 [details] preprocessed source
you forgot to post `emerge info` also, that is a C++ file, so using `gcc` is wrong compiles fine on my amd64/x86
g++ does the same thing as gcc when just compiling. $ g++ gccSEGV.cpp jasmin.cpp: In constructor 'jl::jvm::ConstantArgT<T>::ConstantArgT(T) [with T = char*]': jasmin.cpp:229: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugs.gentoo.org/> for instructions. Preprocessed source stored into /tmp/ccBBwkoS.out file, please attach this to your bugreport. # emerge --info Portage 2.1.1 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.4-r3, 2.6.17 .6 i686) ================================================================= System uname: 2.6.17.6 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz Gentoo Base System version 1.12.5 Last Sync: Sun, 08 Oct 2006 13:30:08 +0000 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disable d] ccache version 2.3 [enabled] app-admin/eselect-compiler: [Not Present] dev-java/java-config: 1.3.3-r1, 2.0.30 dev-lang/python: 2.3.5-r2, 2.4.3-r4 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.3 dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.13-r3 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS=" -g -g" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shu tdown /usr/share/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr /share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf /tex/platex/config/ /usr/share/texmf/xdvi/" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms / /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks metadata-transfer parallel-fetch sandbox s fperms strict" GENTOO_MIRRORS="ftp://ftp.csbnet.se/pub/linux/distributions/gentoo ftp://ftp.du. se/pub/os/gentoo http://ds.thn.htu.se/linux/gentoo" LANG="sv_SE" LC_ALL="en_US" LINGUAS="sv_SE sv en_GB en_US us en" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/d istfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X acpi alsa apache2 bash/completion bitmap-fonts bzip2 cairo cdr cli cr ypt dbus divx4linux dlloader dri dvd dvdr dvdread eds elibc_glibc emacs esd fam firefox fortran gdbm gif gpm gtk hal imagemagick input_devices_evdev input_devic es_keyboard input_devices_mouse isdnlog ithreads java javascript jpeg kernel_lin ux lcms linguas_en linguas_en_GB linguas_en_US linguas_sv linguas_sv_SE linguas_ us mad mmx mng mp3 mpeg ncurses nls nptl nptlonly ogg opengl pam pcre perl php p lotutils png ppds pppd python qt3 qt4 quicktime readline reflection sdl session sockets socks5 spell spl sse sse2 ssl svg tcpd tetex theora tiff truetype truety pe-fonts type1-fonts udev unicode usb userland_GNU userlocales vcd video_cards_f glrx video_cards_radeon video_cards_vesa video_cards_vga videos vorbis win32code cs wmf xface xine xml xml2 xorg xosd xsl xv xvid zlib" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA _OPTS
Created attachment 99501 [details] testcase with diff to closest working source While I've been modifying the source alot recently I've found a better testcase: $ g++ -c g++FAIL.ii jasmin.cpp: In constructor 'jl::jvm::ConstantArgT<T>::ConstantArgT(T) [with T = char*]': jasmin.cpp:280: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://bugs.gentoo.org/> for instructions. Preprocessed source stored into /tmp/ccVK8d4X.out file, please attach this to your bugreport. $ g++ -c g++OK.ii $ diff -u g++FAIL.ii g++OK.ii > g++FAIL-OK.diff $ tar jcf testcase.tar.bz2 g++FAIL.ii g++FAIL-OK.diff
feel free to find the dupe, but this is fixed in gcc-4.1.1-r1+