its-pointless / gcc_termux Goto Github PK
View Code? Open in Web Editor NEWGcc for termux with fortran scipy etc... Use apt for newest updates instructions in README.txt
Gcc for termux with fortran scipy etc... Use apt for newest updates instructions in README.txt
Hello, I got this error when trying to plot:
panic: Segmentation fault -- stopping myself... Segmentation fault
Regards,
I added its-pointless repository to sources.list, then installed octave package.
Launching octave caused an error where "libtatlas.so" could not be found.
Installing "libatlas" package solved the issue.
I would suggest to add libatlas as a dependency of octave package, if possible.
Anyway, thank you for the good work
Livio
Hi, thanks for providing scipy, numpy and all the other packages. I'm getting an error on "apt update" from this morning:
apt update
Hit:1 http://termux.net stable InRelease
Hit:2 https://its-pointless.github.io/files termux InRelease
Reading package lists... Error!
E: Problem parsing dependency Depends
E: Error occurred while processing libsoup (NewVersion2)
E: Problem with MergeList
/data/data/com.termux/files/usr/var/lib/apt/lists/its-pointless.github.io_files_dists_termux_extras_binary-arm_Packages
E: The package lists or status file could not be parsed or opened.
apt-get clean
didn't help. Please let me know I can provide any more information.
Hi,
There's a problem with a dependency of R in last version (Libicu) , is it possible to rebuild the R package ?
Thanks
When trying to cargo build --target wasm32-unknown-unknown
this message appears and linking fails since a few months ago, i kinda of just crossed my fingers and hoped it would go away with a later update but it hasn't so i'm posting :)
Installed gcc-8 and gcc-7, but I get an error when compiling... (Same error for g++, cc1plus is missing in that case)
gcc main.c
gcc: error trying to exec 'cc1': execvp: No such file or directory
Installation didn't mention any problem:
apt install gcc-8
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
gcc-8
0 upgraded, 1 newly installed, 0 to remove and 0 not upg
raded. Need to get 23.1 MB of archives. After this operation, 89.9 MB of additional disk space will be used.
Get:1 https://its-pointless.github.io/files termux/extr$
s aarch64 gcc-8 aarch64 8.2.0-1 [23.1 MB]
Fetched 23.1 MB in 12s (1871 kB/s)
Selecting previously unselected package gcc-8.
(Reading database ... 21975 files and directories curren
tly installed.)
Preparing to unpack .../gcc-8_8.2.0-1_aarch64.deb ...
Unpacking gcc-8 (8.2.0-1) ...
Processing triggers for man (1.14.4) ...
Setting up gcc-8 (8.2.0-1) ...
Hi there,
after an update, I was experiencing dead ipython kernel as soon as I would try to make a plot.
Then, I tried also the following MWE
import matplotlib as mpl
mpl.use('Agg')
import matplotlib.pyplot as plt
fig = plt.figure()
ax = fig.add_subplot(111)
ax.plot(range(10))
fig.savefig('temp.png')
which crashes at line 4 with the message Illegal instruction
.
Therefore, starting every time from a clean install of Termux, I tried the following
Scenario 1
install clang python python-dev fftw libzmq libzmq-dev freetype freetype-dev libpng libpng-dev pkg-config
pip install numpy matplotlib
The MWE is working
Scenario 2
pkg install apt curl gnupg pkg-config clang
pkg install freetype freetype-dev libpng libpng-dev libzmq-dev libzmq
curl -L https://its-pointless.github.io/setup-pointless-repo.sh | sh
pkg install python python-dev numpy scipy
pip install matplotlib
The MWE is not working and produces the Illegal instruction
crash.
Is there a way to solve this and have numpy/scipy nicely working with matplotlib?
Just wanted to get the latest release of rust stable and cargo, since it has a few new changes including a nice style formatter like gofmt built in. Or well it can be added using rustup component add rustfmt-preview at least. Would definitely love that added
test_dense fails in scipy.
python -c 'import scipy; scipy.test("test_dense")'
segfaults.
When upgrading gcc-7, I get the following error message:
Unpacking gcc-7 (7.2.0-1) over (7.2.0) ...
dpkg: error processing archive /data/data/com.termux/files/usr/var/cache/apt/archives/gcc-7_7.2.0-1_arm.deb (--unpack):
trying to overwrite '/data/data/com.termux/files/usr/share/man/man1/g++.1', which is also in package gcc-6 6.4.0-1
dpkg-deb (subprocess): decompressing archive member: lzma write error: Broken pipe
dpkg-deb: error: subprocess <decompress> returned error exit status 2
Processing triggers for man (1.14.3-1) ...
Errors were encountered while processing:
/data/data/com.termux/files/usr/var/cache/apt/archives/gcc-7_7.2.0-1_arm.deb
E: Sub-process /data/data/com.termux/files/usr/bin/dpkg returned an error code (1)
hello,
i got the following error when trying to install parallel and miscellaneous octave packages (on octave cli: pkg -forge install package
):
sh: 0: Can't open ./config.status
hi
I am using Python3 scipy on Termux and i am getting the following error:
Traceback (most recent call last):
File "initiate_monitor.py", line 28, in
import batch_monitor
File "/storage/emulated/0/DCIM/test/python/batch_monitor.py", line 45, in
import filter_data
File "/storage/emulated/0/DCIM/test/python/filter_data.py", line 27, in
from eegfilt import eegfilt
File "/storage/emulated/0/DCIM/test/python/eegfilt.py", line 2, in
from filtfilt import filtfilt
File "/storage/emulated/0/DCIM/test/python/filtfilt.py", line 1, in
from scipy.signal import lfilter
File "/data/data/com.termux/files/usr/lib/python3.6/site-packages/scipy-1.1.0-py3.6-linux-i686.egg/scipy/signal/init.py", line 321, in
from .filter_design import *
File "/data/data/com.termux/files/usr/lib/python3.6/site-packages/scipy-1.1.0-py3.6-linux-i686.egg/scipy/signal/filter_design.py", line 18, in
from scipy import special, optimize, fftpack
File "/data/data/com.termux/files/usr/lib/python3.6/site-packages/scipy-1.1.0-py3.6-linux-i686.egg/scipy/optimize/init.py", line 271, in
from ._minimize import * File "/data/data/com.termux/files/usr/lib/python3.6/site-packages/scipy-1.1.0-py3.6-linux-i686.egg/scipy/optimize/_minimize.py", line 30, in
from ._trustregion_krylov import _minimize_trust_krylov
File "/data/data/com.termux/files/usr/lib/python3.6/site-packages/scipy-1.1.0-py3.6-linux-i686.egg/scipy/optimize/_trustregion_krylov.py", line 2, in
from ._trlib import (get_trlib_quadratic_subproblem)
File "/data/data/com.termux/files/usr/lib/python3.6/site-packages/scipy-1.1.0-py3.6-linux-i686.egg/scipy/optimize/_trlib/init.py", line 1, in
from ._trlib import TRLIBQuadraticSubproblem
File "messagestream.pxd", line 5, in init scipy.optimize._trlib._trlib
ImportError: dlopen failed: cannot locate symbol "messagestream_open_memstream" referenced by "/data/data/com.termux/files/usr/lib/python3.6/site-packages/scipy-1.1.0-py3.6-linux-i686.egg/scipy/_lib/messagestream.cpython-36m.so"...
Hey.Is PGO Disabled in the GCC-8 (7.6) compiler?
I tried to profile one program with the flag -fprofile-generate and -lgcov,but the file .gcda did not appear.Why?
Hi, I'm trying to make numpy and pandas work in termux. I followed your instructions, but it seems termux can't access your repository.
$ apt-key add pointless.gpg
OK
$ apt-get update
Hit:1 http://termux.net stable InRelease
Reading package lists... Done
E: The method driver /data/data/com.termux/files/usr/lib/apt/methods/https could not be found.
N: Is the package apt-transport-https installed?
E: Failed to fetch https://its-pointless.github.io/files/dists/termux/InRelease
E: Some index files failed to download. They have been ignored, or old ones used instead.
How did you build python packages like numpy and scipy which have c sources. Did you do it in docker? can you enumerate the list of steps you have taken or provide a script if you have?
Hello,
I recently changed my phone. I installed termux and next octave, together with:
pkg install octave octave-dev python make clang gnuplot gnutls ncurses ncurses-dev libgnutls-dev units pkg-config libgfortran
pip install sympy requests slugify
But when running octave-cli
i got the following error:
CANNOT LINK EXECUTABLE "octave-cli": cannot locate symbol "__powisf2" referenced by "/usr/lib/octave/4.2.1/liboctave.so"...
Aborted
Please help!
My phone, Huawei P9 Lite 2017, Android 7.0
it would be great if you add matplotlib and pandas in your repo. i am a newbie python learner and i have got numpy and scipy from your guidelines. now pandas and matplotlib is not installed with apt install way.
the message '+fp' is not a recognized feature for this target (ignoring feature)
appears multiple times for every call to rustc
dunno if this is from rust's nightly or for any changes here, guess it's llvm feature releated
Hi,
After pkg install gcc-8, there is no libgcc_s.so.1. Will this be built in the future? Thanks
Hi
I had an issue with Scipy package issue #44 #44 (comment)
has a new version of Scipy with the fix released to the repository?
thanks
I just did a fresh install with pkg install julia
when i run julia
i get
CANNOT LINK EXECUTABLE DEPENDENCIES: cannot locate symbol "dl_iterate_phdr" referenced by "libunwind.so"...
I'm on Android 5.1.1 ARMv7l
Hello,
I have to do a fresh install of termux. I installed Octave and Octave-dev and when running Octave I got this error
CANNOT LINK EXECUTABLE DEPENDENCIES: cannot locate symbol "sqrtf" referenced by "libarpack.so"...
Any ideas?
I just saw your repos and I would loke to add it in my Termux repos but can you tdll me the exact url??? And I can't can you tell me which .debs are needed for a full gcc installation???
Hi! After successful installation of rustc and cargo there is no possibility to use them. It looks like armv7-linux-androideabi tarbet exists, but cannot be installed for some reason. I've tried
rustup install armv7-linux-android
And
rustup install armv7-linux-androideabi
with the same result.
$ rustc
error: no default toolchain configured
$ rustup show
Default host: armv7-linux-android
no active toolchain
$
step 1.pkg install opencv
=> OK
step 2. import cv2 (python)
=> error
ImportError: ERROR: recursion is detected during loading of "cv2" binary extensions. Check OpenCV installation.
My guess is that the "/data/data/com.termux/files/usr/python/cv2/python-3.7/cv2.cpython-37m-x86_64-linux-gnu.so" file is wrong.
test1. mv cv2.cpython-37m-x86_64-linux-gnu.so cv2.so (rename)
import cv2 (python)
=> OK
cv2.version
=> '4.0.0'
Is there anyway to plot graphs in Termux using R?
Is there anyway to install necessary packages in R for Jupyter Notebook?
Hi,
I was able to install R and R runs well on my Samsung G. Tab S2, Android 7. However, I cannot install any R packages, they all produced 'non-zero exit status'. Do you have any ideas about that?
Thanks,
Quang
When I try to run octave I get this message:
octave: no graphical display found
octave: disabling GUI features
CANNOT LINK EXECUTABLE "/data/data/com.termux/files/usr/bin/octave-cli-4.4.1": cannot locate symbol "__emutls_get_address" referenced by "/data/data/com.termux/files/usr/lib/octave/4.4.1/liboctinterp.so"...
Aborted (core dumped)
Tried a fresh install but got the same message.
Could you provide a gcc (aarch64) with openmp support in c/fortran?
Today I did "pkg upgrade" which produced these errors:
$ pkg upgrade
Get:1 http://termux.net stable InRelease [1687 B]
Get:2 https://its-pointless.github.io/files termux InRelease [2061 B]
Get:3 http://termux.net stable/main all Packages [4508 B]
Get:4 http://termux.net stable/main arm Packages [59.4 kB]
Get:5 https://its-pointless.github.io/files termux/extras arm Packages [15.0 kB]
Fetched 82.7 kB in 2s (39.1 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
2 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
numpy tsu
2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 2075 kB of archives.
After this operation, 160 kB disk space will be freed.
Do you want to continue? [Y/n]
Get:1 http://termux.net stable/main all tsu all 0.4 [1784 B]
Get:2 https://its-pointless.github.io/files termux/extras arm numpy arm 1.13.3-1 [2073 kB]
Fetched 2075 kB in 3s (636 kB/s)
(Reading database ... 23713 files and directories currently installed.)
Preparing to unpack .../numpy_1.13.3-1_arm.deb ...
Unpacking numpy (1.13.3-1) over (1.13.3-1) ...
Preparing to unpack .../apt/archives/tsu_0.4_all.deb ...
Unpacking tsu (0.4) over (0.3) ...
Setting up numpy (1.13.3-1) ...
dpkg (subprocess): unable to execute installed post-installation script (/data/data/com.termux/files/usr/var/lib/dpkg/info/numpy.postinst): No such file or directory
dpkg: error processing package numpy (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up tsu (0.4) ...
Errors were encountered while processing:
numpy
E: Sub-process /data/data/com.termux/files/usr/bin/dpkg returned an error code (1)
$ pip list
Package Version
---------------- --------
apfft 0.3
cycler 0.10.0
decorator 4.1.2
gmpy 1.17
ipython 6.2.1
ipython-genutils 0.2.0
jedi 0.11.0
matplotlib 2.1.0
mpmath 1.0.0
parso 0.1.0
pexpect 4.2.1
pickleshare 0.7.4
pip 9.0.1
prompt-toolkit 1.0.15
ptyprocess 0.5.2
pyFFTW 0.10.4
Pygments 2.2.0
pyparsing 2.2.0
python-dateutil 2.6.1
pytz 2017.2
scipy 1.0.0rc1
setuptools 28.8.0
simplegeneric 0.8.1
six 1.11.0
sympy 1.1.1
traitlets 4.3.2
wcwidth 0.1.7
Hey.Will there be implemented a static library for gcc?(C and C++).
This is good for better compatibility with different Android devices (so you can share programs).
dpkg: error processing archive /data/data/com.termux/files/usr/var/cache/apt/archives/groff_1.22.3_aarch64.deb (--unpack):
trying to overwrite '/data/data/com.termux/files/usr/bin/soelim', which is also in package man 1.14.3-1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
How can I have both man and groff installed?
The Julia programming language is a relative newcomer to the field of scientific and technical computation but is already providing very strong competition to Python, MATLAB, or even C.
There are working ARM builds of Julia available from the official page, so perhaps it shouldn't be very hard to port or adapt them to use in Termux. There is a request for adding Julia in the official Termux package repo but it's not clear if or when it will pass. I hope this both could be done and wouldn't cause too much trouble. Thanks in advance.
On Nexus 10 tablet (Android 5.1.1 armv7l architecture) trying to import numpy fails like this:
$ python
Python 3.6.6 (default, Jul 21 2018, 02:41:03)
[GCC 4.2.1 Compatible Android (4691093 based on r316199) Clang 6.0.2 (https://a on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
$ python -c "import numpy"
WARNING: linker: multiarray.cpython-36m.so: unused DT entry: type 0x6ffffef5 arg 0x1538
WARNING: linker: umath.cpython-36m.so: unused DT entry: type 0x6ffffef5 arg 0xd08
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/data/data/com.termux/files/usr/lib/python3.6/site-packages/numpy-1.14.5-py3.6-linux-armv7l.egg/numpy/__init__.py", line 142, in <module>
from . import add_newdocs
File "/data/data/com.termux/files/usr/lib/python3.6/site-packages/numpy-1.14.5-py3.6-linux-armv7l.egg/numpy/add_newdocs.py", line 13, in <module>
from numpy.lib import add_newdoc
File "/data/data/com.termux/files/usr/lib/python3.6/site-packages/numpy-1.14.5-py3.6-linux-armv7l.egg/numpy/lib/__init__.py", line 8, in <module>
from .type_check import *
File "/data/data/com.termux/files/usr/lib/python3.6/site-packages/numpy-1.14.5-py3.6-linux-armv7l.egg/numpy/lib/type_check.py", line 11, in <module>
import numpy.core.numeric as _nx
File "/data/data/com.termux/files/usr/lib/python3.6/site-packages/numpy-1.14.5-py3.6-linux-armv7l.egg/numpy/core/__init__.py", line 34, in <module>
from . import umath
ImportError: dlopen failed: cannot locate symbol "ctan" referenced by "umath.cpython-36m.so"...
$ pip list |grep numpy
numpy 1.14.5
$ apt list | grep numpy
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
numpy/termux,now 1.14.5 arm [installed]
python2-numpy/termux 1.14.5 arm
$ uname -a
Linux localhost 3.4.67-g84ad5a4 #1 SMP PREEMPT Fri Nov 13 21:33:05 UTC 2015 armv7l Android
Of course I am using the proper repository, i.e. https://its-pointless.github.io/files
. Btw, on Android 6.0 aarch64 architecture (LG G4 mobile) everything is working just fine. Any ideas how to fix it on Nexus 10?
Compiled libraries could not be loaded on othsr devices because it linked with gnustl_shared even ig does nit use STL and c++ at all
hi the irc guys tell me to report this bug here
i am using your repo in my termux and installed nim
but it dont works when compiling
this is a screenshot showing the errors
also i had use ltrace to trace the compiling, here is a detail logs
c.zip
Is it possible to install R kernel in Termux?
If yes, how can I do it?
Thanks
When I run rustc
or cargo
, I can only get an error and nothing else:
error: no default toolchain configured
I've installed libllvm-4so
, is there anything else that should be done?
clang
is now 5.0.0 and rustc depends on it, would it be a problem?
Thanks!
Dear,
I successfully ran setup-pointles-repo.sh on my aarch64 (LG G4).
I want to switch to the gcc with setupgcc-7, but it says command not found.
My final aim is to make theano and keras work. On my previous phone (sammsung galaxy 2) it worked.
When I install your scipy, clang and pip install theano then it says "segmentation fault" when importing theano in python.
This seems to be compiler related.
CANNOT LINK EXECUTABLE "distccd": library "libpopt.so.0" not found
but if you install libpopt it works great.
Thanks for hosting this, I am building on my phones!
Today, I tried using Cargo and got this:
$ cargo run
error: process didn't exit successfully: `rustc -vV` (exit code: 1)
--- stdout
rustc 1.29.0
binary: rustc
commit-hash: unknown
commit-date: unknown
host: armv7-linux-androideabi
release: 1.29.0
--- stderr
error: couldn't load codegen backend "/data/data/com.termux/files/usr/lib/rustlib/armv7-linux-androideabi/codegen-backends/librustc_codegen_llvm-llvm.so": "dlopen failed: library \"libLLVM-6.0.so\" not found"
apt show libllvm
says version 7.0, so I guess this might be the problem.
Hello,
thanks for this work.
I have tried to install octave but I get liboctinterp.so not found, so it seems to lack the liboctave package.
Thanks
Via rustup you can normally install extra things like rls
or targets such as wasm32-unknown-unknown
What's the chances of having some of those available :)?
$ pkg update
...
$ cargo
CANNOT LINK EXECUTABLE: library "libssl.so.1.0.0" not found
page record for 0xb6b1102c was not found (block_size=16)
Anytime I try to download a package from the crates registry I get the following error:
invalid Content-Type: application/x-git-upload-pack-advertisement
Manually cloning the crates.io-index
repo works fine.
Hello
I have tried your R build and it looks great. However, it seems it was built with cairo disabled.
I was trying for 3 days to build it myself and hit a snag with MBCS support. Seems the termux iconv is not suitable for building R. Anyway to make a long story short, would it be possible for you to build R with cairo support?
Thanks. Having attempted this myself, I know this was no walk in the park.
Arie
Cannot build anything with gfortran-7 and libgfortran4 (or libgfortran):
/data/data/com.termux/files/usr/bin/ld: cannot find -lgfortran
On Android 5.0, i686, cargo fails with:
CANNOT LINK EXECUTABLE: could not load library "libgit2.so" needed by "cargo"; caused by library "libgit2.so" not found
Immediately after pkg install cargo
. This seems to hint at a missing runtime dependency.
However, manually running pkg install libgit2
and re-running cargo
results in a segfault and no additional output.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.