Architecture mixup

Phil Dobbin phildobbin at gmail.com
Thu May 17 14:21:44 PDT 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 17/05/2012 21:34, Ryan Schmidt wrote:
> 
> On May 17, 2012, at 15:27, Jeremy Lavergne wrote:
> 
>>> That's kind of what I was trying to say (very badly as it turned out).
>>>
>>> I can't find the OS X equivalent of:
>>>
>>> `egrep '(vm|svm)' --color=always /proc/cpuinfo`
>>>
>>> which although it is strictly speaking the way of finding out if your
>>> box is capable of hardware virtualization, is also useful as a sure fire
>>> way of knowing if your kernel is 64-bit.
>>
>> Is sysctl viable for that?
>> hw.optional.x86_64: 1
> 
> I was not aware of that sysctl variable but it appears to be accurate, though only for Intel machines of course. The one MacPorts base itself uses (to determine the default build_arch) is hw.cpu64bit_capable which should work on PowerPC machines as well. Note that this works on Leopard and up only.
> 
> 
> For your amusement, here are a few values from a few different systems I have access to:
> 
> 
> MacBookPro3,1, a 64-bit machine with the 32-bit kernel:
> 
> $ uname -p
> i386
> $ uname -m
> i386
> $ sysctl hw.cpu64bit_capable
> hw.cpu64bit_capable: 1
> $ sysctl hw.optional.x86_64
> hw.optional.x86_64: 1
> $ 

[snip]

I get exactly the same on a MacBookPro4,1

Cheers,

  Phil...

- -- 
But masters, remember that I am an ass.
Though it be not written down,
yet forget not that I am an ass.

	Wm. Shakespeare - Much Ado About Nothing


-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: §auto-key-locate cert pka ldap hkp://keys.gnupg.net
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJPtWvlAAoJEKpMeDHWT5ADy2QH/A0vgunsMI6GhyYoK7h3vrVp
vDRW1t20WkxdNerTQh3d0CM/vIn9ZzZI7/SjopJlh2iXa24cH/Jn0PYiJR/R5cuy
5DLLbTOXBbkq/cQrrzgDfoC/wD4W7p6yN6uhL2rnECc7RxsfQtsNnkL9+dqlph15
nA2wdovOsTMN865hdZO+9RAStdSh0MBSFcf3IIrBbTTqXKZXJOptvuxJK9l6Fq/Y
G80lNP+853ir11iAooK9drjIovjILk6wTF4qxm0l0Dg5vUHyEzRit39+2u3dvP1o
+m0QsdTSok9DbtYOkncr8uM1uwUAAY14Tg63HA6v7JY0dXPQ27ucKLwZZ4PgnYA=
=EeyX
-----END PGP SIGNATURE-----

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3865 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20120517/6cd5cb18/attachment.bin>


More information about the macports-users mailing list