嵌入式爱好者

查看: 13048|回复: 2

[Ubuntu] LS1046 Make error

[复制链接]

2

主题

2

帖子

10

积分

LS1043A\46A通行证

扫一扫,手机访问本帖
发表于 2021-8-5 15:58:42 | 显示全部楼层 |阅读模式
本帖最后由 betterlte 于 2021-8-5 17:03 编辑

编译到最后一步了,无法make成功。源码是不是不完整  
LD [M]  drivers/net/wireless/intel/iwlwifi/mvm/iwlmvm.o
  AR      drivers/net/wireless/built-in.o
  AR      drivers/net/built-in.o
make[3]: *** [/media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/Makefile:1040: drivers] Error 2
make[3]: Leaving directory '/media/OK10xx-linux-fs/flexbuild/build/linux/linux/arm64/output'
make[2]: *** [Makefile:146: sub-make] Error 2
make[2]: Leaving directory '/media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel'
make[1]: *** [Makefile:25: build-linux] Error 2
make[1]: Leaving directory '/media/OK10xx-linux-fs/flexbuild/packages/linux'
make: *** [Makefile:24: linux] Error 2
make: Leaving directory '/media/OK10xx-linux-fs/flexbuild'

往上查找有下面错误
/media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/include/linux/fsl_qman.h:415:1: error: alignment 1 of ‘struct qm_eqcr_entry’ is less than 8 [-Werror=packed-not-aligned]
  415 | } __packed;
      | ^
/media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/include/linux/fsl_qman.h:469:3: error: alignment 1 of ‘struct <anonymous>’ is less than 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: error: ‘fd’ offset 15 in ‘struct <anonymous>’ isn’t aligned to 8 [-Werror=packed-not-aligned]
  468 |    struct qm_fd fd;
      |                 ^~
/media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/include/linux/fsl_qman.h:486:3: error: alignment 1 of ‘struct <anonymous>’ is less than 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: error: ‘fd’ offset 15 in ‘struct <anonymous>’ isn’t aligned to 8 [-Werror=packed-not-aligned]
  485 |    struct qm_fd fd;
      |                 ^~
/media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/include/linux/fsl_qman.h:1679:1: error: alignment 1 of ‘struct qm_mcr_ceetm_cq_peek_pop_xsfdrread’ is less than 8 [-Werror=packed-not-aligne
]
1679 | } __packed;
      | ^
/media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/include/linux/fsl_qman.h:1677:15: error: ‘fd’ offset 14 in ‘struct qm_mcr_ceetm_cq_peek_pop_xsfdrread’ isn’t aligned to 8 [-Werror=packed-not-aligned]
1677 |  struct qm_fd fd;


打完0001-To-fix-build-error-for-gcc8.patch补丁后,重新编译还是报错gned pointer value [-Werror=address-of-packed-member]
  965 |    &mcr->querycongestion.state, &p->cgrs[0]);
      |    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
  CC      drivers/usb/core/message.o
In file included from /media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/include/linux/byteorder/little_endian.h:5,
                 from /media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/arch/arm64/include/uapi/asm/byteorder.h:23,
                 from /media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/include/asm-generic/bitops/le.h:6,
                 from /media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/arch/arm64/include/asm/bitops.h:50,
                 from /media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/include/linux/bitops.h:38,
                 from /media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/include/linux/kernel.h:11,
                 from /media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/drivers/staging/fsl_qbman/dpa_sys.h:35,
                 from /media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/drivers/staging/fsl_qbman/qman_private.h:32,
                 from /media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/drivers/staging/fsl_qbman/qman_low.h:32,
                 from /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: In function ‘qman_query_cgr’:
/media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/drivers/staging/fsl_qbman/qman_high.c:2255:17: error: taking address of packed member of ‘struct qm_mcr_querycgr’ may result in an unaligned pointer value [-Werror=address-of-packed-member]
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: note: in definition of macro ‘__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: note: in expansion of macro ‘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: In function ‘qman_query_congestion’:
/media/OK10xx-linux-fs/flexbuild/packages/linux/OK10xx-linux-kernel/drivers/staging/fsl_qbman/qman_high.c:2287:17: error: taking address of packed member of ‘struct qm_mcr_querycongestion’ may result in an unaligned pointer value [-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:custom
flex-builder -a arm64 -m ls1046ardb -S 1133

#cp -fr $work_path/build/images/* $current_path/Image_output

cd $current_path

操作系统:UBUNTU20.4 in windows10 subsystem

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

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



回复

使用道具 举报

0

主题

471

帖子

919

积分

发表于 2021-8-6 11:00:40 | 显示全部楼层
我用我们的开发环境编译的没有问题,这个问题没有遇到过,
建议您用我们提供开发环境的环境编译一下
点评回复 支持 反对

使用道具 举报

0

主题

11

帖子

15

积分

发表于 2021-9-14 17:23:44 | 显示全部楼层
没遇到过

干细胞一般价格表
打一针干细胞多少钱
中国批准的干细胞医院
干细胞治疗
造血干细胞
http://blsw.qiuyi.cn/

点评回复 支持 反对

使用道具 举报

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

本版积分规则

QQ|小黑屋| 飞凌嵌入式 ( 冀ICP备12004394号-1 )

GMT+8, 2024-11-24 07:26

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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