View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0014420 | CMake | CMake | public | 2013-09-17 08:20 | 2014-03-05 09:58 | ||||
Reporter | mar-na | ||||||||
Assigned To | Patrick R. Gansterer | ||||||||
Priority | high | Severity | major | Reproducibility | always | ||||
Status | closed | Resolution | fixed | ||||||
Platform | OS | OS Version | |||||||
Product Version | |||||||||
Target Version | CMake 2.8.12 | Fixed in Version | CMake 2.8.12 | ||||||
Summary | 0014420: 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". | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | HelloWorld.zip [^] (677 bytes) 2013-09-17 08:20 | ||||||||
Relationships | |||||||||||
|
Relationships |
Notes | |
(0033864) Brad King (manager) 2013-09-23 09:06 |
A possible cause of this regression is this change: http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=34969cf1 [^] that affects entry point selection. |
(0033865) Patrick R. Gansterer (developer) 2013-09-23 16:12 |
Fix merged into next: http://cmake.org/gitweb?p=cmake.git;a=commit;h=8ba55f66ad4c31747d8ca9f084699a74fb43828f [^] |
(0033866) Brad King (manager) 2013-09-23 16:34 |
Patrick, the change linked in 0014420:0033865: http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=200d3976 [^] seems to revert part of this commit: http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=8fcf0ab0 [^] which was trying to do something specific to the version of the compiler. Either all of the older change should be reverted or the version number test should be fixed. Please also refer back to the commit causing the regression in your commit message with text like ...commit 8fcf0ab0 (Add support for new Windows CE compiler, 2013-08-04) ... |
(0033867) Patrick R. Gansterer (developer) 2013-09-23 16:39 |
ARGHHH, that happens if you only test with VS2005 and VS2008. :-( Thx for cross-checking, I'll push the correct change. |
(0033868) Patrick R. Gansterer (developer) 2013-09-23 16:45 |
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=016cd6dd7224c48aec5121f6ca7fd0f958f7e0ab [^] |
(0033869) Brad King (manager) 2013-09-23 17:17 |
Okay, I squashed the fixes into one commit: http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=e63cf5f0 [^] Now the net diff only updates the version number. |
(0035265) Robert Maynard (manager) 2014-03-05 09:58 |
Closing resolved issues that have not been updated in more than 4 months |
Notes |
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 | |
2013-09-17 08:42 | Brad King | Assigned To | => Patrick R. Gansterer |
2013-09-17 08:42 | Brad King | Status | new => assigned |
2013-09-23 09:06 | Brad King | Note Added: 0033864 | |
2013-09-23 09:06 | Brad King | Relationship added | related to 0014088 |
2013-09-23 10:59 | Robert Maynard | Priority | normal => high |
2013-09-23 10:59 | Robert Maynard | Target Version | => CMake 2.8.12 |
2013-09-23 16:12 | Patrick R. Gansterer | Note Added: 0033865 | |
2013-09-23 16:34 | Brad King | Note Added: 0033866 | |
2013-09-23 16:39 | Patrick R. Gansterer | Note Added: 0033867 | |
2013-09-23 16:45 | Patrick R. Gansterer | Note Added: 0033868 | |
2013-09-23 17:17 | Brad King | Note Added: 0033869 | |
2013-09-23 17:18 | Brad King | Status | assigned => resolved |
2013-09-23 17:18 | Brad King | Resolution | open => fixed |
2013-09-23 17:18 | Brad King | Fixed in Version | => CMake 2.8.12 |
2013-09-24 10:43 | Brad King | Relationship added | related to 0014436 |
2014-03-05 09:58 | Robert Maynard | Note Added: 0035265 | |
2014-03-05 09:58 | Robert Maynard | Status | resolved => closed |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |