OpenWrt icon indicating copy to clipboard operation
OpenWrt copied to clipboard

Error: Process completed with exit code 2.

Open chdeast opened this issue 1 year ago • 3 comments

亲,一直使用您的项目在线编译openwrt来使用,非常喜欢您的这个库,但这两天编译又出错了,麻烦您抽时间看一下,非常感谢。以下是出错的日志: touch /Openwrt/openwrt/build_dir/target-x86_64_musl/shadowsocksr-libev-2.5.6/.built_check CFLAGS="-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/Openwrt/openwrt/build_dir/target-x86_64_musl/shadowsocksr-libev-2.5.6=shadowsocksr-libev-2.5.6 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -flto -I/Openwrt/openwrt/staging_dir/toolchain-x86_64_gcc-13.2.0_musl/usr/include -I/Openwrt/openwrt/staging_dir/toolchain-x86_64_gcc-13.2.0_musl/include -I/Openwrt/openwrt/staging_dir/toolchain-x86_64_gcc-13.2.0_musl/include/fortify " CXXFLAGS="-Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/Openwrt/openwrt/build_dir/target-x86_64_musl/shadowsocksr-libev-2.5.6=shadowsocksr-libev-2.5.6 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -flto -I/Openwrt/openwrt/staging_dir/toolchain-x86_64_gcc-13.2.0_musl/usr/include -I/Openwrt/openwrt/staging_dir/toolchain-x86_64_gcc-13.2.0_musl/include -I/Openwrt/openwrt/staging_dir/toolchain-x86_64_gcc-13.2.0_musl/include/fortify " LDFLAGS="-L/Openwrt/openwrt/staging_dir/toolchain-x86_64_gcc-13.2.0_musl/usr/lib -L/Openwrt/openwrt/staging_dir/toolchain-x86_64_gcc-13.2.0_musl/lib -fuse-ld=bfd -znow -zrelro -Wl,--gc-sections,--as-needed " make -C /Openwrt/openwrt/build_dir/target-x86_64_musl/shadowsocksr-libev-2.5.6/. AR="x86_64-openwrt-linux-musl-gcc-ar" AS="ccache x86_64-openwrt-linux-musl-gcc -c -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/Openwrt/openwrt/build_dir/target-x86_64_musl/shadowsocksr-libev-2.5.6=shadowsocksr-libev-2.5.6 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -flto" LD="x86_64-openwrt-linux-musl-ld.bfd" NM="x86_64-openwrt-linux-musl-gcc-nm" CC="ccache x86_64-openwrt-linux-musl-gcc" GCC="ccache x86_64-openwrt-linux-musl-gcc" CXX="ccache x86_64-openwrt-linux-musl-g++" RANLIB="x86_64-openwrt-linux-musl-gcc-ranlib" STRIP=x86_64-openwrt-linux-musl-strip OBJCOPY=x86_64-openwrt-linux-musl-objcopy OBJDUMP=x86_64-openwrt-linux-musl-objdump SIZE=x86_64-openwrt-linux-musl-size CROSS="x86_64-openwrt-linux-musl-" ARCH="x86_64" ; make[4]: Entering directory '/Openwrt/openwrt/build_dir/target-x86_64_musl/shadowsocksr-libev-2.5.6' make all-recursive make[5]: Entering directory '/Openwrt/openwrt/build_dir/target-x86_64_musl/shadowsocksr-libev-2.5.6' Making all in libcork make[6]: Entering directory '/Openwrt/openwrt/build_dir/target-x86_64_musl/shadowsocksr-libev-2.5.6/libcork' make[6]: Nothing to be done for 'all'. make[6]: Leaving directory '/Openwrt/openwrt/build_dir/target-x86_64_musl/shadowsocksr-libev-2.5.6/libcork' Making all in libipset make[6]: Entering directory '/Openwrt/openwrt/build_dir/target-x86_64_musl/shadowsocksr-libev-2.5.6/libipset' make[6]: Nothing to be done for 'all'. make[6]: Leaving directory '/Openwrt/openwrt/build_dir/target-x86_64_musl/shadowsocksr-libev-2.5.6/libipset' Making all in src make[6]: Entering directory '/Openwrt/openwrt/build_dir/target-x86_64_musl/shadowsocksr-libev-2.5.6/src' make[6]: Nothing to be done for 'all'. make[6]: Leaving directory '/Openwrt/openwrt/build_dir/target-x86_64_musl/shadowsocksr-libev-2.5.6/src' Making all in server make[6]: Entering directory '/Openwrt/openwrt/build_dir/target-x86_64_musl/shadowsocksr-libev-2.5.6/server' ccache x86_64-openwrt-linux-musl-gcc -DHAVE_CONFIG_H -I. -I.. -I/Openwrt/openwrt/staging_dir/toolchain-x86_64_gcc-13.2.0_musl/usr/include -I/Openwrt/openwrt/staging_dir/toolchain-x86_64_gcc-13.2.0_musl/include -I/Openwrt/openwrt/staging_dir/toolchain-x86_64_gcc-13.2.0_musl/include/fortify -g -O2 -Wall -Werror -Wno-deprecated-declarations -fno-strict-aliasing -std=gnu99 -D_GNU_SOURCE -I../libipset/include -I../libcork/include -DMODULE_REMOTE -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -fmacro-prefix-map=/Openwrt/openwrt/build_dir/target-x86_64_musl/shadowsocksr-libev-2.5.6=shadowsocksr-libev-2.5.6 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -flto -I/Openwrt/openwrt/staging_dir/target-x86_64_musl/usr/include -DPCRE2_STATIC -c -o ss_server-server.o test -f 'server.c' || echo './'server.c In file included from server.c:62: server.c: In function 'main': utils.h:160:13: error: pointer 'protocol_347' may be used after 'free' [-Werror=use-after-free] 160 | syslog(LOG_INFO, format, ## VA_ARGS);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ server.c:1945:13: note: call to 'free' here 1945 | free(protocol); | ^~~~~~~~~~~~~~ utils.h:166:17: error: pointer 'protocol_347' may be used after 'free' [-Werror=use-after-free] 166 | fprintf(stderr, "\e[01;32m %s INFO: \e[0m" format "\n", timestr,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 167 | ## VA_ARGS);
| ~~~~~~~~~~~~~~~ server.c:1945:13: note: call to 'free' here 1945 | free(protocol); | ^~~~~~~~~~~~~~ utils.h:169:17: error: pointer 'protocol_347' may be used after 'free' [-Werror=use-after-free] 169 | fprintf(stderr, " %s INFO: " format "\n", timestr,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 170 | ## VA_ARGS);
| ~~~~~~~~~~~~~~~ server.c:1945:13: note: call to 'free' here 1945 | free(protocol); | ^~~~~~~~~~~~~~ server.c:1948:13: error: pointer 'protocol_347' used after 'free' [-Werror=use-after-free] 1948 | memcpy(protocol, text, length); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ server.c:1945:13: note: call to 'free' here 1945 | free(protocol); | ^~~~~~~~~~~~~~ server.c:1947:13: error: pointer 'protocol_347' used after 'free' [-Werror=use-after-free] 1947 | memset(protocol, 0x00, length); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ server.c:1945:13: note: call to 'free' here 1945 | free(protocol); | ^~~~~~~~~~~~~~ cc1: all warnings being treated as errors make[6]: *** [Makefile:670: ss_server-server.o] Error 1 make[5]: *** [Makefile:483: all-recursive] Error 1 make[4]: *** [Makefile:392: all] Error 2 make[3]: *** [Makefile:66: /Openwrt/openwrt/build_dir/target-x86_64_musl/shadowsocksr-libev-2.5.6/.built] Error 2 make[6]: Leaving directory '/Openwrt/openwrt/build_dir/target-x86_64_musl/shadowsocksr-libev-2.5.6/server' make[5]: Leaving directory '/Openwrt/openwrt/build_dir/target-x86_64_musl/shadowsocksr-libev-2.5.6' make[4]: Leaving directory '/Openwrt/openwrt/build_dir/target-x86_64_musl/shadowsocksr-libev-2.5.6' make[3]: Leaving directory '/Openwrt/openwrt/feeds/pkgchdeast/shadowsocksr-libev' time: package/feeds/pkgchdeast/shadowsocksr-libev/compile#0.55#0.11#0.62 ERROR: package/feeds/pkgchdeast/shadowsocksr-libev failed to build. make[2]: *** [package/Makefile:129: package/feeds/pkgchdeast/shadowsocksr-libev/compile] Error 1 make[2]: Leaving directory '/Openwrt/openwrt' make[1]: *** [package/Makefile:123: /Openwrt/openwrt/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2 make[1]: Leaving directory '/Openwrt/openwrt' make: *** [/Openwrt/openwrt/include/toplevel.mk:233: world] Error 2 Error: Process completed with exit code 2.

chdeast avatar Mar 28 '24 05:03 chdeast