[cmake-developers] [CMake 0014552]: testCCompiler for WinCE ARMV4I and NMake generator fails with linker error

Mantis Bug Tracker mantis at public.kitware.com
Fri Nov 8 06:57:37 EST 2013


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=14552 
====================================================================== 
Reported By:                vzvezda
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   14552
Category:                   CMake
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2013-11-08 06:57 EST
Last Modified:              2013-11-08 06:57 EST
====================================================================== 
Summary:                    testCCompiler for WinCE ARMV4I and NMake generator
fails with linker error
Description: 
The "NMake Makefiles" generation fails when building for Windows CE with ARMV4I
as system processor. The error is like the conflict in linker options and
selected libraries:

  coredll.lib(COREDLL.dll) : fatal error LNK1112: module machine type 'THUMB'
  conflicts with target machine type 'ARM'

There is no such problem when building for CE x86.


Steps to Reproduce: 
1. Create a simple project
2. Start generation as described in:
http://www.cmake.org/Wiki/CMake_Cross_Compiling#Cross_compilation_for_Windows_CE

=========== Steps
h:\temp\HelloWorld>set path=D:\sdk\cmake-2.8.12-win32-x86\bin;%path%
h:\temp\HelloWorld>"%VS80COMNTOOLS%vsvars32.bat"
Setting environment for using Microsoft Visual Studio 2005 x86 tools.
h:\temp\HelloWorld>cmake -E env_vs8_wince "STANDARDSDK_500 (ARMV4I)" >env.bat
h:\temp\HelloWorld>env.bat
Environment Selection: STANDARDSDK_500 (ARMV4I)
h:\temp\HelloWorld>cmake -G "NMake Makefiles" -DCMAKE_SYSTEM_NAME=WindowsCE -DCM
AKE_SYSTEM_PROCESSOR=ARMV4I .



Additional Information: 
============ The output

-- The C compiler identification is MSVC 14.0.60131
-- The CXX compiler identification is MSVC 14.0.60131
-- Check for working C compiler: D:/sdk/vc8/ce/bin/x86_arm/cl.exe
-- Check for working C compiler: D:/sdk/vc8/ce/bin/x86_arm/cl.exe -- broken
CMake Error at D:/sdk/cmake-2.8.12-win32-x86/share/cmake-2.8/Modules/CMakeTestCC
ompiler.cmake:61 (message):
  The C compiler "D:/sdk/vc8/ce/bin/x86_arm/cl.exe" is not able to compile a
  simple test program.

  It fails with the following output:

   Change Dir: H:/temp/HelloWorld/CMakeFiles/CMakeTmp



  Run Build Command:nmake /NOLOGO "cmTryCompileExec873074925\fast"

        D:\sdk\vc8\bin\nmake.exe -f
  CMakeFiles\cmTryCompileExec873074925.dir\build.make /nologo -L
  CMakeFiles\cmTryCompileExec873074925.dir\build

        D:\sdk\cmake-2.8.12-win32-x86\bin\cmake.exe -E cmake_progress_report
  H:\temp\HelloWorld\CMakeFiles\CMakeTmp\CMakeFiles 1

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

        D:\sdk\vc8\ce\bin\x86_arm\cl.exe /D_WIN32_WCE=0x500 /DUNDER_CE /DARM
  /D_ARM_ /D_WINDOWS /W3 /D_DEBUG /MDd /Zi /Ob0 /Od
  /FoCMakeFiles\cmTryCompileExec873074925.dir\testCCompiler.c.obj
  /FdCMakeFiles\cmTryCompileExec873074925.dir/ -c
  H:\temp\HelloWorld\CMakeFiles\CMakeTmp\testCCompiler.c

  Microsoft (R) C/C++ Optimizing Compiler Version 14.00.60131 for ARM

  Copyright (C) Microsoft Corporation.  All rights reserved.



  testCCompiler.c

  Linking C executable cmTryCompileExec873074925.exe

        D:\sdk\cmake-2.8.12-win32-x86\bin\cmake.exe -E vs_link_exe
  D:\sdk\vc8\ce\bin\x86_arm\link.exe
  @CMakeFiles\cmTryCompileExec873074925.dir\objects1.rsp
  /out:cmTryCompileExec873074925.exe /implib:cmTryCompileExec873074925.lib
  /pdb:H:\temp\HelloWorld\CMakeFiles\CMakeTmp\cmTryCompileExec873074925.pdb
  /version:0.0 /NODEFAULTLIB:libc.lib /NODEFAULTLIB:oldnames.lib /machine:ARM
  /debug /INCREMENTAL:YES /subsystem:windowsce /entry:mainACRTStartup
  coredll.lib ole32.lib oleaut32.lib uuid.lib commctrl.lib corelibc.lib

  Microsoft (R) Incremental Linker Version 8.00.50727.762

  Copyright (C) Microsoft Corporation.  All rights reserved.



  CMakeFiles/cmTryCompileExec873074925.dir/testCCompiler.c.obj

  coredll.lib(COREDLL.dll) : fatal error LNK1112: module machine type 'THUMB'
  conflicts with target machine type 'ARM'

  LINK Pass 1 failed.  with 1112

  NMAKE : fatal error U1077: 'D:\sdk\cmake-2.8.12-win32-x86\bin\cmake.exe' :
  return code '0xffffffff'

  Stop.

  NMAKE : fatal error U1077: 'D:\sdk\vc8\bin\nmake.exe' : return code '0x2'

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2013-11-08 06:57 vzvezda        New Issue                                    
2013-11-08 06:57 vzvezda        File Added: HelloWorldAndOutput.zip             
      
======================================================================




More information about the cmake-developers mailing list