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

Can't build on raspbian #24

Closed
aacn14521 opened this issue Apr 18, 2020 · 3 comments
Closed

Can't build on raspbian #24

aacn14521 opened this issue Apr 18, 2020 · 3 comments
Labels

Comments

@aacn14521
Copy link

Hi,

I wanted to run mbed-edge on raspbian, and I built it as follows, but the error occurred as follows.
How can I solve it?

==== executed command ====
udo apt-get -y update
sudo apt-get -y install libc6-dev
sudo apt-get -y install libmosquitto-dev mosquitto-clients
sudo apt-get -y install build-essential cmake git doxygen graphviz
git clone https://github.com/ARMmbed/mbed-edge/
cd mbed-edge
#git submodule update --init --recursive
git submodule init
git submodule update
mkdir build
cd build
cat < toolchain_file
set(CMAKE_MAKE_PROGRAM make)
set(CMAKE_C_COMPILER gcc)
set(CMAKE_CXX_COMPILER g++)
EOF
cmake -DCMAKE_TOOLCHAIN_FILE=toolchain_file -DDEVELOPER_MODE=ON -DFIRMWARE_UPDATE=OFF ..
make

==== error ====
cmake -DCMAKE_TOOLCHAIN_FILE=toolchain_file -DDEVELOPER_MODE=ON -DFIRMWARE_UPDATE=OFF ..
-- The C compiler identification is GNU 8.3.0
-- Check for working C compiler: /usr/bin/gcc
CMake Error: Generator: execution of make failed. Make command was: "" "cmTC_5fedb/fast"
-- Check for working C compiler: /usr/bin/gcc -- broken
CMake Error at /usr/share/cmake-3.13/Modules/CMakeTestCCompiler.cmake:52 (message):
The C compiler

"/usr/bin/gcc"

is not able to compile a simple test program.

It fails with the following output:

Change Dir: /home/pi/src/pelion/mbed-edge/build/CMakeFiles/CMakeTmp

Run Build Command:"" "cmTC_5fedb/fast"
No such file or directory
Generator: execution of make failed. Make command was: "" "cmTC_5fedb/fast"

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

-- Configuring incomplete, errors occurred!
See also "/home/pi/src/pelion/mbed-edge/build/CMakeFiles/CMakeOutput.log".
See also "/home/pi/src/pelion/mbed-edge/build/CMakeFiles/CMakeError.log".

Thank you.

@cmonr
Copy link

cmonr commented Apr 21, 2020

@aacn14521 Why was this line commented out?

#git submodule update --init --recursive

I don't think git submodule update implies --recursive.

However, I also don't think that building on Raspbian is supported.

@ciarmcom
Copy link

ARM Internal Ref: IOTGW-1070

@whygoyal
Copy link
Contributor

Raspbian is not a supported platform. To build mbed-edge (part of Pelion Edge) for RPi, please follow the project - https://github.com/armPelionEdge/meta-pelion-edge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants