[cmake-developers] [CMake 0014420]: testCCompiler failed under WinCE with linker error
Mantis Bug Tracker
mantis at public.kitware.com
Tue Sep 17 08:20:19 EDT 2013
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=14420
======================================================================
Reported By: mar-na
Assigned To:
======================================================================
Project: CMake
Issue ID: 14420
Category: CMake
Reproducibility: always
Severity: major
Priority: normal
Status: new
======================================================================
Date Submitted: 2013-09-17 08:20 EDT
Last Modified: 2013-09-17 08:20 EDT
======================================================================
Summary: testCCompiler failed under WinCE with linker error
Description:
In CMake 2.8.11 it works but in 2.8.11.20130916-gcfe70 failed it.
Generation of VS project fles for WinCE STANDARDSDK_500 (ARMV41) failed with
LNK2001: unresolved external symbol mainACRTStartup
Steps to Reproduce:
Create simple HelloWorld application and try to generate the VS 2008 project
files with CMake-gui for it.
Used generator: Visual Studio 2008 STANDARDSDK_500 (ARMV41)
Error Message:
CMake Error at
C:/data/TMP/cmake-2.8.11.20130916-gcfe70-win32-x86/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:61
(message):
The C compiler "C:/Programme/Microsoft Visual Studio
9.0/VC/ce/bin/x86_arm/cl.exe" is not able to compile a simple test program.
It fails with the following output:
Change Dir:
C:/data/cmake_wince/HelloWorld/build/cmake_trunk_wince/CMakeFiles/CMakeTmp
Run Build Command:C:\PROGRA~1\MICROS~1.0\Common7\IDE\devenv.com
CMAKE_TRY_COMPILE.sln /build Debug /project cmTryCompileExec3766279777
Microsoft (R) Visual Studio Version 9.0.30729.1.
Copyright (C) Microsoft Corp. All rights reserved.
------ Build started: Project: cmTryCompileExec3766279777, Configuration:
Debug STANDARDSDK_500 (ARMV4I) ------
Compiling...
Microsoft (R) C/C++ Optimizing Compiler Version 15.00.20720 for ARM
Copyright (C) Microsoft Corporation. All rights reserved.
cl /Od /D "_WIN32_WCE=0x500" /D "UNDER_CE" /D "THUMB" /D "_THUMB_" /D
"_WINDOWS" /D "_DEBUG" /D "CMAKE_INTDIR=\"Debug\"" /D "_MBCS" /FD /MDd
/fp:fast /GR- /Fo"cmTryCompileExec3766279777.dir\Debug\\"
/Fd"cmTryCompileExec3766279777.dir\Debug/vc80.pdb" /W3 /c /Zi /TC
.\testCCompiler.c
testCCompiler.c
Linking...
LINK : error LNK2001: unresolved external symbol mainACRTStartup
C:\data\cmake_wince\HelloWorld\build\cmake_trunk_wince\CMakeFiles\CMakeTmp\Debug\cmTryCompileExec3766279777.exe
: fatal error LNK1120: 1 unresolved externals
Build log was saved at
"file://c:\data\cmake_wince\HelloWorld\build\cmake_trunk_wince\CMakeFiles\CMakeTmp\cmTryCompileExec3766279777.dir\Debug\BuildLog.htm"
cmTryCompileExec3766279777 - 2 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped
==========
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:1 (project)
Configuring incomplete, errors occurred!
See also
"C:/data/cmake_wince/HelloWorld/build/cmake_trunk_wince/CMakeFiles/CMakeOutput.log".
See also
"C:/data/cmake_wince/HelloWorld/build/cmake_trunk_wince/CMakeFiles/CMakeError.log".
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2013-09-17 08:20 mar-na New Issue
2013-09-17 08:20 mar-na File Added: HelloWorld.zip
======================================================================
More information about the cmake-developers
mailing list