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 8F47513832E for ; Mon, 18 Jul 2016 13:18:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B4D8121C11D; Mon, 18 Jul 2016 13:18:29 +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 AB25FE0B6B for ; Mon, 18 Jul 2016 13:18:26 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2CKAQDl1oxX/9UBRWoNThkBAQEBAYQhpFoGkDiCJoQIhhoCggABAQEBAQGFagEBAQMjFVELDQsCAiYCAlcTCAEBFrduZ41vAQEIAiWBAYRhgkCCVYQzgw6CWgWIGIZnQIllUoRdg1+Cc4RJF4dlDIVESIYXiT+CXh2BWYZdgUIBAQE X-IPAS-Result: A2CKAQDl1oxX/9UBRWoNThkBAQEBAYQhpFoGkDiCJoQIhhoCggABAQEBAQGFagEBAQMjFVELDQsCAiYCAlcTCAEBFrduZ41vAQEIAiWBAYRhgkCCVYQzgw6CWgWIGIZnQIllUoRdg1+Cc4RJF4dlDIVESIYXiT+CXh2BWYZdgUIBAQE X-IronPort-AV: E=Sophos;i="5.28,384,1464624000"; d="scan'208";a="748302961" 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:18:26 +0800 Subject: Re: [gentoo-user] llvm install and python_fix_shebang: EPYTHON unset To: gentoo-user@lists.gentoo.org References: <4923d8a0-3c74-cb7f-db11-1936d3107689@gmail.com> From: Andrew Lowe Organization: Wombat High Tech Message-ID: Date: Mon, 18 Jul 2016 21:18:24 +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: <4923d8a0-3c74-cb7f-db11-1936d3107689@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: d0fdf8dc-2ef3-4562-8878-9ba8857e8f40 X-Archives-Hash: 5465391034cf72adaf486a634cef2e9a 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