-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
xtools build hard-coded to use IAMCU compiler for all x86 targets #6911
Comments
Looking at CMakeCache.txt, it can't find any of the toolchain executables.
Is $CROSS_COMPILE not being set properly with xtools? I have
Contents of my toolchain installation |
Our xtools.cmake is broken, it's hard-coded to use the IAMCU compiler for some reason for ALL x86 targets not just the ones that actually do use IAMCU (arduino_101, qemu_x86_iamcu). I had to change it:
|
We could improve the error message too. "CMake Error at /Users/andrew/zephyr/cmake/extensions.cmake:984 (message): No such file or directory: CMAKE_READELF: 'CMAKE_READELF-NOTFOUND'" Actually means that the build can't find the toolchain. |
The error message is now a lot more useful. |
Add placeholders for all possible xtools toolchains. Fixes zephyrproject-rtos#6911 Signed-off-by: Anas Nashif <[email protected]>
Add placeholders for all possible xtools toolchains. Fixes #6911 Signed-off-by: Anas Nashif <[email protected]>
I have brew binutils 2.30 installed, but it installs it as "greadelf" and not "readelf" and CMake can't find it. Creating a symlink did not help.
CMake Error at /Users/andrew/zephyr/cmake/extensions.cmake:984 (message): No such file or directory: CMAKE_READELF: 'CMAKE_READELF-NOTFOUND' Call Stack (most recent call first): /Users/andrew/zephyr/cmake/compiler/gcc.cmake:14 (assert_exists) /Users/andrew/zephyr/cmake/toolchain.cmake:38 (include) /Users/andrew/zephyr/cmake/app/boilerplate.cmake:242 (include) CMakeLists.txt:1 (include)
The text was updated successfully, but these errors were encountered: