-
Notifications
You must be signed in to change notification settings - Fork 19.5k
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
node 编译错误 #13223
Comments
主机的 gcc 要升级到 gcc11 |
是否能修改一下文档中安装依赖的内容,以便可以一键安装gcc 11 |
虽然不知道 LEDE 源码能不能使用。但不妨试试: https://github.com/sbwml/feeds_packages_lang_node-prebuilt 10秒完成 node 的编译总比花 30 分钟的源码编译来的快 |
实测有用 感谢帮助 |
请问,要替换哪个版本的node呢,想说,lean支持的op版本是多少,就对应取哪个版本,但是op的版本,是多少,这个怎么获取到呢 |
详细叙述
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
具体型号
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
The text was updated successfully, but these errors were encountered: