espressif / esp-at

AT application for ESP32/ESP32-C2/ESP32-C3/ESP32-C6/ESP8266
Apache License 2.0
905 stars 821 forks source link

Compile error following README instructions #41

Closed tmedicci closed 7 years ago

tmedicci commented 7 years ago

Hello, I've installed ESP-IDF just now and I really compiled and flashed containing examples. However, I tried to compile ESP32-at environment and I've got the following error:

I'm using Ubuntu 16.04.3 64-bit on a VM. The ESP-IDF path from esp32-at (cloned from this repository) was added to PATH environment, as mentioned on instructions.

WARNING: Toolchain version is not supported: crosstool-NG crosstool-ng-1.22.0-73-ge28a011 Expected to see version: crosstool-NG crosstool-ng-1.22.0-61-gab8375a Please check ESP-IDF setup instructions and update the toolchain, or proceed at your own risk. WARNING: Toolchain version is not supported: crosstool-NG crosstool-ng-1.22.0-73-ge28a011 Expected to see version: crosstool-NG crosstool-ng-1.22.0-61-gab8375a Please check ESP-IDF setup instructions and update the toolchain, or proceed at your own risk. CC src/efuse.o CC src/bootloader_flash.o CC src/secure_boot_signatures.o CC src/secure_boot.o CC src/flash_partitions.o CC src/esp_image_format.o CC src/flash_encrypt.o CC src/bootloader_random.o AR libbootloader_support.a CC log.o AR liblog.a CC spi_flash_rom_patch.o AR libspi_flash.a CC micro-ecc/uECC.o AR libmicro-ecc.a CC esp32/rtc_pm.o CC esp32/cpu_util.o CC esp32/brownout.o CC esp32/rtc_init.o CC esp32/rtc_sleep.o CC esp32/rtc_time.o CC esp32/rtc_clk.o AR libsoc.a CC bootloader_start.o CC flash_qio_mode.o AR libmain.a LD bootloader.elf esptool.py v2.0 building AT customized partition table at_customize.csv building AT customized partition table succeed generating AT customized partition bins to /home/tmedicci/esp/esp32-at/build/customized_partitions generating ble_data.bin: python /home/tmedicci/esp/esp32-at/tools/BLEService.py -t /home/tmedicci/esp/esp32-at/build/customized_partitions/ble_data.bin /home/tmedicci/esp/esp32-at/components/customized_partitions/raw_data/ble_data/example.csv AT customized partitions successfully generated: ble_data generating server_cert.bin: python /home/tmedicci/esp/esp32-at/tools/AtPKI.py generate_bin -b /home/tmedicci/esp/esp32-at/build/customized_partitions/server_cert cert /home/tmedicci/esp/esp32-at/components/customized_partitions/raw_data/server_cert/example.crt AT customized partitions successfully generated: server_cert generating server_key.bin: python /home/tmedicci/esp/esp32-at/tools/AtPKI.py generate_bin -b /home/tmedicci/esp/esp32-at/build/customized_partitions/server_key key /home/tmedicci/esp/esp32-at/components/customized_partitions/raw_data/server_key/example.key AT customized partitions successfully generated: server_key generating server_ca.bin: python /home/tmedicci/esp/esp32-at/tools/AtPKI.py generate_bin -b /home/tmedicci/esp/esp32-at/build/customized_partitions/server_ca ca /home/tmedicci/esp/esp32-at/components/customized_partitions/raw_data/server_ca/example.crt AT customized partitions successfully generated: server_ca AT customized bin generation finished Building partitions from /home/tmedicci/esp/esp32-at/partitions_at.csv... CC esp_ota_ops.o AR libapp_update.a CC src/efuse.o CC src/bootloader_flash.o CC src/secure_boot_signatures.o CC src/secure_boot.o CC src/flash_partitions.o CC src/esp_image_format.o CC src/flash_encrypt.o CC src/bootloader_random.o AR libbootloader_support.a CC bt.o CC bluedroid/bta/dm/bta_dm_api.o CC bluedroid/bta/dm/bta_dm_sco.o CC bluedroid/bta/dm/bta_dm_ci.o CC bluedroid/bta/dm/bta_dm_act.o CC bluedroid/bta/dm/bta_dm_pm.o CC bluedroid/bta/dm/bta_dm_main.o CC bluedroid/bta/dm/bta_dm_cfg.o CC bluedroid/bta/gatt/bta_gattc_main.o CC bluedroid/bta/gatt/bta_gatts_api.o CC bluedroid/bta/gatt/bta_gattc_cache.o CC bluedroid/bta/gatt/bta_gatts_main.o CC bluedroid/bta/gatt/bta_gattc_api.o CC bluedroid/bta/gatt/bta_gattc_utils.o /home/tmedicci/esp/esp32-at/esp-idf/components/bt/bluedroid/bta/gatt/bta_gattc_utils.c: In function 'bta_gattc_mark_bg_conn': /home/tmedicci/esp/esp32-at/esp-idf/components/bt/bluedroid/bta/gatt/bta_gattc_utils.c:687:18: warning: unused variable 'bdstr' [-Wunused-variable] char bdstr[18] = {0}; ^ CC bluedroid/bta/gatt/bta_gatts_act.o CC bluedroid/bta/gatt/bta_gattc_ci.o CC bluedroid/bta/gatt/bta_gattc_act.o /home/tmedicci/esp/esp32-at/esp-idf/components/bt/bluedroid/bta/gatt/bta_gattc_act.c: In function 'bta_gattc_init_bk_conn': /home/tmedicci/esp/esp32-at/esp-idf/components/bt/bluedroid/bta/gatt/bta_gattc_act.c:524:22: warning: unused variable 'bda' [-Wunused-variable] uint8_t *bda = (uint8_t *)p_data->remote_bda; ^ CC bluedroid/bta/gatt/bta_gatts_utils.o CC bluedroid/bta/hh/bta_hh_api.o CC bluedroid/bta/hh/bta_hh_utils.o CC bluedroid/bta/hh/bta_hh_le.o CC bluedroid/bta/hh/bta_hh_act.o CC bluedroid/bta/hh/bta_hh_main.o CC bluedroid/bta/hh/bta_hh_cfg.o CC bluedroid/bta/sdp/bta_sdp.o CC bluedroid/bta/sdp/bta_sdp_act.o CC bluedroid/bta/sdp/bta_sdp_cfg.o CC bluedroid/bta/sdp/bta_sdp_api.o CC bluedroid/bta/av/bta_av_api.o CC bluedroid/bta/av/bta_av_ssm.o CC bluedroid/bta/av/bta_av_ci.o CC bluedroid/bta/av/bta_av_act.o CC bluedroid/bta/av/bta_av_main.o CC bluedroid/bta/av/bta_av_sbc.o CC bluedroid/bta/av/bta_av_aact.o CC bluedroid/bta/av/bta_av_cfg.o CC bluedroid/bta/ar/bta_ar.o CC bluedroid/bta/sys/bta_sys_main.o CC bluedroid/bta/sys/utl.o CC bluedroid/bta/sys/bta_sys_conn.o CC bluedroid/btcore/bdaddr.o CC bluedroid/btif/bta_gattc_co.o CC bluedroid/btif/bta_dm_co.o CC bluedroid/btif/bta_gatts_co.o CC bluedroid/device/interop.o /home/tmedicci/esp/esp32-at/esp-idf/components/bt/bluedroid/device/interop.c: In function 'interop_match': /home/tmedicci/esp/esp32-at/esp-idf/components/bt/bluedroid/device/interop.c:50:18: warning: unused variable 'bdstr' [-Wunused-variable] char bdstr[20] = {0}; ^ /home/tmedicci/esp/esp32-at/esp-idf/components/bt/bluedroid/device/interop.c: At top level: /home/tmedicci/esp/esp32-at/esp-idf/components/bt/bluedroid/device/interop.c:30:20: warning: 'interop_feature_string' defined but not used [-Wunused-function] static const char *interop_feature_string(const interop_feature_t feature) ^ CC bluedroid/device/controller.o CC bluedroid/gki/gki_ulinux.o CC bluedroid/gki/gki_buffer.o CC bluedroid/hci/buffer_allocator.o CC bluedroid/hci/hci_hal_h4.o /home/tmedicci/esp/esp32-at/esp-idf/components/bt/bluedroid/hci/hci_hal_h4.c: In function 'hci_hal_h4_hdl_rx_packet': /home/tmedicci/esp/esp32-at/esp-idf/components/bt/bluedroid/hci/hci_hal_h4.c:198:17: warning: variable 'len' set but not used [-Wunused-but-set-variable] uint8_t len = 0; ^ CC bluedroid/hci/hci_packet_parser.o CC bluedroid/hci/packet_fragmenter.o CC bluedroid/hci/hci_layer.o CC bluedroid/hci/hci_packet_factory.o CC bluedroid/main/bte_main.o CC bluedroid/main/bte_init.o CC bluedroid/osi/future.o CC bluedroid/osi/hash_map.o CC bluedroid/osi/fixed_queue.o CC bluedroid/osi/allocator.o CC bluedroid/osi/config.o CC bluedroid/osi/list.o CC bluedroid/osi/hash_functions.o CC bluedroid/osi/alarm.o CC bluedroid/osi/buffer.o CC bluedroid/osi/osi_arch.o CC bluedroid/external/sbc/decoder/srce/bitstream-decode.o CC bluedroid/external/sbc/decoder/srce/synthesis-sbc.o CC bluedroid/external/sbc/decoder/srce/decoder-oina.o CC bluedroid/external/sbc/decoder/srce/bitalloc.o CC bluedroid/external/sbc/decoder/srce/framing.o CC bluedroid/external/sbc/decoder/srce/dequant.o CC bluedroid/external/sbc/decoder/srce/alloc.o CC bluedroid/external/sbc/decoder/srce/synthesis-dct8.o CC bluedroid/external/sbc/decoder/srce/bitalloc-sbc.o CC bluedroid/external/sbc/decoder/srce/decoder-private.o CC bluedroid/external/sbc/decoder/srce/synthesis-8-generated.o CC bluedroid/external/sbc/decoder/srce/framing-sbc.o CC bluedroid/external/sbc/decoder/srce/oi_codec_version.o CC bluedroid/external/sbc/decoder/srce/decoder-sbc.o CC bluedroid/btc/core/btc_task.o CC bluedroid/btc/core/btc_main.o CC bluedroid/btc/core/btc_config.o CC bluedroid/btc/core/btc_util.o CC bluedroid/btc/core/btc_storage.o CC bluedroid/btc/core/btc_ble_storage.o /home/tmedicci/esp/esp32-at/esp-idf/components/bt/bluedroid/btc/core/btc_ble_storage.c: In function 'btc_read_le_key': /home/tmedicci/esp/esp32-at/esp-idf/components/bt/bluedroid/btc/core/btc_ble_storage.c:145:18: warning: unused variable 'bd_str' [-Wunused-variable] char bd_str[20] = {0}; ^ CC bluedroid/btc/core/btc_profile_queue.o CC bluedroid/btc/core/btc_alarm.o CC bluedroid/btc/core/btc_manage.o CC bluedroid/btc/core/btc_sec.o CC bluedroid/btc/core/btc_sm.o CC bluedroid/btc/core/btc_dev.o CC bluedroid/btc/core/btc_dm.o /home/tmedicci/esp/esp32-at/esp-idf/components/bt/bluedroid/btc/core/btc_dm.c: In function 'btc_dm_ble_auth_cmpl_evt': /home/tmedicci/esp/esp32-at/esp-idf/components/bt/bluedroid/btc/core/btc_dm.c:121:17: warning: variable 'status' set but not used [-Wunused-but-set-variable] bt_status_t status = BT_STATUS_FAIL; ^ CC bluedroid/btc/profile/esp/blufi/blufi_prf.o CC bluedroid/btc/profile/esp/blufi/blufi_protocol.o CC bluedroid/btc/profile/std/gap/btc_gap_bt.o CC bluedroid/btc/profile/std/gap/btc_gap_ble.o CC bluedroid/btc/profile/std/gatt/btc_gattc.o CC bluedroid/btc/profile/std/gatt/btc_gatt_util.o CC bluedroid/btc/profile/std/gatt/btc_gatts.o CC bluedroid/btc/profile/std/a2dp/bta_av_co.o CC bluedroid/btc/profile/std/a2dp/btc_media_task.o CC bluedroid/btc/profile/std/a2dp/btc_avk.o CC bluedroid/btc/profile/std/avrc/btc_avrc.o CC bluedroid/stack/btm/btm_ble_batchscan.o CC bluedroid/stack/btm/btm_ble_cont_energy.o CC bluedroid/stack/btm/btm_sec.o /home/tmedicci/esp/esp32-at/esp-idf/components/bt/bluedroid/stack/btm/btm_sec.c: In function 'btm_sec_bond_by_transport': /home/tmedicci/esp/esp32-at/esp-idf/components/bt/bluedroid/stack/btm/btm_sec.c:953:23: warning: variable 'p_features' set but not used [-Wunused-but-set-variable] UINT8 *p_features; ^ CC bluedroid/stack/btm/btm_ble.o CC bluedroid/stack/btm/btm_pm.o /home/tmedicci/esp/esp32-at/esp-idf/components/bt/bluedroid/stack/btm/btm_pm.c:954:20: warning: 'mode_to_string' defined but not used [-Wunused-function] static const char *mode_to_string(tBTM_PM_MODE mode) ^ CC bluedroid/stack/btm/btm_ble_adv_filter.o CC bluedroid/stack/btm/btm_inq.o CC bluedroid/stack/btm/btm_main.o CC bluedroid/stack/btm/btm_devctl.o CC bluedroid/stack/btm/btm_ble_privacy.o CC bluedroid/stack/btm/btm_acl.o CC bluedroid/stack/btm/btm_ble_bgconn.o CC bluedroid/stack/btm/btm_dev.o CC bluedroid/stack/btm/btm_ble_gap.o CC bluedroid/stack/btm/btm_ble_multi_adv.o CC bluedroid/stack/btm/btm_ble_addr.o CC bluedroid/stack/btm/btm_sco.o CC bluedroid/stack/btu/btu_hcif.o CC bluedroid/stack/btu/btu_task.o CC bluedroid/stack/btu/btu_init.o CC bluedroid/stack/gap/gap_ble.o /home/tmedicci/esp/esp32-at/esp-idf/components/bt/bluedroid/stack/gap/gap_ble.c: In function 'gap_attr_db_init': /home/tmedicci/esp/esp32-at/esp-idf/components/bt/bluedroid/stack/gap/gap_ble.c:376:21: warning: variable 'status' set but not used [-Wunused-but-set-variable] tGATT_STATUS status; ^ CC bluedroid/stack/gap/gap_conn.o CC bluedroid/stack/gap/gap_api.o CC bluedroid/stack/gap/gap_utils.o CC bluedroid/stack/gatt/gatt_db.o CC bluedroid/stack/gatt/gatt_cl.o CC bluedroid/stack/gatt/gatt_attr.o /home/tmedicci/esp/esp32-at/esp-idf/components/bt/bluedroid/stack/gatt/gatt_attr.c: In function 'gatt_profile_db_init': /home/tmedicci/esp/esp32-at/esp-idf/components/bt/bluedroid/stack/gatt/gatt_attr.c:283:23: warning: variable 'status' set but not used [-Wunused-but-set-variable] tGATT_STATUS status; ^ CC bluedroid/stack/gatt/gatt_main.o CC bluedroid/stack/gatt/gatt_sr.o CC bluedroid/stack/gatt/att_protocol.o CC bluedroid/stack/gatt/gatt_auth.o CC bluedroid/stack/gatt/gatt_api.o /home/tmedicci/esp/esp32-at/esp-idf/components/bt/bluedroid/stack/gatt/gatt_api.c: In function 'GATT_SetIdleTimeout': /home/tmedicci/esp/esp32-at/esp-idf/components/bt/bluedroid/stack/gatt/gatt_api.c:1148:21: warning: variable 'status' set but not used [-Wunused-but-set-variable] BOOLEAN status = FALSE; ^ CC bluedroid/stack/gatt/gatt_utils.o /home/tmedicci/esp/esp32-at/esp-idf/components/bt/bluedroid/stack/gatt/gatt_utils.c: In function 'gatt_end_operation': /home/tmedicci/esp/esp32-at/esp-idf/components/bt/bluedroid/stack/gatt/gatt_utils.c:2130:66: warning: suggest braces around empty body in an 'else' statement [-Wempty-body] operation, p_disc_cmpl_cb, p_cmpl_cb); ^ /home/tmedicci/esp/esp32-at/esp-idf/components/bt/bluedroid/stack/gatt/gatt_utils.c:2076:25: warning: variable 'operation' set but not used [-Wunused-but-set-variable] UINT8 operation; ^ CC bluedroid/stack/hcic/hciblecmds.o CC bluedroid/stack/hcic/hcicmds.o CC bluedroid/stack/l2cap/l2c_main.o /home/tmedicci/esp/esp32-at/esp-idf/components/bt/bluedroid/stack/l2cap/l2c_main.c: In function 'l2c_rcv_acl_data': /home/tmedicci/esp/esp32-at/esp-idf/components/bt/bluedroid/stack/l2cap/l2c_main.c:125:37: warning: variable 'psm' set but not used [-Wunused-but-set-variable] UINT16 l2cap_len, rcv_cid, psm; ^ CC bluedroid/stack/l2cap/l2c_csm.o CC bluedroid/stack/l2cap/l2c_ucd.o CC bluedroid/stack/l2cap/l2cap_client.o CC bluedroid/stack/l2cap/l2c_utils.o CC bluedroid/stack/l2cap/l2c_fcr.o CC bluedroid/stack/l2cap/l2c_link.o CC bluedroid/stack/l2cap/l2c_ble.o CC bluedroid/stack/l2cap/l2c_api.o CC bluedroid/stack/sdp/sdp_utils.o CC bluedroid/stack/sdp/sdp_db.o CC bluedroid/stack/sdp/sdp_discovery.o CC bluedroid/stack/sdp/sdp_main.o CC bluedroid/stack/sdp/sdp_server.o CC bluedroid/stack/sdp/sdp_api.o CC bluedroid/stack/smp/smp_keys.o /home/tmedicci/esp/esp32-at/esp-idf/components/bt/bluedroid/stack/smp/smp_keys.c: In function 'smp_calculate_local_commitment': /home/tmedicci/esp/esp32-at/esp-idf/components/bt/bluedroid/stack/smp/smp_keys.c:1130:81: warning: suggest braces around empty body in an 'if' statement [-Wempty-body] for Just Works/Numeric Comparison models\n"); ^ /home/tmedicci/esp/esp32-at/esp-idf/components/bt/bluedroid/stack/smp/smp_keys.c: In function 'smp_calculate_peer_commitment': /home/tmedicci/esp/esp32-at/esp-idf/components/bt/bluedroid/stack/smp/smp_keys.c:1175:61: warning: suggest braces around empty body in an 'if' statement [-Wempty-body] for Just Works/Numeric Comparison models\n"); ^ CC bluedroid/stack/smp/smp_api.o /home/tmedicci/esp/esp32-at/esp-idf/components/bt/bluedroid/stack/smp/smp_api.c: In function 'SMP_CreateLocalSecureConnectionsOobData': /home/tmedicci/esp/esp32-at/esp-idf/components/bt/bluedroid/stack/smp/smp_api.c:551:14: warning: variable 'bd_addr' set but not used [-Wunused-but-set-variable] UINT8 *bd_addr; ^ CC bluedroid/stack/smp/smp_utils.o CC bluedroid/stack/smp/p_256_ecc_pp.o CC bluedroid/stack/smp/smp_act.o CC bluedroid/stack/smp/smp_cmac.o CC bluedroid/stack/smp/smp_br_main.o CC bluedroid/stack/smp/aes.o CC bluedroid/stack/smp/smp_main.o CC bluedroid/stack/smp/p_256_multprecision.o CC bluedroid/stack/smp/p_256_curvepara.o CC bluedroid/stack/smp/smp_l2c.o CC bluedroid/stack/avct/avct_lcb.o CC bluedroid/stack/avct/avct_lcb_act.o CC bluedroid/stack/avct/avct_l2c.o CC bluedroid/stack/avct/avct_api.o CC bluedroid/stack/avct/avct_ccb.o CC bluedroid/stack/avrc/avrc_pars_ct.o CC bluedroid/stack/avrc/avrc_opt.o CC bluedroid/stack/avrc/avrc_bld_ct.o CC bluedroid/stack/avrc/avrc_pars_tg.o CC bluedroid/stack/avrc/avrc_bld_tg.o CC bluedroid/stack/avrc/avrc_api.o CC bluedroid/stack/avrc/avrc_utils.o CC bluedroid/stack/avrc/avrc_sdp.o CC bluedroid/stack/avdt/avdt_l2c.o CC bluedroid/stack/avdt/avdt_api.o CC bluedroid/stack/avdt/avdt_ccb.o CC bluedroid/stack/avdt/avdt_ccb_act.o CC bluedroid/stack/avdt/avdt_scb.o CC bluedroid/stack/avdt/avdt_msg.o CC bluedroid/stack/avdt/avdt_scb_act.o CC bluedroid/stack/avdt/avdt_ad.o CC bluedroid/stack/a2dp/a2d_sbc.o CC bluedroid/stack/a2dp/a2d_api.o CC bluedroid/utils/bt_utils.o CC bluedroid/api/esp_avrc_api.o CC bluedroid/api/esp_bt_main.o CC bluedroid/api/esp_bt_device.o CC bluedroid/api/esp_gap_bt_api.o CC bluedroid/api/esp_a2dp_api.o CC bluedroid/api/esp_gattc_api.o CC bluedroid/api/esp_blufi_api.o CC bluedroid/api/esp_gap_ble_api.o CC bluedroid/api/esp_gatts_api.o AR libbt.a CC libcoap/src/address.o CC libcoap/src/async.o CC libcoap/src/block.o CC libcoap/src/coap_time.o CC libcoap/src/debug.o CC libcoap/src/encode.o CC libcoap/src/hashkey.o CC libcoap/src/mem.o CC libcoap/src/net.o CC libcoap/src/option.o CC libcoap/src/pdu.o CC libcoap/src/resource.o CC libcoap/src/str.o CC libcoap/src/subscribe.o CC libcoap/src/uri.o CC port/coap_io_socket.o AR libcoap.a CXX cxx_guards.o In file included from /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr.h:148:0, from /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/ext/atomicity.h:35, from /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/bits/basic_string.h:39, from /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/string:52, from /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/random:40, from /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/bits/stl_algo.h:66, from /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/algorithm:62, from /home/tmedicci/esp/esp32-at/esp-idf/components/cxx/./cxx_guards.cpp:20: /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:47:9: error: 'pthread_t' does not name a type typedef pthread_t __gthread_t; ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:48:9: error: 'pthread_key_t' does not name a type typedef pthread_key_t __gthread_key_t; ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:49:9: error: 'pthread_once_t' does not name a type typedef pthread_once_t __gthread_once_t; ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:50:9: error: 'pthread_mutex_t' does not name a type typedef pthread_mutex_t __gthread_mutex_t; ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:51:9: error: 'pthread_mutex_t' does not name a type typedef pthread_mutex_t __gthread_recursive_mutex_t; ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:52:9: error: 'pthread_cond_t' does not name a type typedef pthread_cond_t __gthread_cond_t; ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:101:1: error: 'pthread_once' was not declared in this scope __gthrw(pthread_once) ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:102:1: error: 'pthread_getspecific' was not declared in this scope __gthrw(pthread_getspecific) ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:103:1: error: 'pthread_setspecific' was not declared in this scope __gthrw(pthread_setspecific) ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:105:1: error: 'pthread_create' was not declared in this scope __gthrw(pthread_create) ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:106:1: error: 'pthread_join' was not declared in this scope __gthrw(pthread_join) ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:107:1: error: 'pthread_equal' was not declared in this scope __gthrw(pthread_equal) ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:108:1: error: 'pthread_self' was not declared in this scope __gthrw(pthread_self) ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:109:1: error: 'pthread_detach' was not declared in this scope __gthrw(pthread_detach) ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:111:1: error: 'pthread_cancel' was not declared in this scope __gthrw(pthread_cancel) ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:113:1: error: 'sched_yield' was not declared in this scope __gthrw(sched_yield) ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:115:1: error: 'pthread_mutex_lock' was not declared in this scope __gthrw(pthread_mutex_lock) ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:116:1: error: 'pthread_mutex_trylock' was not declared in this scope __gthrw(pthread_mutex_trylock) ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:120:1: error: 'pthread_mutex_unlock' was not declared in this scope __gthrw(pthread_mutex_unlock) ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:121:1: error: 'pthread_mutex_init' was not declared in this scope __gthrw(pthread_mutex_init) ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:122:1: error: 'pthread_mutex_destroy' was not declared in this scope __gthrw(pthread_mutex_destroy) ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:124:1: error: 'pthread_cond_init' was not declared in this scope __gthrw(pthread_cond_init) ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:125:1: error: 'pthread_cond_broadcast' was not declared in this scope __gthrw(pthread_cond_broadcast) ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:126:1: error: 'pthread_cond_signal' was not declared in this scope __gthrw(pthread_cond_signal) ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:127:1: error: 'pthread_cond_wait' was not declared in this scope __gthrw(pthread_cond_wait) ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:128:1: error: 'pthread_cond_timedwait' was not declared in this scope __gthrw(pthread_cond_timedwait) ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:129:1: error: 'pthread_cond_destroy' was not declared in this scope __gthrw(pthread_cond_destroy) ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:131:1: error: 'pthread_key_create' was not declared in this scope __gthrw(pthread_key_create) ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:132:1: error: 'pthread_key_delete' was not declared in this scope __gthrw(pthread_key_delete) ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:133:1: error: 'pthread_mutexattr_init' was not declared in this scope __gthrw(pthread_mutexattr_init) ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:134:1: error: 'pthread_mutexattr_settype' was not declared in this scope __gthrw(pthread_mutexattr_settype) ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:135:1: error: 'pthread_mutexattr_destroy' was not declared in this scope __gthrw(pthread_mutexattr_destroy) ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:659:19: error: '__gthread_create' declared as an 'inline' variable __gthread_create (__gthread_t *__threadid, void *(*__func) (void*), ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:659:19: error: '__gthread_t' was not declared in this scope /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:659:32: error: '__threadid' was not declared in this scope __gthread_create (__gthread_t *__threadid, void *(*__func) (void*), ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:659:44: error: expected primary-expression before 'void' __gthread_create (__gthread_t *__threadid, void *(*__func) (void*), ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:660:5: error: expected primary-expression before 'void' void *__args) ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:660:17: error: expression list treated as compound expression in initializer [-fpermissive] void *__args) ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:661:1: error: expected ',' or ';' before '{' token { ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:666:17: error: '__gthread_join' declared as an 'inline' variable __gthread_join (__gthread_t __threadid, void **__value_ptr) ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:666:17: error: '__gthread_t' was not declared in this scope /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:666:41: error: expected primary-expression before 'void' __gthread_join (__gthread_t __threadid, void **__value_ptr) ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:666:59: error: expression list treated as compound expression in initializer [-fpermissive] __gthread_join (__gthread_t __threadid, void **__value_ptr) ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:667:1: error: expected ',' or ';' before '{' token { ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:672:19: error: '__gthread_detach' declared as an 'inline' variable __gthread_detach (__gthread_t __threadid) ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:672:19: error: '__gthread_t' was not declared in this scope /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:673:1: error: expected ',' or ';' before '{' token { ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:678:18: error: '__gthread_equal' declared as an 'inline' variable __gthread_equal (__gthread_t __t1, __gthread_t __t2) ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:678:18: error: '__gthread_t' was not declared in this scope /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:678:36: error: '__gthread_t' was not declared in this scope __gthread_equal (__gthread_t __t1, __gthread_t __t2) ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:678:52: error: expression list treated as compound expression in initializer [-fpermissive] __gthread_equal (__gthread_t __t1, __gthread_t __t2) ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:679:1: error: expected ',' or ';' before '{' token { ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:683:15: error: '__gthread_t' does not name a type static inline __gthread_t ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h: In function 'int __gthread_yield()': /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:692:33: error: '__gthrw_sched_yield' cannot be used as a function return __gthrw_(sched_yield) (); ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h: At global scope: /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:696:17: error: '__gthread_once' declared as an 'inline' variable __gthread_once (__gthread_once_t *__once, void (*__func) (void)) ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:696:17: error: '__gthread_once_t' was not declared in this scope /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:696:35: error: '__once' was not declared in this scope __gthread_once (__gthread_once_t *__once, void (*__func) (void)) ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:696:50: error: '__func' was not declared in this scope __gthread_once (__gthread_once_t *__once, void (*__func) (void)) ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:696:59: error: expected primary-expression before 'void' __gthread_once (__gthread_once_t *__once, void (*__func) (void)) ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:696:64: error: expression list treated as compound expression in initializer [-fpermissive] __gthread_once (__gthread_once_t *__once, void (*__func) (void)) ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:697:1: error: expected ',' or ';' before '{' token { ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:705:23: error: '__gthread_key_create' declared as an 'inline' variable __gthread_key_create (__gthread_key_t *__key, void (*__dtor) (void *)) ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:705:23: error: '__gthread_key_t' was not declared in this scope /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:705:40: error: '__key' was not declared in this scope __gthread_key_create (__gthread_key_t *__key, void (*__dtor) (void *)) ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:705:54: error: '__dtor' was not declared in this scope __gthread_key_create (__gthread_key_t *__key, void (*__dtor) (void *)) ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:705:63: error: expected primary-expression before 'void' __gthread_key_create (__gthread_key_t *__key, void (*__dtor) (void *)) ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:705:70: error: expression list treated as compound expression in initializer [-fpermissive] __gthread_key_create (__gthread_key_t *__key, void (*__dtor) (void *)) ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:706:1: error: expected ',' or ';' before '{' token { ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:711:23: error: '__gthread_key_delete' declared as an 'inline' variable __gthread_key_delete (__gthread_key_t __key) ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:711:23: error: '__gthread_key_t' was not declared in this scope /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:712:1: error: expected ',' or ';' before '{' token { ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:717:24: error: '__gthread_getspecific' declared as an 'inline' variable __gthread_getspecific (__gthread_key_t __key) ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:717:24: error: '__gthread_key_t' was not declared in this scope /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:718:1: error: expected ',' or ';' before '{' token { ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:723:24: error: '__gthread_setspecific' declared as an 'inline' variable __gthread_setspecific (__gthread_key_t __key, const void *__ptr) ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:723:24: error: '__gthread_key_t' was not declared in this scope /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:723:47: error: expected primary-expression before 'const' __gthread_setspecific (__gthread_key_t __key, const void *__ptr) ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:723:64: error: expression list treated as compound expression in initializer [-fpermissive] __gthread_setspecific (__gthread_key_t __key, const void *__ptr) ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:724:1: error: expected ',' or ';' before '{' token { ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:729:32: error: variable or field '__gthread_mutex_init_function' declared void __gthread_mutex_init_function (__gthread_mutex_t *__mutex) ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:729:32: error: '__gthread_mutex_t' was not declared in this scope /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:729:51: error: '__mutex' was not declared in this scope __gthread_mutex_init_function (__gthread_mutex_t *__mutex) ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:736:26: error: '__gthread_mutex_destroy' declared as an 'inline' variable __gthread_mutex_destroy (__gthread_mutex_t *__mutex) ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:736:26: error: '__gthread_mutex_t' was not declared in this scope /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:736:45: error: '__mutex' was not declared in this scope __gthread_mutex_destroy (__gthread_mutex_t *__mutex) ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:737:1: error: expected ',' or ';' before '{' token { ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:745:23: error: '__gthread_mutex_lock' declared as an 'inline' variable __gthread_mutex_lock (__gthread_mutex_t *__mutex) ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:745:23: error: '__gthread_mutex_t' was not declared in this scope /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:745:42: error: '__mutex' was not declared in this scope __gthread_mutex_lock (__gthread_mutex_t *__mutex) ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:746:1: error: expected ',' or ';' before '{' token { ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:754:26: error: '__gthread_mutex_trylock' declared as an 'inline' variable __gthread_mutex_trylock (__gthread_mutex_t *__mutex) ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:754:26: error: '__gthread_mutex_t' was not declared in this scope /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:754:45: error: '__mutex' was not declared in this scope __gthread_mutex_trylock (__gthread_mutex_t *__mutex) ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:755:1: error: expected ',' or ';' before '{' token { ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:775:25: error: '__gthread_mutex_unlock' declared as an 'inline' variable __gthread_mutex_unlock (__gthread_mutex_t *__mutex) ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:775:25: error: '__gthread_mutex_t' was not declared in this scope /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:775:44: error: '__mutex' was not declared in this scope __gthread_mutex_unlock (__gthread_mutex_t *__mutex) ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:776:1: error: expected ',' or ';' before '{' token { ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:786:42: error: '__gthread_recursive_mutex_init_function' declared as an 'inline' variable __gthread_recursive_mutex_init_function (__gthread_recursive_mutex_t *__mutex) ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:786:42: error: '__gthread_recursive_mutex_t' was not declared in this scope /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:786:71: error: '__mutex' was not declared in this scope __gthread_recursive_mutex_init_function (__gthread_recursive_mutex_t *__mutex) ^ /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr-default.h:787:1: error: expected ',' or ';' before '{' token { ^ In file included from /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/ext/atomicity.h:35:0, from /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/bits/basic_string.h:39, from /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/string:52, from /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/random:40, from /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/bits/stl_algo.h:66, from /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/algorithm:62, from /home/tmedicci/esp/esp32-at/esp-idf/components/cxx/./cxx_guards.cpp:20: /home/tmedicci/esp/xtensa-esp32-elf/xtensa-esp32-elf/include/c++/5.2.0/xtensa-esp32-elf/bits/gthr.h:151:27: error: expected declaration before end of line /home/tmedicci/esp/esp32-at/esp-idf/make/component_wrapper.mk:210: recipe for target 'cxx_guards.o' failed make[1]: *** [cxx_guards.o] Error 1 /home/tmedicci/esp/esp32-at/esp-idf//make/project.mk:386: recipe for target 'cxx-build' failed make: *** [cxx-build] Error 2

xcguang commented 7 years ago

Hi, Please use the old ESP32 toolchain to try again,which can be downloaded from https://dl.espressif.com/dl/xtensa-esp32-elf-linux64-1.22.0-61-gab8375a-5.2.0.tar.gz. And you can refer to esp32-at\esp-idf\docs\get-started\linux-setup.rst.

tmedicci commented 7 years ago

Ok! That was a problem related about toolchain version. Thanks!