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("CMakeForceCompiler")<br><br>set(CMAKE_SYSTEM_NAME "Sysbios")<br>set(CMAKE_SYSTEM_VERSION "1.0")<br>set(CMAKE_SYSTEM_PROCESSOR "C6000")<br>
<br>set(CMAKE_FIND_ROOT_PATH "${CMAKE_FIND_ROOT_PATH}"<br> "C:/ti/C6000 Code Generation Tools 7.3.0B3/bin"<br> "C:/ti/C6000 Code Generation Tools 7.3.0B3/include"<br>
"C:/ti/C6000 Code Generation Tools 7.3.0B3/lib")<br><br># CMAKE_FORCE_C_COMPILER("C:/ti/C6000 Code Generation Tools 7.3.0B3/bin/cl6x.exe" "TI")<br># CMAKE_FORCE_CXX_COMPILER("C:/ti/C6000 Code Generation Tools 7.3.0B3/bin/cl6x.exe" "TI")<br>
<br>SET(CMAKE_C_COMPILER "C:/ti/C6000 Code Generation Tools 7.3.0B3/bin/cl6x.exe")<br>SET(CMAKE_CXX_COMPILER "C:/ti/C6000 Code Generation Tools 7.3.0B3/bin/cl6x.exe")<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 "NMake Makefiles JOM" -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 "C:/ti/C6000 Code Generation Tools 7.3.0B3/bin/cl6x.exe" 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 "cmTryCompileExec2474985119\fast"
jom 1.0.13 - empower your cores
"C:\Program Files (x86)\jom\jom.exe" -f
CMakeFiles\cmTryCompileExec2474985119.dir\build.make /nologo -
CMakeFiles\cmTryCompileExec2474985119.dir\build
"C:\Program Files (x86)\CMake 2.8\bin\cmake.exe" -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]
>> WARNING: object file specified, but linking not enabled
Linking C executable cmTryCompileExec2474985119
C:\ti\C6000C~1.0B3\bin\cl6x.exe
"CMakeFiles\cmTryCompileExec2474985119.dir\testCCompiler.c.obj" -o
cmTryCompileExec2474985119
[cmTryCompileExec2474985119.]
>> WARNING: object file specified, but linking not enabled
Fatal error: could not open source file "cmTryCompileExec2474985119"
1 fatal error detected in the compilation of "cmTryCompileExec2474985119".
Compilation terminated.
jom:
C:\Projects\share\skeleton\build\CMakeFiles\CMakeTmp\CMakeFiles\cmTryCompileEx
ec2474985119.dir\build.make
[cmTryCompileExec2474985119] Error 1
>> 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></pre>