我尝试编译 openwrt-trojan 并得到错误"arm-openwrt-linux-muslgnueabi/bin/ar: array_type_info.o: No such file or directory"
。然后我找到了一个解决方案,如下面的链接,它说cd /tmp
然后编译,我做了但得到另一个错误,说make: *** No rule to make target '/root/openwrt-sdk-19.07.7-ipq806x-generic_gcc-7.5.0_musl_eabi.Linux-x86_64/package/trojan/compile'. Stop.
我该怎么办?谢谢!
make[3]: Entering directory '/root/openwrt-sdk-19.07.7-ipq806x-generic_gcc-7.5.0_musl_eabi.Linux-x86_64/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/uClibc++-0.2.5'
rm -f ./src/abi/libsupc/.*dep ./src/abi/libsupc/*.o
(cd ./src/abi/libsupc/ && arm-openwrt-linux-muslgnueabi-gcc-ar x /root/openwrt-sdk-19.07.7-ipq806x-generic_gcc-7.5.0_musl_eabi.Linux-x86_64/staging_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-7.5.0_musl_eabi/bin/../lib/gcc/arm-openwrt-linux-muslgnueabi/7.5.0/../../../../arm-openwrt-linux-muslgnueabi/lib/libsupc++.a && rm -f del_op.o del_ops.o del_opnt.o del_opv.o del_opvs.o del_opvnt.o eh_alloc.o eh_globals.o new_handler.o new_op.o new_opnt.o new_opv.o new_opvnt.o new_opa.o new_opant.o new_opva.o new_opvant.o del_opa.o del_opant.o del_opsa.o del_opva.o del_opvant.o del_opvsa.o pure.o)
echo "libsupc-y := \$(addprefix \$(LIBSUPC_OUT),array_type_info.o atexit_arm.o atexit_thread.o bad_alloc.o bad_array_length.o bad_array_new.o bad_cast.o bad_typeid.o class_type_info.o dyncast.o eh_arm.o eh_aux_runtime.o eh_call.o eh_catch.o eh_exception.o eh_personality.o eh_ptr.o eh_term_handler.o eh_terminate.o eh_tm.o eh_throw.o eh_type.o eh_unex_handler.o enum_type_info.o function_type_info.o fundamental_type_info.o guard.o guard_error.o hash_bytes.o nested_exception.o pbase_type_info.o pmem_type_info.o pointer_type_info.o si_class_type_info.o tinfo.o tinfo2.o vec.o vmi_class_type_info.o vterminate.o cp-demangle.o)" > src/abi/libsupc/._root_openwrt-sdk-19.07.7-ipq806x-generic_gcc-7.5.0_musl_eabi.Linux-x86_64_staging_dir_toolchain-arm_cortex-a15+neon-vfpv4_gcc-7.5.0_musl_eabi_bin_.._lib_gcc_arm-openwrt-linux-muslgnueabi_7.5.0_.._.._.._.._arm-openwrt-linux-muslgnueabi_lib_libsupc++.a.dep/bin/sh: 1: cannot create src/abi/libsupc/._root_openwrt-sdk-19.07.7-ipq806x-generic_gcc-7.5.0_musl_eabi.Linux-x86_64_staging_dir_toolchain-arm_cortex-a15+neon-vfpv4_gcc-7.5.0_musl_eabi_bin_.._lib_gcc_arm-openwrt-linux-muslgnueabi_7.5.0_.._.._.._.._arm-openwrt-linux-muslgnueabi_lib_libsupc++.a.dep: File name too long
rm -f src/libuClibc++.a
arm-openwrt-linux-muslgnueabi-gcc-ar cr src/libuClibc++.a src/algorithm.o src/associative_base.o src/bitset.o src/char_traits.o src/complex.o src/del_op.o src/del_opnt.o src/del_ops.o src/del_opv.o src/del_opvnt.o src/del_opvs.o src/deque.o src/eh_alloc.o src/eh_globals.o src/exception.o src/fstream.o src/func_exception.o src/iomanip.o src/ios.o src/iostream.o src/istream.o src/iterator.o src/limits.o src/list.o src/locale.o src/map.o src/new_handler.o src/new_op.o src/new_opnt.o src/new_opv.o src/new_opvnt.o src/numeric.o src/ostream.o src/queue.o src/set.o src/sstream.o src/stack.o src/stdexcept.o src/streambuf.o src/string.o src/utility.o src/valarray.o src/vector.o src/abi/abi.o array_type_info.o atexit_arm.o atexit_thread.o bad_alloc.o bad_array_length.o bad_array_new.o bad_cast.o bad_typeid.o class_type_info.o dyncast.o eh_arm.o eh_aux_runtime.o eh_call.o eh_catch.o eh_exception.o eh_personality.o eh_ptr.o eh_term_handler.o eh_terminate.o eh_tm.o eh_throw.o eh_type.o eh_unex_handler.o enum_type_info.o function_type_info.o fundamental_type_info.o guard.o guard_error.o hash_bytes.o nested_exception.o pbase_type_info.o pmem_type_info.o pointer_type_info.o si_class_type_info.o tinfo.o tinfo2.o vec.o vmi_class_type_info.o vterminate.o cp-demangle.o
/root/openwrt-sdk-19.07.7-ipq806x-generic_gcc-7.5.0_musl_eabi.Linux-x86_64/staging_dir/toolchain-arm_cortex-a15+neon-vfpv4_gcc-7.5.0_musl_eabi/bin/../lib/gcc/arm-openwrt-linux-muslgnueabi/7.5.0/../../../../arm-openwrt-linux-muslgnueabi/bin/ar: array_type_info.o: No such file or directory
make[3]: *** [src/Makefile.in:45: src/libuClibc++.a] Error 1
make[3]: Leaving directory '/root/openwrt-sdk-19.07.7-ipq806x-generic_gcc-7.5.0_musl_eabi.Linux-x86_64/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/uClibc++-0.2.5'
make[2]: *** [Makefile:100: /root/openwrt-sdk-19.07.7-ipq806x-generic_gcc-7.5.0_musl_eabi.Linux-x86_64/build_dir/target-arm_cortex-a15+neon-vfpv4_musl_eabi/uClibc++-0.2.5/.built] Error 2
make[2]: Leaving directory '/root/openwrt-sdk-19.07.7-ipq806x-generic_gcc-7.5.0_musl_eabi.Linux-x86_64/feeds/base/package/libs/uclibc++'
time: package/feeds/base/uclibc++/compile#0.59#0.69#0.96
make[1]: *** [package/Makefile:113: package/feeds/base/uclibc++/compile] Error 2
make[1]: Leaving directory '/root/openwrt-sdk-19.07.7-ipq806x-generic_gcc-7.5.0_musl_eabi.Linux-x86_64'
root@vultr:~/openwrt-sdk-19.07.7-ipq806x-generic_gcc-7.5.0_musl_eabi.Linux-x86_64# 64/include/toplevel.mk:220: package/trojan/compile] Error 2
https://forum.openwrt.org/t/buid-package-uclibc-failed-by-using-openwrt-sdk/64377