Code Monkey home page Code Monkey logo

gcc_termux's Introduction

From now on im using apt for updates
add 
deb https://its-pointless.github.io/files/24  termux extras
(use https://its-pointless.github.io/files/21 if you are still using android 5 or 6)
file with .list suffix in $PREFIX/etc/apt/sources.list.d/
gpg key is https://its-pointless.github.io/pointless.gpg
if not installed install gnupg
apt-get install gnupg
apt-key add pointless.gpg will add the key to apt
apt-get update

or use https://its-pointless.github.io/setup-pointless-repo.sh

use the commands setupclang setupclang and setupgcc-7 to switch compilers
nothing complex just moving symlinks around

03/04/2019
r-cran-tidyverse should work consistently except for those using android-5 due to linking issues
around librcon.so. Above android-5 the library can see all symbols linked in android-5 that the linker
won't let the library see symbols in libR.so since its not directly linked. I am not sure right now 
the correct way to deal with it. But changing $PREFIX/lib/R/etc/Makeconf to add -LR to ldflags and 
reinstalling readr package will work for now.

15/01/2019
ns_parse.h for a few missing reolver libs stuff missing  in android 5 and 6 so msmtp works. Havent tested 
as its a 20 minute cut and paste job from musl.
also opencv python3 doesn;t work as is but is easy enough to fix 
its-pointless/its-pointless.github.io#18 
will do proper fixes at some point this week.

17/12/2018
added gnat for x86_64 and aarch64, gprbuild and xmlada packages available as well

27/09/2018

Added portaudio and elfutils 
For port audio to work without issue it requires pulseaudio. It also needs pulseaudio
sample rate set to PROPERTY_OUTPUT_SAMPLE_RATE or latency is too high
this value can be obtained via termux-audio-info
Any issues with this please mention...

14/08/2018

julia updated to 1.0.0
installing packages that link to libs is a bit tricky and requires
wiriting deps.jl yourself so they point to installed termux libs.
Even if you can compile the libs using julia, without setting 
LD_LIBRARY_PATH to where julia installed the libs it won't use them
causing error. 


30/07/2018
fixed a few annoyances with gcc-8 
Oz now becomes Os automatically 
and few warnings that llvm-config add won't cause errors since they are 
only implemented in clang 

30/03/2018

julia is compiling on all archs but must be done on device. see my android-termux branch 
of julia. Also added an arm build for testing...



20/03/2018

TESTING openblas for x86_64 atom....


7/02/2018

added povray because ... i don't know.


10/01/2018

updated rustc and rustc-nightlies
fixed issues on x86_64 gcc
added racket for arm and i686


5/01/2018
changed gcc-7 sources to linaro ... because why not? going to add source so 
everyone can compile and won't rely on me providing binaries... at all. 

added gnatmake for arm ( other archs are not likely to come since it requires
a sigtramp implentation that is absent on android)

added racket ... likely buggy for arm and i686. not working yet on 64 bit archs

also adding libboostpython libs which is a pull request for termux/termux-packages 

23/12/2017
updated ecl arm and julia for x86_64. both should now work again

20/12/2017

updated cargo for all but i686
updated rustc-nightly for and added for i686. not on x86_64...
if i have time i will work on it. Ecl should now compile maxima
technically there aren't any "major" dependencies missing for sagemath 
would have to built on device though...


13/12/2017
added ecl rustc nightly for arm and aarch64. 
added the cross_config stuff for ecl as well.

28/11/2017
added libgomp for gcc-7 in 7.2.0 and ndk 4.9.x flavours
Thanks to @arietal libcairo now works in R. 
also added julia lang for i686 x86_64. 
I have no idea how long or if ever arm and aarch64 will take. 

19/11/2017
r-cran package 3.4.2-1 uploading, should be working again... enabled openmp because i can.
pforth 32 bit fix upload for testing.
should get  updated scipy and numpy at some point hopefully soon

11/11/2017 
rustc now working for x86_64 and i686. The bug with cargo on arm is also fixed.
As libgit2 needed to be compiled with -no-integrated-as the fix is statically linked.



08/10/2017
added python 2 versions numpy and scipy


01/10/2017
guile 2.0 and 2.2 added
i686 version for 2.0 has threads disabled due to crashing half the time.
2.2 has no such issue as far as I can tell but the build process for 2.2 builds
needs some work before a pull request to main repo.


12/09/2017
rustc is broken if you upgraded libllvm to 5.0 
to rememdy that install newly added package libllvm-4so should be working from there



08/09/2017

added fixedshe package and command executing it will start a new shell with
LD_PRELOAD=$PREFIX/lib/libandroid-fixshebang.so $shell
this will cause commands /bin/sh and /usr/bin/env to be redirected making shebangs with those 
commands work. to change default shell to do this the command fixedshe chsh will work as chsh does.

Doing this will enable  R and Octave library installs to work correctly first time much more often
things like fixedshe octave also work


27/08/2017

added openldap f0r testing need feedback 

updated gcc to 7.2 

added more stuff to x86_64 ans i686



08/08/2017
adding i686 and x86_64  stuff 
cargo and rusttc 
octave and R
etc
also some experimental nodejs 8.2.1 builds ...



29/07/2017

to get cargo for arm working add this to ~/.gitconfig 

[url "git://github.com/rust-lang/crates.io-index"]
        insteadOf = https://github.com/rust-lang/crates.io-index


25/07/2017
octave is fixed and back up on repo as well as gmic arm.

24/07/2017
octave isn't working right now ... 

23/07/2017
a working gmic binoary for arm required some magic getting it...


22/07/2017

gmic is not working for arm and it appears to be stubborn about it.
sorry about that. 


17/07/2017

Got almost everything working with the transision to libc++_shared. Updating the apt
repo shortyly there are a few packages there that are not not mentioned here... 







27/05/2017
added rustc and cargo for arm and aarch64 from @vishalbiswas
a bit buggy for now 


24/05/2017

Added quantlib. Will be adding R stuff shortly. Mpd-ext is also in repo extended for modpluglib and
libgme. So game emulation music plays. Haven't tested that yet should work.  



just added imgflo ... i haven't tested it if someoen wants to inform me how its screwed 
i would be thankful.
updated now with termux-packages pull requests as well

electrum egg added ...
updates
added boost ledger r-cran 
the mpv-ext is just mpv with caca enabled and alpine has been updated.


Octave seems to be working fairly well...
report bugs???
Its less annoying to compile than R so i might fix things that are really broken. 
The scripts to compile fortran stuff needs a bit of work to be more user friendly 
and less of a hack. 

termux gcc resurrected purely because scipy needs it. 
Don't annoy fornwall if you find a bug since its 
entirely unsupported. 
This is a compiler of last resort hecause you 
need to compile fortran or something needs gcc and
only gcc.


For scipy to work you need blaslib(openblas, reference blas +lapack or atlas) libgfortran
numpy and scipy.

If you want to do this yourself its not hard.
https://github.com/xianyi/OpenBLAS/wiki/How-to-build-OpenBLAS-for-Android
I compiled arm and arm64 tool chain for linux x86_64 (the .tar.bz2 file)
so you can extract over the android ndk tool chain for ndk-13 and when termux creates tool chain it should
pull stuff in. 
https://github.com/xianyi/OpenBLAS/wiki/How-to-build-OpenBLAS-for-Android

The default makefile for openblas uses hardfp and termux uses softfp so it won't work
on termux. Don't use it on arm use either lapack or atlas. Atlas will likely be faster
than lapack. 

LDFLAGS when compiling scipy and numpy for distribution is important. You can compile on android 6.0 and it might not 
work on 5.1 because the linker is different. 

gcc_termux's People

Contributors

its-pointless avatar supertobi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gcc_termux's Issues

apt update error: "Error occurred while processing libsoup"

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.

nim failed while compiling program

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
1636395409

also i had use ltrace to trace the compiling, here is a detail logs
c.zip

can't open octave

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

Today's upgrade of numpy package wiped out numpy python package

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   

setupgcc-7 : command not found

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.

Installing octave doesn't install required libatlas package

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

Suggestion: add Julia to the package list

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.

scipy error when trying from scipy.signal import lfilter

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"...

octave won't open

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.

Static library for GCC

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).

Cannot run cargo command

$ pkg update
...
$ cargo
CANNOT LINK EXECUTABLE: library "libssl.so.1.0.0" not found
page record for 0xb6b1102c was not found (block_size=16)

Package Request: Updated rust stable release

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

Error executing julia

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

cc1 and cc1plus missing from gcc packages?

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) ...

Rustc: "no default toolchain configured" armv7-linux-androideabi

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
$

Plotting in Termux and R kernel

Is there anyway to plot graphs in Termux using R?
Is there anyway to install necessary packages in R for Jupyter Notebook?

Can't run Octave: libarpack error

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?

gcc-6 exception

I think maybe can be useful this screenshot to resolve problem of gcc-6
screenshot-1530701137000

import numpy fails on armv7l architecture (Nexus 10, Android 5.1.1)

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?

matplotlib and pandas request

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.

R build missing cairo

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

Man page clash when both gcc-6 and gcc-7 are installed

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)

Octave won't plot

Hello, I got this error when trying to plot:
panic: Segmentation fault -- stopping myself... Segmentation fault
Regards,

PGO in gcc-8

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?

gnustl_shared dependency

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

How can I add this repo???

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???

no default toolchain configured for rustc or cargo

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!

can't install some octave packages

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

cargo fails with missing dependency

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.

Cannot install any R packages

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

Error installing groff (soelim is already provided by man)

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?

Request: Rust extras

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 :)?

Can't use Cargo - libllvm too new

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.

matplotlib broken, likely due to numpy and/or openblas

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?

linker `rust-lld` not found

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 :)

cargo cannot download packages

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.

Seems to lack liboctave

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

Repository unavailable

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.

pkg install opencv (Termux)

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'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.