cederom commented on issue #17809:
URL: https://github.com/apache/nuttx/issues/17809#issuecomment-3725195479

   Tests on my side:
   
   1. Host:
   
   ```
   % uname -a
   FreeBSD hexagon 14.3-RELEASE-p7 FreeBSD 14.3-RELEASE-p7 GENERIC amd64
   
   % xtensa-esp32-elf-gcc --version
   xtensa-esp32-elf-gcc (crosstool-NG esp-2021r2-patch5) 8.4.0
   Copyright (C) 2018 Free Software Foundation, Inc.
   This is free software; see the source for copying conditions.  There is NO
   warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
   
   % git branch
   * (HEAD detached at nuttx-12.12.0)
   ```
   
   2.  esp32-devkitc:nsh:
   
   ```
   % ./tools/configure.sh -B esp32-devkitc:nsh
   (..)
   #
   # configuration written to .config
   #
   hexagon% gmake -j24
   Create version.h
   LN: platform/board to /XXX/nuttx/nuttx-apps.git/platform/dummy
   Cloning Espressif HAL for 3rd Party Platforms
   Clone: chip/esp-hal-3rdparty Register: dd
   Register: nsh
   Register: sh
   Espressif HAL for 3rd Party Platforms: 
4eed03a15b2678a81dfd1ed0f3bde042b1fdd4c4
   Espressif HAL for 3rd Party Platforms: initializing submodules...
   Applying patches...
   LD: nuttx
   Memory region         Used Size  Region Size  %age Used
                ROM:      207320 B    4194272 B      4.94%
        iram0_0_seg:       30856 B       168 KB     17.94%
        irom0_0_seg:      141784 B    3342304 B      4.24%
        dram0_0_seg:       11744 B     180736 B      6.50%
        drom0_0_seg:       77676 B    4194272 B      1.85%
       rtc_iram_seg:          0 GB         8 KB      0.00%
       rtc_slow_seg:          0 GB         4 KB      0.00%
   rtc_reserved_seg:          24 B         24 B    100.00%
         extmem_seg:          0 GB         4 MB      0.00%
   CP: nuttx.hex
   MKIMAGE: ESP32 binary
   esptool.py -c esp32 elf2image --ram-only-header -fs 4MB -fm dio -ff "40m" -o 
nuttx.bin nuttx
   esptool.py v4.10.0
   Creating esp32 image...
   Image has only RAM segments visible. ROM segments are hidden and SHA256 
digest is not appended.
   Merged 1 ELF section
   Successfully created esp32 image.
   Generated: nuttx.bin
   ```
   
   2. esp32-devkitc:wifinsh:
   
   ```
   % ./tools/configure.sh -B esp32-devkitc:wifinsh
     Copy files
     Select CONFIG_HOST_BSD=y
     Refreshing...
   (..)
   #
   # configuration written to .config
   #
   
   % gmake -j24
   Create version.h
   LN: platform/board to 
/zraid/data/cederom/work/CeDeROM/lab/embedded/nuttx/nuttx-apps.git/platform/dummy
   Downloading: v1.7.12.tar.gz
     % Total    % Received % Xferd  Average Speed   Time    Time     Time  
Current
                                    Dload  Upload   Total   Spent    Left  Speed
     0     0   0     0   0     0     0     0  --:--:-- --:--:-- --:--:--     
0Cloning Espressif HAL for 3rd Party Platforms
     0     0   0     0   0     0     0     0  --:--:-- --:--:-- --:--:--     0
   100 348294   0 348294   0     0 428963     0  --:--:-- --:--:-- --:--:-- 
428963
   Unpacking: v1.7.12.tar.gz -> cJSON
   Register: dd
   Register: nsh
   Register: sh
   Register: ping
   Register: wapi
   Register: renew
   Register: telnetd
   Espressif HAL for 3rd Party Platforms: 
4eed03a15b2678a81dfd1ed0f3bde042b1fdd4c4
   Espressif HAL for 3rd Party Platforms: initializing submodules...
   Applying patches...
   CC:  stdio/lib_fputws.c common/espressif/esp_wifi_event_handler.c: In 
function 'esp_evt_work_cb':
   common/espressif/esp_wifi_event_handler.c:208:13: error: a label can only be 
part of a statement and a declaration is not a statement
                wifi_event_sta_disconnected_t *event =
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   common/espressif/esp_wifi_event_handler.c:210:13: error: expected expression 
before 'wifi_err_reason_t'
                wifi_err_reason_t reason = event->reason;
                ^~~~~~~~~~~~~~~~~
   In file included from common/espressif/esp_wifi_event_handler.c:29:
   common/espressif/esp_wifi_event_handler.c:212:64: error: 'reason' undeclared 
(first use in this function); did you mean 'read'?
                wlinfo("Wi-Fi station disconnected, reason: %u\n", reason);
                                                                   ^~~~~~
   common/espressif/esp_wifi_event_handler.c:212:64: note: each undeclared 
identifier is reported only once for each function it appears in
   CC:  chip/esp-hal-3rdparty/components/mbedtls/mbedtls/library/ecp_curves.c 
gmake[1]: *** [Makefile:146: esp_wifi_event_handler.o] Error 1
   gmake[1]: *** Waiting for unfinished jobs....
   CC:  string/lib_bsdmemccpy.c gmake: *** [tools/LibTargets.mk:170: 
arch/xtensa/src/libarch.a] Error 2
   gmake: *** Waiting for unfinished jobs....
   ```
   
   3. Let's try on master:
   
   ```
   % git checkout master
   % ./tools/configure.sh -B esp32-devkitc:wifinsh
     Copy files
     Select CONFIG_HOST_BSD=y
     Refreshing...
   (..)
   #
   # configuration written to .config
   #
   
   % gmake -j24
   Create version.h
   LN: platform/board to 
/zraid/data/cederom/work/CeDeROM/lab/embedded/nuttx/nuttx-apps.git/platform/dummy
   Downloading: v1.7.12.tar.gz
     % Total    % Received % Xferd  Average Speed   Time    Time     Time  
Current
                                    Dload  Upload   Total   Spent    Left  Speed
     0     0   0     0   0     0     0     0  --:--:-- --:--:-- --:--:--     
0Cloning Espressif HAL for 3rd Party Platforms
     0     0   0     0   0     0     0     0  --:--:-- --:--:-- --:--:--     0
   100 348294   0 348294   0     0 493534     0  --:--:-- --:--:-- --:--:-- 
493534
   Unpacking: v1.7.12.tar.gz -> cJSON
   Register: telnetd
   Register: nsh
   Register: sh
   Register: dd
   Register: ping
   Register: renew
   Register: wapi
   Espressif HAL for 3rd Party Platforms: 
b9472bd56b916cced7447e25c2b2e1390d7e0d90
   Espressif HAL for 3rd Party Platforms: initializing submodules...
   Applying patches...
   common/espressif/esp_wifi_event_handler.c: In function 'esp_evt_work_cb':
   common/espressif/esp_wifi_event_handler.c:208:13: error: a label can only be 
part of a statement and a declaration is not a statement
                wifi_event_sta_disconnected_t *event =
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   common/espressif/esp_wifi_event_handler.c:210:13: error: expected expression 
before 'wifi_err_reason_t'
                wifi_err_reason_t reason = event->reason;
                ^~~~~~~~~~~~~~~~~
   CC:  stdio/lib_vfscanf.c In file included from 
common/espressif/esp_wifi_event_handler.c:29:
   common/espressif/esp_wifi_event_handler.c:212:64: error: 'reason' undeclared 
(first use in this function); did you mean 'read'?
                wlinfo("Wi-Fi station disconnected, reason: %u\n", reason);
                                                                   ^~~~~~
   common/espressif/esp_wifi_event_handler.c:212:64: note: each undeclared 
identifier is reported only once for each function it appears in
   CC:  stdio/lib_tmpfile.c gmake[1]: *** [Makefile:146: 
esp_wifi_event_handler.o] Error 1
   gmake[1]: *** Waiting for unfinished jobs....
   gmake: *** [tools/LibTargets.mk:170: arch/xtensa/src/libarch.a] Error 2
   gmake: *** Waiting for unfinished jobs....
   ```
   
   4. Let's try to update build tools (TODO).


-- 
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