MantisBT - CMake |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0014083 | CMake | Modules | public | 2013-04-15 09:47 | 2014-03-05 09:58 |
|
Reporter | Jan Hudec | |
Assigned To | Patrick R. Gansterer | |
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | CMake 2.8.12 | |
|
Summary | 0014083: WinCE generators should not default to THUMB for ARMV4 SDKs |
Description | I've tested the new Windows CE support and noticed it forces /MACHINE:THUMB for all ARM machines. But this does not seem to be correct for SDKs targeting just ARMV4 rather than ARMV4I, such as "Pocket PC 2003 (ARMV4)" pre-installed with Visual Studio 2008, because ARMV4 does not have to have THUMB mode.
The WinCE support patch I was using so far (git://gitorious.org/~paroga/cmake/parogas-cmake.git#wince [^]) uses the logic I described above.
The "correct" approach is to test the "INSTRUCTIONSET" macro from the WCE.VCPlatform.config, but it is always included in the SDK name, so matching on that should do. |
Steps To Reproduce | Use "Visual Studio 9 2008 Pocket PC 2003 (ARMV4)" generator or other WinCE 4.2 SDK.
The default machine should be ARM, but will be THUMB. |
Additional Information | I suspect similar problem might apply to the substitution of SH4 for SH, but we are not compiling for any SH target, so I am not sure. |
Tags | No tags attached. |
Relationships | related to | 0007919 | closed | Brad King | Patch for Windows Platform files to add WinCE support with NMake | related to | 0014436 | closed | Patrick R. Gansterer | Missing ARCHFAM preprocessor definition in WinCE Visual Studio generators (armv41) |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2013-04-15 09:47 | Jan Hudec | New Issue | |
2013-04-15 09:49 | Jan Hudec | Note Added: 0032835 | |
2013-04-15 09:49 | Brad King | Relationship added | related to 0007919 |
2013-04-15 09:50 | Brad King | Assigned To | => Patrick R. Gansterer |
2013-04-15 09:50 | Brad King | Status | new => assigned |
2013-04-15 09:50 | Jan Hudec | Note Edited: 0032835 | bug_revision_view_page.php?bugnote_id=32835#r1111 |
2013-08-05 14:33 | Patrick R. Gansterer | Note Added: 0033669 | |
2013-08-06 17:19 | Patrick R. Gansterer | Note Added: 0033671 | |
2013-08-06 17:19 | Patrick R. Gansterer | Status | assigned => resolved |
2013-08-06 17:19 | Patrick R. Gansterer | Resolution | open => fixed |
2013-08-06 17:19 | Patrick R. Gansterer | Fixed in Version | => CMake 2.8.12 |
2013-09-24 11:19 | Brad King | Relationship added | related to 0014436 |
2014-03-05 09:58 | Robert Maynard | Note Added: 0035266 | |
2014-03-05 09:58 | Robert Maynard | Status | resolved => closed |
Notes |
|
(0032835)
|
Jan Hudec
|
2013-04-15 09:49
(edited on: 2013-04-15 09:50) |
|
I would add relation to 0007919, but I don't seem to be able to. Nor am I able to add comment there to mention that I've added this one.
|
|
|
(0033669)
|
Patrick R. Gansterer
|
2013-08-05 14:33
|
|
I've pushed a solution at http://cmake.org/gitweb?p=stage/cmake.git;h=refs/heads/peheader. [^]
The /machine flag is now read from the COFF header of the inital generated binary. This binary is generated by the _default_ configuration of the selected SDK (see Modules/CompilerId/VS-7.vcproj.in). On my machine it detects THUMB (not ARM) when used with "Visual Studio 8 2005 Pocket PC 2003 (ARMV4)", but the /machine:THUMB for linker generates no error.
Do you get any error? Does it make a difference if ARM or THUMB is used on your device? |
|
|
(0033671)
|
Patrick R. Gansterer
|
2013-08-06 17:19
|
|
|
|
(0035266)
|
Robert Maynard
|
2014-03-05 09:58
|
|
Closing resolved issues that have not been updated in more than 4 months |
|