Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raspberry Pi 5 Ubuntu 24.04 build.sh issues #120

Closed
andrewtvuong opened this issue Jul 1, 2024 · 3 comments
Closed

Raspberry Pi 5 Ubuntu 24.04 build.sh issues #120

andrewtvuong opened this issue Jul 1, 2024 · 3 comments
Labels
comp:compiler Compiler related issues

Comments

@andrewtvuong
Copy link

andrewtvuong commented Jul 1, 2024

Description

There are many issues and I've worked through all of them except this last one:

  1. requirements.txt outdated : remove the frozen version to overcome wheel install
  2. third_party/linux_toolchain can't find object and compilers: update the x84_64 to aarch64 for RPi5
  3. build fails can't find any of the third party programs, missing all submodules : git config --system core.longpaths true && sudo git submodule update --init --recursive
  4. a71ch-crypto-support missing from the rest : git clone https://coral.googlesource.com/a71ch-crypto-support then mv it in place
  5. finally progress in building randomly fails at 56% : ??????
Click to expand!

Issue Type

No response

Operating System

No response

Coral Device

No response

Other Devices

No response

Programming Language

No response

Relevant Log Output

(venv) ➜  coralmicro git:(main) ✗ bash build.sh
+ cmake -B /home/pi/coralmicro/build -G 'Unix Makefiles' -S /home/pi/coralmicro
-- Toolchain prefix: /home/pi/coralmicro/third_party/toolchain-linux/gcc-arm-none-eabi-10.3-2021.10/lib/gcc/arm-none-eabi
-- Toolchain prefix: /home/pi/coralmicro/third_party/toolchain-linux/gcc-arm-none-eabi-10.3-2021.10/lib/gcc/arm-none-eabi
-- The C compiler identification is GNU 10.3.1
-- The CXX compiler identification is GNU 10.3.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /home/pi/coralmicro/third_party/toolchain-linux/gcc-arm-none-eabi-10.3-2021.10/bin/arm-none-eabi-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: /home/pi/coralmicro/third_party/toolchain-linux/gcc-arm-none-eabi-10.3-2021.10/bin/arm-none-eabi-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- The ASM compiler identification is GNU
-- Found assembler: /home/pi/coralmicro/third_party/toolchain-linux/gcc-arm-none-eabi-10.3-2021.10/bin/arm-none-eabi-gcc
-- Configuring done (0.8s)
-- Generating done (1.1s)
-- Build files have been written to: /home/pi/coralmicro/build
+ [[ -z '' ]]
+ [[ ! -z '' ]]
++ nproc
+ make -C /home/pi/coralmicro/build -j 4
make: Entering directory '/home/pi/coralmicro/build'
make[1]: Entering directory '/home/pi/coralmicro/build'
make[2]: Entering directory '/home/pi/coralmicro/build'
make[2]: Entering directory '/home/pi/coralmicro/build'
make[2]: Entering directory '/home/pi/coralmicro/build'
make[2]: Entering directory '/home/pi/coralmicro/build'
[ 55%] Building CXX object libs/tensorflow/CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/micro_allocator.cc.obj
[ 56%] Building CXX object libs/tensorflow/CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/micro_context.cc.obj
[ 56%] Building CXX object libs/tensorflow/CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/micro_error_reporter.cc.obj
[ 56%] Building CXX object libs/tensorflow/CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/micro_graph.cc.obj
[ 56%] Building CXX object libs/tensorflow/CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/micro_interpreter.cc.obj
[ 56%] Building CXX object libs/tensorflow/CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/micro_profiler.cc.obj
[ 56%] Building CXX object libs/tensorflow/CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/micro_resource_variable.cc.obj
[ 56%] Building CXX object libs/tensorflow/CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/micro_string.cc.obj
[ 56%] Building CXX object libs/tensorflow/CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/micro_time.cc.obj
[ 56%] Building CXX object libs/tensorflow/CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/micro_utils.cc.obj
[ 56%] Building CXX object libs/tensorflow/CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/mock_micro_graph.cc.obj
[ 56%] Building CXX object libs/tensorflow/CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/recording_micro_allocator.cc.obj
[ 56%] Building CXX object libs/tensorflow/CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/system_setup.cc.obj
[ 56%] Building CXX object libs/tensorflow/CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/schema/schema_utils.cc.obj
[ 56%] Linking CXX static library liblibs_tensorflow-m4.a
make[2]: Leaving directory '/home/pi/coralmicro/build'
[ 56%] Built target libs_tensorflow-m4
make[1]: Leaving directory '/home/pi/coralmicro/build'
make: *** [Makefile:91: all] Error 2
make: Leaving directory '/home/pi/coralmicro/build'
(venv) ➜  coralmicro git:(main) ✗
@google-coral-bot google-coral-bot bot added the comp:compiler Compiler related issues label Jul 1, 2024
@andrewtvuong
Copy link
Author

andrewtvuong commented Jul 1, 2024

Weird now im getting to 59%, weird that the progress made is random.. I turned on verbose.

[ 59%] Building CXX object libs/tensorflow/CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/recording_micro_allocator.cc.obj
cd /home/pi/coralmicro/build/libs/tensorflow && /home/pi/coralmicro/third_party/toolchain-linux/gcc-arm-none-eabi-10.3-2021.10/bin/arm-none-eabi-g++ -DCMSIS_NN -DCORAL_MICRO_ARDUINO=0 -DTF_LITE_STRIP_ERROR_STRINGS -DWIFI_PSK=\"\" -DWIFI_SSID=\"MyAccessPoint\" -I/home/pi/coralmicro/. -I/home/pi/coralmicro/third_party/tflite-micro -I/home/pi/coralmicro/third_party/CMSIS -I/home/pi/coralmicro/third_party/CMSIS/CMSIS/Core/Include -I/home/pi/coralmicro/third_party/CMSIS/CMSIS/DSP/Include -I/home/pi/coralmicro/third_party/CMSIS/CMSIS/NN/Include -I/home/pi/coralmicro/third_party/flatbuffers/include -I/home/pi/coralmicro/third_party/gemmlowp -I/home/pi/coralmicro/third_party/kissfft -I/home/pi/coralmicro/third_party/ruy -Wall -Wno-psabi -mthumb -fno-common -ffunction-sections -fdata-sections -ffreestanding -fno-builtin -mapcs-frame --specs=nano.specs --specs=nosys.specs -u _printf_float -ffile-prefix-map=/home/pi/coralmicro= -fno-rtti -fno-exceptions -g -Os -std=gnu++17 -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -DNDEBUG -MD -MT libs/tensorflow/CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/recording_micro_allocator.cc.obj -MF CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/recording_micro_allocator.cc.obj.d -o CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/recording_micro_allocator.cc.obj -c /home/pi/coralmicro/third_party/tflite-micro/tensorflow/lite/micro/recording_micro_allocator.cc
[ 59%] Building CXX object libs/tensorflow/CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/system_setup.cc.obj
cd /home/pi/coralmicro/build/libs/tensorflow && /home/pi/coralmicro/third_party/toolchain-linux/gcc-arm-none-eabi-10.3-2021.10/bin/arm-none-eabi-g++ -DCMSIS_NN -DCORAL_MICRO_ARDUINO=0 -DTF_LITE_STRIP_ERROR_STRINGS -DWIFI_PSK=\"\" -DWIFI_SSID=\"MyAccessPoint\" -I/home/pi/coralmicro/. -I/home/pi/coralmicro/third_party/tflite-micro -I/home/pi/coralmicro/third_party/CMSIS -I/home/pi/coralmicro/third_party/CMSIS/CMSIS/Core/Include -I/home/pi/coralmicro/third_party/CMSIS/CMSIS/DSP/Include -I/home/pi/coralmicro/third_party/CMSIS/CMSIS/NN/Include -I/home/pi/coralmicro/third_party/flatbuffers/include -I/home/pi/coralmicro/third_party/gemmlowp -I/home/pi/coralmicro/third_party/kissfft -I/home/pi/coralmicro/third_party/ruy -Wall -Wno-psabi -mthumb -fno-common -ffunction-sections -fdata-sections -ffreestanding -fno-builtin -mapcs-frame --specs=nano.specs --specs=nosys.specs -u _printf_float -ffile-prefix-map=/home/pi/coralmicro= -fno-rtti -fno-exceptions -g -Os -std=gnu++17 -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -DNDEBUG -MD -MT libs/tensorflow/CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/system_setup.cc.obj -MF CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/system_setup.cc.obj.d -o CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/system_setup.cc.obj -c /home/pi/coralmicro/third_party/tflite-micro/tensorflow/lite/micro/system_setup.cc
[ 59%] Building CXX object libs/tensorflow/CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/schema/schema_utils.cc.obj
cd /home/pi/coralmicro/build/libs/tensorflow && /home/pi/coralmicro/third_party/toolchain-linux/gcc-arm-none-eabi-10.3-2021.10/bin/arm-none-eabi-g++ -DCMSIS_NN -DCORAL_MICRO_ARDUINO=0 -DTF_LITE_STRIP_ERROR_STRINGS -DWIFI_PSK=\"\" -DWIFI_SSID=\"MyAccessPoint\" -I/home/pi/coralmicro/. -I/home/pi/coralmicro/third_party/tflite-micro -I/home/pi/coralmicro/third_party/CMSIS -I/home/pi/coralmicro/third_party/CMSIS/CMSIS/Core/Include -I/home/pi/coralmicro/third_party/CMSIS/CMSIS/DSP/Include -I/home/pi/coralmicro/third_party/CMSIS/CMSIS/NN/Include -I/home/pi/coralmicro/third_party/flatbuffers/include -I/home/pi/coralmicro/third_party/gemmlowp -I/home/pi/coralmicro/third_party/kissfft -I/home/pi/coralmicro/third_party/ruy -Wall -Wno-psabi -mthumb -fno-common -ffunction-sections -fdata-sections -ffreestanding -fno-builtin -mapcs-frame --specs=nano.specs --specs=nosys.specs -u _printf_float -ffile-prefix-map=/home/pi/coralmicro= -fno-rtti -fno-exceptions -g -Os -std=gnu++17 -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -DNDEBUG -MD -MT libs/tensorflow/CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/schema/schema_utils.cc.obj -MF CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/schema/schema_utils.cc.obj.d -o CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/schema/schema_utils.cc.obj -c /home/pi/coralmicro/third_party/tflite-micro/tensorflow/lite/schema/schema_utils.cc
[ 59%] Linking CXX static library liblibs_tensorflow-m4.a
cd /home/pi/coralmicro/build/libs/tensorflow && /usr/bin/cmake -P CMakeFiles/libs_tensorflow-m4.dir/cmake_clean_target.cmake
cd /home/pi/coralmicro/build/libs/tensorflow && /usr/bin/cmake -E cmake_link_script CMakeFiles/libs_tensorflow-m4.dir/link.txt --verbose=1
/home/pi/coralmicro/third_party/toolchain-linux/gcc-arm-none-eabi-10.3-2021.10/bin/arm-none-eabi-ar rcsP liblibs_tensorflow-m4.a "CMakeFiles/libs_tensorflow-m4.dir/debug_log.c.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/test_helpers.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/c/common.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/core/api/error_reporter.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/core/api/flatbuffer_conversions.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/core/api/op_resolver.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/core/api/tensor_utils.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/experimental/microfrontend/lib/fft.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/experimental/microfrontend/lib/fft_io.c.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/experimental/microfrontend/lib/fft_util.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/experimental/microfrontend/lib/filterbank.c.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/experimental/microfrontend/lib/filterbank_io.c.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/experimental/microfrontend/lib/filterbank_util.c.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/experimental/microfrontend/lib/frontend.c.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/experimental/microfrontend/lib/frontend_io.c.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/experimental/microfrontend/lib/frontend_util.c.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/experimental/microfrontend/lib/log_lut.c.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/experimental/microfrontend/lib/log_scale.c.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/experimental/microfrontend/lib/log_scale_io.c.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/experimental/microfrontend/lib/log_scale_util.c.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/experimental/microfrontend/lib/noise_reduction.c.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/experimental/microfrontend/lib/noise_reduction_io.c.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/experimental/microfrontend/lib/noise_reduction_util.c.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/experimental/microfrontend/lib/pcan_gain_control.c.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/experimental/microfrontend/lib/pcan_gain_control_util.c.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/experimental/microfrontend/lib/window.c.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/experimental/microfrontend/lib/window_io.c.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/experimental/microfrontend/lib/window_util.c.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/kernels/internal/quantization_util.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/kernels/internal/reference/portable_tensor_utils.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/kernels/kernel_util.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/all_ops_resolver.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/arena_allocator/non_persistent_arena_buffer_allocator.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/arena_allocator/persistent_arena_buffer_allocator.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/arena_allocator/recording_single_arena_buffer_allocator.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/arena_allocator/single_arena_buffer_allocator.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/fake_micro_context.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/flatbuffer_utils.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/activations.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/activations_common.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/add_common.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/add_n.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/arg_min_max.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/assign_variable.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/batch_to_space_nd.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/broadcast_args.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/broadcast_to.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/call_once.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/cast.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/ceil.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/circular_buffer.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/circular_buffer_common.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/cmsis_nn/add.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/cmsis_nn/conv.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/cmsis_nn/depthwise_conv.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/cmsis_nn/fully_connected.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/cmsis_nn/mul.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/cmsis_nn/pooling.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/cmsis_nn/softmax.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/cmsis_nn/svdf.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/comparisons.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/concatenation.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/conv_common.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/cumsum.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/depth_to_space.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/depthwise_conv_common.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/dequantize.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/dequantize_common.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/detection_postprocess.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/div.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/elementwise.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/elu.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/ethosu.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/exp.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/expand_dims.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/fill.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/floor.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/floor_div.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/floor_mod.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/fully_connected_common.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/gather.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/gather_nd.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/hard_swish.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/hard_swish_common.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/if.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/kernel_runner.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/kernel_util.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/l2_pool_2d.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/l2norm.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/leaky_relu.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/leaky_relu_common.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/log_softmax.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/logical.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/logical_common.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/logistic.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/logistic_common.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/lstm_eval.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/maximum_minimum.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/micro_tensor_utils.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/mirror_pad.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/mul_common.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/neg.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/pack.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/pad.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/pooling_common.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/prelu.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/prelu_common.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/quantize.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/quantize_common.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/read_variable.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/reduce.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/reduce_common.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/reshape.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/resize_bilinear.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/resize_nearest_neighbor.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/round.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/shape.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/slice.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/softmax_common.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/space_to_batch_nd.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/space_to_depth.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/split.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/split_v.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/squared_difference.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/squeeze.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/strided_slice.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/sub.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/sub_common.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/svdf_common.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/tanh.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/transpose.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/transpose_conv.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/unidirectional_sequence_lstm.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/unpack.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/var_handle.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/while.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/kernels/zeros_like.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/memory_helpers.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/memory_planner/greedy_memory_planner.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/memory_planner/linear_memory_planner.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/memory_planner/non_persistent_buffer_planner_shim.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/micro_allocation_info.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/micro_allocator.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/micro_context.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/micro_error_reporter.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/micro_graph.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/micro_interpreter.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/micro_profiler.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/micro_resource_variable.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/micro_string.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/micro_time.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/micro_utils.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/mock_micro_graph.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/recording_micro_allocator.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/micro/system_setup.cc.obj" "CMakeFiles/libs_tensorflow-m4.dir/__/__/third_party/tflite-micro/tensorflow/lite/schema/schema_utils.cc.obj"
make[2]: Leaving directory '/home/pi/coralmicro/build'
[ 59%] Built target libs_tensorflow-m4
make[1]: Leaving directory '/home/pi/coralmicro/build'
make: *** [Makefile:91: all] Error 2
make: Leaving directory '/home/pi/coralmicro/build'

@andrewtvuong
Copy link
Author

seems my hacks did not work, making this change #86 and steps 1 and 3 does succeed the build.

lsusb does detect Google Inc. Coral Dev Board Micro

However elftosb is incorrect since architecture for amd64 and not aarch64.

(venv) ➜  coralmicro git:(main) ✗ python3 scripts/flashtool.py -e detect_faces --nodata  

Traceback (most recent call last):
  File "/home/jasper/coralmicro/scripts/flashtool.py", line 1193, in <module>
    main()
  File "/home/jasper/coralmicro/scripts/flashtool.py", line 1027, in main
    elftosb_path) if args.flashloader_path else MakeFlashloader(build_dir, cached_files, elftosb_path)
                                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/jasper/coralmicro/scripts/flashtool.py", line 243, in MakeFlashloader
    return MakeFlashloaderFromSrec(srec_path, elftosb_path)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/jasper/coralmicro/scripts/flashtool.py", line 265, in MakeFlashloaderFromSrec
    subprocess.check_call([elftosb_path, '-f', 'imx', '-V', '-c', bdfile_path, '-o',
  File "/usr/lib/python3.12/subprocess.py", line 408, in check_call
    retcode = call(*popenargs, **kwargs)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/subprocess.py", line 389, in call
    with Popen(*popenargs, **kwargs) as p:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/subprocess.py", line 1026, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib/python3.12/subprocess.py", line 1955, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
OSError: [Errno 8] Exec format error: '/home/jasper/coralmicro/third_party/nxp/elftosb/linux/amd64/elftosb'

So I had to manually compile one for it this succeed without errors while running python3 scripts/flashtool.py -e detect_faces however introduces a new problem of

(venv) ➜  coralmicro git:(main) ✗ python3 scripts/flashtool.py -a multicore_model_cascade        

/tmp/tmp_bcg2yq1/ivt_flashloader.bin does not exist

Copy link

Are you satisfied with the resolution of your issue?
Yes
No

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:compiler Compiler related issues
Projects
None yet
Development

No branches or pull requests

1 participant