- 积分
- 10
贡献57
飞刀10 FD
注册时间2021-7-1
在线时间1 小时
扫一扫,手机访问本帖
|
本帖最后由 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
|
|