Skip to content

samples/posix/gettimeofday build warnings for frdm_mcxn947 #91130

Closed
@DerekSnell

Description

@DerekSnell
Collaborator

Describe the bug

This regression issue introduced build warnings in this sample, which blocks PRs with CI build failures.

Regression caused by 293b8d6

Regression

  • This is a regression.

Steps to reproduce

west twister -p frdm_mcxn947/mcxn947/cpu0/qspi -s sample.posix.gettimeofday --no-detailed-test-id

or

west build -p -b frdm_mcxn947/mcxn947/cpu0/qspi samples/posix/gettimeofday -T sample.posix.gettimeofday

Relevant log output

-- west build: making build dir  gettimeofday pristine
-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application:  zephyrproject/zephyr/samples/posix/gettimeofday
-- CMake version: 4.0.2
-- Found Python3: /usr/bin/python3 (found suitable version "3.10.12", minimum required is "3.10") found components: Interpreter
-- Cache files will be written to:  .cache/zephyr
-- Zephyr version: 4.1.99 ( zephyrproject/zephyr)
-- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
-- Board: frdm_mcxn947, qualifiers: mcxn947/cpu0/qspi
-- ZEPHYR_TOOLCHAIN_VARIANT not set, trying to locate Zephyr SDK
-- Found host-tools: zephyr 0.17.1 ( zephyr-sdk-0.17.1)
-- Found toolchain: zephyr 0.17.1 ( zephyr-sdk-0.17.1)
-- Found Dtc:  zephyr-sdk-0.17.1/sysroots/x86_64-pokysdk-linux/usr/bin/dtc (found suitable version "1.7.0", minimum required is "1.4.6")
-- Found BOARD.dts:  zephyrproject/zephyr/boards/nxp/frdm_mcxn947/frdm_mcxn947_mcxn947_cpu0_qspi.dts
-- Generated zephyr.dts:  gettimeofday/zephyr/zephyr.dts
-- Generated pickled edt:  gettimeofday/zephyr/edt.pickle
-- Generated devicetree_generated.h:  gettimeofday/zephyr/include/generated/zephyr/devicetree_generated.h
Parsing  zephyrproject/zephyr/Kconfig
Loaded configuration ' zephyrproject/zephyr/boards/nxp/frdm_mcxn947/frdm_mcxn947_mcxn947_cpu0_qspi_defconfig'
Merged configuration ' zephyrproject/zephyr/samples/posix/gettimeofday/prj.conf'
Configuration saved to ' gettimeofday/zephyr/.config'
Kconfig header saved to ' gettimeofday/zephyr/include/generated/zephyr/autoconf.h'
-- Found GnuLd:  zephyr-sdk-0.17.1/arm-zephyr-eabi/arm-zephyr-eabi/bin/ld.bfd (found version "2.38")
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- The ASM compiler identification is GNU
-- Found assembler:  zephyr-sdk-0.17.1/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
CMake Warning at  zephyrproject/zephyr/subsys/random/CMakeLists.txt:12 (message):


      Warning: CONFIG_TIMER_RANDOM_GENERATOR and CONFIG_TEST_CSPRNG_GENERATOR are
      not truly random generators. This capability is not secure and it is
      provided for testing purposes only. Use it carefully.


-- Looking for device MCXN947 in  zephyrproject/modules/hal/nxp/mcux/mcux-sdk-ng/devices/
-- Found device folder:  zephyrproject/modules/hal/nxp/mcux/mcux-sdk-ng/devices/MCX/MCXN/MCXN947
-- Using ccache: /usr/bin/ccache
-- Found gen_kobject_list:  zephyrproject/zephyr/scripts/build/gen_kobject_list.py
CMake Warning at  zephyrproject/zephyr/CMakeLists.txt:1021 (message):
  No SOURCES given to Zephyr library: drivers__entropy

  Excluding target from build.


-- Configuring done (4.7s)
-- Generating done (0.2s)
-- Build files have been written to:  gettimeofday
-- west build: building application
[1/270] Preparing syscall dependency handling

[2/270] Generating include/generated/zephyr/version.h
-- Zephyr version: 4.1.99 ( zephyrproject/zephyr), build: v4.1.0-5121-g293b8d600336
[195/270] Building C object zephyr/drivers/ethernet/CMakeFiles/drivers__ethernet.dir/eth_nxp_enet_qos/eth_nxp_enet_qos_mac.c.obj
 zephyrproject/zephyr/drivers/ethernet/eth_nxp_enet_qos/eth_nxp_enet_qos_mac.c: In function 'eth_nxp_enet_qos_mac_isr':
 zephyrproject/zephyr/drivers/ethernet/eth_nxp_enet_qos/eth_nxp_enet_qos_mac.c:292:18: warning: unused variable 'mac_rx_tx_status' [-Wunused-variable]
  292 |         uint32_t mac_rx_tx_status = base->MAC_RX_TX_STATUS;
      |                  ^~~~~~~~~~~~~~~~
 zephyrproject/zephyr/drivers/ethernet/eth_nxp_enet_qos/eth_nxp_enet_qos_mac.c:291:18: warning: unused variable 'mac_interrupts' [-Wunused-variable]
  291 |         uint32_t mac_interrupts = base->MAC_INTERRUPT_STATUS;
      |                  ^~~~~~~~~~~~~~
[270/270] Linking C executable zephyr/zephyr.elf
Memory region         Used Size  Region Size  %age Used
           FLASH:      143872 B         8 MB      1.72%
             RAM:       44112 B       320 KB     13.46%
           SRAMX:          0 GB        96 KB      0.00%
        IDT_LIST:          0 GB        32 KB      0.00%
Generating files from  gettimeofday/zephyr/zephyr.elf for board: frdm_mcxn947

Impact

Functional Limitation – Some features not working as expected, but system usable.

Environment

No response

Additional Context

No response

Metadata

Metadata

Assignees

Labels

RegressionSomething, which was working, does not anymorearea: EthernetbugThe issue is a bug, or the PR is fixing a bugplatform: NXP DriversNXP Semiconductors, drivers

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    Participants

    @DerekSnell

    Issue actions

      samples/posix/gettimeofday build warnings for frdm_mcxn947 · Issue #91130 · zephyrproject-rtos/zephyr