[riot-notifications] [RIOT-OS/RIOT] pkg/openwsn: re-integrate the network stack as a package (#13824)

Peter Kietzmann notifications at github.com
Tue May 26 18:41:14 CEST 2020


I cannot build the application, not even using docker. Some (not all) errors might relate to warnings being treated as errors. Can you have a quick look @fjmolinas?

<details><summary> BUILD_IN_DOCKER=1 BOARD=iotlab-m3 make -C tests/pkg_openwsn clean all </summary>

```
In file included from /data/riotbuild/riotbase/pkg/openwsn/contrib/board.c:35:0:
/data/riotbuild/riotbase/pkg/openwsn/include/openwsn_leds.h:56:30: error: unknown type name 'leds_config_t'
 void ledpins_riot_init(const leds_config_t *user_config);
                              ^~~~~~~~~~~~~
In file included from /data/riotbuild/riotbase/pkg/openwsn/contrib/board.c:36:0:
/data/riotbuild/riotbase/pkg/openwsn/include/openwsn_leds_params.h:71:14: error: unknown type name 'leds_config_t'
 static const leds_config_t openwsn_leds_params[] =
              ^~~~~~~~~~~~~
/data/riotbuild/riotbase/pkg/openwsn/include/openwsn_leds_params.h:76:5: error: braces around scalar initializer [-Werror]
     OPENWSN_LEDS_DEFAULT,
     ^~~~~~~~~~~~~~~~~~~~
/data/riotbuild/riotbase/pkg/openwsn/include/openwsn_leds_params.h:76:5: note: (near initialization for 'openwsn_leds_params[0]')
/data/riotbuild/riotbase/pkg/openwsn/include/openwsn_leds_params.h:65:35: error: field name not in record or union initializer
 #define OPENWSN_LEDS_DEFAULT    { .error = OPENWSN_LEDPIN_ERROR, \
                                   ^
/data/riotbuild/riotbase/pkg/openwsn/include/openwsn_leds_params.h:76:5: note: in expansion of macro 'OPENWSN_LEDS_DEFAULT'
     OPENWSN_LEDS_DEFAULT,
     ^~~~~~~~~~~~~~~~~~~~
/data/riotbuild/riotbase/pkg/openwsn/include/openwsn_leds_params.h:65:35: note: (near initialization for 'openwsn_leds_params[0]')
 #define OPENWSN_LEDS_DEFAULT    { .error = OPENWSN_LEDPIN_ERROR, \
                                   ^
/data/riotbuild/riotbase/pkg/openwsn/include/openwsn_leds_params.h:76:5: note: in expansion of macro 'OPENWSN_LEDS_DEFAULT'
     OPENWSN_LEDS_DEFAULT,
     ^~~~~~~~~~~~~~~~~~~~
/data/riotbuild/riotbase/pkg/openwsn/include/openwsn_leds_params.h:66:35: error: field name not in record or union initializer
                                   .sync = OPENWSN_LEDPIN_SYNC, \
                                   ^
/data/riotbuild/riotbase/pkg/openwsn/include/openwsn_leds_params.h:76:5: note: in expansion of macro 'OPENWSN_LEDS_DEFAULT'
     OPENWSN_LEDS_DEFAULT,
     ^~~~~~~~~~~~~~~~~~~~
/data/riotbuild/riotbase/pkg/openwsn/include/openwsn_leds_params.h:66:35: note: (near initialization for 'openwsn_leds_params[0]')
                                   .sync = OPENWSN_LEDPIN_SYNC, \
                                   ^
/data/riotbuild/riotbase/pkg/openwsn/include/openwsn_leds_params.h:76:5: note: in expansion of macro 'OPENWSN_LEDS_DEFAULT'
     OPENWSN_LEDS_DEFAULT,
     ^~~~~~~~~~~~~~~~~~~~
In file included from /data/riotbuild/riotbase/cpu/stm32f1/include/periph_cpu.h:22:0,
                 from /data/riotbuild/riotbase/drivers/include/periph/pm.h:28,
                 from /data/riotbuild/riotbase/pkg/openwsn/contrib/board.c:30:
/data/riotbuild/riotbase/cpu/stm32_common/include/periph_cpu_common.h:166:29: error: excess elements in scalar initializer [-Werror]
 #define GPIO_PIN(x, y)      ((GPIOA_BASE + (x << 10)) | y)
                             ^
/data/riotbuild/riotbase/boards/common/iotlab/include/board_common.h:72:29: note: in expansion of macro 'GPIO_PIN'
 #define LED1_PIN            GPIO_PIN(PORT_B, 5)
                             ^~~~~~~~
/data/riotbuild/riotbase/pkg/openwsn/include/openwsn_leds_params.h:42:41: note: in expansion of macro 'LED1_PIN'
 #define OPENWSN_LEDPIN_SYNC             LED1_PIN
                                         ^~~~~~~~
/data/riotbuild/riotbase/pkg/openwsn/include/openwsn_leds_params.h:66:43: note: in expansion of macro 'OPENWSN_LEDPIN_SYNC'
                                   .sync = OPENWSN_LEDPIN_SYNC, \
                                           ^~~~~~~~~~~~~~~~~~~
/data/riotbuild/riotbase/pkg/openwsn/include/openwsn_leds_params.h:76:5: note: in expansion of macro 'OPENWSN_LEDS_DEFAULT'
     OPENWSN_LEDS_DEFAULT,
     ^~~~~~~~~~~~~~~~~~~~
/data/riotbuild/riotbase/cpu/stm32_common/include/periph_cpu_common.h:166:29: note: (near initialization for 'openwsn_leds_params[0]')
 #define GPIO_PIN(x, y)      ((GPIOA_BASE + (x << 10)) | y)
                             ^
/data/riotbuild/riotbase/boards/common/iotlab/include/board_common.h:72:29: note: in expansion of macro 'GPIO_PIN'
 #define LED1_PIN            GPIO_PIN(PORT_B, 5)
                             ^~~~~~~~
/data/riotbuild/riotbase/pkg/openwsn/include/openwsn_leds_params.h:42:41: note: in expansion of macro 'LED1_PIN'
 #define OPENWSN_LEDPIN_SYNC             LED1_PIN
                                         ^~~~~~~~
/data/riotbuild/riotbase/pkg/openwsn/include/openwsn_leds_params.h:66:43: note: in expansion of macro 'OPENWSN_LEDPIN_SYNC'
                                   .sync = OPENWSN_LEDPIN_SYNC, \
                                           ^~~~~~~~~~~~~~~~~~~
/data/riotbuild/riotbase/pkg/openwsn/include/openwsn_leds_params.h:76:5: note: in expansion of macro 'OPENWSN_LEDS_DEFAULT'
     OPENWSN_LEDS_DEFAULT,
     ^~~~~~~~~~~~~~~~~~~~
In file included from /data/riotbuild/riotbase/pkg/openwsn/contrib/board.c:36:0:
/data/riotbuild/riotbase/pkg/openwsn/include/openwsn_leds_params.h:67:35: error: field name not in record or union initializer
                                   .radio = OPENWSN_LEDPIN_RADIO, \
                                   ^
/data/riotbuild/riotbase/pkg/openwsn/include/openwsn_leds_params.h:76:5: note: in expansion of macro 'OPENWSN_LEDS_DEFAULT'
     OPENWSN_LEDS_DEFAULT,
     ^~~~~~~~~~~~~~~~~~~~
/data/riotbuild/riotbase/pkg/openwsn/include/openwsn_leds_params.h:67:35: note: (near initialization for 'openwsn_leds_params[0]')
                                   .radio = OPENWSN_LEDPIN_RADIO, \
                                   ^
/data/riotbuild/riotbase/pkg/openwsn/include/openwsn_leds_params.h:76:5: note: in expansion of macro 'OPENWSN_LEDS_DEFAULT'
     OPENWSN_LEDS_DEFAULT,
     ^~~~~~~~~~~~~~~~~~~~
In file included from /data/riotbuild/riotbase/cpu/stm32f1/include/periph_cpu.h:22:0,
                 from /data/riotbuild/riotbase/drivers/include/periph/pm.h:28,
                 from /data/riotbuild/riotbase/pkg/openwsn/contrib/board.c:30:
/data/riotbuild/riotbase/cpu/stm32_common/include/periph_cpu_common.h:161:29: error: excess elements in scalar initializer [-Werror]
 #define GPIO_UNDEF          (0xffffffff)
                             ^
/data/riotbuild/riotbase/pkg/openwsn/include/openwsn_leds_params.h:50:41: note: in expansion of macro 'GPIO_UNDEF'
 #define OPENWSN_LEDPIN_RADIO            GPIO_UNDEF
                                         ^~~~~~~~~~
/data/riotbuild/riotbase/pkg/openwsn/include/openwsn_leds_params.h:67:44: note: in expansion of macro 'OPENWSN_LEDPIN_RADIO'
                                   .radio = OPENWSN_LEDPIN_RADIO, \
                                            ^~~~~~~~~~~~~~~~~~~~
/data/riotbuild/riotbase/pkg/openwsn/include/openwsn_leds_params.h:76:5: note: in expansion of macro 'OPENWSN_LEDS_DEFAULT'
     OPENWSN_LEDS_DEFAULT,
     ^~~~~~~~~~~~~~~~~~~~
/data/riotbuild/riotbase/cpu/stm32_common/include/periph_cpu_common.h:161:29: note: (near initialization for 'openwsn_leds_params[0]')
 #define GPIO_UNDEF          (0xffffffff)
                             ^
/data/riotbuild/riotbase/pkg/openwsn/include/openwsn_leds_params.h:50:41: note: in expansion of macro 'GPIO_UNDEF'
 #define OPENWSN_LEDPIN_RADIO            GPIO_UNDEF
                                         ^~~~~~~~~~
/data/riotbuild/riotbase/pkg/openwsn/include/openwsn_leds_params.h:67:44: note: in expansion of macro 'OPENWSN_LEDPIN_RADIO'
                                   .radio = OPENWSN_LEDPIN_RADIO, \
                                            ^~~~~~~~~~~~~~~~~~~~
/data/riotbuild/riotbase/pkg/openwsn/include/openwsn_leds_params.h:76:5: note: in expansion of macro 'OPENWSN_LEDS_DEFAULT'
     OPENWSN_LEDS_DEFAULT,
     ^~~~~~~~~~~~~~~~~~~~
In file included from /data/riotbuild/riotbase/pkg/openwsn/contrib/board.c:36:0:
/data/riotbuild/riotbase/pkg/openwsn/include/openwsn_leds_params.h:68:35: error: field name not in record or union initializer
                                   .debug = OPENWSN_LEDPIN_DEBUG, \
                                   ^
/data/riotbuild/riotbase/pkg/openwsn/include/openwsn_leds_params.h:76:5: note: in expansion of macro 'OPENWSN_LEDS_DEFAULT'
     OPENWSN_LEDS_DEFAULT,
     ^~~~~~~~~~~~~~~~~~~~
/data/riotbuild/riotbase/pkg/openwsn/include/openwsn_leds_params.h:68:35: note: (near initialization for 'openwsn_leds_params[0]')
                                   .debug = OPENWSN_LEDPIN_DEBUG, \
                                   ^
/data/riotbuild/riotbase/pkg/openwsn/include/openwsn_leds_params.h:76:5: note: in expansion of macro 'OPENWSN_LEDS_DEFAULT'
     OPENWSN_LEDS_DEFAULT,
     ^~~~~~~~~~~~~~~~~~~~
In file included from /data/riotbuild/riotbase/cpu/stm32f1/include/periph_cpu.h:22:0,
                 from /data/riotbuild/riotbase/drivers/include/periph/pm.h:28,
                 from /data/riotbuild/riotbase/pkg/openwsn/contrib/board.c:30:
/data/riotbuild/riotbase/cpu/stm32_common/include/periph_cpu_common.h:166:29: error: excess elements in scalar initializer [-Werror]
 #define GPIO_PIN(x, y)      ((GPIOA_BASE + (x << 10)) | y)
                             ^
/data/riotbuild/riotbase/boards/common/iotlab/include/board_common.h:73:29: note: in expansion of macro 'GPIO_PIN'
 #define LED2_PIN            GPIO_PIN(PORT_C, 10)
                             ^~~~~~~~
/data/riotbuild/riotbase/pkg/openwsn/include/openwsn_leds_params.h:54:41: note: in expansion of macro 'LED2_PIN'
 #define OPENWSN_LEDPIN_DEBUG            LED2_PIN
                                         ^~~~~~~~
/data/riotbuild/riotbase/pkg/openwsn/include/openwsn_leds_params.h:68:44: note: in expansion of macro 'OPENWSN_LEDPIN_DEBUG'
                                   .debug = OPENWSN_LEDPIN_DEBUG, \
                                            ^~~~~~~~~~~~~~~~~~~~
/data/riotbuild/riotbase/pkg/openwsn/include/openwsn_leds_params.h:76:5: note: in expansion of macro 'OPENWSN_LEDS_DEFAULT'
     OPENWSN_LEDS_DEFAULT,
     ^~~~~~~~~~~~~~~~~~~~
/data/riotbuild/riotbase/cpu/stm32_common/include/periph_cpu_common.h:166:29: note: (near initialization for 'openwsn_leds_params[0]')
 #define GPIO_PIN(x, y)      ((GPIOA_BASE + (x << 10)) | y)
                             ^
/data/riotbuild/riotbase/boards/common/iotlab/include/board_common.h:73:29: note: in expansion of macro 'GPIO_PIN'
 #define LED2_PIN            GPIO_PIN(PORT_C, 10)
                             ^~~~~~~~
/data/riotbuild/riotbase/pkg/openwsn/include/openwsn_leds_params.h:54:41: note: in expansion of macro 'LED2_PIN'
 #define OPENWSN_LEDPIN_DEBUG            LED2_PIN
                                         ^~~~~~~~
/data/riotbuild/riotbase/pkg/openwsn/include/openwsn_leds_params.h:68:44: note: in expansion of macro 'OPENWSN_LEDPIN_DEBUG'
                                   .debug = OPENWSN_LEDPIN_DEBUG, \
                                            ^~~~~~~~~~~~~~~~~~~~
/data/riotbuild/riotbase/pkg/openwsn/include/openwsn_leds_params.h:76:5: note: in expansion of macro 'OPENWSN_LEDS_DEFAULT'
     OPENWSN_LEDS_DEFAULT,
     ^~~~~~~~~~~~~~~~~~~~
In file included from /data/riotbuild/riotbase/pkg/openwsn/contrib/board.c:36:0:
/data/riotbuild/riotbase/pkg/openwsn/include/openwsn_leds_params.h:69:35: error: field name not in record or union initializer
                                   .led_on = OPENWSN_LED_ON_STATE }
                                   ^
/data/riotbuild/riotbase/pkg/openwsn/include/openwsn_leds_params.h:76:5: note: in expansion of macro 'OPENWSN_LEDS_DEFAULT'
     OPENWSN_LEDS_DEFAULT,
     ^~~~~~~~~~~~~~~~~~~~
/data/riotbuild/riotbase/pkg/openwsn/include/openwsn_leds_params.h:69:35: note: (near initialization for 'openwsn_leds_params[0]')
                                   .led_on = OPENWSN_LED_ON_STATE }
                                   ^
/data/riotbuild/riotbase/pkg/openwsn/include/openwsn_leds_params.h:76:5: note: in expansion of macro 'OPENWSN_LEDS_DEFAULT'
     OPENWSN_LEDS_DEFAULT,
     ^~~~~~~~~~~~~~~~~~~~
/data/riotbuild/riotbase/pkg/openwsn/include/openwsn_leds_params.h:62:42: error: excess elements in scalar initializer [-Werror]
 #define OPENWSN_LED_ON_STATE             GPIO_LED_HIGH
                                          ^
/data/riotbuild/riotbase/pkg/openwsn/include/openwsn_leds_params.h:69:45: note: in expansion of macro 'OPENWSN_LED_ON_STATE'
                                   .led_on = OPENWSN_LED_ON_STATE }
                                             ^~~~~~~~~~~~~~~~~~~~
/data/riotbuild/riotbase/pkg/openwsn/include/openwsn_leds_params.h:76:5: note: in expansion of macro 'OPENWSN_LEDS_DEFAULT'
     OPENWSN_LEDS_DEFAULT,
     ^~~~~~~~~~~~~~~~~~~~
/data/riotbuild/riotbase/pkg/openwsn/include/openwsn_leds_params.h:62:42: note: (near initialization for 'openwsn_leds_params[0]')
 #define OPENWSN_LED_ON_STATE             GPIO_LED_HIGH
                                          ^
/data/riotbuild/riotbase/pkg/openwsn/include/openwsn_leds_params.h:69:45: note: in expansion of macro 'OPENWSN_LED_ON_STATE'
                                   .led_on = OPENWSN_LED_ON_STATE }
                                             ^~~~~~~~~~~~~~~~~~~~
/data/riotbuild/riotbase/pkg/openwsn/include/openwsn_leds_params.h:76:5: note: in expansion of macro 'OPENWSN_LEDS_DEFAULT'
     OPENWSN_LEDS_DEFAULT,
     ^~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
```

</details>

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/13824#issuecomment-634139993
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20200526/d3acb43e/attachment-0001.htm>


More information about the notifications mailing list