Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 448122 - sys-devel/gcc-4.6.3: internal compiler error on sci-biology/ncbi-tools++-9.0.0/work/ncbi_cxx--9_0_0/src/algo/blast/api/objmgr_query_data.cpp:464
Summary: sys-devel/gcc-4.6.3: internal compiler error on sci-biology/ncbi-tools++-9.0....
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 279606
  Show dependency tree
 
Reported: 2012-12-21 22:27 UTC by Martin Mokrejš
Modified: 2012-12-26 17:58 UTC (History)
2 users (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 Martin Mokrejš 2012-12-21 22:27:46 UTC
While preparing a new ebuild for ncbi-tools++ (bug #279606) I hit two gcc crashes. This is one of them.


/usr/bin/x86_64-pc-linux-gnu-g++  -c -Wall -Wno-format-y2k  -pthread -pipe -msse  -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -msse4 -march=native -fPIC -O9 -finline-functions -fstrict-aliasing -ffast-math -fomit-frame-pointer   -DNDEBUG -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64   -D_MT -D_REENTRANT -D_THREAD_SAFE -I/var/tmp/portage/sci-biology/ncbi-tools++-9.0.0/work/ncbi_cxx--9_0_0/GCC463-ReleaseMTDLL64/inc -I/var/tmp/portage/sci-biology/ncbi-tools++-9.0.0/work/ncbi_cxx--9_0_0/include  /var/tmp/portage/sci-biology/ncbi-tools++-9.0.0/work/ncbi_cxx--9_0_0/src/algo/blast/api/blast_seqinfosrc_aux.cpp -o blast_seqinfosrc_aux.o 
/var/tmp/portage/sci-biology/ncbi-tools++-9.0.0/work/ncbi_cxx--9_0_0/src/algo/blast/api/objmgr_query_data.cpp: In constructor 'ncbi::objects::CNCBIpaa_Base::CNCBIpaa_Base()':
/var/tmp/portage/sci-biology/ncbi-tools++-9.0.0/work/ncbi_cxx--9_0_0/src/algo/blast/api/objmgr_query_data.cpp:464:1: internal compiler error: Segmentation fault
rm .core_phi_gapalign.c .core_blast_extend.c .core_blast_diagnostics.c .core_blast_seg.c .core_hspfilter_collector.c .core_blast_engine.c .core_blast_sw.c .core_blast_posit.c .core_blast_hspstream.c .core_ncbi_math.c .core_ncbi_std.c .core_link_hsps.c .core_phi_lookup.c .core_blast_psi.c .core_pattern.c .core_blast_psi_priv.c .core_blast_tune.c .core_blast_query_info.c .core_blast_filter.c .core_hspfilter_culling.c .core_blast_message.c .core_blast_options.c .core_blast_seqsrc.c .core_split_query.c .core_blast_aascan.c .core_gencode_singleton.c .core_greedy_align.c .core_blast_parameters.c .core_blast_itree.c .core_index_ungapped.c .core_blast_dynarray.c .core_gapinfo.c .core_na_ungapped.c .core_blast_hits.c .core_phi_extend.c .core_blast_traceback.c .core_matrix_freq_ratios.c .core_blast_lookup.c .core_blast_encoding.c .core_blast_gapalign.c .core_blast_program.c .core_blast_util.c .core_blast_setup.c .core_lookup_wrap.c .core_blast_nascan.c .core_aa_ungapped.c .core_blast_nalookup.c
 .core_blast_aalookup.c .core_blast_stat.c .core_blast_kappa.c .core_hspfilter_besthit.c .core_lookup_util.c
make[4]: Leaving directory `/var/tmp/portage/sci-biology/ncbi-tools++-9.0.0/work/ncbi_cxx--9_0_0/GCC463-ReleaseMTDLL64/build/algo/blast/api'
FAILED: src/algo/blast/api/Makefile.xblast.lib
make[4]: Entering directory `/var/tmp/portage/sci-biology/ncbi-tools++-9.0.0/work/ncbi_cxx--9_0_0/GCC463-ReleaseMTDLL64/build/algo/blast/api'
/bin/rm -f libxblast.so .xblast.dep .libxblast.so.stamp
/bin/rm -f /var/tmp/portage/sci-biology/ncbi-tools++-9.0.0/work/ncbi_cxx--9_0_0/GCC463-ReleaseMTDLL64/lib/libxblast.so /var/tmp/portage/sci-biology/ncbi-tools++-9.0.0/work/ncbi_cxx--9_0_0/GCC463-ReleaseMTDLL64/status/.xblast.dep
make[4]: Leaving directory `/var/tmp/portage/sci-biology/ncbi-tools++-9.0.0/work/ncbi_cxx--9_0_0/GCC463-ReleaseMTDLL64/build/algo/blast/api'

I will try to do a proper gcc.savannah.org bug report but no promises. If somebody from toolchain or bug-wrangler would do that for me I would be very grateful.

# emerge --info
Portage 2.1.11.38 (default/linux/amd64/10.0, gcc-4.6.3, glibc-2.16.0, 3.7.1-default x86_64)
=================================================================
System uname: Linux-3.7.1-default-x86_64-Intel-R-_Core-TM-_i7-2640M_CPU_@_2.80GHz-with-gentoo-2.2
Timestamp of tree: Wed, 19 Dec 2012 15:00:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p39-r1
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.5.4-r4, 2.6.8, 2.7.3-r3, 3.2.3-r2
dev-util/cmake:           2.8.9-r1
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.11.6, 1.12.6
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.2.4-r1, 4.3.6-r1, 4.5.3-r2, 4.6.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc:           2.16.0
Repositories: gentoo gentoo-haskell science x-portage x-layman
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 sun-bcla-java-vm Oracle-BCLA-JavaSE skype-eula Nero-EULA-US AdobeFlash-10.3 skype-4.0.0.7-copyright"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -msse  -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -msse4 -mavx -maes -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa"
CONFIG_PROTECT_MASK="${EPREFIX}/etc/gconf /etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -msse  -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -msse4 -mavx -maes -march=native"
DISTDIR="/mnt/1TB/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news nostrip parallel-fetch protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/mnt/1TB/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/haskell /home/mmokrejs/proj/sci /usr/local/portage /var/lib/layman"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl acpi alsa amd64 amr apache apache2 berkdb bluetooth bzip2 cairo cgi cli cracklib crypt cups cxx dbus device-mapper dhcp dri emboss encode fax ffmpeg flac fontconfig fortran gd gdbm gimp gpm gtk gudev hal hpijs hwdb iconv id3tag innodb java jce jpeg jpg keymap ladspa laptop lcms libnotify lm_sensors mad mmx modules mpi mpich2 multilib mysql ncurses nfs nls nptl nptlonly nsplugin ntfsprogs ocr ogg opengl openmp openssl pam parport pcre pdf perl php png policykit ppds pppd python readline resolvconf scanner server session sndfile sqlite sse sse2 sse3 ssl suexec svg syslog tcpd threads tiff tk truetype udev unicode usb vim-syntax wavpack x11 xml xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en cs cz" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="vesa vmware fbdev intel i915 i965 nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON


# gcc -v 
Using built-in specs.
Target: x86_64-pc-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-4.3.6-r1/work/gcc-4.3.6/configure --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.3.6 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.6/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.6 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.6/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.3.6/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.6/include/g++-v4 --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec --disable-fixed-point --enable-nls --without-included-gettext --with-system-zlib --disable-werror --enable-secureplt --enable-multilib --disable-libmudflap --disable-libssp --enable-libgomp --enable-checking=release --disable-libgcj --enable-languages=c,c++,treelang,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-targets=all --with-bugurl=http://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.3.6-r1 p1.0, pie-10.1.5'
Thread model: posix
gcc version 4.3.6 (Gentoo 4.3.6-r1 p1.0, pie-10.1.5) 

# gcc -dumpspecs
*asm:
%{v:-V} %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Yd,*}  %{Wa,*:%*} %{m32:--32} %{m64:--64}

*asm_debug:
%{gstabs*:--gstabs}%{!gstabs*:%{g*:--gdwarf2}} %{fdebug-prefix-map=*:--debug-prefix-map %*}

*asm_final:


*asm_options:
%{--target-help:%:print-asm-header()} %a %Y %{c:%W{o*}%{!o*:-o %w%b%O}}%{!c:-o %d%w%u%O}

*invoke_as:
%{!S:-o %|.s |
 as %(asm_options) %|.s %A }

*cpp:
%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}

*cpp_options:
%(cpp_unique_options) %1 %{m*} %{std*&ansi&trigraphs} %{W*&pedantic*} %{w} %{f*} %{g*:%{!g0:%{!fno-working-directory:-fworking-directory}}} %{O*} %{undef} %{save-temps:-fpch-preprocess}

*cpp_debug_options:
%{d*}

*cpp_unique_options:
%{C|CC:%{!E:%eGCC does not support -C or -CC without -E}} %{!Q:-quiet} %{nostdinc*} %{C} %{CC} %{v} %{I*&F*} %{P} %I %{MD:-MD %{!o:%b.d}%{o*:%.d%*}} %{MMD:-MMD %{!o:%b.d}%{o*:%.d%*}} %{M} %{MM} %{MF*} %{MG} %{MP} %{MQ*} %{MT*} %{!E:%{!M:%{!MM:%{!MT:%{!MQ:%{MD|MMD:%{o*:-MQ %*}}}}}}} %{remap} %{g3|ggdb3|gstabs3|gcoff3|gxcoff3|gvms3:-dD} %{H} %C %{D*&U*&A*} %{i*} %Z %i %{fmudflap:-D_MUDFLAP -include mf-runtime.h} %{fmudflapth:-D_MUDFLAP -D_MUDFLAPTH -include mf-runtime.h} %{!D_FORTIFY_SOURCE:%{!D_FORTIFY_SOURCE=*:%{!U_FORTIFY_SOURCE:-D_FORTIFY_SOURCE=2}}} %{E|M|MM:%W{o*}}

*trad_capable_cpp:
cc1 -E %{traditional|ftraditional|traditional-cpp:-traditional-cpp}

*cc1:
%(cc1_cpu) %{profile:-p}%{!D__KERNEL__: %(cc1_pie) %(cc1_ssp) } %(cc1_strict)

*cc1_options:
%{pg:%{fomit-frame-pointer:%e-pg and -fomit-frame-pointer are incompatible}} %{shared:%{static|pie|fPIE|fpie|fno-PIC|fno-pic:%e-shared and -static|pie|fPIE|fpie|fno-PIC|fno-pic are incompatible}} %{pie:%{static|pg|p|profile:%e-pie and -static|pg|p|profile are incompatible}} %1 %{!Q:-quiet} -dumpbase %B %{d*} %{m*} %{a*} %{c|S:%{o*:-auxbase-strip %*}%{!o*:-auxbase %b}}%{!c:%{!S:-auxbase %b}} %{g*} %{O*} %{W*&pedantic*} %{w} %{std*&ansi&trigraphs} %{v:-version} %{pg:-p} %{p} %{f*} %{undef} %{Qn:-fno-ident} %{--help:--help} %{--target-help:--target-help} %{--help=*:--help=%(VALUE)} %{!fsyntax-only:%{S:%W{o*}%{!o*:-o %b.s}}} %{fsyntax-only:-o %j} %{-param*} %{fmudflap|fmudflapth:-fno-builtin -fno-merge-constants} %{coverage:-fprofile-arcs -ftest-coverage}

*cc1plus:


*link_gcc_c_sequence:
%{static:--start-group} %G %L %{static:--end-group}%{!static:%G}

*link_ssp:
%{fstack-protector:}

*endfile:
%{ffast-math|funsafe-math-optimizations:crtfastmath.o%s}    %{mpc32:crtprec32.o%s}    %{mpc64:crtprec64.o%s}    %{mpc80:crtprec80.o%s}    %(endfile_pie_gen) crtn.o%s

*link:
%{!static:--eh-frame-hdr} %{!m32:-m elf_x86_64} %{m32:-m elf_i386}   %{shared:-shared}   %{!shared:     %{!static:       %{rdynamic:-export-dynamic}       %{m32:%{!dynamic-linker:-dynamic-linker %{muclibc:%{mglibc:%e-mglibc and -muclibc used together}/lib/ld-uClibc.so.0;:/lib/ld-linux.so.2}}}       %{!m32:%{!dynamic-linker:-dynamic-linker %{muclibc:%{mglibc:%e-mglibc and -muclibc used together}/lib/ld64-uClibc.so.0;:/lib64/ld-linux-x86-64.so.2}}}}     %{static:-static}}

*lib:
%{pthread:-lpthread}    %{shared:-lc}    %{!shared:%{mieee-fp:-lieee} %{profile:-lc_p}%{!profile:-lc}}

*mfwrap:
 %{static: %{fmudflap|fmudflapth:  --wrap=malloc --wrap=free --wrap=calloc --wrap=realloc --wrap=mmap --wrap=munmap --wrap=alloca} %{fmudflapth: --wrap=pthread_create}} %{fmudflap|fmudflapth: --wrap=main}
*mflib:
%{fmudflap|fmudflapth: -export-dynamic}

*link_gomp:


*libgcc:
%{static|static-libgcc:-lgcc -lgcc_eh}%{!static:%{!static-libgcc:%{!shared-libgcc:-lgcc --as-needed -lgcc_s --no-as-needed}%{shared-libgcc:-lgcc_s%{!shared: -lgcc}}}}

*startfile:
%(ld_pie_crtfile_gen) crti.o%s %(startfile_pie_t_gen)

*switches_need_spaces:


*cross_compile:
0

*version:
4.3.6

*multilib:
. !m64 !m32;64:../lib64 m64 !m32;32:../lib32 !m64 m32;

*multilib_defaults:
m64

*multilib_extra:


*multilib_matches:
m64 m64;m32 m32;

*multilib_exclusions:


*multilib_options:
m64/m32

*linker:
collect2

*link_libgcc:
%D

*md_exec_prefix:


*md_startfile_prefix:


*md_startfile_prefix_1:


*startfile_prefix_spec:


*sysroot_spec:
--sysroot=%R

*sysroot_suffix_spec:


*sysroot_hdrs_suffix_spec:


*asm_pie:
%{pie:-K PIC}

*ld_pie_crtfile_gen:
%(crtfile_pie_gen)

*crtfile_gen:
%{!shared: %{pg|p|profile:gcrt1.o%s;:crt1.o%s}}

*crtfile_pie_gen:
%{!shared: %{pg|p|profile:gcrt1.o%s;pie:Scrt1.o%s;:crt1.o%s} }

*startfile_pie_t_gen:
%{shared|pie:crtbeginS.o%s;static:crtbeginT.o%s;:crtbegin.o%s}

*startfile_pie_gen:
%{shared|pie:crtbeginS.o%s;:crtbegin.o%s}

*endfile_pie_gen:
%{shared|pie:crtendS.o%s;:crtend.o%s}

*cc1_ssp:


*cc1_ssp_all:


*cc1_pie:
%{pie:-fPIE}

*cc1_strict:


*link_now:


*link_pie:
%{pie:-pie} 

*cc1_cpu:
%{mcpu=*:-mtune=%* %n`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
} %<mcpu=* %{mintel-syntax:-masm=intel %n`-mintel-syntax' is deprecated. Use `-masm=intel' instead.
} %{mno-intel-syntax:-masm=att %n`-mno-intel-syntax' is deprecated. Use `-masm=att' instead.
}%{march=native:%<march=native %:local_cpu_detect(arch)   %{!mtune=*:%<mtune=native %:local_cpu_detect(tune)}} %{mtune=native:%<mtune=native %:local_cpu_detect(tune)}

*link_command:
%{!fsyntax-only:%{!c:%{!M:%{!MM:%{!E:%{!S:    %(linker) %l %(link_pie) %(link_now) %X %{o*} %{A} %{d} %{e*} %{m} %{N} %{n} %{r}    %{s} %{t} %{u*} %{x} %{z} %{Z} %{!A:%{!nostdlib:%{!nostartfiles:%S}}}    %{static:} %{L*} %(mfwrap) %(link_libgcc) %o    %{fopenmp|ftree-parallelize-loops=*:%:include(libgomp.spec)%(link_gomp)} %(mflib)    %{fprofile-arcs|fprofile-generate|coverage:-lgcov}    %{!nostdlib:%{!nodefaultlibs:%(link_ssp) %(link_gcc_c_sequence)}}    %{!A:%{!nostdlib:%{!nostartfiles:%E}}} %{T*} }}}}}}

#
Comment 1 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2012-12-26 17:24:44 UTC
> gcc version 4.3.6 (Gentoo 4.3.6-r1 p1.0, pie-10.1.5)

Make sure you're using right compiler. If the issue is present in 4.6.3 too please reopen this bug, with full build.log please.
Comment 2 Justin Lecher (RETIRED) gentoo-dev 2012-12-26 17:57:04 UTC
this bug is about a different issue.
Comment 3 Justin Lecher (RETIRED) gentoo-dev 2012-12-26 17:58:22 UTC
I was wrong