From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 3EEDA13832E for ; Mon, 18 Jul 2016 13:40:04 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DE26821C121; Mon, 18 Jul 2016 13:39:53 +0000 (UTC) Received: from icp-osb-irony-out7.external.iinet.net.au (icp-osb-irony-out7.external.iinet.net.au [203.59.1.107]) by pigeon.gentoo.org (Postfix) with ESMTP id BDABD21C0CC for ; Mon, 18 Jul 2016 13:39:51 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2B7AgCS24xX/9UBRWoNTgYTAQEBAQGEIaRaBpA4giaECIYaAoIAAQEBAQEBgU4QAYQLAQEBAyMVUQsNCwICJgICVxMIAQEWt2dnhiWHSgEBAQcBAQEBI4EBhGGCQIJVhDODDoJaBYgYhmdAiWVSiDyCc4RJF4dlDIVESIYXiHEDS4JeHYFZgmKDe4FCAQEB X-IPAS-Result: A2B7AgCS24xX/9UBRWoNTgYTAQEBAQGEIaRaBpA4giaECIYaAoIAAQEBAQEBgU4QAYQLAQEBAyMVUQsNCwICJgICVxMIAQEWt2dnhiWHSgEBAQcBAQEBI4EBhGGCQIJVhDODDoJaBYgYhmdAiWVSiDyCc4RJF4dlDIVESIYXiHEDS4JeHYFZgmKDe4FCAQEB X-IronPort-AV: E=Sophos;i="5.28,384,1464624000"; d="scan'208";a="748305460" Received: from unknown (HELO [192.168.14.1]) ([106.69.1.213]) by icp-osb-irony-out7.iinet.net.au with ESMTP; 18 Jul 2016 21:39:49 +0800 Subject: Re: [gentoo-user] llvm install and python_fix_shebang: EPYTHON unset References: <4923d8a0-3c74-cb7f-db11-1936d3107689@gmail.com> To: gentoo-user@lists.gentoo.org From: Andrew Lowe Organization: Wombat High Tech Message-ID: <4225faf4-6c30-b079-f440-5c5d6e78cd95@wht.com.au> Date: Mon, 18 Jul 2016 21:39:49 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: 4cf27106-9181-40e6-bced-a4b5b09eaedc X-Archives-Hash: 9255ab699bbca88d657bdaf4d3ba3eef On 18/07/16 21:18, Andrew Lowe wrote: > 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 I have no idea as to why, but I've just rerun the install and it now works, llvm is installed. Since my original post I reran "emerge eselect-python", as to whether that fixed the problem I have no idea. Fernando, thanks for the feedback, Andrew