EbbRT icon indicating copy to clipboard operation
EbbRT copied to clipboard

Building helloworld.elf

Open PrsMittal opened this issue 4 years ago • 1 comments

Hey! I was trying to build an EbbRT dependent application, so I followed the instructions given in https://github.com/SESA/EbbRT/wiki/Build-Tutorial-Notes. While building the helloworld application, I got this error:

-- The C compiler identification is unknown -- The CXX compiler identification is unknown System is unknown to cmake, create: Platform/EbbRT to use this system, please send your config file to [email protected] so it can be added to cmake Your CMakeCache.txt file was copied to CopyOfCMakeCache.txt. Please send that file to [email protected]. CMake Error at CMakeLists.txt:2 (project): The CMAKE_C_COMPILER:

/home/user/ebbrt-sysroot/ebbrt/usr/bin/x86_64-pc-ebbrt-gcc

is not a full path to an existing compiler tool.

Tell CMake where to find the compiler by setting either the environment variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to the compiler, or to the compiler name if it is in the PATH.

CMake Error at CMakeLists.txt:2 (project): The CMAKE_CXX_COMPILER:

/home/user/ebbrt-sysroot/ebbrt/usr/bin/x86_64-pc-ebbrt-g++

is not a full path to an existing compiler tool.

Tell CMake where to find the compiler by setting either the environment variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path to the compiler, or to the compiler name if it is in the PATH.

-- Configuring incomplete, errors occurred!

If I understood it correctly this means that cmake is trying to find a cross compiler binary "x86_64-pc-ebbrt-gxx" as specified by ebbrt.cmake. However, during the build, no such file was created. Any pointers on how to solve this would be highly appreciated.

PrsMittal avatar Feb 21 '21 17:02 PrsMittal

You should check out this link instead, we updated the building steps: https://github.com/SESA/EbbRT/wiki/Build-Tutorial-(DRAFT)

After you run this line, the toolchain should be built make -j -f ../EbbRT/toolchain/Makefile

You should make sure the base libraries you have installed on your Linux to be same as specified in the Build-Tutorial-Notes, else you'll likely hit building errors.

The easiest way to test out EbbRT will probably be using docker, we have a container image that has cross compiler built already, check it out here: https://hub.docker.com/r/ebbrt/seuss

handong32 avatar Feb 21 '21 21:02 handong32