From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v2 1/1] openpgm: disable on AVR32
Date: Wed, 6 Nov 2013 19:29:59 +0100 [thread overview]
Message-ID: <20131106192959.184c208e@skate> (raw)
In-Reply-To: <CAAHaz6GeH4p99WBpgESL0LKaL9R-ey4Tzx8FdUOTOqs6gGyxCQ@mail.gmail.com>
Dear Alexander Lukichev,
(Your e-mail wrapping is weird: it leaves one word alone on some lines.
Strange. Maybe some GMail craziness.)
On Wed, 6 Nov 2013 20:21:31 +0200, Alexander Lukichev wrote:
> Another option would be to build openpgm without fancy code that uses those
> intrinsics. If I disable some constants defined in configure script when
> intrinsics
> are expected from the toolchain, the code does not use them but instead
> tries to use pthread_spin_{lock,trylock,unlock}() functions. Curiously, my
> toolchain,
> built with "linuxthreads (stable/old)", does not have them. Should it? I
> have
> attached defconfig I use.
There is no implementation of pthread_spin_*() in the linuxthreads.old
thread implementation in uClibc. You should use NPTL instead when
available.
> I have tried to rebuild the toolchain with "linuxthreads" but it complained
> somewhere in uClibc:
Yes, I believe linuxthreads is known to be broken for a number of
architectures. From the Config.in help text in uClibc:
The new version has not been tested much, and lacks ports for
arches which glibc does not support (like bfin/frv/etc...),
but is based on the latest code from glibc, so it may be the
only choice for the newer ports (like alpha/amd64/64bit
arches and hppa).
> ./libpthread/linuxthreads/sysdeps/pthread/bits/libc-tsd.h:24,
> from libc/inet/rpc/rpc_thread.c:16:
> ./include/tls.h:6:22: error: tls.h: No such file or directory
> make[1]: *** [libc/inet/rpc/rpc_thread.oS] Error 1
>
> Could I fix this somehow?
I don't think fixing linuxthreads in uClibc is really worth it, to be
honest.
Moreover, Simon said that while uClibc 0.9.33 does build fine for
AVR32, it doesn't work properly on the target, and he is still using
uClibc 0.9.31 + a good stack of patches on top of it.
I think we should just disable OpenPGM on AVR32. If somebody ever cares
about this, he will be in charge of fixing it :)
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
next prev parent reply other threads:[~2013-11-06 18:29 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-01 18:12 [Buildroot] [PATCH v2 1/1] openpgm: disable on AVR32 Alexander Lukichev
2013-11-01 18:20 ` Thomas Petazzoni
2013-11-01 20:21 ` Alexander Lukichev
2013-11-02 7:16 ` Alexander Lukichev
2013-11-02 8:03 ` Simon Dawson
2013-11-02 11:26 ` Thomas Petazzoni
2013-11-02 16:51 ` Simon Dawson
2013-11-03 11:24 ` Alexander Lukichev
2013-11-06 17:27 ` Alexander Lukichev
2013-11-06 17:39 ` Thomas Petazzoni
2013-11-06 18:21 ` Alexander Lukichev
2013-11-06 18:29 ` Thomas Petazzoni [this message]
2013-11-06 19:18 ` Simon Dawson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20131106192959.184c208e@skate \
--to=thomas.petazzoni@free-electrons.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox