All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stafford Horne <shorne@gmail.com>
To: Waldemar Brodkorb <wbx@openadk.org>
Cc: yann.morin@orange.com, buildroot@buildroot.org
Subject: Re: [Buildroot] [autobuild.buildroot.net] Daily results for 2022-09-22
Date: Fri, 23 Sep 2022 16:29:41 +0000	[thread overview]
Message-ID: <Yy3e9fTSv19Zxq9T@oscomms1> (raw)
In-Reply-To: <Yy3PX2eJUrQWvxw+@waldemar-brodkorb.de>

On Fri, Sep 23, 2022 at 05:23:11PM +0200, Waldemar Brodkorb wrote:
> Hi Yann,
> yann.morin@orange.com wrote,
> 
> > Waldemar, All,
> > 
> > On 2022-09-23 14:13 +0200, MORIN Yann INNOV/IT-S spake thusly:
> > > On 2022-09-23 05:30 +0000, Thomas Petazzoni via buildroot spake thusly:
> > > >     or1k     |           gpsd-3.24            | NOK | http://autobuild.buildroot.net/results/7adc125e843b21b559f1e8813059d65af58feb8d |     
> > > 
> > > This is an or1k, shared-only, uClibc-ng, LT (not NPTL) so no TLS, build.
> > > 
> > > So, I'm not sure to make of this issue:
> > > 
> > >     ..../or1k-buildroot-linux-uclibc-gcc -o gpsd-3.24/gpsctl .... -lusb-1.0 -lm -lrt -lnsl
> > >     ..../ld: ..../sysroot/usr/lib/libusb-1.0.so: undefined reference to `__tls_get_addr'
> > 
> > So, here are a few other tests I did (each independtly):
> > 
> >   - revert uclibc-ng from 1.0.42 back to 1.0.41 -> still fails
> >   - revert libusb from 1.0.26 back to 1.0.25 -> still fails
> >   - revert gpsd from 3.24 back to 3.23.1 -> still fails
> > 
> > So, from the look of it, the __tls_get_addr has alwaus been injected in
> > libusb [0] on or1k with uclibc-ng and linuxthreeads.
> > 
> > Now, is that a valid combo?
> 
> Normally I would say it is. May be this is an gcc/binutils issue?
> Maybe the uClibc-ng or1k maintainer knows more? Stafford do you have
> a plausible explanation for this phenomenon?

I don't, I haven't looked at __tls_get_addr for a year or more so I forget the
details.  I will have to dic in.  As I remember the symbol is provided by libc.
So perhaps the way libusb linker flags are getting set with uClibc-ng is cauing
an issue.

>  
> > Do we want to keep LT even for those arch where NPTL exists? I.e. when
> > uclibc is configured with threads, use NPTL is there is an NPTL
> > implementation for the arch, otherwise use LT. Thoughts?
> 
> It might be a solution, yes. But do not forget it is not that
> simple, as it also depends on the binary format used, as for ARM
> where pending patches for FDPIC will use NPTL and FLAT is
> Linuxthreads only. Sometimes it might be useful to use Linuxthreads
> to see if it is a NPTL bug or not. May be Stafford have an idea.

I am pretty sure uClibc-ng with NPTL enabled alone should "just work" and
provide the __tls_get_addr symbol, the gcc version might have something to do
with it, but it should be working since or1k was ported to gcc.  But again I
will have to play with the build to see where it is going wrong.

I will have a look at this over the weekend.

-Stafford
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

  reply	other threads:[~2022-09-23 16:29 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-23  5:30 [Buildroot] [autobuild.buildroot.net] Daily results for 2022-09-22 Thomas Petazzoni via buildroot
2022-09-23 12:13 ` yann.morin
     [not found] ` <20220923121334.GC2981@tl-lnx-nyma7486>
2022-09-23 14:18   ` yann.morin
2022-09-23 15:23     ` Waldemar Brodkorb
2022-09-23 16:29       ` Stafford Horne [this message]
2022-09-26  7:05         ` yann.morin
     [not found]         ` <20220926070545.GA3010@tl-lnx-nyma7486>
2022-09-26  9:51           ` yann.morin
2022-09-26 11:12             ` Stafford Horne
2022-09-26 14:45               ` Stafford Horne
2022-09-26 15:04                 ` yann.morin
2022-09-26 15:45                 ` yann.morin
2022-09-26 16:35                 ` yann.morin

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=Yy3e9fTSv19Zxq9T@oscomms1 \
    --to=shorne@gmail.com \
    --cc=buildroot@buildroot.org \
    --cc=wbx@openadk.org \
    --cc=yann.morin@orange.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.