Advertisement
Guest User

error-log

a guest
Jun 8th, 2021
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.75 KB | None | 0 0
  1. In file included from /microros_ws/firmware/zephyrproject/zephyr/include/toolchain/gcc.h:69,
  2. from /microros_ws/firmware/zephyrproject/zephyr/include/toolchain.h:41,
  3. from /microros_ws/firmware/zephyrproject/zephyr/include/sys/printk.h:11,
  4. from /microros_ws/firmware/zephyr_apps/apps/motor_control/src/main.c:3:
  5. /microros_ws/firmware/zephyrproject/zephyr/include/device.h:79:39: error: '__device_dts_ord_DT_N_S_zephyr_user_P_signal_gpios_IDX_0_PH_ORD' undeclared here (not in a function)
  6. 79 | #define DEVICE_NAME_GET(name) _CONCAT(__device_, name)
  7. | ^~~~~~~~~
  8. /microros_ws/firmware/zephyrproject/zephyr/include/toolchain/common.h:124:26: note: in definition of macro '_DO_CONCAT'
  9. 124 | #define _DO_CONCAT(x, y) x ## y
  10. | ^
  11. /microros_ws/firmware/zephyrproject/zephyr/include/device.h:79:31: note: in expansion of macro '_CONCAT'
  12. 79 | #define DEVICE_NAME_GET(name) _CONCAT(__device_, name)
  13. | ^~~~~~~
  14. /microros_ws/firmware/zephyrproject/zephyr/include/device.h:256:37: note: in expansion of macro 'DEVICE_NAME_GET'
  15. 256 | #define DEVICE_DT_NAME_GET(node_id) DEVICE_NAME_GET(Z_DEVICE_DT_DEV_NAME(node_id))
  16. | ^~~~~~~~~~~~~~~
  17. /microros_ws/firmware/zephyrproject/zephyr/include/device.h:270:34: note: in expansion of macro 'DEVICE_DT_NAME_GET'
  18. 270 | #define DEVICE_DT_GET(node_id) (&DEVICE_DT_NAME_GET(node_id))
  19. | ^~~~~~~~~~~~~~~~~~
  20. /microros_ws/firmware/zephyrproject/zephyr/include/drivers/gpio.h:355:11: note: in expansion of macro 'DEVICE_DT_GET'
  21. 355 | .port = DEVICE_DT_GET(DT_GPIO_CTLR(node_id, prop)), \
  22. | ^~~~~~~~~~~~~
  23. /microros_ws/firmware/zephyr_apps/apps/motor_control/src/app.h:46:36: note: in expansion of macro 'GPIO_DT_SPEC_GET'
  24. 46 | const struct gpio_dt_spec signal = GPIO_DT_SPEC_GET(ZEPHYR_USER_NODE, signal_gpios);
  25. | ^~~~~~~~~~~~~~~~
  26. In file included from /microros_ws/firmware/zephyrproject/zephyr/include/arch/arm/aarch32/arch.h:20,
  27. from /microros_ws/firmware/zephyrproject/zephyr/include/arch/cpu.h:19,
  28. from /microros_ws/firmware/zephyrproject/zephyr/include/kernel_includes.h:33,
  29. from /microros_ws/firmware/zephyrproject/zephyr/include/kernel.h:17,
  30. from /microros_ws/firmware/zephyrproject/zephyr/include/zephyr.h:18,
  31. from /microros_ws/firmware/zephyr_apps/apps/motor_control/src/app.h:5,
  32. from /microros_ws/firmware/zephyr_apps/apps/motor_control/src/main.c:5:
  33. /microros_ws/firmware/zephyrproject/zephyr/include/devicetree.h:76:17: error: 'DT_N_S_zephyr_user_P_signal_gpios_IDX_0_VAL_pin' undeclared here (not in a function); did you mean 'DT_N_S_leds_S_led_0_P_gpios_IDX_0_VAL_pin'?
  34. 76 | #define DT_ROOT DT_N
  35. | ^~~~
  36. /microros_ws/firmware/zephyrproject/zephyr/include/devicetree.h:2210:24: note: in definition of macro 'DT_CAT'
  37. 2210 | #define DT_CAT(a1, a2) a1 ## a2
  38. | ^~
  39. /microros_ws/firmware/zephyrproject/zephyr/include/devicetree.h:920:2: note: in expansion of macro 'DT_PROP'
  40. 920 | DT_PROP(node_id, pha##_IDX_##idx##_VAL_##cell)
  41. | ^~~~~~~
  42. /microros_ws/firmware/zephyrproject/zephyr/include/devicetree/gpio.h:158:2: note: in expansion of macro 'DT_PHA_BY_IDX'
  43. 158 | DT_PHA_BY_IDX(node_id, gpio_pha, idx, pin)
  44. | ^~~~~~~~~~~~~
  45. /microros_ws/firmware/zephyrproject/zephyr/include/devicetree/gpio.h:169:2: note: in expansion of macro 'DT_GPIO_PIN_BY_IDX'
  46. 169 | DT_GPIO_PIN_BY_IDX(node_id, gpio_pha, 0)
  47. | ^~~~~~~~~~~~~~~~~~
  48. /microros_ws/firmware/zephyrproject/zephyr/include/drivers/gpio.h:356:10: note: in expansion of macro 'DT_GPIO_PIN'
  49. 356 | .pin = DT_GPIO_PIN(node_id, prop), \
  50. | ^~~~~~~~~~~
  51. /microros_ws/firmware/zephyr_apps/apps/motor_control/src/app.h:46:36: note: in expansion of macro 'GPIO_DT_SPEC_GET'
  52. 46 | const struct gpio_dt_spec signal = GPIO_DT_SPEC_GET(ZEPHYR_USER_NODE, signal_gpios);
  53. | ^~~~~~~~~~~~~~~~
  54. /microros_ws/firmware/zephyrproject/zephyr/include/sys/util_internal.h:84:26: note: in expansion of macro 'UTIL_PRIMITIVE_CAT'
  55. 84 | #define UTIL_CAT(a, ...) UTIL_PRIMITIVE_CAT(a, __VA_ARGS__)
  56. | ^~~~~~~~~~~~~~~~~~
  57. /microros_ws/firmware/zephyrproject/zephyr/include/devicetree.h:2192:2: note: in expansion of macro 'UTIL_CAT'
  58. 2192 | UTIL_CAT(DT_ROOT, MACRO_MAP_CAT(DT_S_PREFIX, __VA_ARGS__))
  59. | ^~~~~~~~
  60. /microros_ws/firmware/zephyrproject/zephyr/include/devicetree.h:2192:11: note: in expansion of macro 'DT_ROOT'
  61. 2192 | UTIL_CAT(DT_ROOT, MACRO_MAP_CAT(DT_S_PREFIX, __VA_ARGS__))
  62. | ^~~~~~~
  63. /microros_ws/firmware/zephyrproject/zephyr/include/devicetree.h:124:22: note: in expansion of macro 'DT_PATH_INTERNAL'
  64. 124 | #define DT_PATH(...) DT_PATH_INTERNAL(__VA_ARGS__)
  65. | ^~~~~~~~~~~~~~~~
  66. /microros_ws/firmware/zephyr_apps/apps/motor_control/src/app.h:45:26: note: in expansion of macro 'DT_PATH'
  67. 45 | #define ZEPHYR_USER_NODE DT_PATH(zephyr_user)
  68. | ^~~~~~~
  69. /microros_ws/firmware/zephyr_apps/apps/motor_control/src/app.h:46:53: note: in expansion of macro 'ZEPHYR_USER_NODE'
  70. 46 | const struct gpio_dt_spec signal = GPIO_DT_SPEC_GET(ZEPHYR_USER_NODE, signal_gpios);
  71. | ^~~~~~~~~~~~~~~~
  72. In file included from /microros_ws/firmware/zephyr_apps/apps/motor_control/src/main.c:5:
  73. /microros_ws/firmware/zephyr_apps/apps/motor_control/src/app.h:49:23: error: expected declaration specifiers or '...' before '&' token
  74. 49 | gpio_pin_configure_dt(&signal, GPIO_OUTPUT_ACTIVE);
  75. | ^
  76. In file included from /microros_ws/firmware/zephyr_apps/apps/motor_control/src/app.h:9,
  77. from /microros_ws/firmware/zephyr_apps/apps/motor_control/src/main.c:5:
  78. /microros_ws/firmware/zephyrproject/zephyr/include/drivers/gpio.h:73:33: error: expected declaration specifiers or '...' before '(' token
  79. 73 | #define GPIO_OUTPUT_ACTIVE (GPIO_OUTPUT | \
  80. | ^
  81. /microros_ws/firmware/zephyr_apps/apps/motor_control/src/app.h:49:32: note: in expansion of macro 'GPIO_OUTPUT_ACTIVE'
  82. 49 | gpio_pin_configure_dt(&signal, GPIO_OUTPUT_ACTIVE);
  83. | ^~~~~~~~~~~~~~~~~~
  84. make[2]: *** [CMakeFiles/app.dir/build.make:63: CMakeFiles/app.dir/src/main.c.obj] Error 1
  85. make[1]: *** [CMakeFiles/Makefile2:2164: CMakeFiles/app.dir/all] Error 2
  86. make: *** [Makefile:84: all] Error 2
  87. FATAL ERROR: command exited with status 2: /usr/bin/cmake --build /microros_ws/firmware/build
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement