Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 636646 - [ICE/7] sys-devel/gcc-7.2.0 / 7.3.0 : internal compiler error
Summary: [ICE/7] sys-devel/gcc-7.2.0 / 7.3.0 : internal compiler error
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL: https://gcc.gnu.org/bugzilla/show_bug...
Whiteboard: tracking upstream
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-05 16:50 UTC by Helmut Jarausch
Modified: 2018-10-27 21:26 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
preprocessed source file generating the error xz-compressed (xkaapiClean.C.xz,118.86 KB, application/octet-stream)
2017-11-05 16:52 UTC, Helmut Jarausch
Details
emerge --info (xkaapi.info,19.39 KB, application/x-info)
2017-11-05 16:52 UTC, Helmut Jarausch
Details
tiny file which shows this compiler error (gcc-bug.C,12.69 KB, text/plain)
2017-11-07 12:32 UTC, Helmut Jarausch
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Helmut Jarausch 2017-11-05 16:50:29 UTC
While trying to build sci-libs/xkaapi-9999 (local overlay but very similar to 
sci-libs/xkaapi-3.0.3 which doesn't compile here)
I get internal compiler errors reproducibly.
I doubt it's a memory problem.
The machine is brand new, but has been tested very heavily by re-emerging
about 4000 packages. The memory has been tested.

emerge --info is attached.

/tmp/xkaapiClean.C:24523:27: internal compiler error: Segmentation fault
     return format.Format::get_c_format();
Comment 1 Helmut Jarausch 2017-11-05 16:52:09 UTC
Created attachment 502728 [details]
preprocessed source file generating the error xz-compressed
Comment 2 Helmut Jarausch 2017-11-05 16:52:43 UTC
Created attachment 502730 [details]
emerge --info
Comment 3 Helmut Jarausch 2017-11-05 16:56:58 UTC
The same file compiles just fine with gcc-6.4.0
Comment 4 Mike Gilbert gentoo-dev 2017-11-06 17:31:51 UTC
Please provide a build log.
Comment 5 Helmut Jarausch 2017-11-06 18:47:21 UTC
(In reply to Mike Gilbert from comment #4)
> Please provide a build log.

 g++ -c gcc-bug.C

gcc-bug.C: In static member function 'static const kaapi_format_t* ka::WrapperFormat<T>::get_c_format()':
gcc-bug.C:24523:27: internal compiler error: Segmentation fault
     return format.Format::get_c_format();
                           ^~~~~~~~~~~~
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://bugs.gentoo.org/> for instructions.


g++ -v
Using built-in specs.
COLLECT_GCC=/usr/x86_64-pc-linux-gnu/gcc-bin/7.2.0/g++
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/7.2.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /var/tmp/Big_Tmp/portage/sys-devel/gcc-7.2.0/work/gcc-7.2.0/configure --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/7.2.0 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/7.2.0 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/7.2.0/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/7.2.0/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/include/g++-v7 --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/7.2.0/python --enable-languages=c,c++,go,fortran --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --enable-checking=release --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 7.2.0 p1.1' --disable-esp --enable-libstdcxx-time --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-multilib --with-multilib-list=m32,m64 --disable-altivec --disable-fixed-point --enable-targets=all --disable-libgcj --enable-libgomp --disable-libmudflap --disable-libssp --enable-libcilkrts --disable-libmpx --enable-vtable-verify --enable-libvtv --enable-lto --with-isl --disable-isl-version-check --enable-libsanitizer --disable-default-pie --enable-default-ssp
Thread model: posix
gcc version 7.2.0 (Gentoo 7.2.0 p1.1)
Comment 6 Helmut Jarausch 2017-11-07 12:32:14 UTC
Created attachment 502910 [details]
tiny file which shows this compiler error
Comment 7 Sergei Trofimovich (RETIRED) gentoo-dev 2017-11-12 10:14:40 UTC
Crashes here as well.
Comment 8 Sergei Trofimovich (RETIRED) gentoo-dev 2017-11-12 10:19:22 UTC
creduce shrunk it down to slightly shorter example (not even valid c++):

  class a;
  template <class> class b {
    static const b c;
    const int *m_fn1();
  };
  template <class d> const b<d> b<d>::c;
  template <class d> const int *b<d>::m_fn1() {
    c.a::e
Comment 9 Sergei Trofimovich (RETIRED) gentoo-dev 2017-11-12 10:48:58 UTC
Filed bug upstream: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82953
Comment 10 Helmut Jarausch 2018-01-27 10:13:22 UTC
It's a pity that this bug hasn't been fixed in 7.3.0
Comment 11 Helmut Jarausch 2018-05-04 16:04:05 UTC
(In reply to Helmut Jarausch from comment #10)
> It's a pity that this bug hasn't been fixed in 7.3.0

It seems that gcc-8.1.0 has fixed this.
Comment 12 Sergei Trofimovich (RETIRED) gentoo-dev 2018-10-27 21:26:35 UTC
Yeah. Not much progress upstream. Let's abandon it in favour of working gcc-8.