[erlang-bugs] Erlang/OTP R11B-3 OpenBSD patches

Jon Olsson jon@REDACTED
Sun Feb 4 23:03:34 CET 2007


On Sat, Feb 03, 2007 at 12:40:53PM +0100, Mikael Pettersson wrote:
> Hmm, does your `cc' perhaps default to building 64-bit code? The v8plusa option should
> not be needed in that case, and might even be harmful.

It seems to be the case that OpenBSD/sparc64 gcc generates 64-bit code.

% gcc foo.c
% file a.out 
a.out: ELF 64-bit MSB executable, Sparc64, version 1, for OpenBSD, dynamically linked (uses shared libs), not stripped

> The issue is that we MUST use V9 instructions for atomic operations, but the assembler
> rejects them unless the v8plusa option is passed to it.
> 
> This means that you need to figure out how to make this change only for OpenBSD.
> An update in erts/configure{.in,} to detect OpenBSD and set OPSYS accordingly,
> plus some trickery in erts/emulator/Makefile.in, should suffice.

Ok, I'll cook something up later this week perhaps.

-- 
Jon



More information about the erlang-bugs mailing list