<div dir="ltr">Hi,<br><div><div><div class="gmail_extra"><br clear="all"><div class="gmail_quote">2013/11/6 Thomas Petazzoni <span dir="ltr"><<a href="mailto:thomas.petazzoni@free-electrons.com" target="_blank">thomas.petazzoni@free-electrons.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Well, I believe your original patch remains almost good then: openpgm<br>
cannot be built on avr32 because the AVR32 compiler doesn't provide the<br>
required compiler intrinsics.<div class="h5"><a href="http://free-electrons.com" target="_blank"></a></div></blockquote><div><br></div><div>Another option would be to build openpgm without fancy code that uses those<br></div>
<div>intrinsics. If I disable some constants defined in configure script when intrinsics<br></div><div>are expected from the toolchain, the code does not use them but instead<br></div><div>tries to use pthread_spin_{lock,trylock,unlock}() functions. Curiously, my toolchain,<br>
</div><div>built with "linuxthreads (stable/old)", does not have them. Should it? I have<br></div><div>attached defconfig I use.<br><br></div><div>I have tried to rebuild the toolchain with "linuxthreads" but it complained somewhere<br>
in uClibc:<br><br>  CC libc/unistd/confstr.os<br>  CC libc/unistd/usleep.os<br>  CC libpthread/linuxthreads/forward.oS<br>  CC libpthread/linuxthreads/libc-cancellation.oS<br>  CC libpthread/linuxthreads/libc_pthread_init.oS<br>
  CC libc/misc/elf/dl-iterate-phdr.oS<br>  CC libc/misc/internals/__uClibc_main.oS<br>  CC libc/inet/rpc/rpc_thread.oS<br>In file included from ./libpthread/linuxthreads/sysdeps/pthread/bits/libc-tsd.h:24,<br>                 from libc/inet/rpc/rpc_thread.c:16:<br>
./include/tls.h:6:22: error: tls.h: No such file or directory<br>make[1]: *** [libc/inet/rpc/rpc_thread.oS] Error 1<br><br></div><div>Could I fix this somehow?<br></div><div><br></div><div>I will send a disabling patch, of course, but I was just interested why my toolchain<br>
does not have spinlock support (POSIX [1] does not say that this is restricted to<br></div><div>some extension).<br><br>[1] <a href="http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/pthread.h.html">http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/pthread.h.html</a><br>
</div><div><br><div>--<br>Best regards,<br>  Alexander Lukichev<br></div></div></div><br></div></div></div></div>