添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
本帖最后由 Saber 于 2022-7-25 03:00 编辑
本人在Ubuntu 20.04下编译,出现以下问题:
  1. CC [M]  drivers/crypto/msm/ice.o
  2. drivers/crypto/msm/ice.c:1461:12: error: 'disable_ice_setup' defined but not used [-Werror=unused-function]
  3. static int disable_ice_setup(struct ice_device *ice_dev)
  4. ^~~~~~~~~~~~~~~~~
  5. drivers/crypto/msm/ice.c:1404:12: error: 'enable_ice_setup' defined but not used [-Werror=unused-function]
  6. static int enable_ice_setup(struct ice_device *ice_dev)
  7. ^~~~~~~~~~~~~~~~
  8. drivers/crypto/msm/ice.c:1383:27: error: 'get_ice_device_from_storage_type' defined but not used [-Werror=unused-function]
  9. static struct ice_device *get_ice_device_from_storage_type
  10. ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  11. cc1: all warnings being treated as errors
  12. make[8]: *** [scripts/Makefile.build:297: drivers/crypto/msm/ice.o] Error 1
  13. make[7]: *** [scripts/Makefile.build:532: drivers/crypto/msm] Error 2
  14. make[6]: *** [scripts/Makefile.build:532: drivers/crypto] Error 2
  15. make[5]: *** [Makefile:1734: drivers] Error 2
  16. make[5]: Leaving directory '/home/saber/Desktop/gl-infra-builder/wlan-ap/openwrt/build_dir/target-arm_cortex-a7_musl_eabi/linux-ipq807x_ipq60xx/linux-5.4.164-qsdk-d5fcb18e5420670c8734c6a659873e73adab6dac'
  17. make[4]: *** [Makefile:24: /home/saber/Desktop/gl-infra-builder/wlan-ap/openwrt/build_dir/target-arm_cortex-a7_musl_eabi/linux-ipq807x_ipq60xx/linux-5.4.164-qsdk-d5fcb18e5420670c8734c6a659873e73adab6dac/.modules] Error 2
  18. make[4]: Leaving directory '/home/saber/Desktop/gl-infra-builder/wlan-ap/feeds/ipq807x/ipq807x'
  19. make[3]: *** [Makefile:11: compile] Error 2
  20. make[3]: Leaving directory '/home/saber/Desktop/gl-infra-builder/wlan-ap/openwrt/target/linux'
  21. time: target/linux/compile#368.59#42.25#419.82
  22. ERROR: target/linux failed to build.
  23. make[2]: *** [target/Makefile:25: target/linux/compile] Error 1
  24. make[2]: Leaving directory '/home/saber/Desktop/gl-infra-builder/wlan-ap/openwrt'
  25. make[1]: *** [target/Makefile:18: /home/saber/Desktop/gl-infra-builder/wlan-ap/openwrt/staging_dir/target-arm_cortex-a7_musl_eabi/stamp/.target_compile] Error 2
  26. make[1]: Leaving directory '/home/saber/Desktop/gl-infra-builder/wlan-ap/openwrt'
  27. make: *** [/home/saber/Desktop/gl-infra-builder/wlan-ap/openwrt/include/toplevel.mk:230:world] 错误 2
复制代码

贴一下我的环境,不知道有没有影响:
  1. saber@ubuntu:~/Desktop/gl-infra-builder$ sudo apt install binutils bzip2 diff find flex gawk gcc-6+ getopt grep install libc-dev libz-dev make4.1+ perl python3.6+ rsync subversion unzip which libncurses5-dev zlib1g-dev gawk gcc-multilib g++-multilib flex git-core gettext libssl-dev ocaml sharutils re2c -y
  2. [sudo] saber 的密码:
  3. 正在读取软件包列表... 完成
  4. 正在分析软件包的依赖关系树
  5. 正在读取状态信息... 完成
  6. 注意,选中 'libc6-dev' 而非 'libc-dev'
  7. 注意,选中 'zlib1g-dev' 而非 'libz-dev'
  8. 注意,选中 'git' 而非 'git-core'
  9. 没有可用的软件包 diff,但是它被其它的软件包引用了。
  10. 这可能意味着这个缺失的软件包可能已被废弃,
  11. 或者只能在其他发布源中找到
  12. 然而下列软件包会取代它:
  13. diffutils diffutils:i386

  14. 没有可用的软件包 gcc-6,但是它被其它的软件包引用了。
  15. 这可能意味着这个缺失的软件包可能已被废弃,
  16. 或者只能在其他发布源中找到

  17. E: 软件包 diff 没有可安装候选
  18. E: 无法定位软件包 find
  19. E: 软件包 gcc-6 没有可安装候选
  20. E: 无法定位软件包 getopt
  21. E: 无法定位软件包 install
  22. E: 无法定位软件包 make4.1
  23. E: 无法按照 glob ‘make4.1’ 找到任何软件包
  24. E: 无法定位软件包 python3.6
  25. E: 无法按照 glob ‘python3.6’ 找到任何软件包
  26. E: 无法定位软件包 which
复制代码
这是饭店 发表于 2022-7-24 21:43
有没有可能你选了一些不该选的东西

我主要想支持SD卡和USB,所以勾选了一些和USB和MMC驱动相关的选项,我通过__attritube__(unused) 注释掉linux 5.4 上面的相关部分,那个问题暂时解决了,但是现在又出新问题了:

  1. /host/sdhci-msm-ice.o: in function `sdhci_msm_ice_get_vops':
  2. /home/saber/Desktop/gl-infra-builder/wlan-ap/openwrt/build_dir/target-arm_cortex-a7_musl_eabi/linux-ipq807x_ipq60xx/linux-5.4.164-qsdk-d5fcb18e5420670c8734c6a659873e73adab6dac/drivers/mmc/host/sdhci-msm-ice.c:55: undefined reference to `qcom_ice_get_variant_ops'
  3. arm-openwrt-linux-muslgnueabi-ld: drivers/mmc/host/sdhci-msm-ice.o: in function `sdhci_msm_ice_get_pdevice':
  4. /home/saber/Desktop/gl-infra-builder/wlan-ap/openwrt/build_dir/target-arm_cortex-a7_musl_eabi/linux-ipq807x_ipq60xx/linux-5.4.164-qsdk-d5fcb18e5420670c8734c6a659873e73adab6dac/drivers/mmc/host/sdhci-msm-ice.c:38: undefined reference to `qcom_ice_get_pdevice'
  5. make[5]: *** [Makefile:1100: vmlinux] Error 1
  6. make[5]: Leaving directory '/home/saber/Desktop/gl-infra-builder/wlan-ap/openwrt/build_dir/target-arm_cortex-a7_musl_eabi/linux-ipq807x_ipq60xx/linux-5.4.164-qsdk-d5fcb18e5420670c8734c6a659873e73adab6dac'
  7. make[4]: *** [Makefile:24: /home/saber/Desktop/gl-infra-builder/wlan-ap/openwrt/build_dir/target-arm_cortex-a7_musl_eabi/linux-ipq807x_ipq60xx/linux-5.4.164-qsdk-d5fcb18e5420670c8734c6a659873e73adab6dac/.modules] Error 2
复制代码

我感觉的是内核编译问题,已经超出我的范围了,不会是虚拟机编译的问题吧?我先滚回去用4.x的核了
萝卜大侠 发表于 2022-7-25 10:55
很明显,你安装依赖环境那一步就没有成功

我知道咋回事了,我编译的时候,以为那个tar.gz 是生成升级包,编译却是编译的安卓系统。。。 ,把那个取消就好了
顺便问下萝卜大佬,我做出来的5.4内核的固件,搜不到WiFi信号是咋回事,就是无线中继找不到信号,是缺了哪个驱动呢?