Re: [erlang-questions] Erlang in Debian on m68k architecture

2007-01-25 Thread Sergei Golovan
On 1/25/07, Mikael Pettersson <[EMAIL PROTECTED]> wrote: There are many many many places where alignment is required, and where incorrect alignment could cause almost random and impossible to debug problems. It is possible to enforce alignment with directives, the problem is locating all the rel

Re: [erlang-questions] Erlang in Debian on m68k architecture

2007-01-25 Thread Mikael Pettersson
Sergei Golovan writes: > On 1/25/07, Mikael Pettersson <[EMAIL PROTECTED]> wrote: > > The problem is still one of alignment. It seems that your M68K > > toolchain doesn't align > > > > struct { int x; } var; > > > > to a 32-bit boundary. Whether that is the bug, or whether the > > lock chec

Re: [erlang-questions] Erlang in Debian on m68k architecture

2007-01-25 Thread Sergei Golovan
On 1/25/07, Mikael Pettersson <[EMAIL PROTECTED]> wrote: The problem is still one of alignment. It seems that your M68K toolchain doesn't align struct { int x; } var; to a 32-bit boundary. Whether that is the bug, or whether the lock checker's alignment-of-static-data assumption is the bug, I c

Re: [erlang-questions] Erlang in Debian on m68k architecture

2007-01-25 Thread Mikael Pettersson
Sergei Golovan writes: > On 1/25/07, Mikael Pettersson <[EMAIL PROTECTED]> wrote: > > Definitely smells like a toolchain bug to me. In this case, since you've > > enabled threads, erts_mtx_t is a properly declared struct type containing > > among other things a pthread_mutex_t, an int, and a co

Re: [erlang-questions] Erlang in Debian on m68k architecture

2007-01-25 Thread Geert Uytterhoeven
On Thu, 25 Jan 2007, Mikael Pettersson wrote: > Sergei Golovan writes: > > As one can see, erlang Debian package (R11B-2 relese, 11.b.2 in Debian > > versioning) fails to build on m68k now > > > (http://buildd.debian.org/fetch.cgi?&pkg=erlang&ver=1%3A11.b.2-4&arch=m68k&stamp=1167824208&file=log

Re: [erlang-questions] Erlang in Debian on m68k architecture

2007-01-25 Thread Sergei Golovan
On 1/25/07, Mikael Pettersson <[EMAIL PROTECTED]> wrote: Definitely smells like a toolchain bug to me. In this case, since you've enabled threads, erts_mtx_t is a properly declared struct type containing among other things a pthread_mutex_t, an int, and a couple of pointers. I don't remember how

Re: [erlang-questions] Erlang in Debian on m68k architecture

2007-01-25 Thread Mikael Pettersson
Sergei Golovan writes: > Hi! > > As one can see, erlang Debian package (R11B-2 relese, 11.b.2 in Debian > versioning) fails to build on m68k now > (http://buildd.debian.org/fetch.cgi?&pkg=erlang&ver=1%3A11.b.2-4&arch=m68k&stamp=1167824208&file=log). > > After some research, we've found tha