Failure add clang to SDK on hardknott
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?
Thanks in advance,
--
Piotr Piwko
Quoted 15 lines · Piotr
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.
Quoted 2 lines
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.
Quoted 7 lines
Thanks in advance,
--
Piotr Piwko
Quoted 3 lines · Khem Raj
is it happening when building clang for target or during clang-native or nativesdk-clang build ?
I'm trying to add clang to SDK using CLANGSDK=1, so the problem refers to nativesdk-clang build.
Quoted 3 lines
please post full build log for this component somewhere as well to see further.
Please find the log here: https://pastebin.com/i6baxQfg
Thanks,
--
Piotr Piwko