acassis commented on PR #19815:
URL: https://github.com/apache/nuttx/pull/19815#issuecomment-5750463032

   Compiling locally I see these errors with ESP HAL:
   
   ```
   $ make -j
   Create version.h
   Cloning Espressif HAL for 3rd Party Platforms
   Clone: chip/esp-hal-3rdparty LN: platform/board to 
/home/alan/nuttxspace/apps/platform/dummy
   Register: nsh
   Register: sh
   Register: bt
   Register: getprime
   Register: dd
   Register: ostest
   Register: dumpstack
   Espressif HAL for 3rd Party Platforms: cleaning current repository...
   Espressif HAL for 3rd Party Platforms: 
8d0a898910084206721a0892ab093021bca1496a
   Espressif HAL for 3rd Party Platforms: initializing submodules...
   Applying patches...
   CC:  
chip/esp-hal-3rdparty/components/esp_adc/esp32c3/curve_fitting_coefficients.c
   CC:  chip/esp-hal-3rdparty/components/efuse/esp32c3/esp_efuse_table.c 
common/espressif/esp_timer_adapter.c:50:3: error: unknown type name 
'esp_timer_handle_t'
      50 |   esp_timer_handle_t hal_timer;     /* HAL timer handle */
         |   ^~~~~~~~~~~~~~~~~~
   common/espressif/esp_timer_adapter.c: In function 'esp_hr_timer_create':
   common/espressif/esp_timer_adapter.c:126:3: error: unknown type name 
'esp_timer_create_args_t'
     126 |   esp_timer_create_args_t hal_args;
         |   ^~~~~~~~~~~~~~~~~~~~~~~
   common/espressif/esp_timer_adapter.c:145:11: error: request for member 
'callback' in something not a structure or union
     145 |   hal_args.callback = esp_hr_timer_callback_wrapper;
         |           ^
   common/espressif/esp_timer_adapter.c:146:11: error: request for member 'arg' 
in something not a structure or union
     146 |   hal_args.arg = timer;
         |           ^
   common/espressif/esp_timer_adapter.c:147:11: error: request for member 
'dispatch_method' in something not a structure or union
     147 |   hal_args.dispatch_method = ESP_TIMER_TASK;
         |           ^
   CC:  chip/esp-hal-3rdparty/components/efuse/esp32c3/esp_efuse_utility.c 
common/espressif/esp_timer_adapter.c:147:30: error: 'ESP_TIMER_TASK' undeclared 
(first use in this function)
     147 |   hal_args.dispatch_method = ESP_TIMER_TASK;
         |                              ^~~~~~~~~~~~~~
   common/espressif/esp_timer_adapter.c:147:30: note: each undeclared 
identifier is reported only once for each function it appears in
   common/espressif/esp_timer_adapter.c:148:11: error: request for member 
'name' in something not a structure or union
     148 |   hal_args.name = args->name ? args->name : "nuttx_hr";
         |           ^
   common/espressif/esp_timer_adapter.c:149:11: error: request for member 
'skip_unhandled_events' in something not a structure or union
     149 |   hal_args.skip_unhandled_events = args->skip_unhandled_events;
         |           ^
   common/espressif/esp_timer_adapter.c:151:9: warning: implicit declaration of 
function 'esp_timer_create'; did you mean 'esp_hr_timer_create'? 
[-Wimplicit-function-declaration]
     151 |   ret = esp_timer_create(&hal_args, &timer->hal_timer);
         |         ^~~~~~~~~~~~~~~~
         |         esp_hr_timer_create
   common/espressif/esp_timer_adapter.c: In function 'esp_hr_timer_start':
   common/espressif/esp_timer_adapter.c:194:13: warning: implicit declaration 
of function 'esp_timer_start_periodic'; did you mean 
'esp_hr_timer_start_periodic'? [-Wimplicit-function-declaration]
     194 |       ret = esp_timer_start_periodic(timer->hal_timer, timeout);
         |             ^~~~~~~~~~~~~~~~~~~~~~~~
         |             esp_hr_timer_start_periodic
   CC:  netdev/netdev_lladdrsize.c common/espressif/esp_timer_adapter.c:199:13: 
warning: implicit declaration of function 'esp_timer_start_once'; did you mean 
'esp_hr_timer_start_once'? [-Wimplicit-function-declaration]
     199 |       ret = esp_timer_start_once(timer->hal_timer, timeout);
         |             ^~~~~~~~~~~~~~~~~~~~
         |             esp_hr_timer_start_once
   common/espressif/esp_timer_adapter.c: In function 'esp_hr_timer_stop':
   common/espressif/esp_timer_adapter.c:275:9: warning: implicit declaration of 
function 'esp_timer_stop'; did you mean 'esp_hr_timer_stop'? 
[-Wimplicit-function-declaration]
     275 |   ret = esp_timer_stop(timer->hal_timer);
         |         ^~~~~~~~~~~~~~
         |         esp_hr_timer_stop
   CC:  
chip/esp-hal-3rdparty/components/efuse/src/efuse_controller/keys/with_key_purcommon/espressif/esp_timer_adapter.c:
 In function 'esp_hr_timer_delete':
   common/espressif/esp_timer_adapter.c:331:9: warning: implicit declaration of 
function 'esp_timer_delete'; did you mean 'esp_hr_timer_delete'? 
[-Wimplicit-function-declaration]
     331 |   ret = esp_timer_delete(timer->hal_timer);
         |         ^~~~~~~~~~~~~~~~
         |         esp_hr_timer_delete
   common/espressif/esp_timer_adapter.c: In function 'esp_hr_timer_get_alarm':
   common/espressif/esp_timer_adapter.c:376:10: warning: implicit declaration 
of function 'esp_timer_get_next_alarm'; did you mean 
'esp_timer_impl_set_alarm'? [-Wimplicit-function-declaration]
     376 |   return esp_timer_get_next_alarm();
         |          ^~~~~~~~~~~~~~~~~~~~~~~~
         |          esp_timer_impl_set_alarm
   common/espressif/esp_timer_adapter.c: In function 'esp_hr_timer_init':
   common/espressif/esp_timer_adapter.c:486:9: warning: implicit declaration of 
function 'esp_timer_init'; did you mean 'esp_hr_timer_init'? 
[-Wimplicit-function-declaration]
     486 |   ret = esp_timer_init();
         |         ^~~~~~~~~~~~~~
         |         esp_hr_timer_init
   CC:  irq/irq_dispatch.c make[1]: *** [Makefile:144: esp_timer_adapter.o] 
Error 1
   make[1]: *** Waiting for unfinished jobs....
   make: *** [tools/LibTargets.mk:170: arch/risc-v/src/libarch.a] Error 2
   make: *** Waiting for unfinished jobs....
   ```
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to