Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 661452 - sci-libs/tensorflow-1.9.0 - problem with the protobuf version
Summary: sci-libs/tensorflow-1.9.0 - problem with the protobuf version
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Jason Zaman
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-18 02:05 UTC by picnic.sun
Modified: 2018-08-09 16:13 UTC (History)
2 users (show)

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


Attachments
log (build.log.bz2,143.99 KB, application/x-bzip)
2018-07-21 04:23 UTC, picnic.sun
Details
diff (patch.txt,567 bytes, patch)
2018-07-21 04:57 UTC, picnic.sun
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description picnic.sun 2018-07-18 02:05:10 UTC
Same thing again:

Traceback (most recent call last):
  File "/var/tmp/portage/sci-libs/tensorflow-1.9.0/work/bazel-base-python2_7/execroot/org_tensorflow/bazel-out/host/bin/tensorflow/tools/api/generator/create_python_api.runfiles/org_tensorflow/tensorflow/tools/api/generator/create_python_api.py", line 396, in <module>
    main()
  File "/var/tmp/portage/sci-libs/tensorflow-1.9.0/work/bazel-base-python2_7/execroot/org_tensorflow/bazel-out/host/bin/tensorflow/tools/api/generator/create_python_api.runfiles/org_tensorflow/tensorflow/tools/api/generator/create_python_api.py", line 392, in main
    outputs, args.package, args.root_init_template, args.apidir)
  File "/var/tmp/portage/sci-libs/tensorflow-1.9.0/work/bazel-base-python2_7/execroot/org_tensorflow/bazel-out/host/bin/tensorflow/tools/api/generator/create_python_api.runfiles/org_tensorflow/tensorflow/tools/api/generator/create_python_api.py", line 324, in create_api_files
    module_text_map = get_api_init_text(package)
  File "/var/tmp/portage/sci-libs/tensorflow-1.9.0/work/bazel-base-python2_7/execroot/org_tensorflow/bazel-out/host/bin/tensorflow/tools/api/generator/create_python_api.runfiles/org_tensorflow/tensorflow/tools/api/generator/create_python_api.py", line 182, in get_api_init_text
    package not in module.__name__):
TypeError: argument of type 'NoneType' is not iterable
Target //tensorflow/tools/pip_package:build_pip_package failed to build
INFO: Elapsed time: 9869.511s, Critical Path: 227.88s
INFO: 4561 processes, local.
FAILED: Build did NOT complete successfully
FAILED: Build did NOT complete successfully
 * ERROR: sci-libs/tensorflow-1.9.0::gentoo failed (compile phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  124:  Called src_compile
 *   environment, line 4752:  Called python_foreach_impl 'run_in_build_dir' 'do_compile'
 *   environment, line 4143:  Called multibuild_foreach_variant '_python_multibuild_wrapper' 'run_in_build_dir' 'do_compile'
 *   environment, line 3300:  Called _multibuild_run '_python_multibuild_wrapper' 'run_in_build_dir' 'do_compile'
 *   environment, line 3298:  Called _python_multibuild_wrapper 'run_in_build_dir' 'do_compile'
 *   environment, line  902:  Called run_in_build_dir 'do_compile'
 *   environment, line 4694:  Called do_compile
 *   environment, line 4750:  Called ebazel 'build' '//tensorflow/tools/pip_package:build_pip_package'
 *   environment, line 1942:  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.9.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sci-libs/tensorflow-1.9.0::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sci-libs/tensorflow-1.9.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sci-libs/tensorflow-1.9.0/temp/environment'.
 * Working directory: '/var/tmp/portage/sci-libs/tensorflow-1.9.0/work/tensorflow-1.9.0-python2_7'
 * S: '/var/tmp/portage/sci-libs/tensorflow-1.9.0/work/tensorflow-1.9.0'

>>> Failed to emerge sci-libs/tensorflow-1.9.0, Log file:

>>>  '/var/tmp/portage/sci-libs/tensorflow-1.9.0/temp/build.log'

 * Messages for package dev-libs/geoip-1.6.10:

 * WARNING: Databases are no longer installed by this ebuild.
 * Don't forget to run 'geoipupdate.sh -f' (or geoipupdate from
 * net-misc/geoipupdate) to populate //usr/share/GeoIP/
 * with geo-located IP address databases.

 * Messages for package dev-ruby/rubygems-2.7.6-r1:

 * 
 * To switch between available Ruby profiles, execute as root:
 *      eselect ruby set ruby(23|24|...)
 * 

 * Messages for package sci-libs/tensorflow-1.9.0:

 * ERROR: sci-libs/tensorflow-1.9.0::gentoo failed (compile phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  124:  Called src_compile
 *   environment, line 4752:  Called python_foreach_impl 'run_in_build_dir' 'do_compile'
 *   environment, line 4143:  Called multibuild_foreach_variant '_python_multibuild_wrapper' 'run_in_build_dir' 'do_compile'
 *   environment, line 3300:  Called _multibuild_run '_python_multibuild_wrapper' 'run_in_build_dir' 'do_compile'
 *   environment, line 3298:  Called _python_multibuild_wrapper 'run_in_build_dir' 'do_compile'
 *   environment, line  902:  Called run_in_build_dir 'do_compile'
 *   environment, line 4694:  Called do_compile
 *   environment, line 4750:  Called ebazel 'build' '//tensorflow/tools/pip_package:build_pip_package'
 *   environment, line 1942:  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.9.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sci-libs/tensorflow-1.9.0::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sci-libs/tensorflow-1.9.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sci-libs/tensorflow-1.9.0/temp/environment'.
 * Working directory: '/var/tmp/portage/sci-libs/tensorflow-1.9.0/work/tensorflow-1.9.0-python2_7'
 * S: '/var/tmp/portage/sci-libs/tensorflow-1.9.0/work/tensorflow-1.9.0'
Comment 1 picnic.sun 2018-07-18 02:10:26 UTC
(In reply to picnic.sun from comment #0)
> Same thing again:
> 
> Traceback (most recent call last):
>   File
> "/var/tmp/portage/sci-libs/tensorflow-1.9.0/work/bazel-base-python2_7/
> execroot/org_tensorflow/bazel-out/host/bin/tensorflow/tools/api/generator/
> create_python_api.runfiles/org_tensorflow/tensorflow/tools/api/generator/
> create_python_api.py", line 396, in <module>
>     main()
>   File
> "/var/tmp/portage/sci-libs/tensorflow-1.9.0/work/bazel-base-python2_7/
> execroot/org_tensorflow/bazel-out/host/bin/tensorflow/tools/api/generator/
> create_python_api.runfiles/org_tensorflow/tensorflow/tools/api/generator/
> create_python_api.py", line 392, in main
>     outputs, args.package, args.root_init_template, args.apidir)
>   File
> "/var/tmp/portage/sci-libs/tensorflow-1.9.0/work/bazel-base-python2_7/
> execroot/org_tensorflow/bazel-out/host/bin/tensorflow/tools/api/generator/
> create_python_api.runfiles/org_tensorflow/tensorflow/tools/api/generator/
> create_python_api.py", line 324, in create_api_files
>     module_text_map = get_api_init_text(package)
>   File
> "/var/tmp/portage/sci-libs/tensorflow-1.9.0/work/bazel-base-python2_7/
> execroot/org_tensorflow/bazel-out/host/bin/tensorflow/tools/api/generator/
> create_python_api.runfiles/org_tensorflow/tensorflow/tools/api/generator/
> create_python_api.py", line 182, in get_api_init_text
>     package not in module.__name__):
> TypeError: argument of type 'NoneType' is not iterable
> Target //tensorflow/tools/pip_package:build_pip_package failed to build
> INFO: Elapsed time: 9869.511s, Critical Path: 227.88s
> INFO: 4561 processes, local.
> FAILED: Build did NOT complete successfully
> FAILED: Build did NOT complete successfully
>  * ERROR: sci-libs/tensorflow-1.9.0::gentoo failed (compile phase):
>  *   (no error message)
>  * 
>  * Call stack:
>  *     ebuild.sh, line  124:  Called src_compile
>  *   environment, line 4752:  Called python_foreach_impl 'run_in_build_dir'
> 'do_compile'
>  *   environment, line 4143:  Called multibuild_foreach_variant
> '_python_multibuild_wrapper' 'run_in_build_dir' 'do_compile'
>  *   environment, line 3300:  Called _multibuild_run
> '_python_multibuild_wrapper' 'run_in_build_dir' 'do_compile'
>  *   environment, line 3298:  Called _python_multibuild_wrapper
> 'run_in_build_dir' 'do_compile'
>  *   environment, line  902:  Called run_in_build_dir 'do_compile'
>  *   environment, line 4694:  Called do_compile
>  *   environment, line 4750:  Called ebazel 'build'
> '//tensorflow/tools/pip_package:build_pip_package'
>  *   environment, line 1942:  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.9.0::gentoo'`,
>  * the complete build log and the output of `emerge -pqv
> '=sci-libs/tensorflow-1.9.0::gentoo'`.
>  * The complete build log is located at
> '/var/tmp/portage/sci-libs/tensorflow-1.9.0/temp/build.log'.
>  * The ebuild environment file is located at
> '/var/tmp/portage/sci-libs/tensorflow-1.9.0/temp/environment'.
>  * Working directory:
> '/var/tmp/portage/sci-libs/tensorflow-1.9.0/work/tensorflow-1.9.0-python2_7'
>  * S: '/var/tmp/portage/sci-libs/tensorflow-1.9.0/work/tensorflow-1.9.0'
> 
> >>> Failed to emerge sci-libs/tensorflow-1.9.0, Log file:
> 
> >>>  '/var/tmp/portage/sci-libs/tensorflow-1.9.0/temp/build.log'
Comment 2 picnic.sun 2018-07-18 02:16:04 UTC
What? Why cannot delete wrong comment?
Comment 3 Brian Evans (RETIRED) gentoo-dev 2018-07-18 12:37:56 UTC
(In reply to picnic.sun from comment #2)
> What? Why cannot delete wrong comment?

Comments cannot be modified in Bugzilla.

As for your error, please attach the full build.log and place 'emerge --info' into a comment.
Comment 4 picnic.sun 2018-07-18 14:13:56 UTC
(In reply to Brian Evans from comment #3)
> (In reply to picnic.sun from comment #2)
> > What? Why cannot delete wrong comment?
> 
> Comments cannot be modified in Bugzilla.
> 
> As for your error, please attach the full build.log and place 'emerge
> --info' into a comment.

It's just been fixed last time.
https://github.com/tensorflow/tensorflow/issues/20233
Comment 5 picnic.sun 2018-07-18 14:22:41 UTC
Portage 2.3.40 (python 3.5.5-final-0, default/linux/amd64/17.0/desktop/plasma, gcc-7.3.0, glibc-2.26-r7, 4.9.95-gentoo x86_64)
=================================================================
System uname: Linux-4.9.95-gentoo-x86_64-Intel-R-_Celeron-R-_CPU_G1820_@_2.70GHz-with-gentoo-2.4.1
KiB Mem:     8113700 total,   2038024 free
KiB Swap:   16777212 total,  15646032 free
Timestamp of repository gentoo: Tue, 17 Jul 2018 14:30:01 +0000
Head commit of repository gentoo: 59c3a96f9bfb7ee88b19d4466039b0d6f70fe1d6
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.14-r1::gentoo, 3.5.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/openrc:          0.34.11::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::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-jobs: 1
    sync-rsync-verify-max-age: 24
    sync-rsync-extra-opts: 
    sync-rsync-verify-metamanifest: no

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /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/php/apache2-php7.1/ext-active/ /etc/php/cgi-php7.1/ext-active/ /etc/php/cli-php7.1/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-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://mirrors.163.com/gentoo/"
LANG="zh_CN.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
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 consolekit crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode exif fam flac fortran gdbm gif glamor gpm gtk iconv icu ipv6 jpeg kde kipi kwallet lcms ldap libnotify libtirpc mad mng modules mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds qml qt5 readline sdl seccomp semantic-desktop spell sqlite ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis widgets wxwidgets x264 xattr xcb xcomposite xml xv 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 plan sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" 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_5" PYTHON_TARGETS="python2_7 python3_5" RUBY_TARGETS="ruby23" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" 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, MAKEOPTS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 6 Jason Zaman gentoo-dev 2018-07-20 16:37:06 UTC
It's a problem with the protobuf version. Can you try enabling the system-libs USE-flag and building instead? That will pull in a later version so should work.
Comment 7 picnic.sun 2018-07-21 04:23:23 UTC
Created attachment 540304 [details]
log

Same with protobuf-3.6.0.1.
Comment 8 picnic.sun 2018-07-21 04:57:33 UTC
Created attachment 540306 [details, diff]
diff
Comment 9 picnic.sun 2018-08-05 09:08:05 UTC
Resolved, don't know why. pandas? python-3.6?
Comment 10 Jason Zaman gentoo-dev 2018-08-09 16:13:49 UTC
This should be fixed in tensorflow-1.10.