View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0012870 | CMake | Modules | public | 2012-01-10 07:29 | 2016-06-10 14:31 | ||||
Reporter | Sam Morris | ||||||||
Assigned To | Kitware Robot | ||||||||
Priority | normal | Severity | minor | Reproducibility | always | ||||
Status | closed | Resolution | moved | ||||||
Platform | OS | OS Version | |||||||
Product Version | CMake 2.8.5 | ||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0012870: CMakeDetermineRCCompiler does not correctly identify GNU windres when cross-compiling | ||||||||
Description | I'm cross compiling on Linux with CMAKE_SYSTEM_NAME set to Windows. CmakeDetermineRCCompiler contains the following code: GET_FILENAME_COMPONENT(_CMAKE_RC_COMPILER_NAME_WE ${CMAKE_RC_COMPILER} NAME_WE) IF(_CMAKE_RC_COMPILER_NAME_WE STREQUAL "windres") SET(CMAKE_RC_OUTPUT_EXTENSION .obj) ELSE() SET(CMAKE_RC_OUTPUT_EXTENSION .res) ENDIF() CMAKE_C_COMPILER is set to 'i686-w64-mingw32-windres', therefore the above code goes down the wrong branch, and ends up setting CMAKE_RC_OUTPUT_EXTENSION to '.res'. | ||||||||
Additional Information | I'm actually trying to debug a separate problem: nothing is processing Modules/Platform/Windows-windres.cmake and I don't know why. I mention this here because I see the above code was added in the same commit that Windows-windres.cmake was added: <http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=b2f308c8> [^] | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | cmake-12870-1.patch [^] (477 bytes) 2012-01-10 08:39 [Show Content] | ||||||||
Relationships | |||||||||||
|
Relationships |
Notes | |
(0028226) Sam Morris (reporter) 2012-01-10 08:40 |
That patch changes the test to use MATCHES instead. |
(0028227) David Cole (manager) 2012-01-10 08:42 |
Isn't this fixed already by this recent commit, which is now in the recently released CMake 2.8.7? http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=6ddb1e5b9a3eff941ad12d29609839871fe518ed [^] Isn't this a duplicate of the bugs that I just related it to? |
(0028228) Sam Morris (reporter) 2012-01-10 08:42 |
Could be. I'll test their patches and update. |
(0028230) Sam Morris (reporter) 2012-01-10 09:25 |
The commit you pointed to resolves the issue I mentioned in 'additional information'. However, without my patch, CMAKE_RC_OUTPUT_EXTENSION is still set to '.res', which causes windres to output its files in RES format, not COFF. This will cause failure at link time, because GCC wants to link together COFF files, not RES--or so I believe; another bug prevents me from actually being able to link my project yet. I'll update this bug again once I can confirm whether this is the case or not. |
(0028231) Sam Morris (reporter) 2012-01-10 09:43 |
I just realised that the command line arguments passed to windres always ensure that its output is in COFF format, so my patch is not necessary after all. However, the logic that sets the output extension in CmakeDetermineRCCompiler.rc remains. Since it's not necessary, perhaps it should just be removed? |
(0030598) David Cole (manager) 2012-08-13 15:12 |
Sending old, not-recently-updated issues to the backlog. (The age of the bug alone means that nobody is actively working on it...) If an issue you care about is sent to the backlog when you feel it should have been addressed in a different manner, please bring it up on the CMake mailing list for discussion. Sign up for the mailing list here, if you're not already on it: http://www.cmake.org/mailman/listinfo/cmake [^] It's easy to re-activate a bug here if you can find a CMake developer who has the bandwidth to take it on, and ferry a fix through to our 'next' branch for dashboard testing. |
(0041963) Kitware Robot (administrator) 2016-06-10 14:28 |
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 |
2012-01-10 07:29 | Sam Morris | New Issue | |
2012-01-10 08:39 | Sam Morris | File Added: cmake-12870-1.patch | |
2012-01-10 08:40 | David Cole | Assigned To | => David Cole |
2012-01-10 08:40 | David Cole | Status | new => assigned |
2012-01-10 08:40 | David Cole | Relationship added | related to 0012480 |
2012-01-10 08:40 | Sam Morris | Note Added: 0028226 | |
2012-01-10 08:41 | David Cole | Relationship added | related to 0011773 |
2012-01-10 08:42 | David Cole | Note Added: 0028227 | |
2012-01-10 08:42 | Sam Morris | Note Added: 0028228 | |
2012-01-10 09:25 | Sam Morris | Note Added: 0028230 | |
2012-01-10 09:43 | Sam Morris | Note Added: 0028231 | |
2012-08-13 15:12 | David Cole | Status | assigned => backlog |
2012-08-13 15:12 | David Cole | Note Added: 0030598 | |
2012-08-13 15:20 | David Cole | Assigned To | David Cole => |
2016-06-10 14:28 | Kitware Robot | Note Added: 0041963 | |
2016-06-10 14:28 | Kitware Robot | Status | backlog => resolved |
2016-06-10 14:28 | Kitware Robot | Resolution | open => moved |
2016-06-10 14:28 | Kitware Robot | Assigned To | => Kitware Robot |
2016-06-10 14:31 | Kitware Robot | Status | resolved => closed |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |