its-pointless / gcc_termux

Gcc for termux with fortran scipy etc... Use apt for newest updates instructions in README.txt
462 stars 74 forks source link

ld: cannot find -lgfortran #99

Open David-Duffy opened 4 years ago

David-Duffy commented 4 years ago

I have only just installed gcc-10 (under Android 10), and ran the setupgcc-10.sh script and can see ls -l libgf* libgfortran.so -> /data/data/com.termux/file/usr/lib/libgfortran.so.5

But I don't have libgfortran.so.5 or any others. Do I have to install an earlier version first?

Cheers, David Duffy,

its-pointless commented 4 years ago

apt install libgfortran5

RalfWerner commented 4 years ago

Remove "sources.list or add " from README, because pkg overwrites (mirror check) the file and nothing is installed!

B00mGit commented 3 years ago

I'm not sure if this is relative to the issue but whilst trying to; pip3 install -U sklearn I'm getting;

copying scipy/_lib/_uarray/setup.py -> build/lib.linux-aarch64-3.9/scipy/_lib/_uarray
    running build_clib
    customize UnixCCompiler
    #### ['aarch64-linux-android-clang', '-Wno-unused-result', '-Wsign-compare', '-Wunreachable-code', '-DNDEBUG', '-g', '-fwrapv', '-O3', '-Wall', '-fstack-protector-strong', '-O3', '-fstack-protector-strong', '-O3'] #######
    customize UnixCCompiler using build_clib
    building 'mach' library
    error: library mach has Fortran sources but no Fortran compiler found
    ----------------------------------------
    ERROR: Failed building wheel for scipy
  Failed to build scipy
  ERROR: Could not build wheels for scipy which use PEP 517 and cannot be installed directly
  ----------------------------------------

It seems like its not finding; libgfortran5/termux,now 10.2.0-1 aarch64 [installed] If you need other info just say so. Thanks.