View previous topic :: View next topic |
Author |
Message |
caaperezag n00b
Joined: 15 Sep 2018 Posts: 2
|
Posted: Sat Sep 15, 2018 3:15 pm Post subject: package sci-libs/tensorflow-1.10.0 fails to build |
|
|
Hi, i am having trouble build tensorflow.
Code: |
* Messages for package sci-libs/tensorflow-1.10.0:
* ERROR: sci-libs/tensorflow-1.10.0::gentoo failed (compile phase):
* (no error message)
*
* Call stack:
* ebuild.sh, line 124: Called src_compile
* environment, line 4751: Called python_foreach_impl 'run_in_build_dir' 'do_compile'
* environment, line 4142: Called multibuild_foreach_variant '_python_multibuild_wrapper' 'run_in_build_dir' 'do_compile'
* environment, line 3312: Called _multibuild_run '_python_multibuild_wrapper' 'run_in_build_dir' 'do_compile'
* environment, line 3310: Called _python_multibuild_wrapper 'run_in_build_dir' 'do_compile'
* environment, line 905: Called run_in_build_dir 'do_compile'
* environment, line 4693: Called do_compile
* environment, line 4749: Called ebazel 'build' '//tensorflow/tools/pip_package:build_pip_package'
* environment, line 1951: Called die
* The specific snippet of code:
* bazel --output_base="${output_base}" $@ || die
*
* If you need support, post the output of `emerge --info '=sci-libs/tensorflow-1.10.0::gentoo'`,
* the complete build log and the output of `emerge -pqv '=sci-libs/tensorflow-1.10.0::gentoo'`.
* The complete build log is located at '/var/tmp/portage/sci-libs/tensorflow-1.10.0/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sci-libs/tensorflow-1.10.0/temp/environment'.
* Working directory: '/var/tmp/portage/sci-libs/tensorflow-1.10.0/work/tensorflow-1.10.0-python3_6'
* S: '/var/tmp/portage/sci-libs/tensorflow-1.10.0/work/tensorflow-1.10.0'
!!! existing preserved libs found
* IMPORTANT: 18 news items need reading for repository 'gentoo'.
* Use eselect news read to view new items.
|
Code: |
localhost /home/carlos # emerge --info '=sci-libs/tensorflow-1.10.0::gentoo '
Portage 2.3.40 (python 3.6.5-final-0, default/linux/amd64/17.0/desktop/plasma/systemd, gcc-7.3.0, glibc-2.26-r7, 4.14.65-gentoo x86_64)
=================================================================
System Settings
=================================================================
System uname: Linux-4.14.65-gentoo-x86_64-AMD_Ryzen_7_1700_Eight-Core_Processor-with-gentoo-2.4.1
KiB Mem: 32953388 total, 17152432 free
KiB Swap: 4194300 total, 4194044 free
Timestamp of repository gentoo: Fri, 14 Sep 2018 00:45:01 +0000
Head commit of repository gentoo: 0ce09df81641ea0a9359a6f7e3711030a6dc7526
sh bash 4.4_p12
ld GNU ld (Gentoo 2.30 p2) 2.30.0
app-shells/bash: 4.4_p12::gentoo
dev-java/java-config: 2.2.0-r4::gentoo
dev-lang/perl: 5.24.3-r1::gentoo
dev-lang/python: 2.7.15::gentoo, 3.6.5::gentoo
dev-util/cmake: 3.9.6::gentoo
dev-util/pkgconfig: 0.29.2::gentoo
sys-apps/baselayout: 2.4.1-r2::gentoo
sys-apps/sandbox: 2.13::gentoo
sys-devel/autoconf: 2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake: 1.15.1-r2::gentoo
sys-devel/binutils: 2.30-r2::gentoo
sys-devel/gcc: 7.3.0-r3::gentoo
sys-devel/gcc-config: 1.8-r1::gentoo
sys-devel/libtool: 2.4.6-r3::gentoo
sys-devel/make: 4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc: 2.26-r7::gentoo
Repositories:
gentoo
location: /usr/portage
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: -1000
sync-rsync-verify-metamanifest: yes
sync-rsync-extra-opts:
sync-rsync-verify-jobs: 1
sync-rsync-verify-max-age: 24
abendbrot
location: /var/lib/layman/abendbrot
sync-type: laymansync
sync-uri: https://github.com/stefan-gr/abendbrot.git
masters: gentoo
priority: 50
fusion809
location: /var/lib/layman/fusion809
sync-type: laymansync
sync-uri: https://github.com/fusion809/fusion809-overlay.git
masters: gentoo
priority: 50
jorgicio
location: /var/lib/layman/jorgicio
sync-type: laymansync
sync-uri: https://github.com/jorgicio/jorgicio-gentoo.git
masters: gentoo
priority: 50
steam-overlay
location: /var/lib/layman/steam-overlay
sync-type: laymansync
sync-uri: https://github.com/anyc/steam-overlay.git
masters: gentoo
priority: 50
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/sddm/scripts/Xsetup"
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 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-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch 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://gentoo.c3sl.ufpr.br/ ftp://ftp.gtlib.gatech.edu/pub/gentoo ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://lug.mtu.edu/gentoo/ http://gentoo.osuosl.org/ http://gentoo.cs.utah.edu/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j16"
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="X a52 aac acl acpi activities alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli crypt cuda cups cxx dbus declarative dri dts dvd dvdr emboss encode exif fam ffmpeg flac fortran gdbm gif glamor gpm iconv ipv6 jemalloc jpeg kde kipi kwallet lapack lcms ldap libnotify libtirpc lzma mad mng modules mp3 mp4 mpeg multilib ncurses nls nptl nvidia ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds pulseaudio qml qt5 readline sdl seccomp semantic-desktop sparse spell ssl startup-notification svg systemd sysv-utils tcpd tiff truetype udev udisks unicode upower usb vdpau vorbis widgets wxwidgets x264 xattr xcb xcomposite xml xv xvid xvmc zlib" ABI_X86="64" 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 plan sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a 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="libinput keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby23" USERLAND="GNU" VIDEO_CARDS="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
|
Code: |
carlos@localhost /usr/portage/sci-libs/tensorflow $ emerge -pqv '=sci-libs/tensorflow-1.10.0::gentoo'
[ebuild U ] sci-libs/tensorflow-1.10.0 [1.9.0] USE="cuda jemalloc mpi* python system-libs*" CPU_FLAGS_X86="avx avx2 fma3 sse sse2 sse3 sse4_1 sse4_2 -fma4" PYTHON_TARGETS="python3_6 -python2_7* -python3_5"
|
output of /var/tmp/portage/sci-libs/tensorflow-1.10.0/temp/build.log
full version here: https://gist.github.com/CarlosAndres12/a9023dc4bc367f1c0a3c77c65b6da5d7
Code: |
INFO: From Compiling tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:
tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:180:15: warning: 'std::__cxx11::string stream_executor::cuda::GetBinaryDir(bool)' defined but not used [-Wunused-function]
static string GetBinaryDir(bool strip_exe) {
^~~~~~~~~~~~
ERROR: /var/tmp/portage/sci-libs/tensorflow-1.10.0/work/tensorflow-1.10.0-python3_6/tensorflow/BUILD:581:1: Executing genrule //tensorflow:tensorflow_python_api_gen failed (Exit 1): bash failed: error executing command
(cd /var/tmp/portage/sci-libs/tensorflow-1.10.0/work/bazel-base-python3_6/execroot/org_tensorflow && \
exec env - \
CUDA_TOOLKIT_PATH=/opt/cuda \
CUDNN_INSTALL_PATH=/opt/cuda \
GCC_HOST_COMPILER_PATH=/usr/x86_64-pc-linux-gnu/gcc-bin/7.3.0/x86_64-pc-linux-gnu-gcc \
HOME=/var/tmp/portage/sci-libs/tensorflow-1.10.0/homedir \
PATH=/var/tmp/portage/sci-libs/tensorflow-1.10.0/temp/python3.6/bin:/var/tmp/portage/sci-libs/tensorflow-1.10.0/temp/python3.6/bin:/usr/lib/portage/python3.6/ebuild-helpers/xattr:/usr/lib/portage/python3.6/ebuild-helpers:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/7.3.0:/usr/lib/llvm/6/bin:/usr/lib/llvm/5/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/opt/cuda/bin \
PYTHON_BIN_PATH=/usr/bin/python3.6 \
PYTHON_LIB_PATH=/usr/lib64/python3.6/site-packages \
TF_CUDA_CLANG=0 \
TF_CUDA_COMPUTE_CAPABILITIES=3.5,7.0 \
TF_CUDA_VERSION=9.2 \
TF_CUDNN_VERSION=7 \
TF_NCCL_VERSION=1 \
TF_NEED_CUDA=1 \
TF_NEED_OPENCL_SYCL=0 \
TF_SYSTEM_LIBS=astor_archive,com_googlesource_code_re2,curl,cython,flatbuffers,gif_archive,grpc,jemalloc,jpeg,jsoncpp_git,lmdb,nasm,nsync,org_sqlite,pcre,png_archive,six_archive,snappy,swig,termcolor_archive,zlib_archive \
/bin/bash -c 'source external/bazel_tools/tools/genrule/genrule-setup.sh; bazel-out/host/bin/tensorflow/create_tensorflow.python_api --root_init_template=tensorflow/api_template.__init__.py --apidir=bazel-out/k8-opt/genfiles/tensorflow --apiname=tensorflow --apiversion=2 --package=tensorflow.python --output_package=tensorflow bazel-out/k8-opt/genfiles/tensorflow/__init__.py bazel-out/k8-opt/genfiles/tensorflow/app/__init__.py bazel-out/k8-opt/genfiles/tensorflow/bitwise/__init__.py bazel-out/k8-opt/genfiles/tensorflow/compat/__init__.py bazel-out/k8-opt/genfiles/tensorflow/data/__init__.py bazel-out/k8-opt/genfiles/tensorflow/debugging/__init__.py bazel-out/k8-opt/genfiles/tensorflow/distributions/__init__.py bazel-out/k8-opt/genfiles/tensorflow/distributions/bijectors/__init__.py bazel-out/k8-opt/genfiles/tensorflow/dtypes/__init__.py bazel-out/k8-opt/genfiles/tensorflow/errors/__init__.py bazel-out/k8-opt/genfiles/tensorflow/feature_column/__init__.py bazel-out/k8-opt/genfiles/tensorflow/gfile/__init__.py bazel-out/k8-opt/genfiles/tensorflow/graph_util/__init__.py bazel-out/k8-opt/genfiles/tensorflow/image/__init__.py bazel-out/k8-opt/genfiles/tensorflow/io/__init__.py bazel-out/k8-opt/genfiles/tensorflow/initializers/__init__.py bazel-out/k8-opt/genfiles/tensorflow/keras/__init__.py bazel-out/k8-opt/genfiles/tensorflow/keras/activations/__init__.py bazel-out/k8-opt/genfiles/tensorflow/keras/applications/__init__.py bazel-out/k8-opt/genfiles/tensorflow/keras/applications/densenet/__init__.py bazel-out/k8-opt/genfiles/tensorflow/keras/applications/inception_resnet_v2/__init__.py bazel-out/k8-opt/genfiles/tensorflow/keras/applications/inception_v3/__init__.py bazel-out/k8-opt/genfiles/tensorflow/keras/applications/mobilenet/__init__.py bazel-out/k8-opt/genfiles/tensorflow/keras/applications/nasnet/__init__.py bazel-out/k8-opt/genfiles/tensorflow/keras/applications/resnet50/__init__.py bazel-out/k8-opt/genfiles/tensorflow/keras/applications/vgg16/__init__.py bazel-out/k8-opt/genfiles/tensorflow/keras/applications/vgg19/__init__.py bazel-out/k8-opt/genfiles/tensorflow/keras/applications/xception/__init__.py bazel-out/k8-opt/genfiles/tensorflow/keras/backend/__init__.py bazel-out/k8-opt/genfiles/tensorflow/keras/callbacks/__init__.py bazel-out/k8-opt/genfiles/tensorflow/keras/constraints/__init__.py bazel-out/k8-opt/genfiles/tensorflow/keras/datasets/__init__.py bazel-out/k8-opt/genfiles/tensorflow/keras/datasets/boston_housing/__init__.py bazel-out/k8-opt/genfiles/tensorflow/keras/datasets/cifar10/__init__.py bazel-out/k8-opt/genfiles/tensorflow/keras/datasets/cifar100/__init__.py bazel-out/k8-opt/genfiles/tensorflow/keras/datasets/fashion_mnist/__init__.py bazel-out/k8-opt/genfiles/tensorflow/keras/datasets/imdb/__init__.py bazel-out/k8-opt/genfiles/tensorflow/keras/datasets/mnist/__init__.py bazel-out/k8-opt/genfiles/tensorflow/keras/datasets/reuters/__init__.py bazel-out/k8-opt/genfiles/tensorflow/keras/estimator/__init__.py bazel-out/k8-opt/genfiles/tensorflow/keras/initializers/__init__.py bazel-out/k8-opt/genfiles/tensorflow/keras/layers/__init__.py bazel-out/k8-opt/genfiles/tensorflow/keras/losses/__init__.py bazel-out/k8-opt/genfiles/tensorflow/keras/metrics/__init__.py bazel-out/k8-opt/genfiles/tensorflow/keras/models/__init__.py bazel-out/k8-opt/genfiles/tensorflow/keras/optimizers/__init__.py bazel-out/k8-opt/genfiles/tensorflow/keras/preprocessing/__init__.py bazel-out/k8-opt/genfiles/tensorflow/keras/preprocessing/image/__init__.py bazel-out/k8-opt/genfiles/tensorflow/keras/preprocessing/sequence/__init__.py bazel-out/k8-opt/genfiles/tensorflow/keras/preprocessing/text/__init__.py bazel-out/k8-opt/genfiles/tensorflow/keras/regularizers/__init__.py bazel-out/k8-opt/genfiles/tensorflow/keras/utils/__init__.py bazel-out/k8-opt/genfiles/tensorflow/keras/wrappers/__init__.py bazel-out/k8-opt/genfiles/tensorflow/keras/wrappers/scikit_learn/__init__.py bazel-out/k8-opt/genfiles/tensorflow/layers/__init__.py bazel-out/k8-opt/genfiles/tensorflow/linalg/__init__.py bazel-out/k8-opt/genfiles/tensorflow/logging/__init__
.py bazel-out/k8-opt/genfiles/tensorflow/losses/__init__.py bazel-out/k8-opt/genfiles/tensorflow/manip/__init__.py bazel-out/k8-opt/genfiles/tensorflow/math/__init__.py bazel-out/k8-opt/genfiles/tensorflow/metrics/__init__.py bazel-out/k8-opt/genfiles/tensorflow/nn/__init__.py bazel-out/k8-opt/genfiles/tensorflow/nn/rnn_cell/__init__.py bazel-out/k8-opt/genfiles/tensorflow/profiler/__init__.py bazel-out/k8-opt/genfiles/tensorflow/python_io/__init__.py bazel-out/k8-opt/genfiles/tensorflow/quantization/__init__.py bazel-out/k8-opt/genfiles/tensorflow/resource_loader/__init__.py bazel-out/k8-opt/genfiles/tensorflow/strings/__init__.py bazel-out/k8-opt/genfiles/tensorflow/saved_model/__init__.py bazel-out/k8-opt/genfiles/tensorflow/saved_model/builder/__init__.py bazel-out/k8-opt/genfiles/tensorflow/saved_model/constants/__init__.py bazel-out/k8-opt/genfiles/tensorflow/saved_model/loader/__init__.py bazel-out/k8-opt/genfiles/tensorflow/saved_model/main_op/__init__.py bazel-out/k8-opt/genfiles/tensorflow/saved_model/signature_constants/__init__.py bazel-out/k8-opt/genfiles/tensorflow/saved_model/signature_def_utils/__init__.py bazel-out/k8-opt/genfiles/tensorflow/saved_model/tag_constants/__init__.py bazel-out/k8-opt/genfiles/tensorflow/saved_model/utils/__init__.py bazel-out/k8-opt/genfiles/tensorflow/sets/__init__.py bazel-out/k8-opt/genfiles/tensorflow/sparse/__init__.py bazel-out/k8-opt/genfiles/tensorflow/spectral/__init__.py bazel-out/k8-opt/genfiles/tensorflow/summary/__init__.py bazel-out/k8-opt/genfiles/tensorflow/sysconfig/__init__.py bazel-out/k8-opt/genfiles/tensorflow/test/__init__.py bazel-out/k8-opt/genfiles/tensorflow/train/__init__.py bazel-out/k8-opt/genfiles/tensorflow/train/queue_runner/__init__.py bazel-out/k8-opt/genfiles/tensorflow/user_ops/__init__.py')
Traceback (most recent call last):
File "/var/tmp/portage/sci-libs/tensorflow-1.10.0/work/bazel-base-python3_6/execroot/org_tensorflow/bazel-out/host/bin/tensorflow/create_tensorflow.python_api.runfiles/org_tensorflow/tensorflow/python/pywrap_tensorflow_internal.py", line 14, in swig_import_helper
return importlib.import_module(mname)
File "/usr/lib64/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 658, in _load_unlocked
File "<frozen importlib._bootstrap>", line 571, in module_from_spec
File "<frozen importlib._bootstrap_external>", line 922, in create_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
ImportError: /usr/lib64/libjemalloc.so.2: cannot allocate memory in static TLS block
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/var/tmp/portage/sci-libs/tensorflow-1.10.0/work/bazel-base-python3_6/execroot/org_tensorflow/bazel-out/host/bin/tensorflow/create_tensorflow.python_api.runfiles/org_tensorflow/tensorflow/python/pywrap_tensorflow.py", line 58, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
File "/var/tmp/portage/sci-libs/tensorflow-1.10.0/work/bazel-base-python3_6/execroot/org_tensorflow/bazel-out/host/bin/tensorflow/create_tensorflow.python_api.runfiles/org_tensorflow/tensorflow/python/pywrap_tensorflow_internal.py", line 17, in <module>
_pywrap_tensorflow_internal = swig_import_helper()
File "/var/tmp/portage/sci-libs/tensorflow-1.10.0/work/bazel-base-python3_6/execroot/org_tensorflow/bazel-out/host/bin/tensorflow/create_tensorflow.python_api.runfiles/org_tensorflow/tensorflow/python/pywrap_tensorflow_internal.py", line 16, in swig_import_helper
return importlib.import_module('_pywrap_tensorflow_internal')
File "/usr/lib64/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named '_pywrap_tensorflow_internal'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/var/tmp/portage/sci-libs/tensorflow-1.10.0/work/bazel-base-python3_6/execroot/org_tensorflow/bazel-out/host/bin/tensorflow/create_tensorflow.python_api.runfiles/org_tensorflow/tensorflow/python/tools/api/generator/create_python_api.py", line 27, in <module>
from tensorflow.python.tools.api.generator import doc_srcs
File "/var/tmp/portage/sci-libs/tensorflow-1.10.0/work/bazel-base-python3_6/execroot/org_tensorflow/bazel-out/host/bin/tensorflow/create_tensorflow.python_api.runfiles/org_tensorflow/tensorflow/python/__init__.py", line 49, in <module>
from tensorflow.python import pywrap_tensorflow
File "/var/tmp/portage/sci-libs/tensorflow-1.10.0/work/bazel-base-python3_6/execroot/org_tensorflow/bazel-out/host/bin/tensorflow/create_tensorflow.python_api.runfiles/org_tensorflow/tensorflow/python/pywrap_tensorflow.py", line 74, in <module>
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "/var/tmp/portage/sci-libs/tensorflow-1.10.0/work/bazel-base-python3_6/execroot/org_tensorflow/bazel-out/host/bin/tensorflow/create_tensorflow.python_api.runfiles/org_tensorflow/tensorflow/python/pywrap_tensorflow_internal.py", line 14, in swig_import_helper
return importlib.import_module(mname)
File "/usr/lib64/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 658, in _load_unlocked
File "<frozen importlib._bootstrap>", line 571, in module_from_spec
File "<frozen importlib._bootstrap_external>", line 922, in create_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
ImportError: /usr/lib64/libjemalloc.so.2: cannot allocate memory in static TLS block
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/var/tmp/portage/sci-libs/tensorflow-1.10.0/work/bazel-base-python3_6/execroot/org_tensorflow/bazel-out/host/bin/tensorflow/create_tensorflow.python_api.runfiles/org_tensorflow/tensorflow/python/pywrap_tensorflow.py", line 58, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
File "/var/tmp/portage/sci-libs/tensorflow-1.10.0/work/bazel-base-python3_6/execroot/org_tensorflow/bazel-out/host/bin/tensorflow/create_tensorflow.python_api.runfiles/org_tensorflow/tensorflow/python/pywrap_tensorflow_internal.py", line 17, in <module>
_pywrap_tensorflow_internal = swig_import_helper()
File "/var/tmp/portage/sci-libs/tensorflow-1.10.0/work/bazel-base-python3_6/execroot/org_tensorflow/bazel-out/host/bin/tensorflow/create_tensorflow.python_api.runfiles/org_tensorflow/tensorflow/python/pywrap_tensorflow_internal.py", line 16, in swig_import_helper
return importlib.import_module('_pywrap_tensorflow_internal')
File "/usr/lib64/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named '_pywrap_tensorflow_internal'
Failed to load the native TensorFlow runtime.
See https://www.tensorflow.org/install/install_sources#common_installation_problems
for some common reasons and solutions. Include the entire stack trace
above this error message when asking for help.
Target //tensorflow/tools/pip_package:build_pip_package failed to build
INFO: Elapsed time: 2923.441s, Critical Path: 400.30s
INFO: 5769 processes: 5769 local.
FAILED: Build did NOT complete successfully
FAILED: Build did NOT complete successfully
* ERROR: sci-libs/tensorflow-1.10.0::gentoo failed (compile phase):
* (no error message)
*
* Call stack:
* ebuild.sh, line 124: Called src_compile
* environment, line 4751: Called python_foreach_impl 'run_in_build_dir' 'do_compile'
* environment, line 4142: Called multibuild_foreach_variant '_python_multibuild_wrapper' 'run_in_build_dir' 'do_compile'
* environment, line 3312: Called _multibuild_run '_python_multibuild_wrapper' 'run_in_build_dir' 'do_compile'
* environment, line 3310: Called _python_multibuild_wrapper 'run_in_build_dir' 'do_compile'
* environment, line 905: Called run_in_build_dir 'do_compile'
* environment, line 4693: Called do_compile
* environment, line 4749: Called ebazel 'build' '//tensorflow/tools/pip_package:build_pip_package'
* environment, line 1951: Called die
* The specific snippet of code:
* bazel --output_base="${output_base}" $@ || die
*
* If you need support, post the output of `emerge --info '=sci-libs/tensorflow-1.10.0::gentoo'`,
* the complete build log and the output of `emerge -pqv '=sci-libs/tensorflow-1.10.0::gentoo'`.
* The complete build log is located at '/var/tmp/portage/sci-libs/tensorflow-1.10.0/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sci-libs/tensorflow-1.10.0/temp/environment'.
* Working directory: '/var/tmp/portage/sci-libs/tensorflow-1.10.0/work/tensorflow-1.10.0-python3_6'
* S: '/var/tmp/portage/sci-libs/tensorflow-1.10.0/work/tensorflow-1.10.0'
|
Any suggestion?, thanks.
Last edited by caaperezag on Sat Sep 15, 2018 4:14 pm; edited 1 time in total |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21607
|
Posted: Sat Sep 15, 2018 3:47 pm Post subject: Re: package sci-libs/tensorflow-1.10.0 fails to build |
|
|
Welcome to the forums.
caaperezag wrote: | Code: | * If you need support, post the output of `emerge --info '=sci-libs/tensorflow-1.10.0::gentoo'`,
* the complete build log and the output of `emerge -pqv '=sci-libs/tensorflow-1.10.0::gentoo'`.
* The complete build log is located at '/var/tmp/portage/sci-libs/tensorflow-1.10.0/temp/build.log'.
|
| Please follow the instructions provided in the output you posted. They are given because we will need some, and possibly all, of that output to help you. caaperezag wrote: | Code: | * IMPORTANT: 18 news items need reading for repository 'gentoo'.
* Use eselect news read to view new items. |
| News items are usually important. If you have not read them, you should. |
|
Back to top |
|
|
caaperezag n00b
Joined: 15 Sep 2018 Posts: 2
|
Posted: Sat Sep 15, 2018 4:16 pm Post subject: Re: package sci-libs/tensorflow-1.10.0 fails to build |
|
|
Hu wrote: | Welcome to the forums.
caaperezag wrote: | Code: | * If you need support, post the output of `emerge --info '=sci-libs/tensorflow-1.10.0::gentoo'`,
* the complete build log and the output of `emerge -pqv '=sci-libs/tensorflow-1.10.0::gentoo'`.
* The complete build log is located at '/var/tmp/portage/sci-libs/tensorflow-1.10.0/temp/build.log'.
|
| Please follow the instructions provided in the output you posted. They are given because we will need some, and possibly all, of that output to help you. caaperezag wrote: | Code: | * IMPORTANT: 18 news items need reading for repository 'gentoo'.
* Use eselect news read to view new items. |
| News items are usually important. If you have not read them, you should. |
I just modified the original post with the additional information, thanks. |
|
Back to top |
|
|
kelvin34501 n00b
Joined: 05 Oct 2018 Posts: 9
|
Posted: Fri Oct 05, 2018 5:29 am Post subject: |
|
|
I think I have the same problem when emerging sci-libs/tensorflow-1.11.0.
Are there any solutions to this? |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30897 Location: here
|
Posted: Fri Oct 05, 2018 6:01 am Post subject: |
|
|
What version of jemalloc you installed? _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
kelvin34501 n00b
Joined: 05 Oct 2018 Posts: 9
|
Posted: Fri Oct 05, 2018 9:05 am Post subject: |
|
|
jemalloc-5.1.0 |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30897 Location: here
|
Posted: Fri Oct 05, 2018 9:21 am Post subject: |
|
|
Try to downgrade jemalloc to 4.5.0 and rebuild tensorflow [1], or disable jemalloc use flag
[1] https://github.com/jemalloc/jemalloc/pull/1180 _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|