Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Feb 2024 13:36:19 -0800 (PST)
From:      Don Lewis <truckman@FreeBSD.org>
To:        Brooks Davis <brooks@FreeBSD.org>
Cc:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org,  dev-commits-src-main@FreeBSD.org
Subject:   Re: git: 49d684369c66 - main - libthr: filter rather than link  with libsys
Message-ID:  <tkrat.f71eaca65b886331@FreeBSD.org>
References:  <202402071951.417JpRgf034979@gitrepo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On  7 Feb, Brooks Davis wrote:
> The branch main has been updated by brooks:
> 
> URL: https://cgit.FreeBSD.org/src/commit/?id=49d684369c6682eebca325c55a6c96b7c03f5aeb
> 
> commit 49d684369c6682eebca325c55a6c96b7c03f5aeb
> Author:     Brooks Davis <brooks@FreeBSD.org>
> AuthorDate: 2024-02-07 19:38:16 +0000
> Commit:     Brooks Davis <brooks@FreeBSD.org>
> CommitDate: 2024-02-07 19:50:47 +0000
> 
>     libthr: filter rather than link with libsys
>     
>     The allows gcc + GNU ld to link programs with -m32 -pthread without
>     erroring out due to _umtx_op_err being undefined (unless -lsys is added
>     to the link command.
>     
>     We now always link _umtx_op_err into libthr (not just when it's static)
>     and filter it with libsys so we call that implementation.  The dynamic
>     implementations (at least the assembly ones) should likely become stubs
>     as a further refinement.

Thanks!  I ran into this problem early this week when lang/gcc12 stopped
bulding and I spent a bunch of time bisecting.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?tkrat.f71eaca65b886331>