-- Found Git: /usr/bin/git (found version "2.24.3 (Apple Git-128)")
-- The C compiler identification is GNU 8.4.0
-- The CXX compiler identification is GNU 8.4.0
-- The ASM compiler identification is GNU
-- Found assembler: /Users/marlon/.espressif/tools/xtensa-esp32-elf/esp-2021r1-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Users/marlon/.espressif/tools/xtensa-esp32-elf/esp-2021r1-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Users/marlon/.espressif/tools/xtensa-esp32-elf/esp-2021r1-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Project is not inside a git repository, or git repository has no commits; will not use 'git describe' to determine PROJECT_VER.
-- Building ESP-IDF components for target esp32
-- Project sdkconfig file /Users/marlon/esp/hello_world/sdkconfig
-- Found PythonInterp: /Users/marlon/.espressif/python_env/idf4.4_py3.8_env/bin/python (found version "3.8.11")
-- Found Perl: /usr/local/bin/perl (found version "5.34.0")
-- App "hello-world" version: 1
-- Adding linker script /Users/marlon/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.ld
-- Adding linker script /Users/marlon/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.api.ld
-- Adding linker script /Users/marlon/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.libgcc.ld
-- Adding linker script /Users/marlon/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-data.ld
-- Adding linker script /Users/marlon/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.syscalls.ld
-- Adding linker script /Users/marlon/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-funcs.ld
-- Adding linker script /Users/marlon/esp/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-time.ld
-- Adding linker script /Users/marlon/esp/hello_world/build/esp-idf/esp32/esp32_out.ld
-- Adding linker script /Users/marlon/esp/esp-idf/components/esp32/ld/esp32.project.ld.in
-- Adding linker script /Users/marlon/esp/esp-idf/components/esp32/ld/esp32.peripherals.ld
-- Components: app_trace app_update asio bootloader bootloader_support bt cbor cmock coap console cxx driver efuse esp-tls esp32 esp_adc_cal esp_common esp_eth esp_event esp_gdbstub esp_hid esp_http_client esp_http_server esp_https_ota esp_https_server esp_hw_support esp_ipc esp_lcd esp_local_ctrl esp_netif esp_phy esp_pm esp_ringbuf esp_rom esp_serial_slave_link esp_system esp_timer esp_websocket_client esp_wifi espcoredump esptool_py expat fatfs freemodbus freertos hal heap idf_test jsmn json libsodium log lwip main mbedtls mdns mqtt newlib nghttp nvs_flash openssl openthread partition_table perfmon protobuf-c protocomm pthread sdmmc soc spi_flash spiffs tcp_transport tcpip_adapter tinyusb ulp unity vfs wear_levelling wifi_provisioning wpa_supplicant xtensa
-- Component paths: /Users/marlon/esp/esp-idf/components/app_trace /Users/marlon/esp/esp-idf/components/app_update /Users/marlon/esp/esp-idf/components/asio /Users/marlon/esp/esp-idf/components/bootloader /Users/marlon/esp/esp-idf/components/bootloader_support /Users/marlon/esp/esp-idf/components/bt /Users/marlon/esp/esp-idf/components/cbor /Users/marlon/esp/esp-idf/components/cmock /Users/marlon/esp/esp-idf/components/coap /Users/marlon/esp/esp-idf/components/console /Users/marlon/esp/esp-idf/components/cxx /Users/marlon/esp/esp-idf/components/driver /Users/marlon/esp/esp-idf/components/efuse /Users/marlon/esp/esp-idf/components/esp-tls /Users/marlon/esp/esp-idf/components/esp32 /Users/marlon/esp/esp-idf/components/esp_adc_cal /Users/marlon/esp/esp-idf/components/esp_common /Users/marlon/esp/esp-idf/components/esp_eth /Users/marlon/esp/esp-idf/components/esp_event /Users/marlon/esp/esp-idf/components/esp_gdbstub /Users/marlon/esp/esp-idf/components/esp_hid /Users/marlon/esp/esp-idf/components/esp_http_client /Users/marlon/esp/esp-idf/components/esp_http_server /Users/marlon/esp/esp-idf/components/esp_https_ota /Users/marlon/esp/esp-idf/components/esp_https_server /Users/marlon/esp/esp-idf/components/esp_hw_support /Users/marlon/esp/esp-idf/components/esp_ipc /Users/marlon/esp/esp-idf/components/esp_lcd /Users/marlon/esp/esp-idf/components/esp_local_ctrl /Users/marlon/esp/esp-idf/components/esp_netif /Users/marlon/esp/esp-idf/components/esp_phy /Users/marlon/esp/esp-idf/components/esp_pm /Users/marlon/esp/esp-idf/components/esp_ringbuf /Users/marlon/esp/esp-idf/components/esp_rom /Users/marlon/esp/esp-idf/components/esp_serial_slave_link /Users/marlon/esp/esp-idf/components/esp_system /Users/marlon/esp/esp-idf/components/esp_timer /Users/marlon/esp/esp-idf/components/esp_websocket_client /Users/marlon/esp/esp-idf/components/esp_wifi /Users/marlon/esp/esp-idf/components/espcoredump /Users/marlon/esp/esp-idf/components/esptool_py /Users/marlon/esp/esp-idf/components/expat /Users/marlon/esp/esp-idf/components/fatfs /Users/marlon/esp/esp-idf/components/freemodbus /Users/marlon/esp/esp-idf/components/freertos /Users/marlon/esp/esp-idf/components/hal /Users/marlon/esp/esp-idf/components/heap /Users/marlon/esp/esp-idf/components/idf_test /Users/marlon/esp/esp-idf/components/jsmn /Users/marlon/esp/esp-idf/components/json /Users/marlon/esp/esp-idf/components/libsodium /Users/marlon/esp/esp-idf/components/log /Users/marlon/esp/esp-idf/components/lwip /Users/marlon/esp/hello_world/main /Users/marlon/esp/esp-idf/components/mbedtls /Users/marlon/esp/esp-idf/components/mdns /Users/marlon/esp/esp-idf/components/mqtt /Users/marlon/esp/esp-idf/components/newlib /Users/marlon/esp/esp-idf/components/nghttp /Users/marlon/esp/esp-idf/components/nvs_flash /Users/marlon/esp/esp-idf/components/openssl /Users/marlon/esp/esp-idf/components/openthread /Users/marlon/esp/esp-idf/components/partition_table /Users/marlon/esp/esp-idf/components/perfmon /Users/marlon/esp/esp-idf/components/protobuf-c /Users/marlon/esp/esp-idf/components/protocomm /Users/marlon/esp/esp-idf/components/pthread /Users/marlon/esp/esp-idf/components/sdmmc /Users/marlon/esp/esp-idf/components/soc /Users/marlon/esp/esp-idf/components/spi_flash /Users/marlon/esp/esp-idf/components/spiffs /Users/marlon/esp/esp-idf/components/tcp_transport /Users/marlon/esp/esp-idf/components/tcpip_adapter /Users/marlon/esp/esp-idf/components/tinyusb /Users/marlon/esp/esp-idf/components/ulp /Users/marlon/esp/esp-idf/components/unity /Users/marlon/esp/esp-idf/components/vfs /Users/marlon/esp/esp-idf/components/wear_levelling /Users/marlon/esp/esp-idf/components/wifi_provisioning /Users/marlon/esp/esp-idf/components/wpa_supplicant /Users/marlon/esp/esp-idf/components/xtensa
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/marlon/esp/hello_world/build
[1/988] Generating project_elf_src_esp32.c
[2/988] Generating linker script...
[3/988] Generating ../../partition_table/partition-table.bin
Partition table binary generated. Contents:
*******************************************************************************
# ESP-IDF Partition Table
# Name, Type, SubType, Offset, Size, Flags
nvs,data,nvs,0x9000,24K,
phy_init,data,phy,0xf000,4K,
factory,app,factory,0x10000,1M,
*******************************************************************************
[4/988] Building C object esp-idf/lwip/CMakeFiles/__idf_lwip.dir/lwip/src/api/netifapi.c.obj
FAILED: esp-idf/lwip/CMakeFiles/__idf_lwip.dir/lwip/src/api/netifapi.c.obj
/Users/marlon/.espressif/tools/xtensa-esp32-elf/esp-2021r1-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc -DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\" -Iconfig -I/Users/marlon/esp/esp-idf/components/lwip/include/apps -I/Users/marlon/esp/esp-idf/components/lwip/include/apps/sntp -I/Users/marlon/esp/esp-idf/components/lwip/lwip/src/include -I/Users/marlon/esp/esp-idf/components/lwip/port/esp32/include -I/Users/marlon/esp/esp-idf/components/lwip/port/esp32/include/arch -I/Users/marlon/esp/esp-idf/components/newlib/platform_include -I/Users/marlon/esp/esp-idf/components/freertos/include -I/Users/marlon/esp/esp-idf/components/freertos/port/xtensa/include -I/Users/marlon/esp/esp-idf/components/esp_hw_support/include -I/Users/marlon/esp/esp-idf/components/esp_hw_support/include/soc -I/Users/marlon/esp/esp-idf/components/esp_hw_support/port/esp32/. -I/Users/marlon/esp/esp-idf/components/heap/include -I/Users/marlon/esp/esp-idf/components/log/include -I/Users/marlon/esp/esp-idf/components/soc/include -I/Users/marlon/esp/esp-idf/components/soc/esp32/. -I/Users/marlon/esp/esp-idf/components/soc/esp32/include -I/Users/marlon/esp/esp-idf/components/hal/esp32/include -I/Users/marlon/esp/esp-idf/components/hal/include -I/Users/marlon/esp/esp-idf/components/hal/platform_port/include -I/Users/marlon/esp/esp-idf/components/esp_rom/include -I/Users/marlon/esp/esp-idf/components/esp_rom/esp32 -I/Users/marlon/esp/esp-idf/components/esp_rom/include/esp32 -I/Users/marlon/esp/esp-idf/components/esp_common/include -I/Users/marlon/esp/esp-idf/components/esp_system/include -I/Users/marlon/esp/esp-idf/components/esp_system/port/soc -I/Users/marlon/esp/esp-idf/components/esp_system/port/public_compat -I/Users/marlon/esp/esp-idf/components/esp32/include -I/Users/marlon/esp/esp-idf/components/driver/include -I/Users/marlon/esp/esp-idf/components/driver/esp32/include -I/Users/marlon/esp/esp-idf/components/esp_pm/include -I/Users/marlon/esp/esp-idf/components/esp_ringbuf/include -I/Users/marlon/esp/esp-idf/components/efuse/include -I/Users/marlon/esp/esp-idf/components/efuse/esp32/include -I/Users/marlon/esp/esp-idf/components/xtensa/include -I/Users/marlon/esp/esp-idf/components/xtensa/esp32/include -I/Users/marlon/esp/esp-idf/components/vfs/include -I/Users/marlon/esp/esp-idf/components/esp_wifi/include -I/Users/marlon/esp/esp-idf/components/esp_event/include -I/Users/marlon/esp/esp-idf/components/esp_netif/include -I/Users/marlon/esp/esp-idf/components/esp_eth/include -I/Users/marlon/esp/esp-idf/components/tcpip_adapter/include -I/Users/marlon/esp/esp-idf/components/esp_phy/include -I/Users/marlon/esp/esp-idf/components/esp_phy/esp32/include -I/Users/marlon/esp/esp-idf/components/app_trace/include -I/Users/marlon/esp/esp-idf/components/esp_timer/include -I/Users/marlon/esp/esp-idf/components/nvs_flash/include -I/Users/marlon/esp/esp-idf/components/spi_flash/include -I/Users/marlon/esp/esp-idf/components/mbedtls/port/include -I/Users/marlon/esp/esp-idf/components/mbedtls/mbedtls/include -I/Users/marlon/esp/esp-idf/components/mbedtls/esp_crt_bundle/include -mlongcalls -Wno-frame-address -ffunction-sections -fdata-sections -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -ggdb -Og -fmacro-prefix-map=/Users/marlon/esp/hello_world=. -fmacro-prefix-map=/Users/marlon/esp/esp-idf=IDF -fstrict-volatile-bitfields -Wno-error=unused-but-set-variable -std=gnu99 -Wno-old-style-declaration -D_GNU_SOURCE -DIDF_VER=\"v4.4-dev-1849-g8e3e65a47\" -DESP_PLATFORM -Wno-address -MD -MT esp-idf/lwip/CMakeFiles/__idf_lwip.dir/lwip/src/api/netifapi.c.obj -MF esp-idf/lwip/CMakeFiles/__idf_lwip.dir/lwip/src/api/netifapi.c.obj.d -o esp-idf/lwip/CMakeFiles/__idf_lwip.dir/lwip/src/api/netifapi.c.obj -c /Users/marlon/esp/esp-idf/components/lwip/lwip/src/api/netifapi.c
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:62,
from /Users/marlon/esp/esp-idf/components/lwip/port/esp32/include/lwipopts.h:35,
from /Users/marlon/esp/esp-idf/components/lwip/lwip/src/include/lwip/opt.h:51,
from /Users/marlon/esp/esp-idf/components/lwip/lwip/src/api/netifapi.c:41:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:828:2: error: #error Unsupported architecture
#error Unsupported architecture
^~~~~
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types.h:33,
from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_types.h:27,
from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:64,
from /Users/marlon/esp/esp-idf/components/lwip/port/esp32/include/lwipopts.h:35,
from /Users/marlon/esp/esp-idf/components/lwip/lwip/src/include/lwip/opt.h:51,
from /Users/marlon/esp/esp-idf/components/lwip/lwip/src/api/netifapi.c:41:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/machine/_types.h:36:2: error: #error architecture not supported
#error architecture not supported
^~~~~
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/_types.h:27,
from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:64,
from /Users/marlon/esp/esp-idf/components/lwip/port/esp32/include/lwipopts.h:35,
from /Users/marlon/esp/esp-idf/components/lwip/lwip/src/include/lwip/opt.h:51,
from /Users/marlon/esp/esp-idf/components/lwip/lwip/src/api/netifapi.c:41:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types.h:55:9: error: unknown type name '__int64_t'
typedef __int64_t __darwin_blkcnt_t; /* total blocks */
^~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types.h:56:9: error: unknown type name '__int32_t'
typedef __int32_t __darwin_blksize_t; /* preferred block size */
^~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types.h:57:9: error: unknown type name '__int32_t'
typedef __int32_t __darwin_dev_t; /* dev_t */
^~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types.h:60:9: error: unknown type name '__uint32_t'
typedef __uint32_t __darwin_gid_t; /* [???] process and group IDs */
^~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types.h:61:9: error: unknown type name '__uint32_t'
typedef __uint32_t __darwin_id_t; /* [XSI] pid_t, uid_t, or gid_t*/
^~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types.h:62:9: error: unknown type name '__uint64_t'
typedef __uint64_t __darwin_ino64_t; /* [???] Used for 64 bit inodes */
^~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types.h:68:9: error: unknown type name '__darwin_natural_t'
typedef __darwin_natural_t __darwin_mach_port_name_t; /* Used by mach */
^~~~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types.h:70:9: error: unknown type name '__uint16_t'
typedef __uint16_t __darwin_mode_t; /* [???] Some file attributes */
^~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types.h:71:9: error: unknown type name '__int64_t'
typedef __int64_t __darwin_off_t; /* [???] Used for file sizes */
^~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types.h:72:9: error: unknown type name '__int32_t'
typedef __int32_t __darwin_pid_t; /* [???] process and group IDs */
^~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types.h:73:9: error: unknown type name '__uint32_t'
typedef __uint32_t __darwin_sigset_t; /* [???] signal set */
^~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types.h:74:9: error: unknown type name '__int32_t'
typedef __int32_t __darwin_suseconds_t; /* [???] microseconds */
^~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types.h:75:9: error: unknown type name '__uint32_t'
typedef __uint32_t __darwin_uid_t; /* [???] user IDs */
^~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/_types.h:76:9: error: unknown type name '__uint32_t'
typedef __uint32_t __darwin_useconds_t; /* [???] microseconds */
^~~~~~~~~~
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/signal.h:82,
from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/wait.h:109,
from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:66,
from /Users/marlon/esp/esp-idf/components/lwip/port/esp32/include/lwipopts.h:35,
from /Users/marlon/esp/esp-idf/components/lwip/lwip/src/include/lwip/opt.h:51,
from /Users/marlon/esp/esp-idf/components/lwip/lwip/src/api/netifapi.c:41:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/machine/signal.h:36:2: error: #error architecture not supported
#error architecture not supported
^~~~~
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/signal.h:146,
from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/wait.h:109,
from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:66,
from /Users/marlon/esp/esp-idf/components/lwip/port/esp32/include/lwipopts.h:35,
from /Users/marlon/esp/esp-idf/components/lwip/lwip/src/include/lwip/opt.h:51,
from /Users/marlon/esp/esp-idf/components/lwip/lwip/src/api/netifapi.c:41:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/machine/_mcontext.h:33:2: error: #error architecture not supported
错误日志如上
MacOS ESP-IDF编译 hello_world 无法成功
-
- Posts: 786
- Joined: Wed Nov 14, 2018 8:45 am
Re: MacOS ESP-IDF编译 hello_world 无法成功
Check for working C compiler: /Users/marlon/.espressif/tools/xtensa-esp32-elf/esp-2021r1-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc - skipped
你的这儿是 skipped,我这边是 works。
/Users/marlon/.espressif/tools/xtensa-esp32-elf/esp-2021r1-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc -v 你可以运行吗?
另外你是 M1 的 Mac?
你的这儿是 skipped,我这边是 works。
/Users/marlon/.espressif/tools/xtensa-esp32-elf/esp-2021r1-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc -v 你可以运行吗?
另外你是 M1 的 Mac?
Who is online
Users browsing this forum: Google [Bot] and 179 guests