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

Building helloworld.elf #249

Open
PrsMittal opened this issue Feb 21, 2021 · 1 comment
Open

Building helloworld.elf #249

PrsMittal opened this issue Feb 21, 2021 · 1 comment

Comments

@PrsMittal
Copy link

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 cmake@www.cmake.org so it can be added to cmake
Your CMakeCache.txt file was copied to CopyOfCMakeCache.txt. Please send that file to cmake@www.cmake.org.
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.

@handong32
Copy link
Contributor

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

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

No branches or pull requests

2 participants