-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Closed
Copy link
Labels
area: FlashbugThe issue is a bug, or the PR is fixing a bugThe issue is a bug, or the PR is fixing a bug
Description
Describe the bug
In #52980, drivers.flash.common.default unit test fails to build for beagleconnect_freedom with following message:
FAILED: zephyr/zephyr_pre0.elf zephyr/zephyr_pre0.map
: && ccache /opt/toolchains/zephyr-sdk-0.16.0/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc -gdwarf-4 zephyr/CMakeFiles/zephyr_pre0.dir/misc/empty_file.c.obj -o zephyr/zephyr_pre0.elf -fuse-ld=bfd -Wl,-T zephyr/linker_zephyr_pre0.cmd -Wl,-Map=/__w/zephyr/zephyr/twister-out/beagleconnect_freedom/tests/drivers/flash/common/drivers.flash.common.default/zephyr/zephyr_pre0.map -Wl,--whole-archive app/libapp.a zephyr/libzephyr.a zephyr/arch/common/libarch__common.a zephyr/arch/arch/arm/core/aarch32/libarch__arm__core__aarch32.a zephyr/arch/arch/arm/core/aarch32/cortex_m/libarch__arm__core__aarch32__cortex_m.a zephyr/arch/arch/arm/core/aarch32/mpu/libarch__arm__core__aarch32__mpu.a zephyr/lib/libc/minimal/liblib__libc__minimal.a zephyr/soc/arm/common/cortex_m/libsoc__arm__common__cortex_m.a zephyr/boards/arm/beagle_bcf/libboards__arm__beagle_bcf.a zephyr/subsys/testsuite/ztest/libsubsys__testsuite__ztest.a zephyr/drivers/flash/libdrivers__flash.a zephyr/drivers/spi/libdrivers__spi.a zephyr/drivers/timer/libdrivers__timer.a modules/ti/simplelink/source/ti/devices/cc13x2x7_cc26x2x7/lib..__modules__hal__ti__simplelink__source__ti__devices__cc13x2x7_cc26x2x7.a modules/ti/simplelink/lib..__modules__hal__ti__simplelink.a -Wl,--no-whole-archive zephyr/kernel/libkernel.a zephyr/CMakeFiles/offsets.dir/./arch/arm/core/offsets/offsets.c.obj -L"/opt/toolchains/zephyr-sdk-0.16.0/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/thumb/v7e-m/nofp" -L/__w/zephyr/zephyr/twister-out/beagleconnect_freedom/tests/drivers/flash/common/drivers.flash.common.default/zephyr -lgcc zephyr/arch/common/libisr_tables.a -Wl,--fatal-warnings -no-pie -mcpu=cortex-m4 -mthumb -mabi=aapcs -Wl,--gc-sections -Wl,--build-id=none -Wl,--sort-common=descending -Wl,--sort-section=alignment -Wl,-u,_OffsetAbsSyms -Wl,-u,_ConfigAbsSyms -nostdlib -static -Wl,-X -Wl,-N -Wl,--orphan-handling=warn && cd /__w/zephyr/zephyr/twister-out/beagleconnect_freedom/tests/drivers/flash/common/drivers.flash.common.default/zephyr && /usr/local/bin/cmake -E echo
/opt/toolchains/zephyr-sdk-0.16.0/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd: zephyr/drivers/flash/libdrivers__flash.a(spi_nor.c.obj):(.data.__compound_literal.0+0x0): undefined reference to `__device_dts_ord_13'
/opt/toolchains/zephyr-sdk-0.16.0/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd: zephyr/drivers/spi/libdrivers__spi.a(spi_cc13xx_cc26xx.c.obj): in function `pinctrl_apply_state':
/__w/zephyr/zephyr/twister-out/beagleconnect_freedom/tests/drivers/flash/common/drivers.flash.common.default/../../../../../../../include/zephyr/drivers/pinctrl.h:348: undefined reference to `pinctrl_lookup_state'
/opt/toolchains/zephyr-sdk-0.16.0/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd: zephyr/drivers/spi/libdrivers__spi.a(spi_cc13xx_cc26xx.c.obj): in function `pinctrl_apply_state_direct':
/__w/zephyr/zephyr/twister-out/beagleconnect_freedom/tests/drivers/flash/common/drivers.flash.common.default/../../../../../../../include/zephyr/drivers/pinctrl.h:329: undefined reference to `pinctrl_configure_pins'
/opt/toolchains/zephyr-sdk-0.16.0/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd: zephyr/drivers/spi/libdrivers__spi.a(spi_cc13xx_cc26xx.c.obj):(.rodata.__compound_literal.0+0x0): undefined reference to `__device_dts_ord_13'
/opt/toolchains/zephyr-sdk-0.16.0/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd: zephyr/drivers/spi/libdrivers__spi.a(spi_cc13xx_cc26xx.c.obj):(.rodata.__compound_literal.0+0x8): undefined reference to `__device_dts_ord_13'
/opt/toolchains/zephyr-sdk-0.16.0/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd: zephyr/drivers/spi/libdrivers__spi.a(spi_cc13xx_cc26xx.c.obj):(.rodata.__compound_literal.0+0x10): undefined reference to `__device_dts_ord_13'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
The problem seems to be unrelated to the PR.
To Reproduce
Build driver.flash.common.default for beagleconnect_freedom
Expected behavior
Test builds successfully.
Impact
No one wants to merge PR when unit test doesn't build.
Logs and console output
N/A
Environment (please complete the following information):
Additional context
Test drivers.flash.default was moved and renamed to drivers.flash.common.default in the PR.
Metadata
Metadata
Assignees
Labels
area: FlashbugThe issue is a bug, or the PR is fixing a bugThe issue is a bug, or the PR is fixing a bug