forum.gl-inet.cn

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
热搜: 活动 交友 discuz
    查看: 547|回复: 4

    [编译问题] axt1800 自编译固件驱动错误

    [复制链接]

    4

    主题

    33

    帖子

    238

    积分

    中级会员

    Rank: 3Rank: 3

    积分
    238
    发表于 2022-12-15 20:03:05 | 显示全部楼层 |阅读模式
    本帖最后由 Saber 于 2022-12-16 14:33 编辑

    以前没有问题,最近编译在wifi ax hostpad模块中出现问题
    1. make[4]: 'wpa_supplicant_multi.a' is up to date.
    2. make[4]: Leaving directory '/home/saber/Desktop/4/gl-infra-builder/wlan-ap/openwrt/build_dir/target-arm_cortex-a7_musl_eabi/hostapd-wpad-full-internal/hostapd-2021-02-20-59e9794c/wpa_supplicant'
    3. export MAKEFLAGS=""; arm-openwrt-linux-muslgnueabi-gcc -o /home/saber/Desktop/4/gl-infra-builder/wlan-ap/openwrt/build_dir/target-arm_cortex-a7_musl_eabi/hostapd-wpad-full-internal/hostapd-2021-02-20-59e9794c/wpad -Os -pipe -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -mfloat-abi=soft -Wformat -Werror=format-security -DPIC -fpic -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -ffunction-sections -fdata-sections -flto ./files/multicall.c /home/saber/Desktop/4/gl-infra-builder/wlan-ap/openwrt/build_dir/target-arm_cortex-a7_musl_eabi/hostapd-wpad-full-internal/hostapd-2021-02-20-59e9794c/hostapd/hostapd_multi.a /home/saber/Desktop/4/gl-infra-builder/wlan-ap/openwrt/build_dir/target-arm_cortex-a7_musl_eabi/hostapd-wpad-full-internal/hostapd-2021-02-20-59e9794c/wpa_supplicant/wpa_supplicant_multi.a -L/home/saber/Desktop/4/gl-infra-builder/wlan-ap/openwrt/staging_dir/toolchain-arm_cortex-a7_gcc-5.5.0_musl_eabi/usr/lib -L/home/saber/Desktop/4/gl-infra-builder/wlan-ap/openwrt/staging_dir/toolchain-arm_cortex-a7_gcc-5.5.0_musl_eabi/lib -DPIC -fpic -specs=/home/saber/Desktop/4/gl-infra-builder/wlan-ap/openwrt/include/hardened-ld-pie.specs -znow -zrelro -Wl,--gc-sections -flto=jobserver -fuse-linker-plugin -lubox -lubus -lm -lnl-tiny
    4. /home/saber/Desktop/4/gl-infra-builder/wlan-ap/openwrt/staging_dir/toolchain-arm_cortex-a7_gcc-5.5.0_musl_eabi/lib/gcc/arm-openwrt-linux-muslgnueabi/5.5.0/../../../../arm-openwrt-linux-muslgnueabi/bin/ld: /home/saber/Desktop/4/gl-infra-builder/wlan-ap/openwrt/tmp/cc127xL2.ltrans3.ltrans.o: in function `prepare_auth_resp_fils.lto_priv.2109':
    5. <artificial>:(.text.prepare_auth_resp_fils.lto_priv.2109+0x154): undefined reference to `crypto_ecdh_get_pubkey'
    6. /home/saber/Desktop/4/gl-infra-builder/wlan-ap/openwrt/staging_dir/toolchain-arm_cortex-a7_gcc-5.5.0_musl_eabi/lib/gcc/arm-openwrt-linux-muslgnueabi/5.5.0/../../../../arm-openwrt-linux-muslgnueabi/bin/ld: <artificial>:(.text.prepare_auth_resp_fils.lto_priv.2109+0x6a0): undefined reference to `crypto_ecdh_deinit'
    7. /home/saber/Desktop/4/gl-infra-builder/wlan-ap/openwrt/staging_dir/toolchain-arm_cortex-a7_gcc-5.5.0_musl_eabi/lib/gcc/arm-openwrt-linux-muslgnueabi/5.5.0/../../../../arm-openwrt-linux-muslgnueabi/bin/ld: /home/saber/Desktop/4/gl-infra-builder/wlan-ap/openwrt/tmp/cc127xL2.ltrans3.ltrans.o: in function `handle_auth_fils':
    8. <artificial>:(.text.handle_auth_fils+0x8c): undefined reference to `crypto_ecdh_deinit'
    9. /home/saber/Desktop/4/gl-infra-builder/wlan-ap/openwrt/staging_dir/toolchain-arm_cortex-a7_gcc-5.5.0_musl_eabi/lib/gcc/arm-openwrt-linux-muslgnueabi/5.5.0/../../../../arm-openwrt-linux-muslgnueabi/bin/ld: <artificial>:(.text.handle_auth_fils+0x94): undefined reference to `crypto_ecdh_init'
    10. /home/saber/Desktop/4/gl-infra-builder/wlan-ap/openwrt/staging_dir/toolchain-arm_cortex-a7_gcc-5.5.0_musl_eabi/lib/gcc/arm-openwrt-linux-muslgnueabi/5.5.0/../../../../arm-openwrt-linux-muslgnueabi/bin/ld: <artificial>:(.text.handle_auth_fils+0xd0): undefined reference to `crypto_ecdh_get_pubkey'
    11. /home/saber/Desktop/4/gl-infra-builder/wlan-ap/openwrt/staging_dir/toolchain-arm_cortex-a7_gcc-5.5.0_musl_eabi/lib/gcc/arm-openwrt-linux-muslgnueabi/5.5.0/../../../../arm-openwrt-linux-muslgnueabi/bin/ld: <artificial>:(.text.handle_auth_fils+0x124): undefined reference to `crypto_ecdh_set_peerkey'
    12. /home/saber/Desktop/4/gl-infra-builder/wlan-ap/openwrt/staging_dir/toolchain-arm_cortex-a7_gcc-5.5.0_musl_eabi/lib/gcc/arm-openwrt-linux-muslgnueabi/5.5.0/../../../../arm-openwrt-linux-muslgnueabi/bin/ld: <artificial>:(.text.handle_auth_fils+0x140): undefined reference to `crypto_ecdh_deinit'
    13. /home/saber/Desktop/4/gl-infra-builder/wlan-ap/openwrt/staging_dir/toolchain-arm_cortex-a7_gcc-5.5.0_musl_eabi/lib/gcc/arm-openwrt-linux-muslgnueabi/5.5.0/../../../../arm-openwrt-linux-muslgnueabi/bin/ld: /home/saber/Desktop/4/gl-infra-builder/wlan-ap/openwrt/tmp/cc127xL2.ltrans6.ltrans.o: in function `eap_pwd_element_coord_ok':
    14. <artificial>:(.text.eap_pwd_element_coord_ok+0x10): undefined reference to `crypto_bignum_init_set'
    15. /home/saber/Desktop/4/gl-infra-builder/wlan-ap/openwrt/staging_dir/toolchain-arm_cortex-a7_gcc-5.5.0_musl_eabi/lib/gcc/arm-openwrt-linux-muslgnueabi/5.5.0/../../../../arm-openwrt-linux-muslgnueabi/bin/ld: <artificial>:(.text.eap_pwd_element_coord_ok+0x24): undefined reference to `crypto_bignum_is_zero'
    16. /home/saber/Desktop/4/gl-infra-builder/wlan-ap/openwrt/staging_dir/toolchain-arm_cortex-a7_gcc-5.5.0_musl_eabi/lib/gcc/arm-openwrt-linux-muslgnueabi/5.5.0/../../../../arm-openwrt-linux-muslgnueabi/bin/ld: <artificial>:(.text.eap_pwd_element_coord_ok+0x38): undefined reference to `crypto_bignum_cmp'
    17. /home/saber/Desktop/4/gl-infra-builder/wlan-ap/openwrt/staging_dir/toolchain-arm_cortex-a7_gcc-5.5.0_musl_eabi/lib/gcc/arm-openwrt-linux-muslgnueabi/5.5.0/../../../../arm-openwrt-linux-muslgnueabi/bin/ld: <artificial>:(.text.eap_pwd_element_coord_ok+0x48): undefined reference to `crypto_bignum_deinit'
    18. /home/saber/Desktop/4/gl-infra-builder/wlan-ap/openwrt/staging_dir/toolchain-arm_cortex-a7_gcc-5.5.0_musl_eabi/lib/gcc/arm-openwrt-linux-muslgnueabi/5.5.0/../../../../arm-openwrt-linux-muslgnueabi/bin/ld: /home/saber/Desktop/4/gl-infra-builder/wlan-ap/openwrt/tmp/cc127xL2.ltrans6.ltrans.o: in function `eap_pwd_reset':
    19. <artificial>:(.text.eap_pwd_reset+0xa4): undefined reference to `crypto_ec_deinit'
    20. /home/saber/Desktop/4/gl-infra-builder/wlan-ap/openwrt/staging_dir/toolchain-arm_cortex-a7_gcc-5.5.0_musl_eabi/lib/gcc/arm-openwrt-linux-muslgnueabi/5.5.0/../../../../arm-openwrt-linux-muslgnueabi/bin/ld: <artificial>:(.text.eap_pwd_reset+0xe4): undefined reference to `crypto_bignum_deinit'
    21. /home/saber/Desktop/4/gl-infra-builder/wlan-ap/openwrt/staging_dir/toolchain-arm_cortex-a7_gcc-5.5.0_musl_eabi/lib/gcc/arm-openwrt-linux-muslgnueabi/5.5.0/../../../../arm-openwrt-linux-muslgnueabi/bin/ld: <artificial>:(.text.eap_pwd_reset+0xe8): undefined reference to `crypto_ec_point_deinit'
    22. /home/saber/Desktop/4/gl-infra-builder/wlan-ap/openwrt/staging_dir/toolchain-arm_cortex-a7_gcc-5.5.0_musl_eabi/lib/gcc/arm-openwrt-linux-muslgnueabi/5.5.0/../../../../arm-openwrt-linux-muslgnueabi/bin/ld: /home/saber/Desktop/4/gl-infra-builder/wlan-ap/openwrt/tmp/cc127xL2.ltrans6.ltrans.o: in function `eap_pwd_get_rand_mask':
    23. <artificial>:(.text.eap_pwd_get_rand_mask+0x14): undefined reference to `crypto_ec_get_order'
    24. /home/saber/Desktop/4/gl-infra-builder/wlan-ap/openwrt/staging_dir/toolchain-arm_cortex-a7_gcc-5.5.0_musl_eabi/lib/gcc/arm-openwrt-linux-muslgnueabi/5.5.0/../../../../arm-openwrt-linux-muslgnueabi/bin/ld: <artificial>:(.text.eap_pwd_get_rand_mask+0x74): undefined reference to `crypto_bignum_add'
    25. /home/saber/Desktop/4/gl-infra-builder/wlan-ap/openwrt/staging_dir/toolchain-arm_cortex-a7_gcc-5.5.0_musl_eabi/lib/gcc/arm-openwrt-linux-muslgnueabi/5.5.0/../../../../arm-openwrt-linux-muslgnueabi/bin/ld: <artificial>:(.text.eap_pwd_get_rand_mask+0x8c): undefined reference to `crypto_bignum_mod'
    26. /home/saber/Desktop/4/gl-infra-builder/wlan-ap/openwrt/staging_dir/toolchain-arm_cortex-a7_gcc-5.5.0_musl_eabi/lib/gcc/arm-openwrt-linux-muslgnueabi/5.5.0/../../../../arm-openwrt-linux-muslgnueabi/bin/ld: <artificial>:(.text.eap_pwd_get_rand_mask+0x9c): undefined reference to `crypto_bignum_is_zero'
    27. /home/saber/Desktop/4/gl-infra-builder/wlan-ap/openwrt/staging_dir/toolchain-arm_cortex-a7_gcc-5.5.0_musl_eabi/lib/gcc/arm-openwrt-linux-muslgnueabi/5.5.0/../../../../arm-openwrt-linux-muslgnueabi/bin/ld: <artificial>:(.text.eap_pwd_get_rand_mask+0xac): undefined reference to `crypto_bignum_is_one'
    28. /home/saber/Desktop/4/gl-infra-builder/wlan-ap/openwrt/staging_dir/toolchain-arm_cortex-a7_gcc-5.5.0_musl_eabi/lib/gcc/arm-openwrt-linux-muslgnueabi/5.5.0/../../../../arm-openwrt-linux-muslgnueabi/bin/ld: /home/saber/Desktop/4/gl-infra-builder/wlan-ap/openwrt/tmp/cc127xL2.ltrans6.ltrans.o: in function `eap_pwd_get_scalar':
    29. <artificial>:(.text.eap_pwd_get_scalar+0x10): undefined reference to `crypto_ec_get_order'
    30. /home/saber/Desktop/4/gl-infra-builder/wlan-ap/openwrt/staging_dir/toolchain-arm_cortex-a7_gcc-5.5.0_musl_eabi/lib/gcc/arm-openwrt-linux-muslgnueabi/5.5.0/../../../../arm-openwrt-linux-muslgnueabi/bin/ld: <artificial>:(.text.eap_pwd_get_scalar+0x1c): undefined reference to `crypto_ec_order_len'

    31. collect2: error: ld returned 1 exit status
    32. make[3]: *** [Makefile:688: /home/saber/Desktop/4/gl-infra-builder/wlan-ap/openwrt/build_dir/target-arm_cortex-a7_musl_eabi/hostapd-wpad-full-internal/hostapd-2021-02-20-59e9794c/.built] Error 1
    33. make[3]: Leaving directory '/home/saber/Desktop/4/gl-infra-builder/wlan-ap/feeds/wifi-ax/hostapd'
    34. time: package/feeds/wifi_ax/hostapd/wpad-full-internal/compile#73.73#2.68#74.91
    35.     ERROR: package/feeds/wifi_ax/hostapd failed to build (build variant: wpad-full-internal).
    36. make[2]: *** [package/Makefile:118: package/feeds/wifi_ax/hostapd/compile] Error 1
    37. make[2]: Leaving directory '/home/saber/Desktop/4/gl-infra-builder/wlan-ap/openwrt'
    38. make[1]: *** [package/Makefile:112: /home/saber/Desktop/4/gl-infra-builder/wlan-ap/openwrt/staging_dir/target-arm_cortex-a7_musl_eabi/stamp/.package_compile] Error 2
    39. make[1]: Leaving directory '/home/saber/Desktop/4/gl-infra-builder/wlan-ap/openwrt'
    40. make: *** [/home/saber/Desktop/4/gl-infra-builder/wlan-ap/openwrt/include/toplevel.mk:230:world] 错误 2
    复制代码
    回复

    使用道具 举报

    4

    主题

    33

    帖子

    238

    积分

    中级会员

    Rank: 3Rank: 3

    积分
    238
     楼主| 发表于 2022-12-15 20:04:08 | 显示全部楼层
    补充一下,都是编译过程都是按照官方的步骤来的,编译环境如下:
    1. saber@ubuntu:~/Desktop/4/gl-infra-builder/wlan-ap/openwrt$ sudo apt install build-essential libncurses5-dev gawk git libssl-dev gettext zlib1g-dev swig unzip time rsync python3 python3-setuptools python3-yaml
    2. 正在读取软件包列表... 完成
    3. 正在分析软件包的依赖关系树      
    4. 正在读取状态信息... 完成      
    5. gawk 已经是最新版 (1:5.0.1+dfsg-1)。
    6. gettext 已经是最新版 (0.19.8.1-10build1)。
    7. libncurses5-dev 已经是最新版 (6.2-0ubuntu2)。
    8. python3 已经是最新版 (3.8.2-0ubuntu2)。
    9. python3-setuptools 已经是最新版 (45.2.0-1)。
    10. time 已经是最新版 (1.7-25.1build1)。
    11. swig 已经是最新版 (4.0.1-5build1)。
    12. build-essential 已经是最新版 (12.8ubuntu1.1)。
    13. git 已经是最新版 (1:2.25.1-1ubuntu3.6)。
    14. libssl-dev 已经是最新版 (1.1.1f-1ubuntu2.16)。
    15. python3-yaml 已经是最新版 (5.3.1-1ubuntu0.1)。
    16. rsync 已经是最新版 (3.1.3-8ubuntu0.4)。
    17. unzip 已经是最新版 (6.0-25ubuntu1.1)。
    18. zlib1g-dev 已经是最新版 (1:1.2.11.dfsg-2ubuntu1.5)。
    19. 升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
    复制代码


    回复

    使用道具 举报

    4

    主题

    33

    帖子

    238

    积分

    中级会员

    Rank: 3Rank: 3

    积分
    238
     楼主| 发表于 2022-12-15 20:55:17 | 显示全部楼层
    找到一个类似的问题链接
    回复

    使用道具 举报

    11

    主题

    224

    帖子

    1041

    积分

    金牌会员

    Rank: 6Rank: 6

    积分
    1041
    发表于 2022-12-19 18:45:36 | 显示全部楼层
    不支持,不要更改相关默认勾选的软件包
    回复

    使用道具 举报

    0

    主题

    834

    帖子

    1684

    积分

    禁止发言

    积分
    1684
    发表于 2023-1-14 02:10:14 | 显示全部楼层
    提示: 作者被禁止或删除 内容自动屏蔽
    回复

    使用道具 举报

    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    Archiver|手机版|小黑屋|gl-inet.cn ( 粤ICP备18130956号 )

    GMT+8, 2024-5-19 01:54 , Processed in 0.022725 second(s), 24 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2021, Tencent Cloud.

    快速回复 返回顶部 返回列表