xmos / xcore_iot

Other
29 stars 39 forks source link

Build example #529

Closed jaromirmacak closed 1 year ago

jaromirmacak commented 1 year ago

System information

Describe the problem Unable to build the example

Provide the exact sequence of commands / steps that you executed before running into the problem Jaromirs-MBP:xcore_sdk jaromirmacak$ cmake -B build -DCMAKE_TOOLCHAIN_FILE=xmos_cmake_toolchain/xs3a.cmake -- The C compiler identification is unknown -- The CXX compiler identification is unknown System is unknown to cmake, create: Platform/XCORE_XS3A to use this system, please post your config file on discourse.cmake.org so it can be added to cmake -- The ASM compiler identification is unknown -- Found assembler: /Applications/XMOS_XTC_15.1.4/bin/xcc -- Warning: Did not find file Compiler/-ASM -- Warning: Did not find file Compiler/-ASM -- Warning: Did not find file Compiler/-ASM -- Warning: Did not find file Compiler/-ASM -- Warning: Did not find file Compiler/-ASM -- Warning: Did not find file Compiler/-ASM -- Found Python3: /usr/bin/python3 (found version "3.8.2") found components: Interpreter -- Configuring done -- Generating done -- Build files have been written to: /Users/jaromirmacak/xcore_sdk/build Jaromirs-MBP:xcore_sdk jaromirmacak$ cd build Jaromirs-MBP:build jaromirmacak$ make Scanning dependencies of target framework_core_clock_control [ 0%] Building C object modules/core/modules/clock_control/CMakeFiles/framework_core_clock_control.dir/src/xcore_clock_control.c.obj Assertion failed: (toolsRoot != nullptr), function parseVersionInfo, file /System/Volumes/Data/jenkins/workspace/xmos-int_xcc_driver_master/tools_xcc/xcc/main.cpp, line 906. /bin/sh: line 1: 5030 Abort trap: 6 /Applications/XMOS_XTC_15.1.4/bin/xcc -I/Users/jaromirmacak/xcore_sdk/modules/core/modules/clock_control/api -I/Users/jaromirmacak/xcore_sdk/modules/core/modules/clock_control/src -I/Users/jaromirmacak/xcore_sdk/modules/core/modules/utils/api -I/Users/jaromirmacak/xcore_sdk/modules/core/modules/utils/src -march=xs3a -Os -o CMakeFiles/framework_core_clock_control.dir/src/xcore_clock_control.c.obj -c /Users/jaromirmacak/xcore_sdk/modules/core/modules/clock_control/src/xcore_clock_control.c make[2]: [modules/core/modules/clock_control/CMakeFiles/framework_core_clock_control.dir/src/xcore_clock_control.c.obj] Error 134 make[1]: [modules/core/modules/clock_control/CMakeFiles/framework_core_clock_control.dir/all] Error 2 make: *** [all] Error 2 Jaromirs-MBP:build jaromirmacak$

Other info or logs Following the tutorial step by step. I have the same issue on Linux as well

keithm-xmos commented 1 year ago

Hi @jaromirmacak, I apologize that you were unable to build the SDK examples. It appears that your XTC Tools are not fully or properly setup. This error means the XMOS_TOOL_PATH environment variable is not set. This is set by /Applications/XMOS_XTC_15.1.4/SetEnv.sh file that comes with the tools.

Here is a link the the XTC Tools docs that explain how to setup the environment: https://www.xmos.ai/documentation/XM-014363-PC-6/html/tools-guide/install-configure/getting-started.html#get-started

jaromirmacak commented 1 year ago

Hi, thank you for your quick support. I was running the SetEnv command with the source command. It is working now.