termux-packages
termux-packages copied to clipboard
Anyone managed to install python numba ?
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?
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.
Any luck on building LLVMgold.so to enable numba installation? Thx
No sorry. might have another look. But it probably needs someone with better knowlege of llvm than me.
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.
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
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
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 .
Iv actually got numba working with my libllvm pull request using master branch of llvmlite
can you show how to do installation? i'm really stuck and out of idea. thank you.
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 .
well, at least that relieves me from getting headache installing on arm. Thank you for the answer and your repo I really appreciate it.
It looks like llvmlite uses llvm 7.0 now, would that help? https://llvmlite.readthedocs.io/en/latest/admin-guide/install.html
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.
See also #10399.