[libc-commits] [PATCH] D124214: [libc][NOT FOR COMMIT] building LLVM-libc on 32 bit arm with gcc

Michael Jones via Phabricator via libc-commits libc-commits at lists.llvm.org
Fri Apr 29 16:26:43 PDT 2022

michaelrj added a comment.

>From what I can tell, in their current state our unit tests can't be built with the libc++ you provide. The main code should be fine though, since it doesn't depend on libc++.

The problem is that there are certain parts of libc++ that the tests include and depend on that aren't available. Most noticeably is `iostream`, which has `#include "locale.h"`, which doesn't work since locales are disabled. The other problem is the memory functions, which have references to `posix_memalign`, which doesn't appear to be provided by your environment.

If we can solve these problems then being able to build with clang instead of gcc would be very nice, since many of the cmake edits made in this patch are because the LLVM build system doesn't support gcc as well as it does clang.

  rG LLVM Github Monorepo



More information about the libc-commits mailing list