All of lore.kernel.org
 help / color / mirror / Atom feed
From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Andre McCurdy <armccurdy@gmail.com>
Cc: OE Core mailing list <openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH] uninative: Add allow-shlib-undefined to BUILD_LDFLAGS and drop other workarounds
Date: Wed, 18 Apr 2018 12:34:15 +0100	[thread overview]
Message-ID: <1524051255.18865.51.camel@linuxfoundation.org> (raw)
In-Reply-To: <CAJ86T=XhMh1+C52TxLR6oPpzyTHe+gt=-VzFZf9A9c-Tt8ST9g@mail.gmail.com>

On Tue, 2018-04-17 at 12:15 -0700, Andre McCurdy wrote:
> On Tue, Apr 17, 2018 at 9:44 AM, Richard Purdie
> > We've looked into various options, basically we cannot link against
> > our uninative libc/ld.so since we don't have the right headers or
> > compiler link libraries. The compiler doesn't allow you to switch
> > in a new set either, even if we did want to ship them. Shipping a
> > complete compiler, dev headers and libs also isn't an option.
>
> Maybe not an option now, but in theory wouldn't a set of native tools
> statically linked with musl and downloadable from a public sstate
> server solve all these kinds of issues?

There are a few ways you could solve this problem in theory. The
trouble is you need to build these native tools somehow and to link
against musl, you'd need a cross build more similar to "nativesdk" than
"native" as you can no longer use the host gcc.

We've looked at shoe-horning nativesdk into native before but it gets
very very messy very quickly as they're really not equivalent. We could
of course create some new native-like variant but again, messy very
quickly, particularly trying to get the sstate checksums to match.

You can give up on the native checksums matching or coerce them somehow
but again, very messy very quickly.

uninative works surprisingly well for how "simple" it is, it does have
some rough edges.

I have found one further issue with this patch and the need to tweak it
a little further, I'll send another patch shortly related to that once
we test it a bit more. That said, if these two changes do work, they
fix one of the big flaws in uninative and should make it a lot more
workable/usable.

Cheers,

Richard










  parent reply	other threads:[~2018-04-18 11:34 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-17 16:44 [PATCH] uninative: Add allow-shlib-undefined to BUILD_LDFLAGS and drop other workarounds Richard Purdie
2018-04-17 19:15 ` Andre McCurdy
2018-04-18  7:49   ` Khem Raj
2018-04-18 11:38     ` Richard Purdie
2018-04-18 11:34   ` Richard Purdie [this message]
2018-04-17 20:52 ` Burton, Ross
2018-04-17 20:57   ` Burton, Ross
2018-04-18 17:58     ` Richard Purdie

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=1524051255.18865.51.camel@linuxfoundation.org \
    --to=richard.purdie@linuxfoundation.org \
    --cc=armccurdy@gmail.com \
    --cc=openembedded-core@lists.openembedded.org \
    /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.