Hi NXP
When I try to compiler failed on Yocto 5.1 styhead (6.12.3)(i.MX8MP).
MACHINE=imx8mp-lpddr4-evk DISTRO=fsl-imx-xwayland source ./imx-setup-release.sh -b 8mp
bitbake imx-image-full , I will be get fail and error message.
g++: error: unrecognized command line option ‘-std=gnu++20’; did you mean ‘-std=gnu++2a’?
ninja: build stopped: subcommand failed.
ERROR: Task (/home/adv/adv-bsp/sources/meta-qt6/recipes-qt/qt6/gn-native_git.bb:do_compile) failed with exit code '1'
Do you have any advice?
Thanks.
Hi Charles,
I fixed this issue.
This issue is a command that g++ doesn't recognize, please upgrade your g++ version, follow as :
Step 1 : Install new g++ version (ex : g++-10)
sudo apt upgrade
sudo apt install g++-10
Step 2 : Setup g++-10
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-10 10
Step 3 : Confirm g++ version
g++ --version
Good luck.
Reference:https://sourceforge.net/p/codeblocks/tickets/1006/