Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 685440 - sci-libs/tensorflow-1.13: internal compiler error on Eigen with GCC 7.4.0
Summary: sci-libs/tensorflow-1.13: internal compiler error on Eigen with GCC 7.4.0
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Jason Zaman
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-09 08:21 UTC by Guilherme Amadio
Modified: 2019-12-08 10:41 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 Guilherme Amadio gentoo-dev 2019-05-09 08:21:50 UTC
emerge --info
Portage 2.3.66 (python 3.6.8-final-0, default/linux/amd64/17.1/systemd, gcc-8.3.0, glibc-2.29-r2, 4.16.13-gentoo x86_64)
=================================================================
System uname: Linux-4.16.13-gentoo-x86_64-Intel-R-_Core-TM-_i7-7820X_CPU_@_3.60GHz-with-gentoo-2.6
KiB Mem:    32598996 total,  16784568 free
KiB Swap:          0 total,         0 free
Head commit of repository kdab-overlay: a48e7dfcd15ae80cee96fcbbfa74cccf071f2afa

Head commit of repository amadio: 558eec9d96c6db1ab2cfa1c1341d4fda6949a2ac

Head commit of repository gentoo: 9ac1dd6e414256541606880959b0ae1081f34a0e

sh bash 5.0_p7
ld GNU ld (Gentoo 2.30 p3) 2.30.0
ccache version 3.7.1 [enabled]
app-shells/bash:          5.0_p7::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.28.2-r1::gentoo
dev-lang/python:          2.7.16::gentoo, 3.5.7::gentoo, 3.6.8::gentoo, 3.7.3::gentoo
dev-util/ccache:          3.7.1::gentoo
dev-util/cmake:           3.14.3::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/sandbox:         2.17::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.13.4-r2::gentoo, 1.15.1-r2::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.29.1-r1::gentoo, 2.30-r3::gentoo, 2.31.1-r3::gentoo, 2.32-r1::gentoo
sys-devel/gcc:            5.4.0-r6::gentoo, 6.4.0-r5::gentoo, 7.4.0-r1::gentoo, 8.3.0-r1::gentoo
sys-devel/gcc-config:     9999::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.0-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.29-r2::gentoo
Repositories:

kdab-overlay
    location: /home/amadio/gentoo/kdab-overlay
    sync-type: git
    sync-uri: https://github.com/KDAB/kdab-overlay.git
    masters: gentoo
    priority: -1

amadio
    location: /home/amadio/gentoo/amadio
    sync-type: git
    sync-uri: git+ssh@github.com/amadio/gentoo-overlay.git
    masters: gentoo
    priority: 0

gentoo
    location: /home/amadio/gentoo/gentoo
    sync-type: git
    sync-uri: git+ssh@git.gentoo.org/repo/gentoo.git
    priority: 1

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="C.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j16 -l12"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="R X aac aacplus aalib acl afs alsa amd64 bash-completion berkdb blas bluetooth boost bzip2 cairo cjk clang cli crypt cuda cups curl cvs cxx dbus djvu dri exif expat ffmpeg fftw fontconfig fortran gdbm gif gimp git gnutls gpm graphviz gtk gtk3 iconv icu imagemagick infinality ipv6 jpeg jpeg2k json kerberos lapack latex lcms ldap libtirpc lua lzma lzo mercurial mng mp3 multilib ncurses nls nptl opencl opengl openldap openmp pam pango pcre perl png policykit postscript python qt3support readline sdl seccomp smp sqlite ssl svg systemd tbb tcl tcpd threads tiff tk truetype udev udisks unicode usb v4l vaapi valgrind vdpau vtk webp x264 x265 xattr xcb xft xinetd xml xpm xvid zlib" ABI_X86="64 32" 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" 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="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 avx512f avx512dq avx512cd avx512bw avx512vl f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-1" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python3_7 python3_6 python3_5 python2_7" RUBY_TARGETS="ruby26 ruby25 ruby24" USERLAND="GNU" VIDEO_CARDS="intel modesetting nouveau nvidia" 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:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Relevant other software:
titanx ~ $ equery l protobuf bazel
 * Searching for protobuf ...
[IP-] [  ] dev-libs/protobuf-3.6.1.3:0/17

 * Searching for bazel ...
[IP-] [  ] dev-util/bazel-0.22.0:0


Error during compilation:
In file included from tensorflow/core/kernels/sparse_reduce_op.cc:25:0:
./tensorflow/core/util/sparse/sparse_tensor.h: In static member function 'static tensorflow::Status tensorflow::sparse::SparseTensor::Create(tensorflow::Tensor, tensorflow::Tensor, tensorflow::sparse::SparseTensor::VarDimArray, tensorflow::sparse::SparseTensor::VarDimArray, tensorflow::sparse::SparseTensor*)':
./tensorflow/core/util/sparse/sparse_tensor.h:68:22: warning: 'dims' may be used uninitialized in this function [-Wmaybe-uninitialized]
     if (order.size() != dims) {
         ~~~~~~~~~~~~~^~~~~~~
In file included from external/eigen_archive/unsupported/Eigen/CXX11/Tensor:124:0,
                 from ./third_party/eigen3/unsupported/Eigen/CXX11/Tensor:1,
                 from ./tensorflow/core/framework/numeric_types.h:20,
                 from ./tensorflow/core/framework/allocator.h:23,
                 from ./tensorflow/core/framework/op_kernel.h:23,
                 from tensorflow/core/kernels/sparse_reduce_op.cc:20:
external/eigen_archive/unsupported/Eigen/CXX11/src/Tensor/TensorReduction.h: In static member function 'static void std::_Function_handler<void(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Functor = Eigen::internal::TensorExecutor<Expression, Eigen::ThreadPoolDevice, Vectorizable, Tileable>::run(const Expression&, const Eigen::ThreadPoolDevice&) [with Expression = const Eigen::TensorAssignOp<Eigen::TensorMap<Eigen::TensorFixedSize<std::complex<float>, Eigen::Sizes<>, 1, long int>, 16, Eigen::MakePointer>, const Eigen::TensorReductionOp<Eigen::internal::SumReducer<std::complex<float> >, const Eigen::DimensionList<long int, 1ul>, const Eigen::TensorMap<Eigen::Tensor<std::complex<float>, 1, 1, long int>, 0, Eigen::MakePointer>, Eigen::MakePointer> >; bool Vectorizable = true; bool Tileable = false]::<lambda(Eigen::internal::TensorExecutor<const Eigen::TensorAssignOp<Eigen::TensorMap<Eigen::TensorFixedSize<std::complex<float>, Eigen::Sizes<>, 1, long int>, 16, Eigen::MakePointer>, const Eigen::TensorReductionOp<Eigen::internal::SumReducer<std::complex<float> >, const Eigen::DimensionList<long int, 1ul>, const Eigen::TensorMap<Eigen::Tensor<std::complex<float>, 1, 1, long int>, 0, Eigen::MakePointer>, Eigen::MakePointer> >, Eigen::ThreadPoolDevice, true, false>::StorageIndex, Eigen::internal::TensorExecutor<const Eigen::TensorAssignOp<Eigen::TensorMap<Eigen::TensorFixedSize<std::complex<float>, Eigen::Sizes<>, 1, long int>, 16, Eigen::MakePointer>, const Eigen::TensorReductionOp<Eigen::internal::SumReducer<std::complex<float> >, const Eigen::DimensionList<long int, 1ul>, const Eigen::TensorMap<Eigen::Tensor<std::complex<float>, 1, 1, long int>, 0, Eigen::MakePointer>, Eigen::MakePointer> >, Eigen::ThreadPoolDevice, true, false>::StorageIndex)>; _ArgTypes = {long int, long int}]':
external/eigen_archive/unsupported/Eigen/CXX11/src/Tensor/TensorReduction.h:801:9: internal compiler error: in emit_move_insn, at expr.c:3547
         values[i] = internal::InnerMostDimReducer<Self, Op>::reduce(*this, firstIndex + i * num_values_to_reduce,
         ^~~~~~
Please submit a full bug report,
with preprocessed source if appropriate.
Comment 1 Guilherme Amadio gentoo-dev 2019-05-09 08:49:37 UTC
This also happens with GCC 8.3.0. Here are my USE flags for GCC:

titanx ~ $ equery u gcc:7.4.0
[ Legend : U - final flag setting for installation]
[        : I - package is installed with flag     ]
[ Colors : set, unset                             ]
 * Found these USE flags for sys-devel/gcc-7.4.0-r1:
 U I
 + + cilk            : Support the Cilk Plus language (C/C++ based languages for parallel programming)
 + + cxx             : Build support for C++ (bindings, extra libraries, code generation, ...)
 - - debug           : Enable extra debug codepaths, like asserts and extra output. If you want to get meaningful
                       backtraces see https://wiki.gentoo.org/wiki/Project:Quality_Assurance/Backtraces
 - - doc             : Add extra documentation (API, Javadoc, etc). It is recommended to enable per package instead of
                       globally
 + + fortran         : Add support for fortran
 - - go              : Build the GCC Go language frontend.
 - - graphite        : Add support for the framework for loop optimizations based on a polyhedral intermediate
                       representation
 + + mpx             : Enable support for Intel Memory Protection Extensions (MPX)
 + + nls             : Add Native Language Support (using gettext - GNU locale utilities)
 + + nptl            : Enable support for Native POSIX Threads Library, the new threading module (requires linux-2.6
                       or better usually)
 - - objc            : Build support for the Objective C code language
 - - objc++          : Build support for the Objective C++ language
 - - objc-gc         : Build support for the Objective C code language Garbage Collector
 + + openmp          : Build support for the OpenMP (support parallel computing), requires >=sys-devel/gcc-4.2 built
                       with USE="openmp"
 + + pch             : Enable precompiled header support for faster compilation at the expense of disk space and
                       memory (>=sys-devel/gcc-3.4 only)
 + + pgo             : Build GCC using Profile Guided Optimization (PGO)
 - + pie             : Build programs as Position Independent Executables (a security hardening technique)
 - - regression-test : Run the testsuite and install the results (requires FEATURES=test)
 + + sanitize        : Build support for various sanitizer functions (ASAN/TSAN/etc...)
 + + ssp             : Build packages with stack smashing protector on by default
 - - vanilla         : Do not add extra patches which change default behaviour; DO NOT USE THIS ON A GLOBAL SCALE as
                       the severity of the meaning changes drastically
 + + vtv             : Build support for virtual table verification (a C++ hardening feature)
titanx ~ $ equery u gcc:8.3.0
[ Legend : U - final flag setting for installation]
[        : I - package is installed with flag     ]
[ Colors : set, unset                             ]
 * Found these USE flags for sys-devel/gcc-8.3.0-r1:
 U I
 + + cxx       : Build support for C++ (bindings, extra libraries, code generation, ...)
 - - debug     : Enable extra debug codepaths, like asserts and extra output. If you want to get meaningful backtraces
                 see https://wiki.gentoo.org/wiki/Project:Quality_Assurance/Backtraces
 - - doc       : Add extra documentation (API, Javadoc, etc). It is recommended to enable per package instead of
                 globally
 + + fortran   : Add support for fortran
 - - go        : Build the GCC Go language frontend.
 - - graphite  : Add support for the framework for loop optimizations based on a polyhedral intermediate
                 representation
 + + mpx       : Enable support for Intel Memory Protection Extensions (MPX)
 + + nls       : Add Native Language Support (using gettext - GNU locale utilities)
 + + nptl      : Enable support for Native POSIX Threads Library, the new threading module (requires linux-2.6 or
                 better usually)
 - - objc      : Build support for the Objective C code language
 - - objc++    : Build support for the Objective C++ language
 - - objc-gc   : Build support for the Objective C code language Garbage Collector
 + + openmp    : Build support for the OpenMP (support parallel computing), requires >=sys-devel/gcc-4.2 built with
                 USE="openmp"
 + + pch       : Enable precompiled header support for faster compilation at the expense of disk space and memory
                 (>=sys-devel/gcc-3.4 only)
 + + pgo       : Build GCC using Profile Guided Optimization (PGO)
 - + pie       : Build programs as Position Independent Executables (a security hardening technique)
 + + sanitize  : Build support for various sanitizer functions (ASAN/TSAN/etc...)
 + + ssp       : Build packages with stack smashing protector on by default
 - - systemtap : enable systemtap static probe points
 - - test      : Enable dependencies and/or preparations necessary to run tests (usually controlled by FEATURES=test
                 but can be toggled independently)
 - - vanilla   : Do not add extra patches which change default behaviour; DO NOT USE THIS ON A GLOBAL SCALE as the
                 severity of the meaning changes drastically
 + + vtv       : Build support for virtual table verification (a C++ hardening feature)
Comment 2 Jason Zaman gentoo-dev 2019-12-08 10:41:22 UTC
tf-1.13 is gone