Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Failed to emerge Tensorflow 1.8.0-r1 - Invalid gcc path
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Bigun
Advocate
Advocate


Joined: 21 Sep 2003
Posts: 2150

PostPosted: Fri Jul 13, 2018 5:12 pm    Post subject: Failed to emerge Tensorflow 1.8.0-r1 - Invalid gcc path Reply with quote

So I had to degrade to version 1.8.0 because of the compute capability of my GPU.

In doing so, I ran into this error:

Code:
Do you want to use clang as CUDA compiler? [y/N]: nvcc will be used as CUDA compiler.

Invalid gcc path. x86_64-pc-linux-gnu-gcc cannot be found.
Please specify which gcc should be used by nvcc as the host compiler. [Default is x86_64-pc-linux-gnu-gcc]:

Invalid gcc path. x86_64-pc-linux-gnu-gcc cannot be found.
Please specify which gcc should be used by nvcc as the host compiler. [Default is x86_64-pc-linux-gnu-gcc]:

Invalid gcc path. x86_64-pc-linux-gnu-gcc cannot be found.
Please specify which gcc should be used by nvcc as the host compiler. [Default is x86_64-pc-linux-gnu-gcc]:

Invalid gcc path. x86_64-pc-linux-gnu-gcc cannot be found.
Please specify which gcc should be used by nvcc as the host compiler. [Default is x86_64-pc-linux-gnu-gcc]:

Invalid gcc path. x86_64-pc-linux-gnu-gcc cannot be found.
Please specify which gcc should be used by nvcc as the host compiler. [Default is x86_64-pc-linux-gnu-gcc]:

Invalid gcc path. x86_64-pc-linux-gnu-gcc cannot be found.
Please specify which gcc should be used by nvcc as the host compiler. [Default is x86_64-pc-linux-gnu-gcc]:

Invalid gcc path. x86_64-pc-linux-gnu-gcc cannot be found.
Please specify which gcc should be used by nvcc as the host compiler. [Default is x86_64-pc-linux-gnu-gcc]:

Invalid gcc path. x86_64-pc-linux-gnu-gcc cannot be found.
Please specify which gcc should be used by nvcc as the host compiler. [Default is x86_64-pc-linux-gnu-gcc]:

Invalid gcc path. x86_64-pc-linux-gnu-gcc cannot be found.
Please specify which gcc should be used by nvcc as the host compiler. [Default is x86_64-pc-linux-gnu-gcc]:

Invalid gcc path. x86_64-pc-linux-gnu-gcc cannot be found.
Traceback (most recent call last):
  File "./configure.py", line 1580, in <module>
    main()
  File "./configure.py", line 1538, in main
    set_gcc_host_compiler_path(environ_cp)
  File "./configure.py", line 819, in set_gcc_host_compiler_path
    error_msg='Invalid gcc path. %s cannot be found.',
  File "./configure.py", line 650, in prompt_loop_or_load_from_env
    (var_name, n_ask_attempts))
__main__.UserInputError: Invalid GCC_HOST_COMPILER_PATH setting was provided 10 times in a row. Assuming to be a scripting mistake.


emerge --info:
Code:
 # emerge --info
Portage 2.3.40 (python 3.6.5-final-0, default/linux/amd64/17.0, gcc-7.3.0, glibc-2.26-r7, 4.14.52-gentoo x86_64)
=================================================================
System uname: Linux-4.14.52-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_X3430_@_2.40GHz-with-gentoo-2.4.1
KiB Mem:    16421176 total,  10920332 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Fri, 13 Jul 2018 07:00:01 +0000
Head commit of repository gentoo: 72b615a85a1cf5c8f384d1a0957de0ad42d3afd3
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.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/openrc:          0.34.11::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.69-r4::gentoo
sys-devel/automake:       1.15.1-r2::gentoo
sys-devel/binutils:       2.30-r2::gentoo
sys-devel/gcc:            6.4.0-r1::gentoo, 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-extra-opts:
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -mtune=generic -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /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/terminfo"
CXXFLAGS="-march=core2 -mtune=generic -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://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
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 acl amd64 apache2 berkdb bzip2 cli corefonts crypt cuda cxx debugger dri fortran gd gdbm icarus iconv ipv6 libtirpc mmx modules multilib mysqli ncurses nls nptl openmp pam pcre php png readline seccomp sse sse2 sse4_1 sse4_2 ssl tcpd truetype unicode vhosts x264 xattr 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="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="php7-1" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" 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, LANG, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

_________________
"It's ok, they might have guns but we have flowers." - Perpetual Victim


Last edited by Bigun on Sat Jul 14, 2018 11:16 am; edited 1 time in total
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7544
Location: Goose Creek SC

PostPosted: Sat Jul 14, 2018 12:09 am    Post subject: Reply with quote

Run
Code:
gcc-config -l
or
Code:
eselect gcc list
Does the output include an asterisk indicating a gcc version is selected? If so, is it what you expected? If not, refer to https://wiki.gentoo.org/wiki/Upgrading_GCC to designate a version and update the environment. If the desired gcc version is implemented and the environment is updated, but the problem persists: run:
Code:
emerge mlocate # if not installed
locate x86_64-pc-linux-gnu-gcc
expected output (for version 7.3.0):
Code:
/usr/bin/x86_64-pc-linux-gnu-gcc
/usr/bin/x86_64-pc-linux-gnu-gcc-7.3.0
/usr/bin/x86_64-pc-linux-gnu-gcc-ar
/usr/bin/x86_64-pc-linux-gnu-gcc-nm
/usr/bin/x86_64-pc-linux-gnu-gcc-ranlib
/usr/x86_64-pc-linux-gnu/gcc-bin/7.3.0/x86_64-pc-linux-gnu-gcc
/usr/x86_64-pc-linux-gnu/gcc-bin/7.3.0/x86_64-pc-linux-gnu-gcc-7.3.0
/usr/x86_64-pc-linux-gnu/gcc-bin/7.3.0/x86_64-pc-linux-gnu-gcc-ar
/usr/x86_64-pc-linux-gnu/gcc-bin/7.3.0/x86_64-pc-linux-gnu-gcc-nm
/usr/x86_64-pc-linux-gnu/gcc-bin/7.3.0/x86_64-pc-linux-gnu-gcc-ranlib
If those outputs look good, check for symbolic links by pasting following block in a terminal window:
Code:

ls -l /usr/bin/x86_64-pc-linux-gnu-gcc
ls -l /usr/bin/x86_64-pc-linux-gnu-gcc-7.3.0
ls -l /usr/bin/x86_64-pc-linux-gnu-gcc-ar
ls -l /usr/bin/x86_64-pc-linux-gnu-gcc-nm
ls -l /usr/bin/x86_64-pc-linux-gnu-gcc-ranlib
ls -l /usr/x86_64-pc-linux-gnu/gcc-bin/7.3.0/x86_64-pc-linux-gnu-gcc
ls -l /usr/x86_64-pc-linux-gnu/gcc-bin/7.3.0/x86_64-pc-linux-gnu-gcc-7.3.0
ls -l /usr/x86_64-pc-linux-gnu/gcc-bin/7.3.0/x86_64-pc-linux-gnu-gcc-ar
ls -l /usr/x86_64-pc-linux-gnu/gcc-bin/7.3.0/x86_64-pc-linux-gnu-gcc-nm
ls -l /usr/x86_64-pc-linux-gnu/gcc-bin/7.3.0/x86_64-pc-linux-gnu-gcc-ranlib
Results here are:
Quote:
ls -l /usr/bin/x86_64-pc-linux-gnu-gcc
-rwxr-xr-x 1 root root 10360 Jun 24 03:56 /usr/bin/x86_64-pc-linux-gnu-gcc
ls -l /usr/bin/x86_64-pc-linux-gnu-gcc-7.3.0
lrwxrwxrwx 1 root root 62 Jun 24 03:56 /usr/bin/x86_64-pc-linux-gnu-gcc-7.3.0 -> /usr/x86_64-pc-linux-gnu/gcc-bin/7.3.0/x86_64-pc-linux-gnu-gcc
ls -l /usr/bin/x86_64-pc-linux-gnu-gcc-ar
-rwxr-xr-x 1 root root 10360 Jun 24 03:56 /usr/bin/x86_64-pc-linux-gnu-gcc-ar
ls -l /usr/bin/x86_64-pc-linux-gnu-gcc-nm
-rwxr-xr-x 1 root root 10360 Jun 24 03:56 /usr/bin/x86_64-pc-linux-gnu-gcc-nm
ls -l /usr/bin/x86_64-pc-linux-gnu-gcc-ranlib
-rwxr-xr-x 1 root root 10360 Jun 24 03:56 /usr/bin/x86_64-pc-linux-gnu-gcc-ranlib
ls -l /usr/x86_64-pc-linux-gnu/gcc-bin/7.3.0/x86_64-pc-linux-gnu-gcc
-rwxr-xr-x 1 root root 989904 Jun 24 03:56 /usr/x86_64-pc-linux-gnu/gcc-bin/7.3.0/x86_64-pc-linux-gnu-gcc
ls -l /usr/x86_64-pc-linux-gnu/gcc-bin/7.3.0/x86_64-pc-linux-gnu-gcc-7.3.0
lrwxrwxrwx 1 root root 23 Jun 24 03:56 /usr/x86_64-pc-linux-gnu/gcc-bin/7.3.0/x86_64-pc-linux-gnu-gcc-7.3.0 -> x86_64-pc-linux-gnu-gcc
ls -l /usr/x86_64-pc-linux-gnu/gcc-bin/7.3.0/x86_64-pc-linux-gnu-gcc-ar
-rwxr-xr-x 2 root root 26896 Jun 24 03:56 /usr/x86_64-pc-linux-gnu/gcc-bin/7.3.0/x86_64-pc-linux-gnu-gcc-ar
ls -l /usr/x86_64-pc-linux-gnu/gcc-bin/7.3.0/x86_64-pc-linux-gnu-gcc-nm
-rwxr-xr-x 2 root root 26896 Jun 24 03:56 /usr/x86_64-pc-linux-gnu/gcc-bin/7.3.0/x86_64-pc-linux-gnu-gcc-nm
ls -l /usr/x86_64-pc-linux-gnu/gcc-bin/7.3.0/x86_64-pc-linux-gnu-gcc-ranlib
-rwxr-xr-x 2 root root 26896 Jun 24 03:56 /usr/x86_64-pc-linux-gnu/gcc-bin/7.3.0/x86_64-pc-linux-gnu-gcc-ranlib
If you are missing a symlink, suggest repeating the emerge and upgrade of gcc-7.3.0. If missing symlinks still occur you may have to create them manually (and maybe many more).
_________________
Defund the FCC.
Back to top
View user's profile Send private message
Bigun
Advocate
Advocate


Joined: 21 Sep 2003
Posts: 2150

PostPosted: Sat Jul 14, 2018 1:16 am    Post subject: Reply with quote

I had to emerge mlocate, and after running the command:

Code:
# locate x86_64-pc-linux-gnu-gcc
locate: can not stat () `/var/lib/mlocate/mlocate.db': No such file or directory


gcc-config is set to 7.3.0, and I did not oneshot libtool, so I've done that now.

Listing the files:

Code:
# ls -l /usr/bin/x86_64-pc-linux-gnu-gcc
-rwxr-xr-x 1 root root 14600 Jul  5 12:48 /usr/bin/x86_64-pc-linux-gnu-gcc
# ls -l /usr/bin/x86_64-pc-linux-gnu-gcc-7.3.0
lrwxrwxrwx 1 root root 62 Jul  5 12:48 /usr/bin/x86_64-pc-linux-gnu-gcc-7.3.0 -> /usr/x86_64-pc-linux-gnu/gcc-bin/7.3.0/x86_64-pc-linux-gnu-gcc
# ls -l /usr/bin/x86_64-pc-linux-gnu-gcc-ar
-rwxr-xr-x 1 root root 14600 Jul  5 12:48 /usr/bin/x86_64-pc-linux-gnu-gcc-ar
# ls -l /usr/bin/x86_64-pc-linux-gnu-gcc-nm
-rwxr-xr-x 1 root root 14600 Jul  5 12:48 /usr/bin/x86_64-pc-linux-gnu-gcc-nm
# ls -l /usr/bin/x86_64-pc-linux-gnu-gcc-ranlib
-rwxr-xr-x 1 root root 14600 Jul  5 12:48 /usr/bin/x86_64-pc-linux-gnu-gcc-ranlib
# ls -l /usr/x86_64-pc-linux-gnu/gcc-bin/7.3.0/x86_64-pc-linux-gnu-gcc
-rwxr-xr-x 1 root root 989440 Jul  5 12:48 /usr/x86_64-pc-linux-gnu/gcc-bin/7.3.0/x86_64-pc-linux-gnu-gcc
# ls -l /usr/x86_64-pc-linux-gnu/gcc-bin/7.3.0/x86_64-pc-linux-gnu-gcc-7.3.0
lrwxrwxrwx 1 root root 23 Jul  5 12:48 /usr/x86_64-pc-linux-gnu/gcc-bin/7.3.0/x86_64-pc-linux-gnu-gcc-7.3.0 -> x86_64-pc-linux-gnu-gcc
# ls -l /usr/x86_64-pc-linux-gnu/gcc-bin/7.3.0/x86_64-pc-linux-gnu-gcc-ar
-rwxr-xr-x 2 root root 26896 Jul  5 12:48 /usr/x86_64-pc-linux-gnu/gcc-bin/7.3.0/x86_64-pc-linux-gnu-gcc-ar
# ls -l /usr/x86_64-pc-linux-gnu/gcc-bin/7.3.0/x86_64-pc-linux-gnu-gcc-nm
-rwxr-xr-x 2 root root 26896 Jul  5 12:48 /usr/x86_64-pc-linux-gnu/gcc-bin/7.3.0/x86_64-pc-linux-gnu-gcc-nm
# ls -l /usr/x86_64-pc-linux-gnu/gcc-bin/7.3.0/x86_64-pc-linux-gnu-gcc-ranlib
-rwxr-xr-x 2 root root 26896 Jul  5 12:48 /usr/x86_64-pc-linux-gnu/gcc-bin/7.3.0/x86_64-pc-linux-gnu-gcc-ranlib


Attempted emerge again, same error

*edit*

Also ran revdep-rebuild:

Code:
# revdep-rebuild
 * This is the new python coded version
 * Please report any bugs found using it.
 * The original revdep-rebuild script is installed as revdep-rebuild.sh
 * Please file bugs at: https://bugs.gentoo.org/
 * Collecting system binaries and libraries
 * Checking dynamic linking consistency

Your system is consistent


*edit*

Attempted a reboot, same result.
_________________
"It's ok, they might have guns but we have flowers." - Perpetual Victim
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7544
Location: Goose Creek SC

PostPosted: Sat Jul 14, 2018 4:59 am    Post subject: Reply with quote

As you have established that gcc-7.3.0 is locatable and where it belongs and the environment is aware and the problem persists another solution is needed.
Rereading your original post and particularly the first line
Quote:
Do you want to use clang as CUDA compiler? [y/N]: nvcc will be used as CUDA compiler.
leads to speculation that you are using a direct download of upstream source code vice emerging a portage ebuild. https://packages.gentoo.org/packages/sci-libs/tensorflow shows versions 1.8.0-r1 and 1.9.0, 1.9.0-rc1-r1, 1.9.0-rc1-r2, and 1.9.0-r2. I am currently an hour and a half into emerging tensorflow-1.8.0-r1 and well past the point where "Do you want to use clang as CUDA compiler? [y/N]: nvcc will be used as CUDA compiler." should have been asked, the ebuild did not ask.

The bad news: an emerge crash occurred a minute or so after I typed "ask".

If you are using non portage source, there may be a config file that needs to be told where to look for x86_64-pc-linux-gnu-gcc. Defaults may be for another os.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
Bigun
Advocate
Advocate


Joined: 21 Sep 2003
Posts: 2150

PostPosted: Sat Jul 14, 2018 11:20 am    Post subject: Reply with quote

DONAHUE wrote:
As you have established that gcc-7.3.0 is locatable and where it belongs and the environment is aware and the problem persists another solution is needed.
Rereading your original post and particularly the first line
Quote:
Do you want to use clang as CUDA compiler? [y/N]: nvcc will be used as CUDA compiler.
leads to speculation that you are using a direct download of upstream source code vice emerging a portage ebuild. https://packages.gentoo.org/packages/sci-libs/tensorflow shows versions 1.8.0-r1 and 1.9.0, 1.9.0-rc1-r1, 1.9.0-rc1-r2, and 1.9.0-r2. I am currently an hour and a half into emerging tensorflow-1.8.0-r1 and well past the point where "Do you want to use clang as CUDA compiler? [y/N]: nvcc will be used as CUDA compiler." should have been asked, the ebuild did not ask.

The bad news: an emerge crash occurred a minute or so after I typed "ask".

If you are using non portage source, there may be a config file that needs to be told where to look for x86_64-pc-linux-gnu-gcc. Defaults may be for another os.


Sorry, I meant 1.8.0-r1. I'm not installing from an overlay or external e-build.

That being said, it crashes quickly, during the early part of the e-build, like you had mentioned.

Just to help you, the late build fail your experiencing may be involved with a missing dependency I ran into with 1.9.0.

*edit*

Also, if your trying to build, here are the flags I'm using:

Code:
[ebuild     UD~] sci-libs/tensorflow-1.8.0-r1::gentoo [1.9.0_rc2::gentoo] USE="cuda -jemalloc -mpi (-python%*) (-system-libs%)" CPU_FLAGS_X86="sse sse2 -avx -avx2 -fma3 -fma4 -sse3 -sse4_1 -sse4_2" PYTHON_TARGETS="python2_7 python3_6 -python3_5" 0 KiB


*edit*

Also, what version of bazel do you have installed?
_________________
"It's ok, they might have guns but we have flowers." - Perpetual Victim
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7544
Location: Goose Creek SC

PostPosted: Sat Jul 14, 2018 2:05 pm    Post subject: Reply with quote

did your attempt to emerge tensorflow-1.8.0-r1 leave the file
Code:
/var/tmp/portage/sci-libs/tensorflow-1.8.0-r1/temp/environment
behind?
_________________
Defund the FCC.
Back to top
View user's profile Send private message
Bigun
Advocate
Advocate


Joined: 21 Sep 2003
Posts: 2150

PostPosted: Sat Jul 14, 2018 3:13 pm    Post subject: Reply with quote

DONAHUE wrote:
did your attempt to emerge tensorflow-1.8.0-r1 leave the file
Code:
/var/tmp/portage/sci-libs/tensorflow-1.8.0-r1/temp/environment
behind?


Yes

*edit*

-snip from environment-
Code:

...
src_configure ()
{
    function do_configure ()
    {
        python_export PYTHON_SITEDIR;
        export CC_OPT_FLAGS="${CFLAGS} $(bazel-get-cpu-flags)";
        export GCC_HOST_COMPILER_PATH=$(tc-getCC);
        export TF_NEED_JEMALLOC=$(usex jemalloc 1 0);
        export TF_NEED_GCP=0;
        export TF_NEED_HDFS=0;
        export TF_NEED_S3=0;
        export TF_NEED_KAFKA=0;
        export TF_ENABLE_XLA=0;
        export TF_NEED_GDR=0;
        export TF_NEED_VERBS=0;
        export TF_NEED_OPENCL_SYCL=0;
        export TF_NEED_OPENCL=0;
        export TF_NEED_COMPUTECPP=0;
        export TF_NEED_MKL=0;
        export TF_NEED_MPI=$(usex mpi 1 0);
        export TF_DOWNLOAD_CLANG=0;
        export TF_NEED_CUDA=$(usex cuda 1 0);
        export TF_SET_ANDROID_WORKSPACE=0;
        export PYTHON_BIN_PATH="${PYTHON}";
        export PYTHON_LIB_PATH="${PYTHON_SITEDIR}";
        echo "import ${T}/bazelrc" >> ./.bazelrc;
        ./configure || die
    };
    python_foreach_impl bazel_multibuild_wrapper do_configure
...

_________________
"It's ok, they might have guns but we have flowers." - Perpetual Victim
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7544
Location: Goose Creek SC

PostPosted: Sun Jul 15, 2018 12:23 pm    Post subject: Reply with quote

does running
Code:
x86_64-pc-linux-gnu-gcc-7.3.0
x86_64-pc-linux-gnu-gcc
gcc
produce
Quote:
fatal error: no input files
compilation terminated.
for each of the three commands?
_________________
Defund the FCC.
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 6875

PostPosted: Sun Jul 15, 2018 2:00 pm    Post subject: Reply with quote

can we get the config.log ; because the test fail, there's no need to guess why it has fail if it's wrote in the config.log already.
Back to top
View user's profile Send private message
Bigun
Advocate
Advocate


Joined: 21 Sep 2003
Posts: 2150

PostPosted: Mon Jul 16, 2018 9:39 am    Post subject: Reply with quote

DONAHUE wrote:
does running
Code:
x86_64-pc-linux-gnu-gcc-7.3.0
x86_64-pc-linux-gnu-gcc
gcc
produce
Quote:
fatal error: no input files
compilation terminated.
for each of the three commands?


In all three cases:
Code:
<compiler called>: fatal error: no input files
compilation terminated.

_________________
"It's ok, they might have guns but we have flowers." - Perpetual Victim
Back to top
View user's profile Send private message
Bigun
Advocate
Advocate


Joined: 21 Sep 2003
Posts: 2150

PostPosted: Mon Jul 16, 2018 9:44 am    Post subject: Reply with quote

krinn wrote:
can we get the config.log ; because the test fail, there's no need to guess why it has fail if it's wrote in the config.log already.


In the work directory (unless I missed something) these are the only log files available:

Code:
/var/tmp/portage/sci-libs/tensorflow-1.8.0-r1 # find -name "*.log"
./temp/build-python2_7.log
./temp/build.log
./temp/build-python3_6.log
./temp/eclass-debug.log
./homedir/.cache/bazel/_bazel_portage/dc024329686e016b535b28c4f6d9f644/command.log
./homedir/.cache/bazel/_bazel_portage/dc024329686e016b535b28c4f6d9f644/java.log


*edit*

Out of curiosity, I dug into the python-2.7 log file (because that is where the compiler started and stopped), found this:

Code:
Traceback (most recent call last):
  File "./configure.py", line 1580, in <module>
    main()
  File "./configure.py", line 1538, in main
    set_gcc_host_compiler_path(environ_cp)
  File "./configure.py", line 819, in set_gcc_host_compiler_path
    error_msg='Invalid gcc path. %s cannot be found.',
  File "./configure.py", line 650, in prompt_loop_or_load_from_env
    (var_name, n_ask_attempts))
__main__.UserInputError: Invalid GCC_HOST_COMPILER_PATH setting was provided 10 times in a row. Assuming to be a scripting mistake.


Going to dig deeper.

*edit*

Section of python code where it died. From /var/tmp/portage/sci-libs/tensorflow-1.8.0-r1/work/tensorflow-1.8.0-python2_7/configure.py - around line 650 or so:

Code:
  for _ in range(n_ask_attempts):
    val = get_from_env_or_user_or_default(environ_cp,
                                          var_name,
                                          full_query,
                                          default)
    if check_success(val):
      break
    if not suppress_default_error:
      print(error_msg % val)
    environ_cp[var_name] = ''
  else:
    raise UserInputError('Invalid %s setting was provided %d times in a row. '
                         'Assuming to be a scripting mistake.' %
                         (var_name, n_ask_attempts))

  environ_cp[var_name] = val
  return val

_________________
"It's ok, they might have guns but we have flowers." - Perpetual Victim
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7544
Location: Goose Creek SC

PostPosted: Mon Jul 16, 2018 2:09 pm    Post subject: Reply with quote

my
/var/tmp/portage/sci-libs/tensorflow-1.8.0-r1/work/tensorflow-1.8.0-python2_7/configure.py
is at
https://paste.pound-python.org/show/VagDHZhSzjpQof9d2iVG/
if comparison is of interest.

When I ran grep -ir looking for the question I got
Code:
grep -ir "Do you want to use clang as CUDA compiler?" /var/tmp/portage/sci-libs
/var/tmp/portage/sci-libs/tensorflow-1.8.0-r1/work/tensorflow-1.8.0-python2_7/tensorflow/docs_src/install/install_sources.md:Do you want to use clang as CUDA compiler? [y/N]
/var/tmp/portage/sci-libs/tensorflow-1.8.0-r1/work/tensorflow-1.8.0-python2_7/configure.py:  question = 'Do you want to use clang as CUDA compiler?'
/var/tmp/portage/sci-libs/tensorflow-1.8.0-r1/work/tensorflow-1.8.0-python3_5/tensorflow/docs_src/install/install_sources.md:Do you want to use clang as CUDA compiler? [ y/N]
/var/tmp/portage/sci-libs/tensorflow-1.8.0-r1/work/tensorflow-1.8.0-python3_5/configure.py:  question = 'Do you want to use clang as CUDA compiler?'
/var/tmp/portage/sci-libs/tensorflow-1.8.0-r1/work/tensorflow-1.8.0/tensorflow/docs_src/install/install_sources.md:Do you want to use clang as CUDA compiler? [y/N]
/var/tmp/portage/sci-libs/tensorflow-1.8.0-r1/work/tensorflow-1.8.0/configure.py:  question = 'Do you want to use clang as CUDA compiler?'
if you find and solve a problem in 2.7 it may reappear in 3.5

When I ran grep -iR looking for the question I got a huge number of "file not found"'s all with python-2.7 and pip.package in the file paths. Suspect this should relate to my crash during the install phase. ls -al on the file paths found symlinks to non-existent files.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
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