1 |
On 18/07/16 21:18, Andrew Lowe wrote: |
2 |
> On 18/07/16 20:03, Fernando Rodriguez wrote: |
3 |
>> -----BEGIN PGP SIGNED MESSAGE----- |
4 |
>> Hash: SHA256 |
5 |
>> |
6 |
>> On 07/18/2016 07:19 AM, Andrew Lowe wrote: |
7 |
>>> Hi all, |
8 |
>>> I'm attempting to update llvm & clang and am getting a failure. |
9 |
>>> Portage is reporting: |
10 |
>>> |
11 |
>>> * ERROR: sys-devel/llvm-3.8.1::gentoo failed (install phase): |
12 |
>>> * python_fix_shebang: EPYTHON unset (pkg_setup not called?) |
13 |
>>> |
14 |
>>> I've looked in the ebuild and can't even find a mention of EPYTHON. |
15 |
>>> I've tried: |
16 |
>>> |
17 |
>>> export EPYTHON=python3.5 |
18 |
>>> |
19 |
>>> and |
20 |
>>> |
21 |
>>> export EPYTHON=python2.7 |
22 |
>>> |
23 |
>>> and still the fail persists. Anyone got any thoughts on what could be |
24 |
>>> going wrong? |
25 |
>>> |
26 |
>>> Regards, |
27 |
>>> Andrew |
28 |
>>> |
29 |
>>> |
30 |
>> |
31 |
>> It is set on python-single-r1.eclass. What is the output of these |
32 |
>> commands? |
33 |
>> |
34 |
>> # eselect python list |
35 |
>> # emerge -vp sys-devel/llvm |
36 |
> |
37 |
> Fernando, |
38 |
> Thanks for the reply. Output is as follows: |
39 |
> |
40 |
> **************** |
41 |
> |
42 |
> bluey agl # eselect python list |
43 |
> Available Python interpreters, in order of preference: |
44 |
> [1] python3.5 |
45 |
> [2] python3.4 |
46 |
> [3] python2.7 (fallback) |
47 |
> bluey agl # |
48 |
> |
49 |
> **************** |
50 |
> Notice there is no asterisk indicating an "active" version as I would |
51 |
> expect, like if I list opengl, opencl, ruby, binutils and others. |
52 |
> |
53 |
> When I noticed this, I ran python-updater and got: |
54 |
> |
55 |
> **************** |
56 |
> |
57 |
> bluey agl # python-updater |
58 |
> * Starting Python Updater... |
59 |
> * Main active version of Python: 3.5 |
60 |
> * Active version of Python 2: 2.7 |
61 |
> * Active version of Python 3: 3.5 |
62 |
> * Globally supported Python ABIs in installed repositories: |
63 |
> * agl: 2.4 2.5 2.6 2.7 3.1 3.2 3.3 |
64 |
> 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 |
65 |
> * gentoo: 2.4 2.5 2.6 2.7 3.1 3.2 3.3 |
66 |
> 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 |
67 |
> * nightmare: 2.4 2.5 2.6 2.7 3.1 3.2 3.3 |
68 |
> 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 |
69 |
> * No packages need to be reinstalled. |
70 |
> |
71 |
> **************** |
72 |
> |
73 |
> Pretending to run the emerge gives me: |
74 |
> |
75 |
> **************** |
76 |
> bluey agl # emerge -vp sys-devel/llvm |
77 |
> * WARNING: The FEATURES variable contains one or more values that |
78 |
> * should be disabled under normal circumstances: keeptemp keepwork |
79 |
> |
80 |
> These are the packages that would be merged, in order: |
81 |
> |
82 |
> Calculating dependencies ... done! |
83 |
> [ebuild U ] sys-devel/llvm-3.8.1:0/3.8.0::gentoo |
84 |
> [3.8.0-r3:0/3.8.0::gentoo] USE="clang libffi lldb ncurses |
85 |
> static-analyzer xml -debug -doc -gold -libedit -multitarget -ocaml |
86 |
> -python {-test}" ABI_X86="(64) -32 (-x32)" PYTHON_TARGETS="python2_7" |
87 |
> VIDEO_CARDS="-radeon" 0 KiB |
88 |
> [ebuild U ] sys-devel/clang-3.8.1-r100:0/3.8::gentoo |
89 |
> [3.8.0-r100:0/3.8::gentoo] USE="static-analyzer -debug -multitarget |
90 |
> -python" ABI_X86="(64) -32 (-x32)" 0 KiB |
91 |
> [blocks b ] <=sys-devel/clang-3.8.1-r99 |
92 |
> ("<=sys-devel/clang-3.8.1-r99" is blocking sys-devel/llvm-3.8.1) |
93 |
> |
94 |
> Total: 2 packages (2 upgrades), Size of downloads: 0 KiB |
95 |
> Conflict: 1 block |
96 |
> |
97 |
> * IMPORTANT: 1 news items need reading for repository 'gentoo'. |
98 |
> * Use eselect news read to view new items. |
99 |
> |
100 |
> **************** |
101 |
> |
102 |
> As the error happened during the install phase, I changed from |
103 |
> "emerge...." to "ebuild llvm install". When this runs, the first line |
104 |
> that is output is the following: |
105 |
> |
106 |
> python-exec: EPYTHON value invalid (/usr/bin/python2.7). |
107 |
> |
108 |
> Anything else you need? |
109 |
> |
110 |
> Regards, |
111 |
> Andrew |
112 |
|
113 |
I have no idea as to why, but I've just rerun the install and it now |
114 |
works, llvm is installed. Since my original post I reran "emerge |
115 |
eselect-python", as to whether that fixed the problem I have no idea. |
116 |
|
117 |
Fernando, thanks for the feedback, |
118 |
|
119 |
Andrew |