What is ARCH on Mac
astrange at apple.com
Fri Mar 9 11:40:45 PST 2012
On Mar 9, 2012, at 5:52 AM, Michael McMahon <michael.x.mcmahon at oracle.com> wrote:
> On 09/03/12 10:25, Weijun Wang wrote:
>> Hi All
>> I'm quite confused on this. I'm able to build openjdk-8 on my Mac and the build is inside build/macosx-amd64 direcory. The "make sanity" command also shows ARCH=amd64. However, if I go into the test directory and run "make" there, it's trying to test against build/macosx-i586. Then I find out it's because on my system "uname -m" returns i386.
>> Is there any problem with my system?
> I've never gotten to the bottom of that. On my 10.7.3 box, here is the output
> from some relevant commands:
> uname -m => x86_64
> arch => i386
> machine => i486
uname -m displays the architecture of the kernel, which is not necessarily the same as the userland architecture. That is, both the 32-bit and 64-bit x86 kernels support 32-bit and 64-bit programs.
If you want to check if the system supports x86-64 userland, use 'sysctl hw.cpu64bit_capable'.
More information about the macosx-port-dev