| View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||
| 0015496 | CMake | (No Category) | public | 2015-04-04 04:53 | 2016-06-10 14:31 | ||||
| Reporter | Tom Deseyn | ||||||||
| Assigned To | Kitware Robot | ||||||||
| Priority | normal | Severity | minor | Reproducibility | have not tried | ||||
| Status | closed | Resolution | moved | ||||||
| Platform | OS | OS Version | |||||||
| Product Version | |||||||||
| Target Version | Fixed in Version | ||||||||
| Summary | 0015496: VS 2013 Win64 generator adds machine:X86 link option | ||||||||
| Description | VS 2013 Win64 generator adds machine:X86 link option which results into a link error: 'fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86''. When I manually remove the machine from AdditionalOptions, the project compiles fine. I tried figuring out from the sources where the bug may originate and my guess is that "${ARCHITECTURE_ID}" in CMakeDetermineCompilerId.cmake doesn't get set to 'x64'. CMakeCache.txt contains the following lines: CMAKE_EXE_LINKER_FLAGS:STRING= /machine:X86 CMAKE_MODULE_LINKER_FLAGS:STRING= /machine:X86 CMAKE_SHARED_LINKER_FLAGS:STRING= /machine:X86 I am using cmake 3.2.1 on Windows 7 with VS 2013 Pro. My project is generated using: cmake -G "Visual Studio 12 2013 Win64" . Is there a way to force these flags to be empty or x64 so I can workaround this bug? | ||||||||
| Tags | No tags attached. | ||||||||
| Attached Files | |||||||||
| Relationships | |
| Relationships |
| Notes | |
|
(0038407) Brad King (manager) 2015-04-06 08:34 |
It is expected that the compiler detection should determine the proper architecture to set this flag correctly. It is known to work in general, so we need to figure out what goes wrong in your case. Look at the CMakeFiles/CMake*.log and CMakeFiles/${CMAKE_VERSION}/* files for more details. |
|
(0038451) Tom Deseyn (reporter) 2015-04-06 11:34 |
CMakeError.log contains two lines: The C compiler identification could not be found in "Z:/project/CMakeFiles/3.2.1/CompilerIdC/CompilerIdC.vcxproj" The CXX compiler identification could not be found in "Z:/project/CMakeFiles/3.2.1/CompilerIdCXX/CompilerIdCXX.vcxproj" |
|
(0038452) Tom Deseyn (reporter) 2015-04-06 11:43 |
If I open up the 'CompilerIdCXX.vcxproj' file, syntax highlighting suggests this to be the case: # elif defined(_M_IX86) # define ARCHITECTURE_ID "X86" |
|
(0038453) Brad King (manager) 2015-04-06 11:43 |
Re 0015496:0038451: Okay. Please attach a .zip or .tgz file with the CMakeFiles directory content so I can try to diagnose the failure. |
|
(0042752) Kitware Robot (administrator) 2016-06-10 14:29 |
Resolving issue as `moved`. This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page. |
| Notes |
| Issue History | |||
| Date Modified | Username | Field | Change |
| 2015-04-04 04:53 | Tom Deseyn | New Issue | |
| 2015-04-06 08:34 | Brad King | Note Added: 0038407 | |
| 2015-04-06 11:34 | Tom Deseyn | Note Added: 0038451 | |
| 2015-04-06 11:43 | Tom Deseyn | Note Added: 0038452 | |
| 2015-04-06 11:43 | Brad King | Note Added: 0038453 | |
| 2016-06-10 14:29 | Kitware Robot | Note Added: 0042752 | |
| 2016-06-10 14:29 | Kitware Robot | Status | new => resolved |
| 2016-06-10 14:29 | Kitware Robot | Resolution | open => moved |
| 2016-06-10 14:29 | Kitware Robot | Assigned To | => Kitware Robot |
| 2016-06-10 14:31 | Kitware Robot | Status | resolved => closed |
| Issue History |
| Copyright © 2000 - 2018 MantisBT Team |