loboris / MicroPython_ESP32_psRAM_LoBo

MicroPython for ESP32 with psRAM support
Other
831 stars 344 forks source link

error architecture not supported on mac os #296

Closed hyhkjiy closed 5 years ago

hyhkjiy commented 5 years ago

➜ MicroPython_BUILD git:(master) ✗ ./BUILD.sh -v


MicroPython for ESP32

================================ Building MicroPython firmware...

/Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/xtensa-esp32-elf/bin:/Users/jiy/.pyenv/plugins/pyenv-virtualenv/shims:/Users/jiy/.pyenv/shims:/Users/jiy/.pyenv/plugins/pyenv-virtualenv/shims:/Users/jiy/.pyenv/shims:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/VMware Fusion.app/Contents/Public:/usr/local/go/bin:/usr/local/opt/mysql-connector-c/include:/usr/local/opt/mysql-connector-c/include Building partitions from /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/MicroPython_BUILD/partitions_mpy.csv... CC build/app_trace/app_trace.o In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/_types.h:32:0, from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/_types.h:27, from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/string.h:61, from /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/app_trace/app_trace.c:158: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/cdefs.h:784:2: error: #error Unsupported architecture

error Unsupported architecture

^ In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/_types.h:33:0, from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/_types.h:27, from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/string.h:61, from /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/app_trace/app_trace.c:158: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/machine/_types.h:34:2: error: #error architecture not supported

error architecture not supported

^ In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/_types.h:27:0, from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/string.h:61, from /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/app_trace/app_trace.c:158: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/_types.h:55:9: error: unknown type name 'int64_t' typedef __int64_t darwin_blkcnt_t; / total blocks / ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/_types.h:56:9: error: unknown type name 'int32_t' typedef __int32_t darwin_blksize_t; / preferred block size / ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/_types.h:57:9: error: unknown type name 'int32_t' typedef __int32_t darwin_dev_t; / dev_t / ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/_types.h:60:9: error: unknown type name 'uint32_t' typedef __uint32_t darwin_gid_t; / [???] process and group IDs / ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.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/ ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.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 / ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.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 / ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/_types.h:70:9: error: unknown type name '__uint16_t' typedef uint16_t darwin_mode_t; / [???] Some file attributes / ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/_types.h:71:9: error: unknown type name '__int64_t' typedef int64_t darwin_off_t; / [???] Used for file sizes / ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/_types.h:72:9: error: unknown type name '__int32_t' typedef int32_t darwin_pid_t; / [???] process and group IDs / ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/_types.h:73:9: error: unknown type name '__uint32_t' typedef uint32_t darwin_sigset_t; / [???] signal set / ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/_types.h:74:9: error: unknown type name '__int32_t' typedef int32_t darwin_suseconds_t; / [???] microseconds / ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/_types.h:75:9: error: unknown type name '__uint32_t' typedef uint32_t darwin_uid_t; / [???] user IDs / ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.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 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/string.h:64:0, from /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/app_trace/app_trace.c:158: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/_types/_size_t.h:31:9: error: unknown type name 'darwin_size_t' typedef __darwin_size_t size_t; ^ In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/_types/_rsize_t.h:30:0, from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/string.h:141, from /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/app_trace/app_trace.c:158: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/machine/types.h:37:2: error: #error architecture not supported

error architecture not supported

^ In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/string.h:141:0, from /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/app_trace/app_trace.c:158: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/_types/_rsize_t.h:31:9: error: unknown type name 'darwin_size_t' typedef darwin_size_t rsize_t; ^ In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/string.h:152:0, from /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/app_trace/app_trace.c:158: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/_types/_ssize_t.h:31:9: error: unknown type name 'darwin_ssize_t' typedef darwin_ssize_t ssize_t; ^ In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/types.h:81:0, from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/param.h:83, from /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/app_trace/app_trace.c:159: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/machine/endian.h:37:2: error: #error architecture not supported

error architecture not supported

^ In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/param.h:83:0, from /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/app_trace/app_trace.c:159: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/types.h:95:9: error: unknown type name 'u_int64_t' typedef u_int64_t u_quad_t; / quads / ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/types.h:96:9: error: unknown type name 'int64_t' typedef int64_t quad_t; ^ In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/param.h:83:0, from /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/app_trace/app_trace.c:159: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/types.h:101:9: error: unknown type name 'int32_t' typedef int32_t daddr_t; / disk address / ^ In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/param.h:83:0, from /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/app_trace/app_trace.c:159: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/types.h:105:9: error: unknown type name 'u_int32_t' typedef u_int32_t fixpt_t; / fixed point number / ^ In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/types.h:110:0, from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/param.h:83, from /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/app_trace/app_trace.c:159: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/_types/_in_addr_t.h:31:9: error: unknown type name 'uint32_t' typedef uint32_t in_addr_t; / base type for internet address / ^ In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/types.h:111:0, from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/param.h:83, from /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/app_trace/app_trace.c:159: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/_types/_in_port_t.h:31:9: error: unknown type name 'uint16_t' typedef uint16_t in_port_t; ^ In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/types.h:118:0, from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/param.h:83, from /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/app_trace/app_trace.c:159: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/_types/_key_t.h:31:9: error: unknown type name 'int32_t' typedef int32_t key_t; / IPC key (for Sys V IPC) / ^ In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/types.h:120:0, from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/param.h:83, from /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/app_trace/app_trace.c:159: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/_types/_nlink_t.h:31:9: error: unknown type name 'uint16_t' typedef uint16_t nlink_t; / link count / ^ In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/param.h:83:0, from /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/app_trace/app_trace.c:159: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/types.h:125:9: error: unknown type name 'int32_t' typedef int32_t segsz_t; / segment size / ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/types.h:126:9: error: unknown type name 'int32_t' typedef int32_t swblk_t; / swap offset / ^ In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/types.h:165:0, from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/param.h:83, from /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/app_trace/app_trace.c:159: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/_types/_clock_t.h:31:9: error: unknown type name 'darwin_clock_t' typedef darwin_clock_t clock_t; ^ In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/types.h:168:0, from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/param.h:83, from /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/app_trace/app_trace.c:159: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/_types/_time_t.h:31:9: error: unknown type name 'darwin_time_t' typedef darwin_time_t time_t; ^ In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/types.h:184:0, from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/param.h:83, from /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/app_trace/app_trace.c:159: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/_types/_fd_def.h:50:2: error: unknown type name 'int32_t' int32_t fds_bits[DARWIN_howmany(DARWIN_FD_SETSIZE, DARWIN_NFDBITS)]; ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/_types/_fd_def.h:45:41: error: 'int32_t' undeclared here (not in a function)

define DARWIN_NFDBITS (sizeof(__int32_t) * DARWIN_NBBY) / bits per mask /

                                     ^

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/_types/_fd_def.h:46:43: note: in definition of macro '__DARWIN_howmany'

define __DARWIN_howmany(x, y) ((((x) % (y)) == 0) ? ((x) / (y)) : (((x) / (y)) + 1)) / # y's == x bits? /

                                       ^

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/_types/_fd_def.h:50:65: note: in expansion of macro 'DARWIN_NFDBITS' int32_t fds_bits[DARWIN_howmany(DARWIN_FD_SETSIZE, DARWIN_NFDBITS)]; ^ In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/param.h:83:0, from /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/app_trace/app_trace.c:159: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/types.h:189:25: error: expected '=', ',', ';', 'asm' or 'attribute__' before 'fd_mask' typedef __int32_t fd_mask; ^ In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/param.h:107:0, from /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/app_trace/app_trace.c:159: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/machine/param.h:37:2: error: #error architecture not supported

error architecture not supported

^ In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/limits.h:64:0, from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/param.h:110, from /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/app_trace/app_trace.c:159: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/machine/limits.h:8:2: error: #error architecture not supported

error architecture not supported

^ In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/signal.h:82:0, from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/param.h:113, from /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/app_trace/app_trace.c:159: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/machine/signal.h:34:2: error: #error architecture not supported

error architecture not supported

^ In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/signal.h:146:0, from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/param.h:113, from /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/app_trace/app_trace.c:159: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/machine/_mcontext.h:31:2: error: #error architecture not supported

error architecture not supported

^ In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/signal.h:150:0, from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/param.h:113, from /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/app_trace/app_trace.c:159: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/_types/_sigaltstack.h:45:2: error: unknown type name 'darwin_size_t' darwin_size_t ss_size; / signal stack length / ^ In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/_types/_ucontext.h:39:0, from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/signal.h:151, from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/param.h:113, from /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/app_trace/app_trace.c:159: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/machine/_mcontext.h:31:2: error: #error architecture not supported

error architecture not supported

^ In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/signal.h:151:0, from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/param.h:113, from /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/app_trace/app_trace.c:159: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/_types/_ucontext.h:48:2: error: unknown type name 'darwin_size_t' darwin_size_t uc_mcsize; / size of the machine context passed in / ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/_types/_ucontext.h:49:2: error: unknown type name '_STRUCT_MCONTEXT' _STRUCT_MCONTEXT uc_mcontext; / pointer to machine specific context / ^ In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/stdint.h:53:0, from /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/soc/esp32/include/soc/soc.h:19, from /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/app_trace/app_trace.c:160: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/_types/_intptr_t.h:32:9: error: unknown type name 'darwin_intptr_t' typedef darwin_intptr_t intptr_t; ^ In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/_stdio.h:75:0, from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/stdio.h:64, from /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/esp32/include/esp_err.h:17, from /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/xtensa-debug-module/include/trax.h:3, from /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/app_trace/app_trace.c:163: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/_types/_va_list.h:32:9: error: unknown type name 'darwin_va_list' typedef darwin_va_list va_list; ^ In file included from /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/esp32/include/esp_err.h:17:0, from /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/xtensa-debug-module/include/trax.h:3, from /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/app_trace/app_trace.c:163: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/stdio.h:190:6: warning: conflicting types for built-in function 'vfprintf' int vfprintf(FILE restrict, const char * restrict, va_list) printflike(2, 0); ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/stdio.h:191:6: warning: conflicting types for built-in function 'vprintf' int vprintf(const char * restrict, va_list) printflike(1, 0); ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/stdio.h:192:6: warning: conflicting types for built-in function 'vsprintf' int vsprintf(char * restrict, const char __restrict, va_list) printflike(2, 0) swift_unavailable("Use vsnprintf instead."); ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/stdio.h:339:6: warning: conflicting types for built-in function 'vfscanf' int vfscanf(FILE restrict stream, const char restrict format, va_list) __scanflike(2, 0); ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/stdio.h:340:6: warning: conflicting types for built-in function 'vscanf' int vscanf(const char restrict format, va_list) scanflike(1, 0); ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/stdio.h:341:6: warning: conflicting types for built-in function 'vsnprintf' int vsnprintf(char * restrict str, size_t size, const char * restrict __format, va_list) printflike(3, 0); ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/stdio.h:342:6: warning: conflicting types for built-in function 'vsscanf' int vsscanf(const char restrict str, const char restrict format, va_list) scanflike(2, 0); ^ In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/stdio.h:411:0, from /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/esp32/include/esp_err.h:17, from /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/xtensa-debug-module/include/trax.h:3, from /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/app_trace/app_trace.c:163: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/secure/_stdio.h:61:12: warning: conflicting types for built-in function '__vsprintf_chk' extern int vsprintf_chk (char restrict, int, size_t, ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/secure/_stdio.h:70:12: warning: conflicting types for built-in function 'vsnprintf_chk' extern int __vsnprintf_chk (char restrict, size_t, int, size_t, ^ In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/stddef.h:69:0, from /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/freertos/include/freertos/FreeRTOS.h:76, from /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/app_trace/app_trace.c:166: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/_types/_ptrdiff_t.h:32:9: error: unknown type name 'darwin_ptrdiff_t' typedef darwin_ptrdiff_t ptrdiff_t; ^ In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/stddef.h:79:0, from /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/freertos/include/freertos/FreeRTOS.h:76, from /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/app_trace/app_trace.c:166: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/_types/_wchar_t.h:34:9: error: unknown type name 'darwin_wchar_t' typedef darwin_wchar_t wchar_t; ^ In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/stddef.h:82:0, from /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/freertos/include/freertos/FreeRTOS.h:76, from /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/app_trace/app_trace.c:166: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/_types/_wint_t.h:32:9: error: unknown type name 'darwin_wint_t' typedef darwin_wint_t wint_t; ^ In file included from /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/freertos/include/freertos/FreeRTOS.h:77:0, from /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/app_trace/app_trace.c:166: /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/newlib/include/sys/reent.h:115:8: error: redefinition of 'struct sbuf' struct sbuf { ^ In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/stdio.h:64:0, from /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/esp32/include/esp_err.h:17, from /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/xtensa-debug-module/include/trax.h:3, from /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/app_trace/app_trace.c:163: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/_stdio.h:92:8: note: originally defined here struct sbuf { ^ In file included from /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/freertos/include/freertos/FreeRTOS.h:77:0, from /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/app_trace/app_trace.c:166: /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/newlib/include/sys/reent.h:179:8: error: redefinition of 'struct sFILE' struct sFILE { ^ In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/stdio.h:64:0, from /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/esp32/include/esp_err.h:17, from /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/xtensa-debug-module/include/trax.h:3, from /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/app_trace/app_trace.c:163: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/_stdio.h:126:16: note: originally defined here typedef struct sFILE { ^ In file included from /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/freertos/include/freertos/FreeRTOS.h:77:0, from /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/app_trace/app_trace.c:166: /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/newlib/include/sys/reent.h:200:3: error: expected specifier-qualifier-list before '_fpos_t' _fpos_t _EXFNPTR(_seek, (struct _reent *, _PTR, _fpos_t, int)); ^ /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/newlib/include/sys/reent.h:356:3: error: unknown type name '_mbstate_t' _mbstate_t _mblen_state; ^ /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/newlib/include/sys/reent.h:357:3: error: unknown type name '_mbstate_t' _mbstate_t _wctomb_state; ^ /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/newlib/include/sys/reent.h:358:3: error: unknown type name '_mbstate_t' _mbstate_t _mbtowc_state; ^ /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/newlib/include/sys/reent.h:361:3: error: unknown type name '_mbstate_t' _mbstate_t _mbrlen_state; ^ /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/newlib/include/sys/reent.h:362:3: error: unknown type name '_mbstate_t' _mbstate_t _mbrtowc_state; ^ /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/newlib/include/sys/reent.h:363:3: error: unknown type name '_mbstate_t' _mbstate_t _mbsrtowcs_state; ^ /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/newlib/include/sys/reent.h:364:3: error: unknown type name '_mbstate_t' _mbstate_t _wcrtomb_state; ^ /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/newlib/include/sys/reent.h:365:3: error: unknown type name '_mbstate_t' _mbstate_t _wcsrtombs_state; ^ In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/resource.h:80:0, from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/wait.h:110, from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/stdlib.h:66, from /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/freertos/include/freertos/FreeRTOSConfig.h:119, from /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/freertos/include/freertos/FreeRTOS.h:99, from /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/app_trace/app_trace.c:166: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/_types/_timeval.h:36:2: error: unknown type name 'darwin_time_t' darwin_time_t tv_sec; / seconds / ^ In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/wait.h:110:0, from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/stdlib.h:66, from /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/freertos/include/freertos/FreeRTOSConfig.h:119, from /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/freertos/include/freertos/FreeRTOS.h:99, from /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/app_trace/app_trace.c:166: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/resource.h:89:9: error: unknown type name 'uint64_t' typedef uint64_t rlim_t; ^ In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/stdlib.h:66:0, from /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/freertos/include/freertos/FreeRTOSConfig.h:119, from /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/freertos/include/freertos/FreeRTOS.h:99, from /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/app_trace/app_trace.c:166: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/wait.h:207:19: error: duplicate member 'w_Filler' unsigned int w_Filler:16, / upper bits filler / ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/wait.h:208:7: error: duplicate member 'w_Retcode' w_Retcode:8, / exit code if w_termsig==0 / ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/wait.h:209:7: error: duplicate member 'w_Coredump' w_Coredump:1, / core dump indicator / ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/wait.h:210:7: error: duplicate member 'w_Termsig' w_Termsig:7; / termination signal / ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/wait.h:225:19: error: duplicate member 'w_Filler' unsigned int w_Filler:16, / upper bits filler / ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/wait.h:226:7: error: duplicate member 'w_Stopsig' w_Stopsig:8, / signal that stopped us / ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/wait.h:227:7: error: duplicate member 'w_Stopval' w_Stopval:8; / == W_STOPPED if stopped / ^ In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/stdlib.h:77:0, from /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/freertos/include/freertos/FreeRTOSConfig.h:119, from /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/freertos/include/freertos/FreeRTOS.h:99, from /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/app_trace/app_trace.c:166: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/_types/_ct_rune_t.h:32:9: error: unknown type name 'darwin_ct_rune_t' typedef __darwin_ct_rune_t ct_rune_t; ^ In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/stdlib.h:78:0, from /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/freertos/include/freertos/FreeRTOSConfig.h:119, from /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/freertos/include/freertos/FreeRTOS.h:99, from /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/app_trace/app_trace.c:166: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/_types/_rune_t.h:31:9: error: unknown type name 'darwin_rune_t' typedef darwin_rune_t rune_t; ^ In file included from /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/app_trace/include/esp_app_trace.h:17:0, from /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/app_trace/app_trace.c:167: /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/xtensa-esp32-elf/lib/gcc/xtensa-esp32-elf/5.2.0/include/stdarg.h:98:24: error: conflicting types for 'va_list' typedef gnuc_va_list va_list; ^ In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/_stdio.h:75:0, from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/stdio.h:64, from /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/esp32/include/esp_err.h:17, from /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/xtensa-debug-module/include/trax.h:3, from /Users/jiy/work/MicroPython_ESP32_psRAM_LoBo/Tools/esp-idf/components/app_trace/app_trace.c:163: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/sys/_types/_va_list.h:32:26: note: previous declaration of 'va_list' was here typedef darwin_va_list va_list; ^ make[1]: [app_trace.o] Error 1 make: [component-app_trace-build] Error 2 'make all' FAILED!

hyhkjiy commented 5 years ago

The reason is that my computer's environment variable is incorrect.

moyaying commented 4 years ago

What environment variable? I face the same problem, can you share me?