All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: buildroot@busybox.net
Subject: [Buildroot] [autobuild.buildroot.net] Build results for 2018-04-09
Date: Tue, 10 Apr 2018 10:41:14 +0200	[thread overview]
Message-ID: <20180410104114.3745c5d9@windsurf> (raw)
In-Reply-To: <2631847c-0767-a123-beb7-465c74843b21@smile.fr>

Hello,

On Tue, 10 Apr 2018 10:35:34 +0200, Valentin Korenblit wrote:

> > So while this will indeed cause a problem for llvm-config in the SDK
> > situation, I don't quite understand how you get this $ORIGIN/../lib
> > today, without running "make sdk".  
> 
> To be more precise, this is the RPATH:
> 
> (RPATH) Library rpath: [/home/vakor/buildroot/output/host/lib:$ORIGIN/../lib]
> 
> I haven't run make sdk.

Meh. Then either I no longer understand how Buildroot works, or it's
the LLVM build system that adds $ORIGIN/../lib in the RPATH.

But I believe your situation highlights a larger problem: we currently
use all <foo>-config scripts in STAGING_DIR because that's where
libraries install them, but that only works because all those programs
are scripts, and not compiled programs.

With compiled programs, it indeed doesn't work well to have host
binaries in STAGING_DIR, due to the RPATH issues. I'm not sure how to
solve this. Should we have all those <foo>-config programs in a
separate location ? But apparently, this llvm-config program behaves
different depending on its location, so if we move it elsewhere, it
won't return the right results anymore.

> > One possibility is to do like we do for postgresql: provide our own
> > minimal -config script. See package/postgresql/pg_config for an example.  
> 
> I'll take a look.

If the output returned by llvm-config is relatively simple, and it
doesn't have gazillion of options, then it is probably the easiest
solution.

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com

  reply	other threads:[~2018-04-10  8:41 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-10  6:00 [Buildroot] [autobuild.buildroot.net] Build results for 2018-04-09 Thomas Petazzoni
2018-04-10  8:15 ` Valentin Korenblit
2018-04-10  8:23   ` Thomas Petazzoni
2018-04-10  8:35     ` Valentin Korenblit
2018-04-10  8:41       ` Thomas Petazzoni [this message]
2018-04-10  9:02         ` Valentin Korenblit

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=20180410104114.3745c5d9@windsurf \
    --to=thomas.petazzoni@bootlin.com \
    --cc=buildroot@busybox.net \
    /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.