R4S编译问题
#145
Replies: 1 comment
-
用lede大的同名代码替换后就能编译过去了。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
ging_dir/toolchain-aarch64_generic_gcc-11.3.0_musl/usr/lib -L/home/gswangmd/openwrt/staging_dir/toolchain-aarch64_generic_gcc-11.3.0_musl/lib -znow -zrelro " ./configure --target=aarch64-openwrt-linux --host=aarch64-openwrt-linux --build=x86_64-pc-linux-gnu --program-prefix="" --program-suffix="" --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --sysconfdir=/etc --datadir=/usr/share --localstatedir=/var --mandir=/usr/man --infodir=/usr/info --disable-nls ; fi; )
touch /home/gswangmd/openwrt/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/fullconenat-2022-02-13-108a36cb/.configured_68b329da9893e34099c7d8ad5cb9c940
rm -f /home/gswangmd/openwrt/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/fullconenat-2022-02-13-108a36cb/.built
touch /home/gswangmd/openwrt/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/fullconenat-2022-02-13-108a36cb/.built_check
make -j1 -C "/home/gswangmd/openwrt/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/linux-5.15.44" CROSS_COMPILE="aarch64-openwrt-linux-musl-" ARCH="arm64" M="/home/gswangmd/openwrt/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/fullconenat-2022-02-13-108a36cb" EXTRA_CFLAGS="" modules
make[4]: Entering directory '/home/gswangmd/openwrt/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/linux-5.15.44'
CC [M] /home/gswangmd/openwrt/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/fullconenat-2022-02-13-108a36cb/xt_FULLCONENAT.o
MODPOST /home/gswangmd/openwrt/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/fullconenat-2022-02-13-108a36cb/Module.symvers
CC [M] /home/gswangmd/openwrt/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/fullconenat-2022-02-13-108a36cb/xt_FULLCONENAT.mod.o
LD [M] /home/gswangmd/openwrt/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/fullconenat-2022-02-13-108a36cb/xt_FULLCONENAT.ko
make[4]: Leaving directory '/home/gswangmd/openwrt/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/linux-5.15.44'
CFLAGS="-Os -pipe -mcpu=generic -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -fmacro-prefix-map=/home/gswangmd/openwrt/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/fullconenat-2022-02-13-108a36cb=fullconenat-2022-02-13-108a36cb -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/gswangmd/openwrt/staging_dir/toolchain-aarch64_generic_gcc-11.3.0_musl/usr/include -I/home/gswangmd/openwrt/staging_dir/toolchain-aarch64_generic_gcc-11.3.0_musl/include/fortify -I/home/gswangmd/openwrt/staging_dir/toolchain-aarch64_generic_gcc-11.3.0_musl/include " CXXFLAGS="-Os -pipe -mcpu=generic -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -fmacro-prefix-map=/home/gswangmd/openwrt/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/fullconenat-2022-02-13-108a36cb=fullconenat-2022-02-13-108a36cb -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/gswangmd/openwrt/staging_dir/toolchain-aarch64_generic_gcc-11.3.0_musl/usr/include -I/home/gswangmd/openwrt/staging_dir/toolchain-aarch64_generic_gcc-11.3.0_musl/include/fortify -I/home/gswangmd/openwrt/staging_dir/toolchain-aarch64_generic_gcc-11.3.0_musl/include " LDFLAGS="-L/home/gswangmd/openwrt/staging_dir/toolchain-aarch64_generic_gcc-11.3.0_musl/usr/lib -L/home/gswangmd/openwrt/staging_dir/toolchain-aarch64_generic_gcc-11.3.0_musl/lib -znow -zrelro " make -j1 -C /home/gswangmd/openwrt/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/fullconenat-2022-02-13-108a36cb/. AR="aarch64-openwrt-linux-musl-gcc-ar" AS="ccache_cc -c -Os -pipe -mcpu=generic -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -fmacro-prefix-map=/home/gswangmd/openwrt/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/fullconenat-2022-02-13-108a36cb=fullconenat-2022-02-13-108a36cb -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" LD=aarch64-openwrt-linux-musl-ld NM="aarch64-openwrt-linux-musl-gcc-nm" CC="ccache_cc" GCC="ccache_cc" CXX="ccache_cxx" RANLIB="aarch64-openwrt-linux-musl-gcc-ranlib" STRIP=aarch64-openwrt-linux-musl-strip OBJCOPY=aarch64-openwrt-linux-musl-objcopy OBJDUMP=aarch64-openwrt-linux-musl-objdump SIZE=aarch64-openwrt-linux-musl-size CROSS="aarch64-openwrt-linux-musl-" ARCH="aarch64" ;
make[4]: Entering directory '/home/gswangmd/openwrt/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/fullconenat-2022-02-13-108a36cb'
ccache_cc -Os -pipe -mcpu=generic -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -fmacro-prefix-map=/home/gswangmd/openwrt/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/fullconenat-2022-02-13-108a36cb=fullconenat-2022-02-13-108a36cb -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/gswangmd/openwrt/staging_dir/toolchain-aarch64_generic_gcc-11.3.0_musl/usr/include -I/home/gswangmd/openwrt/staging_dir/toolchain-aarch64_generic_gcc-11.3.0_musl/include/fortify -I/home/gswangmd/openwrt/staging_dir/toolchain-aarch64_generic_gcc-11.3.0_musl/include -fPIC -D_INIT=libipt_FULLCONENAT_init -c -o libipt_FULLCONENAT.o libipt_FULLCONENAT.c;
ccache_cc -shared -lxtables -o libipt_FULLCONENAT.so libipt_FULLCONENAT.o;
/home/gswangmd/openwrt/staging_dir/toolchain-aarch64_generic_gcc-11.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/11.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld: libipt_FULLCONENAT.o: in function
_init': libipt_FULLCONENAT.c:(.text+0x59c): multiple definition of
_init'; /home/gswangmd/openwrt/staging_dir/toolchain-aarch64_generic_gcc-11.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/11.3.0/../../../../aarch64-openwrt-linux-musl/lib/crti.o:/home/gswangmd/openwrt/build_dir/toolchain-aarch64_generic_gcc-11.3.0_musl/musl-1.2.3/crt/aarch64/crti.s:5: first defined herecollect2: error: ld returned 1 exit status
make[4]: *** [Makefile:2: libipt_FULLCONENAT.so] Error 1
make[4]: Leaving directory '/home/gswangmd/openwrt/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/fullconenat-2022-02-13-108a36cb'
make[3]: *** [Makefile:65: /home/gswangmd/openwrt/build_dir/target-aarch64_generic_musl/linux-rockchip_armv8/fullconenat-2022-02-13-108a36cb/.built] Error 2
make[3]: Leaving directory '/home/gswangmd/openwrt/package/network/services/fullconenat'
time: package/network/services/fullconenat/compile#1.44#0.12#1.58
ERROR: package/network/services/fullconenat failed to build.
make[2]: *** [package/Makefile:116: package/network/services/fullconenat/compile] Error 1
make[2]: Leaving directory '/home/gswangmd/openwrt'
make[1]: *** [package/Makefile:110: /home/gswangmd/openwrt/staging_dir/target-aarch64_generic_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/gswangmd/openwrt'
make: *** [/home/gswangmd/openwrt/include/toplevel.mk:230: world] Error 2
Beta Was this translation helpful? Give feedback.
All reactions