Closed dlonzyz closed 2 months ago
node-v16.20.2报错,我不勾选unblockneteasemusic,也会下载编译unblockneteasemusic,必须要在编译前的下载软件包后删除这个包
是node的问题,在make前用以下命令,清除了tmp后没有node编译进来了。 cd openwrt &&git pull && ./scripts/feeds update -a && ./scripts/feeds install -a && rm -rf ./tmp && make menuconfig
现在正常能编译了。
arm-openwrt-linux-muslgnueabi-gcc-ar crsT /Official2203/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/node-v16.20.2/out/Release/obj.target/tools/icu/libicuucx.a @/Official2203/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/node-v16.20.2/out/Release/obj.target/tools/icu/libicuucx.a.libicuucx.ar-file-list touch /Official2203/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/node-v16.20.2/out/Release/obj.host/tools/icu/icu_implementation.stamp touch /Official2203/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/node-v16.20.2/out/Release/obj.host/tools/icu/icu_uconfig.stamp g++ -m32 -o /Official2203/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/node-v16.20.2/out/Release/obj.host/icutools/deps/icu-small/source/tools/toolutil/filetools.o ../deps/icu-small/source/tools/toolutil/filetools.cpp '-DV8_DEPRECATION_WARNINGS' '-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_GLIBCXX_USE_CXX11_ABI=1' '-DNODE_OPENSSL_CONF_NAME=nodejs_conf' '-DICU_NO_USER_DATA_OVERRIDE' '-D__STDC_FORMAT_MACROS' '-DU_COMMON_IMPLEMENTATION=1' '-DU_I18N_IMPLEMENTATION=1' '-DU_IO_IMPLEMENTATION=1' '-DU_TOOLUTIL_IMPLEMENTATION=1' '-DU_ATTRIBUTE_DEPRECATED=' '-D_CRT_SECURE_NO_DEPRECATE=' '-DU_STATIC_IMPLEMENTATION=1' '-DUCONFIG_NO_SERVICE=1' '-DU_ENABLE_DYLOAD=0' '-DU_HAVE_STD_STRING=1' '-DUCONFIG_NO_BREAK_ITERATION=0' -I../deps/icu-small/source/common -I../deps/icu-small/source/i18n -I../deps/icu-small/source/tools/toolutil -pthread -Wall -Wextra -Wno-unused-parameter -Wno-deprecated-declarations -Wno-strict-aliasing -O3 -fno-omit-frame-pointer -fno-exceptions -std=gnu++14 -frtti -MMD -MF /Official2203/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/node-v16.20.2/out/Release/.deps//Official2203/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/node-v16.20.2/out/Release/obj.host/icutools/deps/icu-small/source/tools/toolutil/filetools.o.d.raw -c In file included from ../deps/icu-small/source/common/unicode/unistr.h:35, from ../deps/icu-small/source/common/charstr.h:18, from ../deps/icu-small/source/tools/toolutil/filetools.cpp:19: /usr/include/c++/13/cstddef:49:10: fatal error: bits/c++config.h: No such file or directory 49 | #include <bits/c++config.h> | ^
~~~~~ compilation terminated. make[4]: Leaving directory '/Official2203/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/node-v16.20.2' make[5]: [tools/icu/icutools.host.mk:576: /Official2203/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/node-v16.20.2/out/Release/obj.host/icutools/deps/icu-small/source/tools/toolutil/filetools.o] Error 1 make[4]: [Makefile:113: node] Error 2 make[3]: [Makefile:168: /Official2203/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/node-v16.20.2/.built] Error 2 make[3]: Leaving directory '/Official2203/openwrt/feeds/packages/lang/node' time: package/feeds/packages/node/compile#96.42#12.08#105.97 ERROR: package/feeds/packages/node failed to build. make[2]: [package/Makefile:120: package/feeds/packages/node/compile] Error 1 make[2]: Leaving directory '/Official2203/openwrt' make[1]: [package/Makefile:114: /Official2203/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/stamp/.package_compile] Error 2 make[1]: Leaving directory '/Official2203/openwrt' make: [/Official2203/openwrt/include/toplevel.mk:230: world] Error 2 Error: Process completed with exit code 2.