Skip to content
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

tests/drivers/gpio/gpio_basic_api fails for imx93_evk/mimx9352/a55 target #72572

Closed
nordic-krch opened this issue May 10, 2024 · 3 comments
Closed
Assignees
Labels
bug The issue is a bug, or the PR is fixing a bug platform: NXP NXP priority: high High impact/importance bug

Comments

@nordic-krch
Copy link
Contributor

nordic-krch commented May 10, 2024

Describe the bug
tests/drivers/gpio/gpio_basic_api/drivers.gpio.2pin fails to compile for imx93_evk/mimx9352/a55

To Reproduce
Steps to reproduce the behavior:

  1. west build -p -b imx93_evk/mimx9352/a55 tests/drivers/gpio/gpio_basic_api/ -T drivers.gpio.2pin
  2. See error

Expected behavior
Test shall compile or configuration be removed.

Impact
CI failures.

Log
https://github.com/zephyrproject-rtos/zephyr/actions/runs/9032434045/job/24820791655?pr=72557#step:12:326

In file included from /__w/zephyr/zephyr/include/zephyr/sys/util_macro.h:34,
                 from /__w/zephyr/zephyr/include/zephyr/sys/util.h:17,
                 from /__w/zephyr/zephyr/include/zephyr/sys/atomic.h:18,
                 from /__w/zephyr/zephyr/include/zephyr/kernel_includes.h:25,
                 from /__w/zephyr/zephyr/include/zephyr/kernel.h:17,
                 from /__w/zephyr/zephyr/drivers/gpio/gpio_adp5585.c:7:
/__w/zephyr/zephyr/include/zephyr/device.h:91:41: error: '__device_dts_ord_175' undeclared here (not in a function); did you mean '__device_dts_ord_177'?
   91 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
      |                                         ^~~~~~~~~
/__w/zephyr/zephyr/include/zephyr/sys/util_internal.h:72:26: note: in definition of macro '__DEBRACKET'
   72 | #define __DEBRACKET(...) __VA_ARGS__
      |                          ^~~~~~~~~~~
/__w/zephyr/zephyr/include/zephyr/sys/util_internal.h:64:9: note: in expansion of macro '__GET_ARG2_DEBRACKET'
   64 |         __GET_ARG2_DEBRACKET(one_or_two_args _if_code, _else_code)
      |         ^~~~~~~~~~~~~~~~~~~~
/__w/zephyr/zephyr/include/zephyr/sys/util_internal.h:59:9: note: in expansion of macro '__COND_CODE'
   59 |         __COND_CODE(_XXXX##_flag, _if_1_code, _else_code)
      |         ^~~~~~~~~~~
/__w/zephyr/zephyr/include/zephyr/sys/util_macro.h:180:9: note: in expansion of macro 'Z_COND_CODE_1'
  180 |         Z_COND_CODE_1(_flag, _if_1_code, _else_code)
      |         ^~~~~~~~~~~~~
/__w/zephyr/zephyr/include/zephyr/devicetree.h:4305:9: note: in expansion of macro 'COND_CODE_1'
 4305 |         COND_CODE_1(DT_HAS_COMPAT_STATUS_OKAY(DT_DRV_COMPAT),   \
      |         ^~~~~~~~~~~
/__w/zephyr/zephyr/include/zephyr/toolchain/common.h:138:23: note: in expansion of macro '_DO_CONCAT'
  138 | #define _CONCAT(x, y) _DO_CONCAT(x, y)
      |                       ^~~~~~~~~~
/__w/zephyr/zephyr/include/zephyr/device.h:91:33: note: in expansion of macro '_CONCAT'
   91 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
      |                                 ^~~~~~~
/__w/zephyr/zephyr/include/zephyr/device.h:228:37: note: in expansion of macro 'DEVICE_NAME_GET'
  228 | #define DEVICE_DT_NAME_GET(node_id) DEVICE_NAME_GET(Z_DEVICE_DT_DEV_ID(node_id))
      |                                     ^~~~~~~~~~~~~~~
/__w/zephyr/zephyr/include/zephyr/device.h:245:34: note: in expansion of macro 'DEVICE_DT_NAME_GET'
  245 | #define DEVICE_DT_GET(node_id) (&DEVICE_DT_NAME_GET(node_id))
      |                                  ^~~~~~~~~~~~~~~~~~
/__w/zephyr/zephyr/drivers/gpio/gpio_adp5585.c:461:28: note: in expansion of macro 'DEVICE_DT_GET'
  461 |                 .mfd_dev = DEVICE_DT_GET(DT_INST_PARENT(inst)),                       \
      |                            ^~~~~~~~~~~~~
/__w/zephyr/zephyr/twister-out/imx93_evk_mimx9352_a55/tests/drivers/gpio/gpio_basic_api/drivers.gpio.2pin/zephyr/include/generated/devicetree_generated.h:23564:51: note: in expansion of macro 'GPIO_ADP5585_INIT'
23564 | #define DT_FOREACH_OKAY_INST_adi_adp5585_gpio(fn) fn(0)
      |                                                   ^~
/__w/zephyr/zephyr/include/zephyr/sys/util_internal.h:105:36: note: in expansion of macro 'DT_FOREACH_OKAY_INST_adi_adp5585_gpio'
  105 | #define UTIL_PRIMITIVE_CAT(a, ...) a##__VA_ARGS__
      |                                    ^
/__w/zephyr/zephyr/drivers/gpio/gpio_adp5585.c:469:1: note: in expansion of macro 'DT_INST_FOREACH_STATUS_OKAY'
  469 | DT_INST_FOREACH_STATUS_OKAY(GPIO_ADP5585_INIT)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~

Environment (please complete the following information):

@nordic-krch nordic-krch added the bug The issue is a bug, or the PR is fixing a bug label May 10, 2024
@aescolar aescolar added the priority: high High impact/importance bug label May 14, 2024
@aescolar
Copy link
Member

aescolar commented May 14, 2024

@nordic-krch can you please link to the PR CI in which this fails? and paste the build error in the log section of the bug report?

@ubieda
Copy link
Collaborator

ubieda commented May 14, 2024

@aescolar I was able to replicate it locally on nordic-krch:nrf54h_gpio, but it's not happening on upstream/main. Can you try rebasing and close if it's no longer an issue, @nordic-krch?

Command I used:

twister -p imx93_evk/mimx9352/a55 --inline-logs -s tests/drivers/gpio/gpio_basic_api/drivers.gpio.2pin

@dleach02
Copy link
Member

Fixed with #72644

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue is a bug, or the PR is fixing a bug platform: NXP NXP priority: high High impact/importance bug
Projects
None yet
Development

No branches or pull requests

5 participants