View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0010326CMakeCMakepublic2010-02-23 11:092011-04-04 12:00
ReporterLuis Kornblueh 
Assigned ToDavid Cole 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionwon't fix 
PlatformOSOS Version
Product VersionCMake-2-8 
Target VersionFixed in VersionCMake 2.8.4 
Summary0010326: Wrong architecture for CMAKE_SYSTEM_PROCESSOR
DescriptionCMAKE_SYSTEM_PROCESSOR returns always i386 on MacOSX 10.6.x. But running on a MacPro I expect x86_64.

Testing the output of uname:
MacBookPro:
feilung% uname -p feilung% uname -m
i386 i386
MacPro:
wanglung% uname -p wanglung% uname -m
i386 x86_64
It seems uname -p is returned, but uname -m would be nicer ...
TagsNo tags attached.
Attached Files

 Relationships
related to 0010037closedKitware Robot SystemInformation.cxx is missing implementations for many functions on Win64 builds 

  Notes
(0020019)
R Wackerbarth (reporter)
2010-03-26 17:52

This distinction does not seem to hold for Snow Leopard

richard:Experimental rkw$ uname -a
Darwin richard.nfsnet 10.2.0 Darwin Kernel Version 10.2.0: Tue Nov 3 10:37:10 PST 2009; root:xnu-1486.2.11~1/RELEASE_I386 i386
richard:Experimental rkw$ uname -p
i386
richard:Experimental rkw$ uname -m
i386

Hardware Overview:

  Model Name: Mac Pro
  Model Identifier: MacPro1,1
  Processor Name: Dual-Core Intel Xeon
  Processor Speed: 2.66 GHz
  Number Of Processors: 2
  Total Number Of Cores: 4
  L2 Cache (per processor): 4 MB
  Memory: 8 GB
  Bus Speed: 1.33 GHz
  Boot ROM Version: MP11.005D.B00
  SMC Version (system): 1.7f10
(0024137)
David Cole (manager)
2010-12-15 07:34

The documentation for CMAKE_SYSTEM_PROCESSOR clearly states that uname -p is used to determine its value:

http://cmake.org/cmake/help/cmake-2-8-docs.html#variable:CMAKE_SYSTEM_PROCESSOR [^]

In these days of universal binaries and cross-compiling, it is not meant to be used for anything other than a "best guess" about what your targets' primary architecture is going to be...

If you must have some other value, then use some other means to get it. CMAKE_SYSTEM_PROCESSOR is set to the output of "uname -p"
(0026058)
David Cole (manager)
2011-04-04 12:00

Closing resolved issues that have not been updated in more than 3 months.

 Issue History
Date Modified Username Field Change
2010-02-23 11:09 Luis Kornblueh New Issue
2010-03-26 17:52 R Wackerbarth Note Added: 0020019
2010-12-15 07:29 David Cole Assigned To => David Cole
2010-12-15 07:29 David Cole Status new => assigned
2010-12-15 07:34 David Cole Note Added: 0024137
2010-12-15 07:34 David Cole Status assigned => resolved
2010-12-15 07:34 David Cole Fixed in Version => CMake 2.8.4
2010-12-15 07:34 David Cole Resolution open => won't fix
2010-12-15 07:37 David Cole Relationship added related to 0010037
2011-04-04 12:00 David Cole Note Added: 0026058
2011-04-04 12:00 David Cole Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team