Package: gcc-6
Version: 6.3.0-5
Severity: normal
Tags: upstream

Dear Maintainer,


   * What led up to the situation?

     I tried to compile Mozilla's thunderbird (from comm-central)
     repository using gcc-6.
     Then compiler (gcc-6) experienced an ICE.
    
   * What exactly did you do (or not do) that was effective (or
     ineffective)?
 
     Removing -gsplit-dwarf seems to avoid ICE, but this is a
     non-solution for my needs.

   * What was the outcome of this action?
     gcc-6 experienced an ICE.

   * What outcome did you expect instead?
     gcc-6 ought to compile the file without ICE.

I reported the bug to

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70578

since it seems to address the same issue although the line number
reported seems to be a little different (maybe GCC version
difference).

The following is the report I filed to the above upstream bugzilla:

--- begin quote

Created attachment 40633 [details]
preprocessed file that triggers the ICE.

I have also seen this bug with gcc version 6.3.0 20170124 (Debian 6.3.0-5)

I am attaching a preprocessed file uvectr64.ii

gcc version (distributed under Debian GNU/Linux)

 gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/6/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 6.3.0-5'
--with-bugurl=file:///usr/share/doc/gcc-6/README.Bugs
--enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr
--program-suffix=-6 --program-prefix=x86_64-linux-gnu- --enable-shared
--enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext
--enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/
--enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes
--with-default-libstdcxx-abi=new --enable-gnu-unique-object
--disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie
--with-system-zlib --disable-browser-plugin --enable-java-awt=gtk
--enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-6-amd64/jre
--enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-6-amd64
--with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-6-amd64
--with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar
--with-target-system-zlib --enable-objc-gc=auto --enable-multiarch
--with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32
--enable-multilib --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 6.3.0 20170124 (Debian 6.3.0-5)
ishikawa@debian-vbox-ci:/tmp$

I encountered a bug during a compilation of mozilla thunderbird. I used the
following command to compile the attached .ii file, and I got the following ICE.
COMMAND LINE:
/usr/bin/g++-6 -std=gnu++11 -o uvectr64.o -c    -gsplit-dwarf           \
-DNDEBUG=1 -DTRIMMED=1 -DU_COMMON_IMPLEMENTATION -DLOCALE_SNAME=92      \
-DUCONFIG_NO_BREAK_ITERATION -DUCONFIG_NO_TRANSLITERATION               \
-DUCONFIG_NO_REGULAR_EXPRESSIONS -DUCONFIG_NO_LEGACY_CONVERSION         \
-DU_USING_ICU_NAMESPACE=0 -DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1          \
-DU_CHARSET_IS_UTF8 -MD -MP -MF -Wall -Wc++11-compat                    \
-fno-builtin-strlen -Wl,--gdb-index -Dfdatasync=fdatasync               \
-DDEBUG_4GB_CHECK -DUSEHELGRIND=1 -fno-exceptions  \
-fno-strict-aliasing -fno-rtti -fno-exceptions -fno-math-errno          \
-pthread -g3 -Og -freorder-blocks                                 \
-fno-omit-frame-pointer -frtti -fdiagnostics-color                      \
./uvectr64.ii

ICE error:

new-hd1/extra/ishikawa/TB-3HG/NEW-COMMSRC/mozilla/intl/icu/source/common/uvectr64.cpp:213:3:
internal compiler error: in output_index_string, at dwarf2out.c:25635
 U_NAMESPACE_END
   ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-6/README.Bugs> for instructions.

However, if I remove "-gsplit-dwarf" from my command line, it seems to compile.

TIA

--- end quote

*** End of the template - remove these template lines ***


-- System Information:
Debian Release: 9.0
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.7.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=ja_JP.UTF-8, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages gcc-6 depends on:
ii  binutils      2.27.90.20170124-2
ii  cpp-6         6.3.0-5
ii  gcc-6-base    6.3.0-5
ii  libc6         2.24-8
ii  libcc1-0      6.3.0-5
ii  libgcc-6-dev  6.3.0-5
ii  libgcc1       1:6.3.0-5
ii  libgmp10      2:6.1.2+dfsg-1
ii  libisl15      0.18-1
ii  libmpc3       1.0.3-1
ii  libmpfr4      3.1.5-1
ii  libstdc++6    6.3.0-5
ii  zlib1g        1:1.2.8.dfsg-4

Versions of packages gcc-6 recommends:
ii  libc6-dev  2.24-8

Versions of packages gcc-6 suggests:
pn  gcc-6-doc         <none>
pn  gcc-6-locales     <none>
ii  gcc-6-multilib    6.3.0-5
pn  libasan3-dbg      <none>
pn  libatomic1-dbg    <none>
pn  libcilkrts5-dbg   <none>
pn  libgcc1-dbg       <none>
pn  libgomp1-dbg      <none>
pn  libitm1-dbg       <none>
pn  liblsan0-dbg      <none>
pn  libmpx2-dbg       <none>
pn  libquadmath0-dbg  <none>
pn  libtsan0-dbg      <none>
pn  libubsan0-dbg     <none>

-- no debconf information

Reply via email to