Bug 16012 - Cannot compile image for imx8mqevk_defconfig
Summary: Cannot compile image for imx8mqevk_defconfig
Status: RESOLVED MOVED
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: 2024.02
Hardware: PC Linux
: P5 critical
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-29 14:08 UTC by yocto.develop
Modified: 2024-06-15 15:22 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description yocto.develop 2024-03-29 14:08:12 UTC
There are 2 problems:
1. Cannot compile hab.c. We got this error: 
error: array subscript 0 is outside array bounds of ‘uint32_t[0]’ {aka ‘unsigned int[]’} [-Werror=array-bounds]
   71 | #define HAB_RVT_REPORT_STATUS_ARM64             ((unsigned long)*(uint32_t *)(HAB_RVT_BASE + 0x48))

2. We changed the hab.c code to avoid the error but we got this linker error:
error: array subscript 0 is outside array bounds of ‘uint32_t[0]’ {aka ‘unsigned int[]’} [-Werror=array-bounds]
   71 | #define HAB_RVT_REPORT_STATUS_ARM64             ((unsigned long)*(uint32_t *)(HAB_RVT_BASE + 0x48))
Comment 1 Yann E. MORIN 2024-06-15 15:22:43 UTC
Thank you for your report.

The issue tracker for the Buildroot project has been moved to
the Gitlab.com issue tracker:
    https://gitlab.com/buildroot.org/buildroot/-/issues

We are taking this opportunity to close old issues in this old
tracker. If you believe your issue is still relevant, please
open one in the new issue tracker.

Thank you!