HELDON: gcc_8.4.0-5a_armv7-3.2 is broken on entware (solved)

Publicēts: 19:29:11 06/03/23
Autors: HELDON

opkg update smuki sapisa gcc uz entware.

^ nestrādā.

[root]# gcc
gcc: error while loading shared libraries: libm.so.6: cannot open shared object file: No such file or directory

[root]# ldd gcc
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb6e27000)
        /opt/lib/ld-linux.so.3 (0xb6f2a000)
        libm.so.6 => not found
        libgcc_s.so.1 => not found
        libc.so.6 => not found
        libm.so.6 => not found
        libc.so.6 => not found
        libgcc_s.so.1 => not found

Risinājums tika atrasts:

[root]# opkg --force-reinstall install libc
Removing package libc from root...
Installing libc (2.27-11) to root...
Downloading https://bin.entware.net/armv7sf-k3.2/libc_2.27-11_armv7-3.2.ipk
Configuring libc.

[root]# opkg --force-reinstall install gcc
Removing package gcc from root...
Installing gcc (8.4.0-5a) to root...
Downloading https://bin.entware.net/armv7sf-k3.2/gcc_8.4.0-5a_armv7-3.2.ipk
Configuring gcc.
There are no *-dev packages in Entware(with few exceptions)!
Please install headers as described in the wiki:

[root]# ldd gcc
        libstdc++.so.6 => /opt/lib/libstdc++.so.6 (0xb6dc6000)
        libm.so.6 => /opt/lib/libm.so.6 (0xb6d01000)
        libgcc_s.so.1 => /opt/lib/libgcc_s.so.1 (0xb6ce4000)
        libc.so.6 => /opt/lib/libc.so.6 (0xb6ba2000)
        /opt/lib/ld-linux.so.3 (0xb6f14000)