How to install gcc compiler
-
Hi.
Please help me. I try many ways to install gcc/g++ compiler but I can`t do it.
I try some suggestions that found here but none works.
My devce is:
root@Omega-F399:~# uname -a
Linux Omega-F399 4.4.46 #0 Thu Feb 2 23:46:03 2017 mips GNU/Linux
root@Omega-F399:~# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root 5632 5632 0 100% /rom
tmpfs 62872 212 62660 0% /tmp
/dev/mmcblk0p1 7573368 67936 7101004 1% /overlay
overlayfs:/overlay 7573368 67936 7101004 1% /
tmpfs 512 0 512 0% /dev
root@Omega-F399:~# opkg update
Downloading http://repo.onion.io/omega2/packages/core/Packages.gz
Updated list of available packages in /var/opkg-lists/omega2_core
Downloading http://repo.onion.io/omega2/packages/core/Packages.sig
Signature check passed.
Downloading http://repo.onion.io/omega2/packages/base/Packages.gz
Updated list of available packages in /var/opkg-lists/omega2_base
Downloading http://repo.onion.io/omega2/packages/base/Packages.sig
Signature check passed.
Downloading http://repo.onion.io/omega2/packages/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/omega2_packages
Downloading http://repo.onion.io/omega2/packages/packages/Packages.sig
Signature check passed.
Downloading http://repo.onion.io/omega2/packages/onion/Packages.gz
Updated list of available packages in /var/opkg-lists/omega2_onion
Downloading http://repo.onion.io/omega2/packages/onion/Packages.sig
Signature check passed.===========================
root@Omega-F399:~# opkg install gcc
Unknown package 'gcc'.
Collected errors:- opkg_install_cmd: Cannot install package gcc.
=======================
When I try with gcc_5.4.0-2_mipsel_24kc.ipk I get the next error:
satisfy_dependencies_for: Cannot satisfy the following dependencies for gcc:binutils
-
Hi,
My device is a ONION omega 2
root@Omega-DFEF:/# opkg install gcc
Installing gcc (5.4.0-2) to root...
Downloading http://downloads.lede-project.org/snapshots/packages/mipsel_24kc/packages/gcc_5.4.0-2_mipsel_24kc.ipk
Collected errors:- opkg_install_pkg: Failed to verify the signature of /var/opkg-lists/reboot_packages.
- opkg_install_cmd: Cannot install package gcc.
root@Omega-DFEF:/#
No idea how to solve this?
Does anybody have gcc installed on a onion recently?Regards,
Cornelis
-
I have not encountered the installation of compiler C on the Onion Omega 2. On the other hand, the cross-compiler LEDE works great. I'm using it with rsync to upload compiled programs to Omega.
My sample Makefile:
CC=mipsel-openwrt-linux-musl-gcc
CFLAGS=-Os -lpthread
LFLAGS=-Os -lpthread
IP=192.168.3.1
PASSWORD=onioneer
SOURCES = main.c GPIO/gpio.h GPIO/gpio.c PAMIEC/pamiec.h PAMIEC/pamiec.c LCD/lcd.h LCD/lcd.c PWM/pwm.h PWM/pwm.c
OBJECTS = main.o gpio.o pamiec.o lcd.o pwm.o
all: kolumnaonionkolumnaonion: $(OBJECTS)
$(CC) $(LFLAGS) $(OBJECTS) -o kolumnaonion
sshpass -p "$(PASSWORD)" rsync -v -a kolumnaonion root@$(IP):/rootmain.o: $(SOURCES)
$(CC) $(CFLAGS) -c $(SOURCES)clean:
rm -f kolumnaonion *.o
-
Hi, the gcc compiler is quite large and will not fit on even the Omega2+. You will need to boot the Omega from external storage in order to install gcc.
See our guide on compiling C & C++ programs on the Omega from last week's 2-Bullet Tuesday newsletter for more details.
-
I just followed the guide on compileing C & C++ programs on the Omega, the installation of gcc is failing.
root@Omega-B82F:/# opkg update
Downloading http://downloads.lede-project.org/snapshots/packages/mipsel_24kc/base/Packages.gz.
Updated list of available packages in /var/opkg-lists/reboot_base.
Downloading http://downloads.lede-project.org/snapshots/packages/mipsel_24kc/base/Packages.sig.
Signature check passed.
Downloading http://downloads.lede-project.org/snapshots/packages/mipsel_24kc/packages/Packages.gz.
Updated list of available packages in /var/opkg-lists/reboot_packages.
Downloading http://downloads.lede-project.org/snapshots/packages/mipsel_24kc/packages/Packages.sig.
Signature check passed.
Downloading http://repo.onion.io/omega2/packages/core/Packages.gz.
Updated list of available packages in /var/opkg-lists/omega2_core.
Downloading http://repo.onion.io/omega2/packages/core/Packages.sig.
Signature check passed.
Downloading http://repo.onion.io/omega2/packages/base/Packages.gz.
Updated list of available packages in /var/opkg-lists/omega2_base.
Downloading http://repo.onion.io/omega2/packages/base/Packages.sig.
Signature check passed.
Downloading http://repo.onion.io/omega2/packages/packages/Packages.gz.
Updated list of available packages in /var/opkg-lists/omega2_packages.
Downloading http://repo.onion.io/omega2/packages/packages/Packages.sig.
Signature check passed.
Downloading http://repo.onion.io/omega2/packages/onion/Packages.gz.
Updated list of available packages in /var/opkg-lists/omega2_onion.
Downloading http://repo.onion.io/omega2/packages/onion/Packages.sig.
Signature check passed.
root@Omega-B82F:/# opkg --verbosity=2 install gcc
opkg_conf_parse_file: Loading conf file /etc/opkg.conf.
opkg_conf_parse_file: Loading conf file /etc/opkg/customfeeds.conf.
opkg_conf_parse_file: Loading conf file /etc/opkg/distfeeds.conf.
pkg_hash_load_feeds:
pkg_hash_load_status_files:
pkg_info_preinstall_check: Updating file owner list.
Installing gcc (5.4.0-2) to root...
Downloading http://downloads.lede-project.org/snapshots/packages/mipsel_24kc/packages/gcc_5.4.0-2_mipsel_24kc.ipk.
opkg_configure_packages: Configuring unpacked packages.
opkg_configure_packages: Reordering packages before configuring them...
Collected errors:- opkg_install_pkg: Failed to verify the signature of /var/opkg-lists/reboot_packages.
- opkg_install_cmd: Cannot install package gcc.
root@Omega-B82F:/#
I have the omega2 setup to boot from usb, and edited the /etc/opkg/distfeeds.conf.
help
-
Probably, reason is different repositories.
Do not copy other people's configurations.Look at /etc/opkg/distfeeds.conf
Uncomment "base" and "packages" (usually 2 and 5 lines)opkg updage
opkg install gcc