Hi,<br><br>I am now trying to put a toolchain file together for the aforementioned embedded environment on my Windows 7 workstation. You can see the file contents I have, and the errors I get below. When I just use the compiler against the one liner main.c, it works off hand. I also tried to force the C/C++ compilers, but even though the cmake ran fine, jom failed pretty much with the same error.<br>
<br>Any help is much appreciated!<br><br>Laszlo<br><br>-----------------------------------------------------------------<br><b><br>main.c</b><br><br>int main() {return 0;}<br><br><b>CMakeLists.txt</b><br><br>add_executable(skeleton main.c)<br>
<br><b>ToolchainFile-C6000</b><br><br># include(&quot;CMakeForceCompiler&quot;)<br><br>set(CMAKE_SYSTEM_NAME &quot;Sysbios&quot;)<br>set(CMAKE_SYSTEM_VERSION &quot;1.0&quot;)<br>set(CMAKE_SYSTEM_PROCESSOR &quot;C6000&quot;)<br>
<br>set(CMAKE_FIND_ROOT_PATH    &quot;${CMAKE_FIND_ROOT_PATH}&quot;<br>                &quot;C:/ti/C6000 Code Generation Tools 7.3.0B3/bin&quot;<br>                &quot;C:/ti/C6000 Code Generation Tools 7.3.0B3/include&quot;<br>
                &quot;C:/ti/C6000 Code Generation Tools 7.3.0B3/lib&quot;)<br><br># CMAKE_FORCE_C_COMPILER(&quot;C:/ti/C6000 Code Generation Tools 7.3.0B3/bin/cl6x.exe&quot; &quot;TI&quot;)<br># CMAKE_FORCE_CXX_COMPILER(&quot;C:/ti/C6000 Code Generation Tools 7.3.0B3/bin/cl6x.exe&quot; &quot;TI&quot;)<br>
<br>SET(CMAKE_C_COMPILER  &quot;C:/ti/C6000 Code Generation Tools 7.3.0B3/bin/cl6x.exe&quot;)<br>SET(CMAKE_CXX_COMPILER  &quot;C:/ti/C6000 Code Generation Tools 7.3.0B3/bin/cl6x.exe&quot;)<br><br>set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM    BOTH)<br>
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE    BOTH)<br>set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY    ONLY)<br><br><b>ERROR<br></b><pre>cmake -G &quot;NMake Makefiles JOM&quot; -DCMAKE_TOOLCHAIN_FILE=../toolchain-cl6x.cmake ..
-- The C compiler identification is TI_DSP 7.3.0
-- The CXX compiler identification is TI_DSP 7.3.0
-- Check for working C compiler: C:/ti/C6000 Code Generation Tools 7.3.0B3/bin/c
l6x.exe
-- Check for working C compiler: C:/ti/C6000 Code Generation Tools 7.3.0B3/bin/c
l6x.exe -- broken
CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/CMakeTes
tCCompiler.cmake:61 (message):
  The C compiler &quot;C:/ti/C6000 Code Generation Tools 7.3.0B3/bin/cl6x.exe&quot; is
  not able to compile a simple test program.

  It fails with the following output:

   Change Dir: C:/Projects/share/skeleton/build/CMakeFiles/CMakeTmp



  Run Build Command:jom &quot;cmTryCompileExec2474985119\fast&quot;



  jom 1.0.13 - empower your cores



        &quot;C:\Program Files (x86)\jom\jom.exe&quot; -f
  CMakeFiles\cmTryCompileExec2474985119.dir\build.make /nologo -
  CMakeFiles\cmTryCompileExec2474985119.dir\build

        &quot;C:\Program Files (x86)\CMake 2.8\bin\cmake.exe&quot; -E cmake_progress_repor
t
  C:\Projects\share\skeleton\build\CMakeFiles\CMakeTmp\CMakeFiles 1

  Building C object
  CMakeFiles/cmTryCompileExec2474985119.dir/testCCompiler.c.obj

        C:\ti\C6000C~1.0B3\bin\cl6x.exe -o
  CMakeFiles\cmTryCompileExec2474985119.dir\testCCompiler.c.obj -c
  C:\Projects\share\skeleton\build\CMakeFiles\CMakeTmp\testCCompiler.c

  [testCCompiler.c]

  &gt;&gt; WARNING: object file specified, but linking not enabled

  Linking C executable cmTryCompileExec2474985119

        C:\ti\C6000C~1.0B3\bin\cl6x.exe
  &quot;CMakeFiles\cmTryCompileExec2474985119.dir\testCCompiler.c.obj&quot; -o
  cmTryCompileExec2474985119

  [cmTryCompileExec2474985119.]

  &gt;&gt; WARNING: object file specified, but linking not enabled

  Fatal error: could not open source file &quot;cmTryCompileExec2474985119&quot;

  1 fatal error detected in the compilation of &quot;cmTryCompileExec2474985119&quot;.

  Compilation terminated.



  jom:
  C:\Projects\share\skeleton\build\CMakeFiles\CMakeTmp\CMakeFiles\cmTryCompileEx
ec2474985119.dir\build.make
  [cmTryCompileExec2474985119] Error 1

  &gt;&gt; Compilation failure

  jom: C:\Projects\share\skeleton\build\CMakeFiles\CMakeTmp\Makefile
  [cmTryCompileExec2474985119\fast] Error 2





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



-- Configuring incomplete, errors occurred!

C:\Projects\share\skeleton\build&gt;</pre>