Dear Gustavo,
on a Macbook Pro (2.2 GHz Intel Core 2 Duo, running Mac OS X
10.4.10), uname returns also the values you specified.
$ uname -m
i386
$ uname -p
i386
$ uname -s
Darwin
$ uname -r
8.10.1
$ uname -v
Darwin Kernel Version 8.10.1: Wed May 23 16:33:00 PDT 2007;
root:xnu-792.22.5~1/RELEASE_I386
However, machine returns something different
$ machine
i486
So, there you go..
Best
Torsten
On Sep 13, 2007, at 12:50 AM, Gustavo Gutierrez wrote:
On 9/11/07, Torsten Anders <[EMAIL PROTECTED]> wrote:
Dear all,
on a Macbook Pro, the function {Property.get 'platform.os'} returns
'i486', whereas {Property.get 'platform.arch'} returns 'darwin'. I
expect that these two values have been swapped accidentally. BTW,
according to the list at http://www.mozart-oz.org/documentation/
system/node69.html#section.property.platform, a similar swapping
concerning the arch 'powermac' with OS 'darwin' even made it into the
documentation -- in contrast to the arch 'powermac' with OS 'linux'.
Can you try the following shells command:
uname -m
For me, this returns "i386"
uname -s
For me, t returns Darwin
Moreover, {OS.uName} called on a Macbook Pro returns
utsname(machine:"i386"
sysname:"Darwin"
...)
That is, 'i486' and "i386" are inconsistent.
So, is there some reason for this, or should I file a bug report?
I don't know if this inconsistency is a bug, but the behavior is
explained below:
There is a file called ozplatform in the share/bin directory
(sources!) that use uname command to detect oz architecture. it uses
the arguments i describe above to determine a value for OZARCH
variable. At the end of the case statement there is this pattern
*i*86*Darwin*) OZARCH=i486-darwin
;;
which i think matches the values returned by uname. The inconsistency
is that uname -m returns i386 but OZARCH is assigned to i486-darwin.
I think apple uname implementation is wrong, or at least, it does not
describe the architecture in a properly way, i can't imagine a dual
core processor being described as i386.
I will take a deep look further this week, do you think we should
change how OZARCH is assigned?
Cheers,
--
Gustavo Gutierrez
______________________________________________________________________
___________
mozart-users mailing list mozart-
[EMAIL PROTECTED]
http://www.mozart-oz.org/mailman/listinfo/mozart-users
--
Torsten Anders
Interdisciplinary Centre for Computer Music Research
University of Plymouth
http://strasheela.sourceforge.net
http://www.torsten-anders.de
_________________________________________________________________________________
mozart-users mailing list
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users