[erlang-questions] Erlang cross compilation for MOXA arm9, problems ...

Tue May 10 15:22:01 CEST 2011

On 10 May 2011, at 14:22, Jouni Rynö wrote:
> root@REDACTED:/mnt/sd/arm-moxa-linux-gnu# ./bin/erl
> Failed to set thread main status: Invalid argument (22)
> Aborted
> Does that ring any bells for possible reasons? 
It rings one for me, also pthread-related but on a different architecture (Irix).  The problem was with "system scope" pthreads and non-root users, and I solved it by avoiding the call to pthread_attr_setscope() in erts/lib_src/pthread/ethread.c:206.
I've also run Erlang on ARM v5l without problems, but I did all of that as root.

> (I did follow the source code to where it happens, but from there it
> will jump to into the mysterious world of thread libraries ...)
I'm too lazy to (download, unzip and) grep the emulator sources for "Failed to set thread main status", so it would help if you said what C function contains "there".


More information about the erlang-questions mailing list