Open Kevincoooool opened 2 years ago
当我下载完所有子模块编译后出现了这个错:
from /home/kevin/esp32/esp-idf/components/freertos/include/freertos/portable.h:51,
from /home/kevin/esp32/esp-idf/components/freertos/include/freertos/FreeRTOS.h:63,
from /home/kevin/esp32/esp32_mpy/project/aitest/mpconfigport.h:328,
from /home/kevin/esp32/esp32_mpy/submodule/micropython/py/mpconfig.h:62,
from /home/kevin/esp32/esp32_mpy/submodule/micropython/py/mpstate.h:31,
from /home/kevin/esp32/esp32_mpy/submodule/micropython/py/runtime.h:29,
from /home/kevin/esp32/esp32_mpy/project/aitest/src/adapter/machine_hw_spi.c:31:
/home/kevin/esp32/esp-idf/components/soc/esp32s3/include/soc/cpu.h:25: warning: "WSR" redefined
#define WSR(reg, newval) asm volatile ("wsr %0, " #reg : : "r" (newval));
In file included from /home/kevin/esp32/esp-idf/components/freertos/port/xtensa/include/freertos/portmacro.h:41,
from /home/kevin/esp32/esp-idf/components/freertos/include/freertos/portable.h:51,
from /home/kevin/esp32/esp-idf/components/freertos/include/freertos/FreeRTOS.h:63,
from /home/kevin/esp32/esp32_mpy/project/aitest/mpconfigport.h:328,
from /home/kevin/esp32/esp32_mpy/submodule/micropython/py/mpconfig.h:62,
from /home/kevin/esp32/esp32_mpy/submodule/micropython/py/mpstate.h:31,
from /home/kevin/esp32/esp32_mpy/submodule/micropython/py/runtime.h:29,
from /home/kevin/esp32/esp32_mpy/project/aitest/src/adapter/machine_hw_spi.c:31:
/home/kevin/esp32/esp-idf/components/xtensa/include/xt_instr_macros.h:18: note: this is the location of the previous definition
#define WSR(reg, at) asm volatile ("wsr %0, %1" : : "r" (at), "i" (reg))
In file included from /home/kevin/esp32/esp-idf/components/esp_hw_support/include/soc/spinlock.h:11,
from /home/kevin/esp32/esp-idf/components/freertos/port/xtensa/include/freertos/portmacro.h:42,
from /home/kevin/esp32/esp-idf/components/freertos/include/freertos/portable.h:51,
from /home/kevin/esp32/esp-idf/components/freertos/include/freertos/FreeRTOS.h:63,
from /home/kevin/esp32/esp32_mpy/project/aitest/mpconfigport.h:328,
from /home/kevin/esp32/esp32_mpy/submodule/micropython/py/mpconfig.h:62,
from /home/kevin/esp32/esp32_mpy/submodule/micropython/py/mpstate.h:31,
from /home/kevin/esp32/esp32_mpy/submodule/micropython/py/runtime.h:29,
from /home/kevin/esp32/esp32_mpy/project/aitest/src/adapter/machine_hw_spi.c:31:
/home/kevin/esp32/esp-idf/components/soc/esp32s3/include/soc/cpu.h:26: warning: "XSR" redefined
#define XSR(reg, swapval) asm volatile ("xsr %0, " #reg : "+r" (swapval));
In file included from /home/kevin/esp32/esp-idf/components/freertos/port/xtensa/include/freertos/portmacro.h:41,
from /home/kevin/esp32/esp-idf/components/freertos/include/freertos/portable.h:51,
from /home/kevin/esp32/esp-idf/components/freertos/include/freertos/FreeRTOS.h:63,
from /home/kevin/esp32/esp32_mpy/project/aitest/mpconfigport.h:328,
from /home/kevin/esp32/esp32_mpy/submodule/micropython/py/mpconfig.h:62,
from /home/kevin/esp32/esp32_mpy/submodule/micropython/py/mpstate.h:31,
from /home/kevin/esp32/esp32_mpy/submodule/micropython/py/runtime.h:29,
from /home/kevin/esp32/esp32_mpy/project/aitest/src/adapter/machine_hw_spi.c:31:
/home/kevin/esp32/esp-idf/components/xtensa/include/xt_instr_macros.h:19: note: this is the location of the previous definition
#define XSR(reg, at) asm volatile ("xsr %0, %1" : "+r" (at) : "i" (reg))
Traceback (most recent call last):
File "/home/kevin/esp32/esp32_mpy/submodule/micropython/py/makeqstrdefs.py", line 188, in <module>
preprocess()
File "/home/kevin/esp32/esp32_mpy/submodule/micropython/py/makeqstrdefs.py", line 62, in preprocess
for output in p.imap(pp(flags), chunks):
File "/usr/lib/python3.8/multiprocessing/pool.py", line 868, in next
raise value
File "/usr/lib/python3.8/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/home/kevin/esp32/esp32_mpy/submodule/micropython/py/makeqstrdefs.py", line 46, in run
return subprocess.check_output(args.pp + flags + files)
File "/usr/lib/python3.8/subprocess.py", line 415, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/lib/python3.8/subprocess.py", line 516, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/home/kevin/.espressif/tools/xtensa-esp32s3-elf/esp-2021r2-8.4.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gcc', '-E', '-I/home/kevin/esp32/esp32_mpy/project/aitest/build-GENERIC_S3/config', '-I/home/kevin/esp32/esp32_mpy/submodule/micropython', '-I/home/kevin/esp32/esp32_mpy/submodule/micro
是在这一步之后出现的:
[94/101] Linking C static library esp-idf/spi_flash/libspi_flash.a
[95/101] Linking C static library esp-idf/micro-ecc/libmicro-ecc.a
[96/101] Linking C static library esp-idf/soc/libsoc.a
[97/101] Linking C static library esp-idf/hal/libhal.a
[98/101] Linking C static library esp-idf/main/libmain.a
[99/101] Linking C executable bootloader.elf
[100/101] Generating binary image from built executable
esptool.py v3.2-dev
Merged 1 ELF section
Generated /home/kevin/esp32/esp32_mpy/project/aitest/build-GENERIC_S3/bootloader/bootloader.bin
[101/101] cd /home/kevin/esp32/esp32_mpy/project/aitest/build-GENERIC_S3/bootloader/esp-idf/esptool_py && /home/kevin/.espressif/python_env/idf5.0_py3.7_env/bin/python /home/kevin/esp32/esp-idf/components/partition_table/check_sizes.py --offset 0x8000 bootloader 0x0 /home/kevin/esp32/esp32_mpy/project/aitest/build-GENERIC_S3/bootloader/bootloader.bin
Bootloader binary size 0x4e80 bytes. 0x3180 bytes (39%) free.
[1090/1594] Generating ../../genhdr/mpversion.h
GEN /home/kevin/esp32/esp32_mpy/project/aitest/build-GENERIC_S3/genhdr/mpversion.h
[1094/1594] Generating ../../genhdr/qstr.i.last
啊对不起 提错仓库了 ,应该在esp32_mpy这个仓库下的
您好,现在正在编译您这个工程,我使用idf 4.4时,用官方micropython是可以正常编译出mpy固件来的,当用您这个子模块的mpy时,总是提示错误: 能麻烦您更新一下readme里的子模块commit id吗,感谢!