On 18/07/16 20:03, Fernando Rodriguez wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 07/18/2016 07:19 AM, Andrew Lowe wrote:
Hi all,
    I'm attempting to update llvm & clang and am getting a failure. Portage is 
reporting:

 * ERROR: sys-devel/llvm-3.8.1::gentoo failed (install phase):
 *   python_fix_shebang: EPYTHON unset (pkg_setup not called?)

I've looked in the ebuild and can't even find a mention of EPYTHON. I've tried:

export EPYTHON=python3.5

and

export EPYTHON=python2.7

and still the fail persists. Anyone got any thoughts on what could be going 
wrong?

    Regards,
        Andrew



It is set on python-single-r1.eclass. What is the output of these commands?

# eselect python list
# emerge -vp sys-devel/llvm

Fernando,
        Thanks for the reply. Output is as follows:

****************

bluey agl # eselect python list
Available Python interpreters, in order of preference:
  [1]   python3.5
  [2]   python3.4
  [3]   python2.7 (fallback)
bluey agl #

****************
Notice there is no asterisk indicating an "active" version as I would expect, like if I list opengl, opencl, ruby, binutils and others.

When I noticed this, I ran python-updater and got:

****************

bluey agl # python-updater
 * Starting Python Updater...
 * Main active version of Python:    3.5
 * Active version of Python 2:       2.7
 * Active version of Python 3:       3.5
 * Globally supported Python ABIs in installed repositories:
* agl: 2.4 2.5 2.6 2.7 3.1 3.2 3.3 2.5-jython 2.7-jython 2.7-pypy-1.7 2.7-pypy-1.8 2.7-pypy-1.9 2.7-pypy-2.0 * gentoo: 2.4 2.5 2.6 2.7 3.1 3.2 3.3 2.5-jython 2.7-jython 2.7-pypy-1.7 2.7-pypy-1.8 2.7-pypy-1.9 2.7-pypy-2.0 * nightmare: 2.4 2.5 2.6 2.7 3.1 3.2 3.3 2.5-jython 2.7-jython 2.7-pypy-1.7 2.7-pypy-1.8 2.7-pypy-1.9 2.7-pypy-2.0
 * No packages need to be reinstalled.

****************

Pretending to run the emerge gives me:

****************
bluey agl # emerge -vp sys-devel/llvm
 * WARNING: The FEATURES variable contains one or more values that
 * should be disabled under normal circumstances: keeptemp keepwork

These are the packages that would be merged, in order:

Calculating dependencies                      ... done!
[ebuild U ] sys-devel/llvm-3.8.1:0/3.8.0::gentoo [3.8.0-r3:0/3.8.0::gentoo] USE="clang libffi lldb ncurses static-analyzer xml -debug -doc -gold -libedit -multitarget -ocaml -python {-test}" ABI_X86="(64) -32 (-x32)" PYTHON_TARGETS="python2_7" VIDEO_CARDS="-radeon" 0 KiB [ebuild U ] sys-devel/clang-3.8.1-r100:0/3.8::gentoo [3.8.0-r100:0/3.8::gentoo] USE="static-analyzer -debug -multitarget -python" ABI_X86="(64) -32 (-x32)" 0 KiB [blocks b ] <=sys-devel/clang-3.8.1-r99 ("<=sys-devel/clang-3.8.1-r99" is blocking sys-devel/llvm-3.8.1)

Total: 2 packages (2 upgrades), Size of downloads: 0 KiB
Conflict: 1 block

 * IMPORTANT: 1 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.

****************

As the error happened during the install phase, I changed from "emerge...." to "ebuild llvm install". When this runs, the first line that is output is the following:

python-exec: EPYTHON value invalid (/usr/bin/python2.7).

        Anything else you need?

        Regards,
                Andrew


Reply via email to