高通820系列(apq8098平台,androido系统),mmm external/ethtool-5.2/,报错

参考链接https://blog.csdn.net/u013686019/article/details/51491364

高通820系列(apq8098平台,androido系统),mmm  external/ethtool-5.2/,报如下错误

[ 90% 37/41] target Executable: ethtool (out/target/product/msm8998/obj/EXECUTABLES/ethtool_intermediates/LINKED/ethtool)
FAILED: out/target/product/msm8998/obj/EXECUTABLES/ethtool_intermediates/LINKED/ethtool
/bin/bash -c "vendor/qcom/proprietary/llvm-arm-toolchain-ship/4.0/bin/clang++ -pie -nostdlib -Bdynamic -Wl,-dynamic-linker,/system/bin/linker64 -Wl,--gc-sections -Wl,-z,nocopyreloc -Wl,-rpath-link=out/target/product/msm8998/obj/lib out/target/product/msm8998/obj/lib/crtbegin_dynamic.o out/target/product/msm8998/obj/EXECUTABLES/ethtool_intermediates/marvell.o out/target/product/msm8998/obj/EXECUTABLES/ethtool_intermediates/et131x.o out/target/product/msm8998/obj/EXECUTABLES/ethtool_intermediates/smsc911x.o out/target/product/msm8998/obj/EXECUTABLES/ethtool_intermediates/sfpdiag.o out/target/product/msm8998/obj/EXECUTABLES/ethtool_intermediates/pcnet32.o out/target/product/msm8998/obj/EXECUTABLES/ethtool_intermediates/amd8111e.o out/target/product/msm8998/obj/EXECUTABLES/ethtool_intermediates/sfpid.o out/target/product/msm8998/obj/EXECUTABLES/ethtool_intermediates/ixgb.o out/target/product/msm8998/obj/EXECUTABLES/ethtool_intermediates/sff-common.o out/target/product/msm8998/obj/EXECUTABLES/ethtool_intermediates/realtek.o out/target/product/msm8998/obj/EXECUTABLES/ethtool_intermediates/vmxnet3.o out/target/product/msm8998/obj/EXECUTABLES/ethtool_intermediates/de2104x.o out/target/product/msm8998/obj/EXECUTABLES/ethtool_intermediates/sfc.o out/target/product/msm8998/obj/EXECUTABLES/ethtool_intermediates/tg3.o out/target/product/msm8998/obj/EXECUTABLES/ethtool_intermediates/ibm_emac.o out/target/product/msm8998/obj/EXECUTABLES/ethtool_intermediates/fec.o out/target/product/msm8998/obj/EXECUTABLES/ethtool_intermediates/ixgbevf.o out/target/product/msm8998/obj/EXECUTABLES/ethtool_intermediates/ethtool.o out/target/product/msm8998/obj/EXECUTABLES/ethtool_intermediates/tse.o out/target/product/msm8998/obj/EXECUTABLES/ethtool_intermediates/natsemi.o out/target/product/msm8998/obj/EXECUTABLES/ethtool_intermediates/e100.o out/target/product/msm8998/obj/EXECUTABLES/ethtool_intermediates/rxclass.o out/target/product/msm8998/obj/EXECUTABLES/ethtool_intermediates/at76c50x-usb.o out/target/product/msm8998/obj/EXECUTABLES/ethtool_intermediates/stmmac.o out/target/product/msm8998/obj/EXECUTABLES/ethtool_intermediates/ixgbe.o out/target/product/msm8998/obj/EXECUTABLES/ethtool_intermediates/fec_8xx.o out/target/product/msm8998/obj/EXECUTABLES/ethtool_intermediates/igb.o out/target/product/msm8998/obj/EXECUTABLES/ethtool_intermediates/dsa.o out/target/product/msm8998/obj/EXECUTABLES/ethtool_intermediates/lan78xx.o out/target/product/msm8998/obj/EXECUTABLES/ethtool_intermediates/vioc.o out/target/product/msm8998/obj/EXECUTABLES/ethtool_intermediates/qsfp.o out/target/product/msm8998/obj/EXECUTABLES/ethtool_intermediates/e1000.o out/target/product/msm8998/obj/EXECUTABLES/ethtool_intermediates/fjes.o -Wl,--whole-archive  -Wl,--no-whole-archive   out/target/product/msm8998/obj/STATIC_LIBRARIES/libcompiler_rt-extras_intermediates/libcompiler_rt-extras.a   out/target/product/msm8998/obj/STATIC_LIBRARIES/libatomic_intermediates/libatomic.a out/target/product/msm8998/obj/STATIC_LIBRARIES/libgcc_intermediates/libgcc.a -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,--build-id=md5 -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,-maarch64linux -Wl,--hash-style=gnu -Wl,--fix-cortex-a53-843419 -fuse-ld=gold -Wl,--icf=safe -Wl,--no-undefined-version   -target aarch64-linux-android -Bprebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/aarch64-linux-android/bin -Wl,--no-undefined out/target/product/msm8998/obj/lib/libcutils.so out/target/product/msm8998/obj/lib/libc++.so out/target/product/msm8998/obj/lib/libc.so out/target/product/msm8998/obj/lib/libm.so out/target/product/msm8998/obj/lib/libdl.so -o out/target/product/msm8998/obj/EXECUTABLES/ethtool_intermediates/LINKED/ethtool out/target/product/msm8998/obj/lib/crtend_android.o"
out/target/product/msm8998/obj/lib/crtbegin_dynamic.o:crtbegin.c:function _start_main: error: undefined reference to 'main'
out/target/product/msm8998/obj/lib/crtbegin_dynamic.o:crtbegin.c:function _start_main: error: undefined reference to 'main'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
15:47:33 ninja failed with: exit status 1

解决方案,用ethtool-4.5版本,而不要用5.2版本

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值