MantisBT - CMake | ||||||||||
View Issue Details | ||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||
0010222 | CMake | CMake | public | 2010-02-01 15:58 | 2016-06-10 14:31 | |||||
Reporter | Daniel Richard G. | |||||||||
Assigned To | Bill Hoffman | |||||||||
Priority | normal | Severity | major | Reproducibility | always | |||||
Status | closed | Resolution | moved | |||||||
Platform | OS | OS Version | ||||||||
Product Version | CMake-2-8 | |||||||||
Target Version | Fixed in Version | |||||||||
Summary | 0010222: Default linker flags fail with Intel 9.0 C/C++ compiler (icl) | |||||||||
Description | I am using CMake 2.8.0 with the Intel 9.0 C/C++ compiler: C:\>icl Intel(R) C++ Compiler for Intel(R) EM64T-based applications, Version 9.0 Build 20060222 Package ID: W_CC_C_9.0.030 Copyright (C) 1985-2006 Intel Corporation. All rights reserved. If I configure the Hello example from the CMake sources, I get the following: ----begin CMake invocation---- C:\work\Hello-build>c:\tmp\cmake-2.8.0-win32-x86\bin\cmake.exe -G"NMake Makefiles" -DCMAKE_C_COMPILER=icl -DCMAKE_CXX_COMPILER=icl ..\Hello -- The C compiler identification is Intel -- The CXX compiler identification is Intel -- Check for working C compiler: C:/Program Files (x86)/Intel/Compiler/C++/9.0/EM64T/Bin/icl.exe -- Check for working C compiler: C:/Program Files (x86)/Intel/Compiler/C++/9.0/EM64T/Bin/icl.exe -- broken CMake Error at C:/tmp/cmake-2.8.0-win32-x86/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:50 (MESSAGE): The C compiler "C:/Program Files (x86)/Intel/Compiler/C++/9.0/EM64T/Bin/icl.exe" is not able to compile a simple test program. It fails with the following output: Change Dir: C:/work/Hello-build/CMakeFiles/CMakeTmp Run Build Command:nmake /NOLOGO "cmTryCompileExec\fast" nmake -f CMakeFiles\cmTryCompileExec.dir\build.make /nologo -L CMakeFiles\cmTryCompileExec.dir\build C:\tmp\cmake-2.8.0-win32-x86\bin\cmake.exe -E cmake_progress_report C:\work\Hello-build\CMakeFiles\CMakeTmp\CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec.dir/testCCompiler.c.obj C:\PROGRA~2\Intel\Compiler\C__~1\9.0\EM64T\Bin\icl.exe @C:\DOCUME~1\cport\LOCALS~1\Temp\1\nm94.tmp testCCompiler.c Linking C executable cmTryCompileExec.exe C:\tmp\cmake-2.8.0-win32-x86\bin\cmake.exe -E vs_link_exe C:\PROGRA~2\Intel\Compiler\C__~1\9.0\EM64T\Bin\icl.exe /nologo @C:\DOCUME~1\cport\LOCALS~1\Temp\1\nm95.tmp (0): internal error: backend signals icl: error: problem during multi-file optimization compilation (code 4) LINK Pass 1 failed. with 4 NMAKE : fatal error U1077: 'C:\tmp\cmake-2.8.0-win32-x86\bin\cmake.exe' : return code '0xffffffff' Stop. NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Platform SDK\Bin\nmake.exe"' : return code '0x2' Stop. CMake will not be able to correctly generate this project. Call Stack (most recent call first): -- Configuring incomplete, errors occurred! ----end CMake invocation---- (Note: I am specifying CMAKE_C_COMPILER and CMAKE_CXX_COMPILER because MSVC's cl.exe is also in my PATH, and CMake defaults to that unless I specify otherwise.) If I edit CMake's Windows-icl.cmake file, and change the value of CMAKE_EXE_LINKER_FLAGS_INIT to include /INCREMENTAL:NO instead of /INCREMENTAL:YES (or no /INCREMENTAL option at all), then everything works correctly: ----begin CMake invocation---- C:\work\Hello-build>c:\tmp\cmake-2.8.0-win32-x86\bin\cmake.exe -G"NMake Makefiles" -DCMAKE_C_COMPILER=icl -DCMAKE_CXX_COMPILER=icl ..\Hello -- The C compiler identification is Intel -- The CXX compiler identification is Intel -- Check for working C compiler: C:/Program Files (x86)/Intel/Compiler/C++/9.0/EM64T/Bin/icl.exe -- Check for working C compiler: C:/Program Files (x86)/Intel/Compiler/C++/9.0/EM64T/Bin/icl.exe -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: C:/Program Files (x86)/Intel/Compiler/C++/9.0/EM64T/Bin/icl.exe -- Check for working CXX compiler: C:/Program Files (x86)/Intel/Compiler/C++/9.0/EM64T/Bin/icl.exe -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Configuring done -- Generating done -- Build files have been written to: C:/cygwin/tmp/Hello-build ----end CMake invocation---- It's that /INCREMENTAL:YES option that screws everything up. | |||||||||
Steps To Reproduce | ||||||||||
Additional Information | ||||||||||
Tags | No tags attached. | |||||||||
Relationships |
| |||||||||
Attached Files | trycompile.txt (4,327) 2010-02-02 12:30 https://public.kitware.com/Bug/file/2843/trycompile.txt | |||||||||
Issue History | ||||||||||
Date Modified | Username | Field | Change | |||||||
2010-02-01 15:58 | Daniel Richard G. | New Issue | ||||||||
2010-02-01 16:28 | Bill Hoffman | Status | new => assigned | |||||||
2010-02-01 16:28 | Bill Hoffman | Assigned To | => Bill Hoffman | |||||||
2010-02-02 11:02 | Bill Hoffman | Note Added: 0019434 | ||||||||
2010-02-02 12:30 | Daniel Richard G. | Note Added: 0019438 | ||||||||
2010-02-02 12:30 | Daniel Richard G. | File Added: trycompile.txt | ||||||||
2010-02-02 16:12 | Bill Hoffman | Note Added: 0019442 | ||||||||
2010-02-02 16:36 | Daniel Richard G. | Note Added: 0019443 | ||||||||
2010-02-02 17:36 | Bill Hoffman | Note Added: 0019444 | ||||||||
2010-02-02 17:38 | Bill Hoffman | Note Added: 0019445 | ||||||||
2010-02-02 19:30 | Daniel Richard G. | Note Added: 0019448 | ||||||||
2010-02-04 09:00 | Bill Hoffman | Relationship added | related to 0010225 | |||||||
2016-06-10 14:27 | Kitware Robot | Note Added: 0041651 | ||||||||
2016-06-10 14:27 | Kitware Robot | Status | assigned => resolved | |||||||
2016-06-10 14:27 | Kitware Robot | Resolution | open => moved | |||||||
2016-06-10 14:31 | Kitware Robot | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|