[PATCH] D18174: Fix libcxx build on musl

2021-03-24 Thread Khem Raj via Phabricator via cfe-commits
raj.khem abandoned this revision. raj.khem added a comment. this is no longer needed. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D18174/new/ https://reviews.llvm.org/D18174 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lis

[PATCH] D18174: Fix libcxx build on musl

2017-07-31 Thread Ben Craig via Phabricator via cfe-commits
bcraig added inline comments. Comment at: include/__mutex_base:51 #ifndef _LIBCPP_CXX03_LANG -constexpr mutex() = default; +#ifdef __GLIBC__ +constexpr smeenai wrote: > EricWF wrote: > > Limiting `constexpr` to GLIBC implementations only is incorrect; yo

[PATCH] D18174: Fix libcxx build on musl

2017-07-30 Thread Khem Raj via Phabricator via cfe-commits
raj.khem added a comment. @EricWF you are right. I have made the changes accordingly. This patch can be ignored. https://reviews.llvm.org/D18174 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/

[PATCH] D18174: Fix libcxx build on musl

2017-07-30 Thread Shoaib Meenai via Phabricator via cfe-commits
smeenai added inline comments. Comment at: include/__mutex_base:51 #ifndef _LIBCPP_CXX03_LANG -constexpr mutex() = default; +#ifdef __GLIBC__ +constexpr EricWF wrote: > Limiting `constexpr` to GLIBC implementations only is incorrect; you want to > exclu

[PATCH] D18174: Fix libcxx build on musl

2017-07-30 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF requested changes to this revision. EricWF added a comment. This revision now requires changes to proceed. This patch is not OK, since it affects way more that just MUSL libc. Also can you please provide a reduced reproducer as two why `pthread_mutex_t mut = PTHREAD_MUTEX_INITIALIZER` is

[PATCH] D18174: Fix libcxx build on musl

2017-07-30 Thread Khem Raj via Phabricator via cfe-commits
raj.khem updated this revision to Diff 108853. raj.khem edited the summary of this revision. Herald added a reviewer: EricWF. https://reviews.llvm.org/D18174 Files: include/__mutex_base Index: include/__mutex_base === --- include

Re: [PATCH] D18174: Fix libcxx build on musl

2016-03-15 Thread Eric Fiselier via cfe-commits
EricWF added a comment. The method @bcraig is describing is documented here: http://libcxx.llvm.org/docs/BuildingLibcxx.html#id4 http://reviews.llvm.org/D18174 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/ma

Re: [PATCH] D18174: Fix libcxx build on musl

2016-03-15 Thread Ben Craig via cfe-commits
bcraig added a comment. In http://reviews.llvm.org/D18174#375813, @raj.khem wrote: > I think my problem was that while compiling libcxxabi, it wants to peek into > libcxx headers but then libcxxabi cmake infra doesnt have the musl support > like libcxx. So Now I solved it by adding -D_LIBCPP_HA

Re: [PATCH] D18174: Fix libcxx build on musl

2016-03-15 Thread Eric Fiselier via cfe-commits
EricWF added a comment. That patch looks hugely dangerous because you've now changed when your static mutex's get initialized. Please file a bug against libc++. http://reviews.llvm.org/D18174 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

Re: [PATCH] D18174: Fix libcxx build on musl

2016-03-15 Thread Khem Raj via cfe-commits
raj.khem added a comment. libcxx still has problem compiling on musl/aarch64 though. I fixed it with this patch https://github.com/kraj/meta-clang/blob/master/recipes-devtools/clang/libcxx/0001-use-constexpr-when-using-glibc.patch does this make sense ? http://reviews.llvm.org/D18174 _

Re: [PATCH] D18174: Fix libcxx build on musl

2016-03-15 Thread Eric Fiselier via cfe-commits
EricWF added a subscriber: EricWF. EricWF added a comment. @raj.khem Can you file a bug against libc++abi please? http://reviews.llvm.org/D18174 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/c

Re: [PATCH] D18174: Fix libcxx build on musl

2016-03-15 Thread Khem Raj via cfe-commits
raj.khem added a comment. I think my problem was that while compiling libcxxabi, it wants to peek into libcxx headers but then libcxxabi cmake infra doesnt have the musl support like libcxx. So Now I solved it by adding -D_LIBCPP_HAS_MUSL_LIBC to CXXFLAGS. http://reviews.llvm.org/D18174 ___

Re: [PATCH] D18174: Fix libcxx build on musl

2016-03-15 Thread Ben Craig via cfe-commits
bcraig added a comment. The trouble is that features.h doesn't exist in musl (as far as I know). That's the biggest reason why _LIBCPP_HAS_MUSL_LIBC is needed. http://reviews.llvm.org/D18174 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

Re: [PATCH] D18174: Fix libcxx build on musl

2016-03-15 Thread Khem Raj via cfe-commits
raj.khem added a comment. 3.8 has it in there. So may be this is just not required. I will add -DLIBCXX_HAS_MUSL_LIBC=ON to Cmake and see what comes out http://reviews.llvm.org/D18174 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://l

Re: [PATCH] D18174: Fix libcxx build on musl

2016-03-15 Thread Khem Raj via cfe-commits
raj.khem added a comment. @bcraig, right, check for __GLIBC__ can be moved after including features.h. https://chromium.googlesource.com/native_client/pnacl-libcxx/+/master%5E!/ seems to add needed tweaks which can be enabled by passing -D__musl__ in CFLAGS may be it can be backported to 3.8 bran

Re: [PATCH] D18174: Fix libcxx build on musl

2016-03-15 Thread Ben Craig via cfe-commits
bcraig added a comment. If I understand it correctly, __GLIBC__ is defined in features.h, so this won't work. I suspect that the build isn't broken. You likely just need to define LIBCXX_HAS_MUSL_LIBC on your cmake line. That will cause __config_site.in to #define _LIBCPP_HAS_MUSL_LIBC for y