Hi,
I added gcc and g++ by modifying INCOMPATIBLE_LICENSE = "" , IMAGE_INSTALL_append= " gcc" and EXTRA_IMAGE_FEATURES ?= "tools-sdk package-management debug-tweaks" in local.conf file. gcc and g++ is recognized on the terminal.
root@rzv2m:~# gcc --version
gcc (GCC) 8.3.0
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
but won't be able to make the output as shown below.
root@rzv2m:~/myapp# gcc main.c -o output
[ 5298.427932] audit: type=1701 audit(1685461367.767:9): auid=4294967295 uid=0 gid=0 ses=4294967295 pid=539 comm="cc1" exe="/usr/libexec/gcc/aarch64-poky-linux/8.3.0/cc1" sig=11 res=1
gcc: internal compiler error: Segmentation fault signal terminated program cc1
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://gcc.gnu.org/bugs/> for instructions.
please suggest, how to fix it.
thanks in advance.