本帖最后由 Saber 于 2022-7-25 03:00 编辑
本人在Ubuntu 20.04下编译,出现以下问题:
-
CC [M] drivers/crypto/msm/ice.o
-
drivers/crypto/msm/ice.c:1461:12: error: 'disable_ice_setup' defined but not used [-Werror=unused-function]
-
static int disable_ice_setup(struct ice_device *ice_dev)
-
^~~~~~~~~~~~~~~~~
-
drivers/crypto/msm/ice.c:1404:12: error: 'enable_ice_setup' defined but not used [-Werror=unused-function]
-
static int enable_ice_setup(struct ice_device *ice_dev)
-
^~~~~~~~~~~~~~~~
-
drivers/crypto/msm/ice.c:1383:27: error: 'get_ice_device_from_storage_type' defined but not used [-Werror=unused-function]
-
static struct ice_device *get_ice_device_from_storage_type
-
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
cc1: all warnings being treated as errors
-
make[8]: *** [scripts/Makefile.build:297: drivers/crypto/msm/ice.o] Error 1
-
make[7]: *** [scripts/Makefile.build:532: drivers/crypto/msm] Error 2
-
make[6]: *** [scripts/Makefile.build:532: drivers/crypto] Error 2
-
make[5]: *** [Makefile:1734: drivers] Error 2
-
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'
-
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
-
make[4]: Leaving directory '/home/saber/Desktop/gl-infra-builder/wlan-ap/feeds/ipq807x/ipq807x'
-
make[3]: *** [Makefile:11: compile] Error 2
-
make[3]: Leaving directory '/home/saber/Desktop/gl-infra-builder/wlan-ap/openwrt/target/linux'
-
time: target/linux/compile#368.59#42.25#419.82
-
ERROR: target/linux failed to build.
-
make[2]: *** [target/Makefile:25: target/linux/compile] Error 1
-
make[2]: Leaving directory '/home/saber/Desktop/gl-infra-builder/wlan-ap/openwrt'
-
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
-
make[1]: Leaving directory '/home/saber/Desktop/gl-infra-builder/wlan-ap/openwrt'
-
make: *** [/home/saber/Desktop/gl-infra-builder/wlan-ap/openwrt/include/toplevel.mk:230:world] 错误 2
复制代码
贴一下我的环境,不知道有没有影响:
-
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
-
[sudo] saber 的密码:
-
正在读取软件包列表... 完成
-
正在分析软件包的依赖关系树
-
正在读取状态信息... 完成
-
注意,选中 'libc6-dev' 而非 'libc-dev'
-
注意,选中 'zlib1g-dev' 而非 'libz-dev'
-
注意,选中 'git' 而非 'git-core'
-
没有可用的软件包 diff,但是它被其它的软件包引用了。
-
这可能意味着这个缺失的软件包可能已被废弃,
-
或者只能在其他发布源中找到
-
然而下列软件包会取代它:
-
diffutils diffutils:i386
-
-
没有可用的软件包 gcc-6,但是它被其它的软件包引用了。
-
这可能意味着这个缺失的软件包可能已被废弃,
-
或者只能在其他发布源中找到
-
-
E: 软件包 diff 没有可安装候选
-
E: 无法定位软件包 find
-
E: 软件包 gcc-6 没有可安装候选
-
E: 无法定位软件包 getopt
-
E: 无法定位软件包 install
-
E: 无法定位软件包 make4.1
-
E: 无法按照 glob ‘make4.1’ 找到任何软件包
-
E: 无法定位软件包 python3.6
-
E: 无法按照 glob ‘python3.6’ 找到任何软件包
-
E: 无法定位软件包 which
-
复制代码
我主要想支持SD卡和USB,所以勾选了一些和USB和MMC驱动相关的选项,我通过__attritube__(unused) 注释掉linux 5.4 上面的相关部分,那个问题暂时解决了,但是现在又出新问题了:
-
/host/sdhci-msm-ice.o: in function `sdhci_msm_ice_get_vops':
-
/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'
-
arm-openwrt-linux-muslgnueabi-ld: drivers/mmc/host/sdhci-msm-ice.o: in function `sdhci_msm_ice_get_pdevice':
-
/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'
-
make[5]: *** [Makefile:1100: vmlinux] Error 1
-
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'
-
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的核了
我知道咋回事了,我编译的时候,以为那个tar.gz 是生成升级包,编译却是编译的安卓系统。。。
,把那个取消就好了
顺便问下萝卜大佬,我做出来的5.4内核的固件,搜不到WiFi信号是咋回事,就是无线中继找不到信号,是缺了哪个驱动呢?