Closed sangmo-kang closed 1 week ago
The default gcc in ubuntu 22.04 is 11.2.0, try that instead of 9.4.0 you're using for some reason.
docker-lge @ ~ $ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04 LTS
Release: 22.04
Codename: jammy
docker-lge @ ~ $ gcc --version
gcc (Ubuntu 11.2.0-19ubuntu1) 11.2.0
Copyright (C) 2021 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.
11.4 after update:
docker-lge @ ~ $ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.5 LTS
Release: 22.04
Codename: jammy
docker-lge @ ~ $ gcc --version
gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
Copyright (C) 2021 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.
Thanks for your quick response!
I found that std=gnu++20
was not working in gcc 9 and below.
However, it seems that Yocto's gcc requirements are 8.0 or greater(https://docs.yoctoproject.org/dev/ref-manual/system-requirements.html#required-git-tar-python-make-and-gcc-versions).
So, I'm curious if there is a way to solve this problem while maintaining gcc version 9.
Why are you using gcc-9? isn't it configured, just because you were using 18.04 (which had gcc-7 by default) before and you forgot to remove it when upgrading to 22.04?
Thanks for your response! I have set up a own development environment with Ubuntu 20 and GCC 9. I was just curious about the support for GCC 9. I will consider upgrading my development environment to Ubuntu 22.
Dear, Maintainer.
After upgrading nodejs to 22.11.0(https://github.com/openembedded/meta-openembedded/commit/6652b031d7d4d9cabf16d481f3b82115f7d8e15a),
bitbake nodejs-native
fails with the following error: g++: error: unrecognized command line option ‘-std=gnu++20’; did you mean ‘-std=gnu++2a’?System infomation:
Log Details: