termux-packages icon indicating copy to clipboard operation
termux-packages copied to clipboard

Anyone managed to install python numba ?

Open metorm opened this issue 7 years ago • 15 comments

I am trying to install numba in termux for python. However,as pip compiles it, there is an error says

"LLVMgold.so not found"

On my PC, LLVMgold.so belongs to llvm-dev, but on termux there is only libllvm-dev, and it seems do not provide LLVMgold.so

Is there any workaround?

metorm avatar Mar 15 '17 06:03 metorm

I gave it a try today. Binutils with gold and llvm with LLVMgold.so. unfortunately llvmlite have not updated to llvm-4.0 so i couldn't build that dependency. When they use 4.0 i can build a working version.

its-pointless avatar Mar 19 '17 07:03 its-pointless

Any luck on building LLVMgold.so to enable numba installation? Thx

jrh20001 avatar Jan 09 '18 18:01 jrh20001

No sorry. might have another look. But it probably needs someone with better knowlege of llvm than me.

its-pointless avatar Jan 09 '18 19:01 its-pointless

I made an attempt to build llvmgold using termux-exec and git clone --depth 1 git://sourceware.org/git/binutils-gdb.git binutils but I get an error unable to write to /tmp directory because I don't have root permission on my Android pad.

jrh20001 avatar Jan 10 '18 03:01 jrh20001

Oh iv got binutils ld.gold available on my repo and i rebuilt llvm so as to have LLVMgold.so plugin so i can compile llvmlite it just doesn't work. Doesn't pass unit tests and numba doesn;t work their

its-pointless avatar Jan 10 '18 04:01 its-pointless

Anyway error where im at ..s................s........Fatal Python error: Segmentation fault

Current thread 0x0000007f84a0fa98 (most recent call first): File "/data/data/com.termux/files/home/llvmlite-0.21.0/llvmlite/binding/executionengine.py", line 95 in finalize_object File "/data/data/com.termux/files/home/llvmlite-0.21.0/llvmlite/tests/test_binding.py", line 484 in get_sum File "/data/data/com.termux/files/home/llvmlite-0.21.0/llvmlite/tests/test_binding.py", line 635 in test_object_cache_getbuffer File "/data/data/com.termux/files/usr/lib/python3.6/unittest/case.py", line 605 in run File "/data/data/com.termux/files/usr/lib/python3.6/unittest/case.py", line 653 in call File "/data/data/com.termux/files/usr/lib/python3.6/unittest/suite.py", line 122 in run File "/data/data/com.termux/files/usr/lib/python3.6/unittest/suite.py", line 84 in call File "/data/data/com.termux/files/usr/lib/python3.6/unittest/suite.py", line 122 in run File "/data/data/com.termux/files/usr/lib/python3.6/unittest/suite.py", line 84 in call File "/data/data/com.termux/files/usr/lib/python3.6/unittest/suite.py", line 122 in run File "/data/data/com.termux/files/usr/lib/python3.6/unittest/suite.py", line 84 in call File "/data/data/com.termux/files/usr/lib/python3.6/unittest/runner.py", line 176 in run File "/data/data/com.termux/files/usr/lib/python3.6/unittest/main.py", line 256 in runTests File "/data/data/com.termux/files/home/llvmlite-0.21.0/llvmlite/tests/customize.py", line 98 in run_tests_real File "/data/data/com.termux/files/home/llvmlite-0.21.0/llvmlite/tests/customize.py", line 113 in runTests File "/data/data/com.termux/files/usr/lib/python3.6/unittest/main.py", line 95 in init File "/data/data/com.termux/files/home/llvmlite-0.21.0/llvmlite/tests/customize.py", line 39 in init File "/data/data/com.termux/files/home/llvmlite-0.21.0/llvmlite/tests/init.py", line 54 in run_tests File "/data/data/com.termux/files/home/llvmlite-0.21.0/llvmlite/tests/init.py", line 59 in main File "./runtests.py", line 9 in [2] 15221 segmentation fault ./runtests.py

its-pointless avatar Jan 10 '18 04:01 its-pointless

Ok that's further than I got. Wonder if you could compile using llvm-dev insteal of llvmlite?

On Tue, Jan 9, 2018 at 8:54 PM, its-pointless [email protected] wrote:

Anyway error where im at ..s................s........Fatal Python error: Segmentation fault

Current thread 0x0000007f84a0fa98 (most recent call first): File "/data/data/com.termux/files/home/llvmlite-0.21.0/llvmlite/binding/executionengine.py", line 95 in finalize_object File "/data/data/com.termux/files/home/llvmlite-0.21.0/llvmlite/tests/test_binding.py", line 484 in get_sum File "/data/data/com.termux/files/home/llvmlite-0.21.0/llvmlite/tests/test_binding.py", line 635 in test_object_cache_getbuffer File "/data/data/com.termux/files/usr/lib/python3.6/unittest/case.py", line 605 in run File "/data/data/com.termux/files/usr/lib/python3.6/unittest/case.py", line 653 in call File "/data/data/com.termux/files/usr/lib/python3.6/unittest/suite.py", line 122 in run File "/data/data/com.termux/files/usr/lib/python3.6/unittest/suite.py", line 84 in call File "/data/data/com.termux/files/usr/lib/python3.6/unittest/suite.py", line 122 in run File "/data/data/com.termux/files/usr/lib/python3.6/unittest/suite.py", line 84 in call File "/data/data/com.termux/files/usr/lib/python3.6/unittest/suite.py", line 122 in run File "/data/data/com.termux/files/usr/lib/python3.6/unittest/suite.py", line 84 in call File "/data/data/com.termux/files/usr/lib/python3.6/unittest/runner.py", line 176 in run File "/data/data/com.termux/files/usr/lib/python3.6/unittest/main.py", line 256 in runTests File "/data/data/com.termux/files/home/llvmlite-0.21.0/llvmlite/tests/customize.py", line 98 in run_tests_real File "/data/data/com.termux/files/home/llvmlite-0.21.0/llvmlite/tests/customize.py", line 113 in runTests File "/data/data/com.termux/files/usr/lib/python3.6/unittest/main.py", line 95 in init File "/data/data/com.termux/files/home/llvmlite-0.21.0/llvmlite/tests/customize.py", line 39 in init File "/data/data/com.termux/files/home/llvmlite-0.21.0/llvmlite/tests/ init.py", line 54 in run_tests File "/data/data/com.termux/files/home/llvmlite-0.21.0/llvmlite/tests/ init.py", line 59 in main File "./runtests.py", line 9 in [2] 15221 segmentation fault ./runtests.py

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/termux/termux-packages/issues/845#issuecomment-356499614, or mute the thread https://github.com/notifications/unsubscribe-auth/Aho3dSLpOwbFt5tbD5xleUWsd6HKmHuGks5tJEKGgaJpZM4Mdi6B .

jrh20001 avatar Jan 11 '18 03:01 jrh20001

Iv actually got numba working with my libllvm pull request using master branch of llvmlite

its-pointless avatar Apr 04 '18 07:04 its-pointless

can you show how to do installation? i'm really stuck and out of idea. thank you.

bhree avatar Apr 11 '18 11:04 bhree

Its only working on x86 x86_64 unfortunately.. sorry.

On Wed., 11 Apr. 2018, 9:43 pm Brian Rahardi, [email protected] wrote:

can you show how to do installation? i'm really stuck and out of idea. thank you.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/termux/termux-packages/issues/845#issuecomment-380422870, or mute the thread https://github.com/notifications/unsubscribe-auth/AP-OtwloHrD0O8a8OqgAceFDrmLmEBO-ks5tnex7gaJpZM4Mdi6B .

its-pointless avatar Apr 11 '18 11:04 its-pointless

well, at least that relieves me from getting headache installing on arm. Thank you for the answer and your repo I really appreciate it.

bhree avatar Apr 11 '18 16:04 bhree

It looks like llvmlite uses llvm 7.0 now, would that help? https://llvmlite.readthedocs.io/en/latest/admin-guide/install.html

nathanielatom avatar Jan 11 '19 00:01 nathanielatom

This issue/PR has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Nov 18 '21 20:11 stale[bot]

See also #10399.

xtkoba avatar Oct 17 '22 17:10 xtkoba