Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getting issue when compiling :g++: error: unrecognized command line option '-std=gnu++20'; did you mean '-std=gnu++2a'? #13223

Open
1 task done
shelliao opened this issue Dec 20, 2024 · 1 comment

Comments

@shelliao
Copy link

详细叙述

issue got when do compiling node-v22.11.0
g++: error: unrecognized command line option '-std=gnu++20'; did you mean '-std=gnu++2a'?

重复 issue

  • 没有类似的 issue

具体型号

R2S

详细日志

WARNING: C++ compiler (CXX=g++, 9.4.0) too old, need g++ 10.1.0 or clang++ 8.0.0
INFO: Using floating patch "tools/icu/patches/75/source/tools/toolutil/pkg_genc.h" from "tools/icu"
INFO: Using floating patch "tools/icu/patches/75/source/tools/toolutil/pkg_genc.cpp" from "tools/icu"
INFO: Using floating patch "tools/icu/patches/75/source/tools/genccode/genccode.c" from "tools/icu"
WARNING: warnings were emitted in the configure phase
INFO: configure completed successfully
touch /home/shell/lede/build_dir/hostpkg/node-v22.11.0/.configured
CFLAGS="-O2 -I/home/shell/lede/staging_dir/host/include -I/home/shell/lede/staging_dir/hostpkg/include -I/home/shell/lede/staging_dir/target-aarch64_generic_musl/host/include" CPPFLAGS="-I/home/shell/lede/staging_dir/host/include -I/home/shell/lede/staging_dir/hostpkg/include -I/home/shell/lede/staging_dir/target-aarch64_generic_musl/host/include" CXXFLAGS="-O2 -I/home/shell/lede/staging_dir/host/include -I/home/shell/lede/staging_dir/hostpkg/include -I/home/shell/lede/staging_dir/target-aarch64_generic_musl/host/include" LDFLAGS="-L/home/shell/lede/staging_dir/host/lib -L/home/shell/lede/staging_dir/hostpkg/lib -L/home/shell/lede/staging_dir/target-aarch64_generic_musl/host/lib" NO_LOAD='cctest.target.mk embedtest.target.mk overlapped-checker.target.mk' make -C /home/shell/lede/build_dir/hostpkg/node-v22.11.0
make[4]: Entering directory '/home/shell/lede/build_dir/hostpkg/node-v22.11.0'
make -C out BUILDTYPE=Release V=s
g++ -o /home/shell/lede/build_dir/hostpkg/node-v22.11.0/out/Release/obj.target/ada/deps/ada/ada.o ../deps/ada/ada.cpp '-D_GLIBCXX_USE_CXX11_ABI=1' '-DNODE_OPENSSL_CONF_NAME=nodejs_conf' '-DNODE_OPENSSL_HAS_QUIC' '-DICU_NO_USER_DATA_OVERRIDE' '-D__STDC_FORMAT_MACROS' '-DOPENSSL_NO_PINSHARED' '-DOPENSSL_THREADS' -I../deps/ada -pthread -Wall -Wextra -Wno-unused-parameter -m64 -O3 -fno-omit-frame-pointer -fno-rtti -fno-exceptions -fno-strict-aliasing -std=gnu++20 -MMD -MF /home/shell/lede/build_dir/hostpkg/node-v22.11.0/out/Release/.deps//home/shell/lede/build_dir/hostpkg/node-v22.11.0/out/Release/obj.target/ada/deps/ada/ada.o.d.raw -I/home/shell/lede/staging_dir/host/include -I/home/shell/lede/staging_dir/hostpkg/include -I/home/shell/lede/staging_dir/target-aarch64_generic_musl/host/include -O2 -I/home/shell/lede/staging_dir/host/include -I/home/shell/lede/staging_dir/hostpkg/include -I/home/shell/lede/staging_dir/target-aarch64_generic_musl/host/include -c
g++: error: unrecognized command line option '-std=gnu++20'; did you mean '-std=gnu++2a'?
make[5]: *** [deps/ada/ada.target.mk:86: /home/shell/lede/build_dir/hostpkg/node-v22.11.0/out/Release/obj.target/ada/deps/ada/ada.o] Error 1
make[4]: *** [Makefile:137: node] Error 2
make[4]: Leaving directory '/home/shell/lede/build_dir/hostpkg/node-v22.11.0'
make[3]: *** [Makefile:244: /home/shell/lede/build_dir/hostpkg/node-v22.11.0/.built] Error 2
make[3]: Leaving directory '/home/shell/lede/feeds/packages/lang/node'
time: package/feeds/packages/node/host-compile#11.88#4.11#32.55
ERROR: package/feeds/packages/node [host] failed to build.
make[2]: *** [package/Makefile:114: package/feeds/packages/node/host/compile] Error 1
make[2]: Leaving directory '/home/shell/lede'
make[1]: *** [package/Makefile:110: /home/shell/lede/staging_dir/target-aarch64_generic_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/shell/lede'
make: *** [/home/shell/lede/include/toplevel.mk:231: world] Error 2

@coolsnowwolf
Copy link
Owner

主机的 gcc 要升级到 gcc11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants