OE-core's config sanity checker detected a potential misconfiguration
You encounter this error when you run Bitbake to start the build process.
ERROR: OE-core's config sanity checker detected a potential misconfiguration. Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).
Following is the list of potential problems/advisories:
Follow the below steps to resolve the above error.
Fix:
- Make sure that bitbake runs as non-root.
- Set the correct machine name in conf/local.conf file and run bitbake command from another terminal after the source environment setup. if the issue persists, follow the 3rd and 4th steps to resolve this.
- After setup the build environment, you directly jump into the build directory. so from there, you run the below command.
$touch conf/sanity.conf
- Sometimes you will get this issue due to the GCC version so open a new terminal on the system and install the below version of GCC.
$ sudo add-apt-repository ppa:jonathonf/gcc-7.3
$ sudo apt-get update
$ sudo apt-get install gcc-7 g++-7
$ sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 60 --slave /usr/bin/g++ g++ /usr/bin/g++-7
Now you can check GCC version on your host system with the below command.
$gcc --version it should be 7.3
Now you run the Bitbake and I am hoping your issue got resolved.