[cfe-dev] --split-dwarf silently fails on non-Linux platforms

Eric Christopher echristo at gmail.com
Fri Mar 20 13:33:11 PDT 2015


On Fri, Mar 20, 2015 at 12:31 PM Ed Maste <emaste at freebsd.org> wrote:

> On 20 March 2015 at 12:07, David Blaikie <dblaikie at gmail.com> wrote:
> >
> >
> > On Fri, Mar 20, 2015 at 7:54 AM, Eric Christopher <echristo at gmail.com>
> > wrote:
> >>
> >> Mostly that the only platform we knew it worked on was Linux and didn't
> >> want to make it error out.
> >
> > Hmm - why did we not want it to error on unsupported platforms?
>
> Personally I'd rather have an error than silently ignoring the option.
>
> However, a comment on the related topic of enabling functionality on
> only Linux because it's known to work there. For FreeBSD at least I'd
> much rather we take the opposite approach in general. Allow new
> functionality globally, and let other maintainers disable it if
> necessary. (If the functionality is known to fail on not-Linux that's
> a different matter, of course. It's the cases where it's not known
> either way that I'm thinking of.)
>
> For cases like this -gsplit-dwarf where the functionality is opt-in
> under an option, it seems that we should just do what the user asks.
> We can expect them to provide the dependencies required.
>
>
*shrug* I don't think it's worth the amount of effort of this discussion to
be honest. I know I didn't think this hard about it when I added it :)

I don't mind having it always try to do the various things. At the time it
was added it wasn't reasonable to try to do so given that none of the
dependencies had even seen a release, much yet been finalized. Motivation
at the time was mostly to impact people as little as possible and still be
able to develop the feature.


> In FreeBSD we've been putting a lot of effort into the toolchain
> recently. We've had Clang/LLVM as the system compiler since FreeBSD
> 10.0 in January 2014, and we've started migrating to tools like strip,
> strings, size, nm and such from the ELF Tool Chain project. For the
> upcoming FreeBSD 11.x release our base system toolchain should also
> consist of LLDB and LLD. I'd rather find out about new functionality
> that's missing in one of those tools as early as possible and have to
> explicitly disable it, than find out after the fact that it wasn't
> even tried.
>
>
lld and lldb don't support split dwarf for the record. I fully doubt that
the rest of the elf toolchain project does either.


> I'd be interested in hearing what the maintainers of other ELF targets
> think.
>

Do you mean the other BSDs or linux or...? Anyhow, I don't really think
it's necessary. OSes that want to support it will need to add toolchain
support for it (Toolchains.cpp and friends). I'll happily take a look at
any patches.

-eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20150320/e35c2e60/attachment.html>


More information about the cfe-dev mailing list