its-pointless / its-pointless.github.io

For info see https://github.com/its-pointless/gcc_termux

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gcc-9, gcc-10, and gcc-11 do not install an executable "gcc" program

ning-y opened this issue · comments

After installing gcc-* packages, there is no binary executable gcc program to use, anywhere under /data/data/com.termux/.

(It is my understanding that the gcc- packages normally add the gcc C compiler program to somewhere like usr/local/bin. Please excuse me if I am mistaken.)

Logs for gcc-9
~ $ apt update && apt install gcc-9 && gcc || find /data/data/com.termux/ -name gcc | xargs -l1 tree && apt remove gcc-9 -y
Hit:1 https://its-pointless.github.io/files/24 termux InRelease
Get:2 https://packages-cf.termux.org/apt/termux-main stable InRelease [14.0 kB]
Hit:3 https://packages.termux.org/apt/termux-root root InRelease
Get:4 https://packages-cf.termux.org/apt/termux-main stable/main aarch64 Packages [389 kB]
Fetched 403 kB in 4s (105 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following package was automatically installed and is no longer required:
  zstd
Use 'apt autoremove' to remove it.
The following NEW packages will be installed:
  gcc-9
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/24.2 MB of archives.
After this operation, 93.5 MB of additional disk space will be used.
Selecting previously unselected package gcc-9.
(Reading database ... 11042 files and directories currently installed.)
Preparing to unpack .../gcc-9_9.3.0-2_aarch64.deb ...
Unpacking gcc-9 (9.3.0-2) ...
Setting up gcc-9 (9.3.0-2) ...
The program gcc is not installed. Install it by executing:
 pkg install clang
/data/data/com.termux/files/usr/lib/gcc
└── aarch64-linux-android
    ├── 11.1.0
    │   ├── libgfortran.so -> libgfortran.so.5.0.0
    │   ├── libgfortran.so.5 -> libgfortran.so.5.0.0
    │   └── libgfortran.so.5.0.0
    └── 9.3.0
        ├── crtbegin.o
        ├── crtbeginS.o
        ├── crtbeginT.o
        ├── crtend.o
        ├── crtendS.o
        ├── crtfastmath.o
        ├── finclude
        │   ├── ieee_arithmetic.mod
        │   ├── ieee_exceptions.mod
        │   └── ieee_features.mod
        ├── include
        │   ├── ISO_Fortran_binding.h
        │   ├── arm_acle.h
        │   ├── arm_fp16.h
        │   ├── arm_neon.h
        │   ├── float.h
        │   ├── gcov.h
        │   ├── iso646.h
        │   ├── openacc.h
        │   ├── ssp
        │   │   ├── ssp.h
        │   │   ├── stdio.h
        │   │   ├── string.h
        │   │   └── unistd.h
        │   ├── stdalign.h
        │   ├── stdarg.h
        │   ├── stdatomic.h
        │   ├── stdbool.h
        │   ├── stddef.h
        │   ├── stdfix.h
        │   ├── stdint-gcc.h
        │   ├── stdint.h
        │   ├── stdnoreturn.h
        │   ├── unwind.h
        │   └── varargs.h
        ├── libatomic.a
        ├── libgcc.a
        ├── libgcov.a
        ├── libgfortran.spec
        ├── libgomp.spec
        ├── libm.so
        ├── libssp.a
        ├── libssp_nonshared.a -> /data/data/com.termux/files/usr/lib/gcc/aarch64-linux-android/9.3.0/libssp.a
        └── specs

6 directories, 44 files
/data/data/com.termux/files/usr/libexec/gcc
└── aarch64-linux-android
└── 9.3.0
├── cc1
├── cc1plus
├── collect2
├── f951
├── liblto_plugin.la
├── liblto_plugin.so -> liblto_plugin.so.0.0.0
├── liblto_plugin.so.0 -> liblto_plugin.so.0.0.0
├── liblto_plugin.so.0.0.0
├── lto-wrapper
└── lto1

2 directories, 10 files
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
binutils libgfortran5 libisl libmpc ndk-sysroot setup-scripts zstd
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
gcc-9
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 93.5 MB disk space will be freed.
(Reading database ... 11123 files and directories currently installed.)
Removing gcc-9 (9.3.0-2) ...

Logs for gcc-10
~ $ apt update && apt install gcc-10 && gcc || find /data/data/com.termux/ -name gcc | xargs -l1 tree && apt remove gcc-10 -y                                                                            Hit:1 https://its-pointless.github.io/files/24 termux InRelease
Hit:2 https://packages-cf.termux.org/apt/termux-main stable InRelease
Hit:3 https://packages.termux.org/apt/termux-root root InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  gcc-10
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 35.3 MB of archives.
After this operation, 144 MB of additional disk space will be used.
Get:1 https://its-pointless.github.io/files/24 termux/extras aarch64 gcc-10 aarch64 10.3.0 [35.3 MB]
Fetched 35.3 MB in 4s (9788 kB/s)
Selecting previously unselected package gcc-10.
(Reading database ... 11042 files and directories currently installed.)
Preparing to unpack .../gcc-10_10.3.0_aarch64.deb ...
Unpacking gcc-10 (10.3.0) ...
Setting up gcc-10 (10.3.0) ...
The program gcc is not installed. Install it by executing:
 pkg install clang
/data/data/com.termux/files/usr/lib/gcc
└── aarch64-linux-android
    ├── 10.3.0
    │   ├── ada_target_properties
    │   ├── crtbegin.o
    │   ├── crtbeginS.o
    │   ├── crtbeginT.o
    │   ├── crtend.o
    │   ├── crtendS.o
    │   ├── crtfastmath.o
    │   ├── finclude
    │   │   ├── ieee_arithmetic.mod
    │   │   ├── ieee_exceptions.mod
    │   │   └── ieee_features.mod
    │   ├── include
    │   │   ├── ISO_Fortran_binding.h
    │   │   ├── acc_prof.h
    │   │   ├── arm_acle.h
    │   │   ├── arm_bf16.h
    │   │   ├── arm_fp16.h
    │   │   ├── arm_neon.h
    │   │   ├── arm_sve.h
    │   │   ├── float.h
    │   │   ├── gcov.h
    │   │   ├── iso646.h
    │   │   ├── openacc.h
    │   │   ├── ssp
    │   │   │   ├── ssp.h
    │   │   │   ├── stdio.h
    │   │   │   ├── string.h
    │   │   │   └── unistd.h
    │   │   ├── stdalign.h
    │   │   ├── stdarg.h
    │   │   ├── stdatomic.h
    │   │   ├── stdbool.h
    │   │   ├── stddef.h
    │   │   ├── stdfix.h
    │   │   ├── stdint-gcc.h
    │   │   ├── stdint.h
    │   │   ├── stdnoreturn.h
    │   │   ├── unwind.h
    │   │   └── varargs.h
    │   ├── libatomic.a
    │   ├── libgcc.a
    │   ├── libgcov.a
    │   ├── libgfortran.spec
    │   ├── libgomp.spec
    │   ├── libm.so
    │   ├── libssp.a
    │   ├── libssp_nonshared.a -> /data/data/com.termux/files/usr/lib/gcc/aarch64-linux-android/10.3.0/libssp.a
    │   └── specs
    └── 11.1.0
        ├── libgfortran.so -> libgfortran.so.5.0.0
        ├── libgfortran.so.5 -> libgfortran.so.5.0.0
        └── libgfortran.so.5.0.0

6 directories, 48 files
/data/data/com.termux/files/usr/libexec/gcc
└── aarch64-linux-android
└── 10.3.0
├── cc1
├── cc1plus
├── collect2
├── f951
├── liblto_plugin.la
├── liblto_plugin.so -> liblto_plugin.so.0.0.0
├── liblto_plugin.so.0 -> liblto_plugin.so.0.0.0
├── liblto_plugin.so.0.0.0
├── lto-wrapper
└── lto1

2 directories, 10 files
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
binutils libgfortran5 libisl libmpc ndk-sysroot setup-scripts zstd
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
gcc-10
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 144 MB disk space will be freed.
(Reading database ... 11131 files and directories currently installed.)
Removing gcc-10 (10.3.0) ...

Logs for gcc-11
~ $ apt update && apt install gcc-11 && gcc || find /data/data/com.termux/ -name gcc | xargs -l1 tree && apt remove gcc-11 -y
Hit:1 https://its-pointless.github.io/files/24 termux InRelease
Hit:2 https://packages-cf.termux.org/apt/termux-main stable InRelease
Hit:3 https://packages.termux.org/apt/termux-root root InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  gcc-11
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/47.2 MB of archives.
After this operation, 198 MB of additional disk space will be used.
Selecting previously unselected package gcc-11.
(Reading database ... 11042 files and directories currently installed.)
Preparing to unpack .../gcc-11_11.1.0_aarch64.deb ...
Unpacking gcc-11 (11.1.0) ...
Setting up gcc-11 (11.1.0) ...
The program gcc is not installed. Install it by executing:
 pkg install clang
/data/data/com.termux/files/usr/lib/gcc
└── aarch64-linux-android
    └── 11.1.0
        ├── ada_target_properties
        ├── crtbegin.o
        ├── crtbeginS.o
        ├── crtbeginT.o
        ├── crtend.o
        ├── crtendS.o
        ├── crtfastmath.o
        ├── finclude
        │   ├── ieee_arithmetic.mod
        │   ├── ieee_exceptions.mod
        │   └── ieee_features.mod
        ├── include
        │   ├── ISO_Fortran_binding.h
        │   ├── acc_prof.h
        │   ├── arm_acle.h
        │   ├── arm_bf16.h
        │   ├── arm_fp16.h
        │   ├── arm_neon.h
        │   ├── arm_sve.h
        │   ├── float.h
        │   ├── gcov.h
        │   ├── iso646.h
        │   ├── objc
        │   │   ├── NXConstStr.h
        │   │   ├── Object.h
        │   │   ├── Protocol.h
        │   │   ├── message.h
        │   │   ├── objc-decls.h
        │   │   ├── objc-exception.h
        │   │   ├── objc-sync.h
        │   │   ├── objc.h
        │   │   ├── runtime.h
        │   │   └── thr.h
        │   ├── openacc.h
        │   ├── ssp
        │   │   ├── ssp.h
        │   │   ├── stdio.h
        │   │   ├── string.h
        │   │   └── unistd.h
        │   ├── stdalign.h
        │   ├── stdarg.h
        │   ├── stdatomic.h
        │   ├── stdbool.h
        │   ├── stddef.h
        │   ├── stdfix.h
        │   ├── stdint-gcc.h
        │   ├── stdint.h
        │   ├── stdnoreturn.h
        │   ├── unwind.h
        │   └── varargs.h
        ├── libatomic.a
        ├── libgcc.a
        ├── libgcov.a
        ├── libgfortran.so -> libgfortran.so.5.0.0
        ├── libgfortran.so.5 -> libgfortran.so.5.0.0
        ├── libgfortran.so.5.0.0
        ├── libgfortran.spec
        ├── libgnarl-11.so -> /data/data/com.termux/files/usr/lib/gcc/aarch64-linux-android/11.1.0/adalib/libgnarl-11.so
        ├── libgnat-11.so -> /data/data/com.termux/files/usr/lib/gcc/aarch64-linux-android/11.1.0/adalib/libgnat-11.so
        ├── libgomp.spec
        ├── libm.so
        ├── libssp.a
        ├── libssp_nonshared.a -> /data/data/com.termux/files/usr/lib/gcc/aarch64-linux-android/11.1.0/libssp.a
        └── specs

6 directories, 60 files
/data/data/com.termux/files/usr/libexec/gcc
└── aarch64-linux-android
└── 11.1.0
├── cc1
├── cc1obj
├── cc1plus
├── collect2
├── f951
├── g++-mapper-server
├── liblto_plugin.la
├── liblto_plugin.so
├── lto-wrapper
└── lto1

2 directories, 10 files
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
binutils libgfortran5 libisl libmpc ndk-sysroot setup-scripts zstd
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
gcc-11
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 198 MB disk space will be freed.
(Reading database ... 11155 files and directories currently installed.)
Removing gcc-11 (11.1.0) ...

I'm using gcc over clang because I need libgccjit-*-dev for emacs native comp.

Try termux-setupgcc-9/10/11 and setup-patchforgcc.