瑞芯微Rockchip开发者社区
直播中

张红

7年用户 1288经验值
私信 关注
[问答]

LS1046编译到最后一步无法成功怎么办

编译到最后一步,无法成功。源码是不完整的  
LD [M] drivers/net/wireless/intel/iwlwifi/mvm/iwlmvm.o
  AR driver/ net/wireless/built-in.o
  AR 驱动程序/net/built-in.o
make[3]: *** [/media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel /Makefile :1040: 驱动程序] 错误 2
make[3]: 离开目录 '/media/OK10xx-linux-fs/flexbuild/build/linux/linux/arm64/output'
make[2]: *** [Makefile:146 : sub-make] 错误 2
make[2]: 离开目录 '/media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel'
make[1]: *** [Makefile:25: build - linux] 错误 2
make[1]: 离开目录 '/media/OK10xx-linux-fs/flexbuild/packages/linux'
make: *** [Makefile:24: linux] 错误 2
make:离开目录'/media/OK10xx -linux-fs/flexbuild'

往上看有下面错误
/media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/include/linux/fsl_qman.h :415:1: :'struct qm_eqcr_entry'错误1 小于8 [-Werror=packed-not-aligned]
  415 | __打包;
      | ^
/media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/include/linux/fsl_qman.h:469:3: 错误:'struct ' 1 小于 8 [ -Werror =packed-not-aligned]
  469 | __packed ern;
      | ^
/media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/include/linux/fsl_qman.h:468:17:错误:'struct '中的'fd'转移15 '是' t 网络到 8 [-Werror=packed-not-aligned]
  468 |结构 qm_fd fd;
      | ^~
/media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/include/linux/fsl_qman.h:486:3: :错误:'struct ' 的体积方式 1 小于 8 [-Werror =packed-not-aligned]
  486 | __packed dcern;
      | ^
/media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/include/linux/fsl_qman.h:485:17:错误:'struct '中的'fd'偏移量15 是' t 错误到 8 [-W=packed-not-aligned]
  485 |结构 qm_fd fd;
      | ^~
/media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/include/linux/fsl_qman.h:1679:1: 错误:'struct qm_mcr_ceetm_cq_peek_pop_xsfdrread' 1 小于 8 [-Werror=包装-不aligne
]
1679 | __打包;
      | ^
/media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/include/linux/fsl_qman.h:1677:15:错误:'struct qm_mcr_ceetm_cq_peek_pop_xsfdrread'中的'fd'插入14'不是'到 8 [-Werror=packed-not-aligned]
1677 | struct qm_fd fd;


打完0001-To-fix-build-error-for-gcc8.patch打打补丁后,重编译还是加工值[-Werror=address-of-packed-member]
  965 | &mcr->querycongestion.state, &p->cgrs[0]);
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
  CC 驱动程序
/u***/core/message.o 包含在 /media/OK10xx-linux-fs/文件中flexbuild/packages/linux/OK10xx-linux-kernel/include/linux/byteorder/little_endian.h:5,
                 来自/media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/arch/ arm64/include/uapi/asm/byteorder.h:23,
                 来自/media/OK10xx-linux-fs/flexbuild/包/linux/OK10xx-linux-kernel/include/asm-generic/bitops/le.h:6,
                 来自/media/OK10xx-linux-fs/flexbuild/packages/ linux/OK10xx-linux-kernel/arch/arm64/include/asm/bitops.h:50,
                 来自/media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/include/linux/bitops. h:38,
                 来自/media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/include/linux/kernel.h:11,
                 来自/media/OK10xx-linux-fs/flexbuild/packages/ linux/OK10xx-linux-kernel/drivers/staging/fsl_qbman/dpa_sys.h:35,
                 来自/media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/drivers/staging/fsl_qbman/qman_private。小时:32,
                 来自/media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/drivers/staging/fsl_qbman/qman_low.h:32,
                 来自/media/OK10xx-linux-fs/flexbuild/packages/linux/ OK10xx-linux-kernel/drivers/staging/fsl_qbman/qman_high.c: 32:
/media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/drivers/staging/fsl_qbman/qman_high.c:在函数'qman_query_cgr'中:
/media/OK10xx-linux-fs/flexbuild/包/linux/OK10xx-linux-kernel/drivers/staging/fsl_qbman/qman_high.c:2255:17: 错误:获取“struct qm_mcr_querycgr”的打包[-Werror=address-of -打包成员]
2255 | be32_to_cpus(&cgrd->cscn_targ_swp );
/media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/include/uapi/linux/byteorder/little_endian.h:101:38: 注意:在宏 '__be32_to_cpus'
  101 的定义中| #define __be32_to_cpus(x) __swab32s((x))
      | ^
/media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/drivers/staging/fsl_qbman/qman_high.c:2255:4:注意:宏'be32_to_cpus'
2255的扩展| be32_to_cpus(&cgrd->cscn_targ_swp );
      | ^~~~~~~~~~~~
/media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/drivers/staging/fsl_qbman/qman_high.c:在函数“qman_query_congestion”中:
/media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/drivers/staging/fsl_qbman/qman_high.c:2287:17: 错误:获取“struct qm_mcr_querycongestion”的打包成员的地址可能会导致未对齐的指针值 [-Werror=address-of-packed-member]
2287 | be32_to_cpus(&congestion->state.__state );
编译脚本:
#!/bin/bash

current_path=$PWD
work_path=$PWD/flexbuild

cd $work_path &&  
. setup.env &&  
#flex-builder -i clean-apps &&  
flex-builder clean &&  
#flex-builder -c linux -a arm6
#flex-builder -c linux:

操作系统:UBUNTU20.4 in windows10细胞

原始文件包OK10xx-linux-fs.tar.bz2

时间比较着急,没时间慢慢debug




回帖(1)

田晴

2022-1-5 10:41:45

  • 我用我们的开发环境的问题,问题没有遇到过,
    建议您用我们提供的开发环境的环境问题
举报

更多回帖

发帖
×
20
完善资料,
赚取积分