gcc_termux icon indicating copy to clipboard operation
gcc_termux copied to clipboard

ld: cannot find -lgfortran

Open David-Duffy opened this issue 3 years ago • 3 comments

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,

David-Duffy avatar Sep 09 '20 04:09 David-Duffy

apt install libgfortran5

its-pointless avatar Sep 09 '20 05:09 its-pointless

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

RalfWerner avatar Sep 17 '20 05:09 RalfWerner

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.

B00mGit avatar Nov 07 '20 10:11 B00mGit