[erlang-questions] R11B-1 on Solaris 10

Mikael Pettersson <>
Wed Oct 25 09:39:52 CEST 2006

On Tue, 24 Oct 2006 18:24:20 +0100, Chandru <> wrote:
> We tried building 64-bit R11B-1 on a AMD Opteron platform running Solaris
> 10. The only way we could get it to build was by changing line 1352 in
> erts/configure to:
> i86pc)  ARCH=amd64;;
> It seems that 'uname -p' returns i386 instead of x86_64 under Solaris 10.

I see that Solaris' `man uname` describes -p as preferred over -m, but
they fail to mention that uname -p is functionally inferior to -m.

In any case, what does `uname -a`, `isalist`, and `optisa `isalist``
report on Solaris 10 on AMD64?

erts/configure.in uses `uname -m` not `uname -p`, so unless Sun has
broken uname, it should report 64-bit capability.

As a last resort (if Sun indeed broke uname), we can add a test in
erts/configure.in to check for 64-bit capability via the C compiler.


More information about the erlang-questions mailing list