[Buildroot] [PATCH v3 1/6] package/compiler-rt: new package

Matthew Weber matthew.weber at rockwellcollins.com
Wed Nov 21 14:00:08 UTC 2018


Valentin,

On Wed, Nov 21, 2018 at 12:48 AM Valentin Korenblit
<valentinkorenblit at gmail.com> wrote:
>
> Hi Matt,
>
> This patch adds support for the compiler-rt (CLANG runtime) library.
> It builds a set of static libraries and installs them into the
> CLANG/LLVM toolchain resource folder.
>
> Signed-off-by: Matthew Weber <matthew.weber at rockwellcollins.com>
> Cc: Romain Naour <romain.naour at smile.fr>
> Cc: Ricardo Martincoski <ricardo.martincoski at gmail.com>
> ---
> Changes
> v1 -> v2
> [Romain
>  - Removed unnecessary host-cmake dependency
>
> v2 -> v3
> [Romain
>  - Update to use COMPILER_RT_INSTALL_PATH for library install
> [Ricardo
>  - Fixed check-package extra line
>  - Spelling in commit message
> ---
>
> I've just tried to build compiler-rt for arm with uclibc and got the following:
>
> buildroot/test/build/compiler-rt-7.0.0/lib/interception/interception_linux.cc:
> In function ‘void* __interception::GetFuncAddrVer(const char*, const char*)’:
> buildroot/test/build/compiler-rt-7.0.0/lib/interception/interception_linux.cc:48:10: error:
> ‘dlvsym’ was not declared in this scope
>  return dlvsym(RTLD_NEXT, func_name, ver);
>           ^~~~~~
> buildroot/test/build/compiler-rt-7.0.0/lib/interception/interception_linux.cc:48:10: note:
> suggested alternative: ‘dlsym’
> return dlvsym(RTLD_NEXT, func_name, ver);
>        ^~~~~~
>        dlsym
>
>
> buildroot/test/build/compiler-rt-7.0.0/lib/sanitizer_common/sanitizer_platform_limits_posix.cc:141:10:
> fatal error: obstack.h: No such file or directory
>  #include <obstack.h>
>           ^~~~~~~~~~~
> compilation terminated.
>
>
> It seems we depend on glibc, haven't tried with musl yet.
>

Ah yes.   I've only tested with glibc.  I'll kickoff some builds.  I
didn't realize llvm and clang could build with uclibc.  I expect musl
to work.

Matt


More information about the buildroot mailing list