As I’m working on the uTVM tutorial, with the latest great from master I’m now hitting the following:
File "./micro_tflite.py", line 183, in <module>
micro_mod = micro.create_micro_mod(c_mod, dev_config)
File "/home/tgall/tvm/tvm/python/tvm/micro/base.py", line 212, in create_micro_mod
lib_include_paths=lib_include_paths))
File "/home/tgall/tvm/tvm/python/tvm/runtime/module.py", line 340, in export_library
fcompile(file_name, files, **kwargs)
File "/home/tgall/tvm/tvm/python/tvm/contrib/cc.py", line 153, in _fcompile
compile_func(outputs, objects + add_files, options=all_options, **kwargs)
File "/home/tgall/tvm/tvm/python/tvm/micro/base.py", line 295, in compile_func
create_micro_lib(obj_path, src_path, lib_type, options, lib_src_paths=lib_src_paths)
File "/home/tgall/tvm/tvm/python/tvm/micro/device/arm/stm32f746xx.py", line 87, in create_micro_lib
lib_src_paths=lib_src_paths)
File "/home/tgall/tvm/tvm/python/tvm/micro/device/base.py", line 166, in create_micro_lib_base
run_cmd(curr_compile_cmd)
File "/home/tgall/tvm/tvm/python/tvm/contrib/binutil.py", line 97, in run_cmd
raise RuntimeError(msg)
RuntimeError: error while running command "arm-none-eabi-gcc -std=c11 -Wall -Wextra --pedantic -c -g -nostartfiles -nodefaultlibs -nostdlib -fdata-sections -ffunction-sections -I/home/tgall/tvm/tvm/include -I/home/tgall/tvm/tvm/3rdparty/dlpack/include -I/home/tgall/tvm/tvm/3rdparty/dmlc-core/include -O2 -mcpu=cortex-m7 -mlittle-endian -mfloat-abi=hard -mfpu=fpv5-sp-d16 -mthumb -ffast-math -gdwarf-5 -DARM_MATH_CM7 -D__FPU_PRESENT=1U -DARM_MATH_DSP -Wno-unused-variable -Wno-unused-parameter -I/home/tgall/st/STM32Cube_FW_F7_V1.16.0/Drivers/CMSIS -I/home/tgall/st/STM32Cube_FW_F7_V1.16.0/Drivers/CMSIS/Core/Include -I /home/tgall/tvm/tvm/include -I /home/tgall/tvm/tvm/3rdparty/dlpack/include -I /home/tgall/tvm/tvm/3rdparty/dmlc-core/include -I /home/tgall/tvm/tvm/python/tvm/micro/../../../src/runtime/micro/host_driven /tmp/tmpe7nlbq80/temp.c -o /tmp/tmpe7nlbq80/temp.o":
/tmp/tmpe7nlbq80/temp.c: In function 'fused_reshape':
/tmp/tmpe7nlbq80/temp.c:172:7: error: 'float8' undeclared (first use in this function); did you mean 'float'?
172 | ((float8*)((float*)T_reshape + ((ax1_outer * 8))))[0] = ((float8*)((float*)placeholder + ((ax1_outer * 8))))[0];
| ^~~~~~
| float
/tmp/tmpe7nlbq80/temp.c:172:7: note: each undeclared identifier is reported only once for each function it appears in
/tmp/tmpe7nlbq80/temp.c:172:14: error: expected expression before ')' token
172 | ((float8*)((float*)T_reshape + ((ax1_outer * 8))))[0] = ((float8*)((float*)placeholder + ((ax1_outer * 8))))[0];
| ^
/tmp/tmpe7nlbq80/temp.c:172:70: error: expected expression before ')' token
172 | ((float8*)((float*)T_reshape + ((ax1_outer * 8))))[0] = ((float8*)((float*)placeholder + ((ax1_outer * 8))))[0];
| ^