Can't install gcc on Omega2Pro ... package libstdcpp6 not found
The title says it all. Just set up an Omega2Pro, modified /etc/opkg/distfeeds.conf to include the lede feeds, and when I try "opkg install gcc", it fails with:
- satisfy_dependencies_for: Cannot satisfy the following dependencies for gcc:
- libstdcpp6 *
- opkg_install_cmd: Cannot install package gcc.
For the record, I can install make and gdb, so my opkg configuration seems correct.
@Robert-Meagher I took a new OOTB Omega2Pro, ran oupgrade so now I have:
Firmware Version: 0.3.2 b232
Editied my /etc/opkg/distfeeds.conf and uncommented everything :) maybe not ideal but it's a quick test for you. Now the file looks like this:
src/gz openwrt_core http://downloads.openwrt.org/releases/18.06-SNAPSHOT/targets/ramips/mt76x8/packages
src/gz openwrt_base http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/base
src/gz openwrt_luci http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/luci
src/gz openwrt_onion http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/onion
src/gz openwrt_packages http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/packages
src/gz openwrt_routing http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/routing
src/gz openwrt_telephony http://downloads.openwrt.org/releases/18.06-SNAPSHOT/packages/mipsel_24kc/telephony
src/gz omega2_core http://repo.onioniot.com/omega2/packages/core
src/gz omega2_base http://repo.onioniot.com/omega2/packages/base
src/gz omega2_packages http://repo.onioniot.com/omega2/packages/packages
src/gz omega2_routing http://repo.onioniot.com/omega2/packages/routing
src/gz omega2_onion http://repo.onioniot.com/omega2/packages/onion
opkg install gcc
Takes a while but gcc is installed fine.
That worked, thanks!
There seems to be a conflict between the standard Omega opkg sources and the lede-based sources that the Onion guys said to add to distfeeds.conf. lede sources want to install a later version of gcc and gdb, and dependencies get out of whack.
I appreciate your help!
@Robert-Meagher Glad that fixed your issue. Normally I would look at each repo and see where the gcc compiler is repo'd because uncommenting everything can cause other issues/conflict.
I can't help but ask why you want compile on the Omega, cross compiling is a bit harder to set up but once you have it working it's so much easier. You can then use GDB to debug if you need to (threw that in to keep @mawg and @JP-Norair happy)
Is it possible to install gcc, gmake, etc to produce a build system and I wouldn't need to build using the toolchain on another system?
@Jonathan-Rizzo, if you need create your own .IPK files (packages) it is able only in SDK/toolchain only. For example, I'm using official OpenWRT SDK Toolchain, that downloaded from Official OpenWRT website.
If you want compile kernel modules, you need exactly the same version as the Onion firmware. OpewnWRT's kmods are not working on; the microcomouter will take a freeze after instmod command, reset button doesn't work too.
@Robert-Meagher, I had the same problem. The problem is in different version of OpenWRT repository, that now version 19 and older version Onion OS that based of version 18.
Your opkg manager is downloading packages from OpenWRT 19, that using GCC 7 or higher.
I fixed it by installing GCC with flags: force and without dependence, than all the dependence was installed manual. The list of depends you can found in the OpenWRT repository.
Now I'm using GCC 7 on the Onion OS (based OpenWRT 18), with no problems includes GDB debugger.