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

Issue building project on Rasberry Pi 5 #115

Open
antypko opened this issue Apr 21, 2024 · 0 comments
Open

Issue building project on Rasberry Pi 5 #115

antypko opened this issue Apr 21, 2024 · 0 comments
Labels
comp:compiler Compiler related issues Hardware:Dev Board Coral Dev Board issues subtype:ubuntu/linux type:build/Install Build and install issues

Comments

@antypko
Copy link

antypko commented Apr 21, 2024

Description

Following this guide for building an example:
https://coral.ai/docs/dev-board-micro/get-started/#5-try-the-face-detection-example

During building process I am getting error:

`
CMake Error at /usr/share/cmake-3.25/Modules/CMakeTestCCompiler.cmake:70 (message):
The C compiler

"/home/sviatoslavchetyrkin/coral/coralmicro/third_party/toolchain-linux/gcc-arm-none-eabi-9-2020-q2-update/bin/arm-none-eabi-gcc"

is not able to compile a simple test program.

It fails with the following output:

Change Dir: /home/sviatoslavchetyrkin/coral/coralmicro/build/CMakeFiles/CMakeScratch/TryCompile-ImpHZL

Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_dd72c/fast && /usr/bin/gmake  -f CMakeFiles/cmTC_dd72c.dir/build.make CMakeFiles/cmTC_dd72c.dir/build
gmake[1]: Entering directory '/home/sviatoslavchetyrkin/coral/coralmicro/build/CMakeFiles/CMakeScratch/TryCompile-ImpHZL'
Building C object CMakeFiles/cmTC_dd72c.dir/testCCompiler.c.obj
/home/sviatoslavchetyrkin/coral/coralmicro/third_party/toolchain-linux/gcc-arm-none-eabi-9-2020-q2-update/bin/arm-none-eabi-gcc   -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/sviatoslavchetyrkin/coral/coralmicro= -std=gnu99  -o CMakeFiles/cmTC_dd72c.dir/testCCompiler.c.obj -c /home/sviatoslavchetyrkin/coral/coralmicro/build/CMakeFiles/CMakeScratch/TryCompile-ImpHZL/testCCompiler.c
/home/sviatoslavchetyrkin/coral/coralmicro/third_party/toolchain-linux/gcc-arm-none-eabi-9-2020-q2-update/bin/arm-none-eabi-gcc: 1: ELF: not found
/home/sviatoslavchetyrkin/coral/coralmicro/third_party/toolchain-linux/gcc-arm-none-eabi-9-2020-q2-update/bin/arm-none-eabi-gcc: 2: Syntax error: "(" unexpected
gmake[1]: *** [CMakeFiles/cmTC_dd72c.dir/build.make:78: CMakeFiles/cmTC_dd72c.dir/testCCompiler.c.obj] Error 2
gmake[1]: Leaving directory '/home/sviatoslavchetyrkin/coral/coralmicro/build/CMakeFiles/CMakeScratch/TryCompile-ImpHZL'
gmake: *** [Makefile:127: cmTC_dd72c/fast] Error 2

CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:22 (project)
`

I am using Raspberry Pi 5 as development station and have installed python 3.11.2

Click to expand!

Issue Type

Build/Install

Operating System

Linux

Coral Device

Dev Board Micro

Other Devices

No response

Programming Language

Other

Relevant Log Output

+ cmake -B /home/sviatoslavchetyrkin/coral/coralmicro/build -G 'Unix Makefiles' -S /home/sviatoslavchetyrkin/coral/coralmicro
/home/sviatoslavchetyrkin/coral/coralmicro/third_party/toolchain-linux/gcc-arm-none-eabi-9-2020-q2-update/bin/arm-none-eabi-gcc: 1: ELF: not found
/home/sviatoslavchetyrkin/coral/coralmicro/third_party/toolchain-linux/gcc-arm-none-eabi-9-2020-q2-update/bin/arm-none-eabi-gcc: 2: Syntax error: "(" unexpected
-- Toolchain prefix: /
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- Detecting C compiler ABI info
/home/sviatoslavchetyrkin/coral/coralmicro/third_party/toolchain-linux/gcc-arm-none-eabi-9-2020-q2-update/bin/arm-none-eabi-gcc: 1: ELF: not found
/home/sviatoslavchetyrkin/coral/coralmicro/third_party/toolchain-linux/gcc-arm-none-eabi-9-2020-q2-update/bin/arm-none-eabi-gcc: 2: Syntax error: "(" unexpected
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: /home/sviatoslavchetyrkin/coral/coralmicro/third_party/toolchain-linux/gcc-arm-none-eabi-9-2020-q2-update/bin/arm-none-eabi-gcc
/home/sviatoslavchetyrkin/coral/coralmicro/third_party/toolchain-linux/gcc-arm-none-eabi-9-2020-q2-update/bin/arm-none-eabi-gcc: 1: ELF: not found
/home/sviatoslavchetyrkin/coral/coralmicro/third_party/toolchain-linux/gcc-arm-none-eabi-9-2020-q2-update/bin/arm-none-eabi-gcc: 2: Syntax error: "(" unexpected
-- Check for working C compiler: /home/sviatoslavchetyrkin/coral/coralmicro/third_party/toolchain-linux/gcc-arm-none-eabi-9-2020-q2-update/bin/arm-none-eabi-gcc - broken
CMake Error at /usr/share/cmake-3.25/Modules/CMakeTestCCompiler.cmake:70 (message):
  The C compiler

    "/home/sviatoslavchetyrkin/coral/coralmicro/third_party/toolchain-linux/gcc-arm-none-eabi-9-2020-q2-update/bin/arm-none-eabi-gcc"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: /home/sviatoslavchetyrkin/coral/coralmicro/build/CMakeFiles/CMakeScratch/TryCompile-ImpHZL
    
    Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_dd72c/fast && /usr/bin/gmake  -f CMakeFiles/cmTC_dd72c.dir/build.make CMakeFiles/cmTC_dd72c.dir/build
    gmake[1]: Entering directory '/home/sviatoslavchetyrkin/coral/coralmicro/build/CMakeFiles/CMakeScratch/TryCompile-ImpHZL'
    Building C object CMakeFiles/cmTC_dd72c.dir/testCCompiler.c.obj
    /home/sviatoslavchetyrkin/coral/coralmicro/third_party/toolchain-linux/gcc-arm-none-eabi-9-2020-q2-update/bin/arm-none-eabi-gcc   -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/sviatoslavchetyrkin/coral/coralmicro= -std=gnu99  -o CMakeFiles/cmTC_dd72c.dir/testCCompiler.c.obj -c /home/sviatoslavchetyrkin/coral/coralmicro/build/CMakeFiles/CMakeScratch/TryCompile-ImpHZL/testCCompiler.c
    /home/sviatoslavchetyrkin/coral/coralmicro/third_party/toolchain-linux/gcc-arm-none-eabi-9-2020-q2-update/bin/arm-none-eabi-gcc: 1: ELF: not found
    /home/sviatoslavchetyrkin/coral/coralmicro/third_party/toolchain-linux/gcc-arm-none-eabi-9-2020-q2-update/bin/arm-none-eabi-gcc: 2: Syntax error: "(" unexpected
    gmake[1]: *** [CMakeFiles/cmTC_dd72c.dir/build.make:78: CMakeFiles/cmTC_dd72c.dir/testCCompiler.c.obj] Error 2
    gmake[1]: Leaving directory '/home/sviatoslavchetyrkin/coral/coralmicro/build/CMakeFiles/CMakeScratch/TryCompile-ImpHZL'
    gmake: *** [Makefile:127: cmTC_dd72c/fast] Error 2
    
    

  

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:22 (project)


-- Configuring incomplete, errors occurred!
See also "/home/sviatoslavchetyrkin/coral/coralmicro/build/CMakeFiles/CMakeOutput.log".
See also "/home/sviatoslavchetyrkin/coral/coralmicro/build/CMakeFiles/CMakeError.log".
@google-coral-bot google-coral-bot bot added comp:compiler Compiler related issues Hardware:Dev Board Coral Dev Board issues subtype:ubuntu/linux type:build/Install Build and install issues labels Apr 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:compiler Compiler related issues Hardware:Dev Board Coral Dev Board issues subtype:ubuntu/linux type:build/Install Build and install issues
Projects
None yet
Development

No branches or pull requests

1 participant