-
Notifications
You must be signed in to change notification settings - Fork 424
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compile error - array subscript #339
Comments
I am seeing the same issue building with the nRF Connect SDK v2.5.0... Makefile:392: update target '_build/build-wio_tracker_1110/bootloader_settings.o' due to: lib/sdk11/components/libraries/bootloader_dfu/bootloader_settings.c |
what is your |
(redboard-west) b00p@lappy:~/workspaces/work-lora/redboard/ncs/sidewalk/samples/wm1110-asset-tracker/bootloader/Adafruit_nRF52_Bootloader$ arm-none-eabi-gcc --version |
hmm, weird i have the same version, but it compile just fine
|
Hmmmm. When I checked the version, my environment was default. When I had the error, I might have been using a different build environment. These are the gcc versions I have on my system beyond 13.2.1.... root@lappy:/# ./home/b00p/SimplicityStudio5/SimplicityStudio_v5/developer/toolchains/gnu_arm/12.2.rel1_2023.7/bin/arm-none-eabi-gcc --version root@lappy:/# ./home/b00p/SimplicityStudio5/SimplicityStudio_v5/developer/toolchains/gnu_arm/10.3_2021.10/bin/arm-none-eabi-gcc --version Those are all the arm gcc versions I have beyond 13.2.1. |
what is your git hash, maybe try to update if it isn't latest |
Same here,
arm-none-eabi-gcc (Arch Repository) 14.1.0 compiles only if I delete -Werror from the makefile |
It looks like this was introduced as a feature in GCC v12: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105523 . |
It looks like it can be resolved by adding
|
Operating System
Linux
INFO_UF2.TXT
I have no info_uf2.txt
What happened ?
Installed all perquisites, tried to make the bootloader for one board, and it failed
Using Manjaro, latest kernel, latest updates
make BOARD=feather_nrf52840_express all
How to reproduce ?
Issue the make BOARD=feather_nrf52840_express all on a Manjaro system
Debug Log
`make BOARD=feather_nrf52840_express all
CC dfu_ble_svc.c
CC dfu_init.c
CC flash_nrf5x.c
CC main.c
CC screen.c
CC images.c
CC boards.c
CC nrfx_power.c
CC nrfx_nvmc.c
CC system_nrf52840.c
CC bootloader.c
CC bootloader_settings.c
lib/sdk11/components/libraries/bootloader_dfu/bootloader_settings.c: In function 'bootloader_mbr_addrs_populate':
lib/sdk11/components/libraries/bootloader_dfu/bootloader_settings.c:45:7: error: array subscript 0 is outside array bounds of 'const uint32_t[0]' {aka 'const long unsigned int[]'} [-Werror=array-bounds=]
45 | if (*(const uint32_t *)MBR_BOOTLOADER_ADDR == 0xFFFFFFFF)
compilation terminated due to -Wfatal-errors.
cc1: all warnings being treated as errors
make: *** [Makefile:412: _build/build-feather_nrf52840_express/bootloader_settings.o] Error 1`
Screenshots
No response
The text was updated successfully, but these errors were encountered: