All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Khem Raj" <raj.khem@gmail.com>
To: Piotr <piotr.piwko@gmail.com>
Cc: poky <poky@lists.yoctoproject.org>
Subject: Re: [poky] [meta-clang] Failure add clang to SDK on hardknott
Date: Thu, 2 Sep 2021 00:47:31 -0700	[thread overview]
Message-ID: <CAMKF1sqZXdfEXdKkhPGiKxApNmkAQ5KmTV1djhPy3PFQNEu4eg@mail.gmail.com> (raw)
In-Reply-To: <D04j.1630568360725298708.KKKu@lists.yoctoproject.org>

On Thu, Sep 2, 2021 at 12:39 AM Piotr <piotr.piwko@gmail.com> wrote:
>
> Hi,
>
> After switching to hardknott branches (poky 14c5392fde, meta-clang b0d8050) I'm not able to add successfully clang compiler to SDK. There are some undefined references to tinfo during build:
>
> | //lib/x86_64-linux-gnu/libncurses.so.5: undefined reference to `keyok@NCURSES_TINFO_5.0.19991023'
> | //lib/x86_64-linux-gnu/libncurses.so.5: undefined reference to `raw@NCURSES_TINFO_5.0.19991023'
> | //lib/x86_64-linux-gnu/libncurses.so.5: undefined reference to `_nc_add_to_try@NCURSES_TINFO_5.0.19991023'
> | //lib/x86_64-linux-gnu/libncurses.so.5: undefined reference to `_nc_get_screensize@NCURSES_TINFO_5.7.20081102'
> | //lib/x86_64-linux-gnu/libncurses.so.5: undefined reference to `_nc_get_locale@NCURSES_TINFO_5.4.20040208'
> | //lib/x86_64-linux-gnu/libncurses.so.5: undefined reference to `SP@NCURSES_TINFO_5.0.19991023'
> | ...
> | clang-12: error: linker command failed with exit code 1 (use -v to see invocation)
> | ninja: build stopped: subcommand failed.
>
> On the gatesgarth branch everything compiles fine, so I suppose that something should be added to make it works on the current version. Have you met such a problem or have any idea what may be wrong?
>
is it happening when building clang for target or during clang-native
or nativesdk-clang build ?
it seems something mix and match going on. Where it expects to links
with target version but then tries to link libtinfo from host.
please post full build log for this component somewhere as well to see further.

> Thanks in advance,
>
> --
> Piotr Piwko
>
> 
>

  reply	other threads:[~2021-09-02  7:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-02  7:39 [meta-clang] Failure add clang to SDK on hardknott Piotr
2021-09-02  7:47 ` Khem Raj [this message]
2021-09-02  8:10   ` Piotr

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=CAMKF1sqZXdfEXdKkhPGiKxApNmkAQ5KmTV1djhPy3PFQNEu4eg@mail.gmail.com \
    --to=raj.khem@gmail.com \
    --cc=piotr.piwko@gmail.com \
    --cc=poky@lists.yoctoproject.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.