[CMake] QNX Cross compiling give internal error ... ?

Dr. Stefan Sablatnög stefan.sablatnoeg at svox.com
Fri Oct 2 08:38:29 EDT 2009


Hi everybody,

 

we have a weird problem here, we want to do a cross compile for

QNX on a Win XP System, using the standard QNX supplied toolchain.

 

So I grabbed a toolchain file  from the mailing list archive and adapted it
to my settings (see attachment).

 

running  cmake -DCMAKE_TOOLCHAIN_FILE=c:\Toolchain-qnx-640-armle.cmake -G
"Unix Makefiles" .

I get an error (see below). Can anybody tell me what’s wrong here? I could
find out, that while 

trying to check the compiler cmake calls itself again to compile a simple
test program and within this recursion magically an option

--out-implib appears on the linker command line which avoids a successful
build. 

 

Any help appreciated!

 

Regards

Stefan

 

This is error message: 

--------------------------

 

cd c:\VHAPI_400\demo\

cmake -DCMAKE_TOOLCHAIN_FILE=c:\Toolchain-qnx-640-armle.cmake -G "Unix
Makefiles" .

-- The C compiler identification is GNU

-- The CXX compiler identification is GNU

-- Check for working C compiler: C:/QNX641/host/win32/x86/usr/bin/qcc.exe

CMake Internal Error (please report a bug) in
C:/VHAPI_400/demo/CMakeFiles/CMakeTmp/CMakeLists.txt:

  implib set for platform that does not support DLL's for target:

  cmTryCompileExec

 

 

CMake Internal Error (please report a bug) in
C:/VHAPI_400/demo/CMakeFiles/CMakeTmp/CMakeLists.txt:

  implib set for platform that does not support DLL's for target:

  cmTryCompileExec

 

 

CMake Error: Internal CMake error, TryCompile generation of cmake failed

-- Check for working C compiler: C:/QNX641/host/win32/x86/usr/bin/qcc.exe --
broken

CMake Error at C:/Program Files/CMake
2.6/share/cmake-2.6/Modules/CMakeTestCCompiler.cmake:32 (MESSAGE):

  The C compiler "C:/QNX641/host/win32/x86/usr/bin/qcc.exe" is not able to

  compile a simple test program.

 

  It fails with the following output:

 

   

 

 


 

  CMake will not be able to correctly generate this project.

Call Stack (most recent call first):

  CMakeLists.txt:2 (project)

 

 

-- Configuring incomplete, errors occurred!

 

Compilation exited abnormally with code 1 at Fri Oct 02 14:29:24

 

 

 

----------------

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20091002/3b4cfc4c/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Toolchain-qnx-640-armle.cmake
Type: application/octet-stream
Size: 3323 bytes
Desc: not available
URL: <http://www.cmake.org/pipermail/cmake/attachments/20091002/3b4cfc4c/attachment-0001.obj>


More information about the CMake mailing list