[erlang-questions] Problems with threaded Erlang on Linux at UltraSparc III

Mikael Pettersson mikpe@REDACTED
Wed Jul 15 15:56:47 CEST 2009


Sergei Golovan writes:
 > Hi!
 > 
 > I need help in debugging Erlang on Linux (specifically Debian Linux)
 > on UltraSparc III hardware). So far only non-threaded build works
 > fine, though it means no SMP

Try this patch:

--- otp-0710/erts/include/internal/ethread.h.~1~	2009-02-26 11:45:54.000000000 +0100
+++ otp-0710/erts/include/internal/ethread.h	2009-07-15 15:52:01.000000000 +0200
@@ -691,16 +691,12 @@ ETHR_INLINE_FUNC_NAME_(ethr_write_lock)(
 #      include "i386/ethread.h"
 #    elif (defined(__powerpc__) || defined(__ppc__)) && !defined(__powerpc64__)
 #      include "ppc32/ethread.h"
-#    elif defined(__sparc__)
-#      include "sparc32/ethread.h"
 #    elif defined(__tile__)
 #      include "tile/ethread.h"
 #    endif
 #  elif ETHR_SIZEOF_PTR == 8
 #    if defined(__x86_64__)
 #      include "x86_64/ethread.h"
-#    elif defined(__sparc__) && defined(__arch64__)
-#      include "sparc64/ethread.h"
 #    endif
 #  endif
 #endif /* !defined(ETHR_DISABLE_NATIVE_IMPLS) && defined(__GNUC__) */

 > and no wxErlang.

I consider wxErlang's SMP requirement an inexcusable bug.


More information about the erlang-questions mailing list