pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: rust: use system libunwind



On Thu, 4 Apr 2024 14:09:22 -0500
Jason Bacon <jtocino%gmx.com@localhost> wrote:

> > +BUILDLINK_TRANSFORM.Linux+=	opt:-lunwind:${BUILDLINK_PREFIX.libunwind}/lib/libunwind.so

> This leads to a different error on Lubuntu 23.10, shown below.  Any
> objections to patching out --llvm-libunwind=system for Linux as a
> temporary workaround?  It will be documented as such.

Oh, bummer. (It worked on Fedora 39 though!)
I do object:
I think the interim fix should instead be to add Linux to the list of
platforms for which we use the "rust-internal-llvm" option by default.
This is the workaround I have been using. Mixing pkgsrc llvm with
rust's bundled libunwind seems less safe to me and we can treat Linux
the same as SunOS and Darwin.

-Tobias




Home | Main Index | Thread Index | Old Index