mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Julien Ramseier <j.ramseier@gmail.com>
To: musl@lists.openwall.com
Subject: Re: Issues when building libcxx libcxxabi with MUSL
Date: Wed, 22 Jun 2016 21:38:17 +0200	[thread overview]
Message-ID: <1165D9B8-DEDB-4393-B734-3FC1AFFAB46F@gmail.com> (raw)
In-Reply-To: <87e30e04-a81d-4302-5dd7-0846aa0f711b@codeaurora.org>

Hi Zhao,

Not sure how you did build llvm-libcxx, but the only issue I encountered myself is
the use of PTHREAD_MUTEX_INITIALIZER in libcxx include/__mutex_base.
musl uses volatile types in its pthread_mutex_t struct and C++11 does not allow them
with constexpr member initializers. This rule has been relaxed in C++14.

Julien

> Le 22 juin 2016 à 21:24, Zhao, Weiming <weimingz@codeaurora.org> a écrit :
> 
> Hi,
> 
> I tried to build libcxx/libcxxabi using MUSL. Compiler is clang.
> 
> The build issues I got:
> 
> 1) In libcxx, it complains that some pthread structure is not completely initialized.
> 
> 2) Some types like max_align_t are already defined in clang's include.
> 
> 3) libcxx can't find it's own math.h
> 
> A patch is attached. Please review if the changes are correct.
> 
> 
> Thank,
> 
> Weiming
> 
> 
> 
> 
> -- 
> Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation
> 
> <build_libcxx.patch>



  parent reply	other threads:[~2016-06-22 19:38 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-22 19:24 Zhao, Weiming
2016-06-22 19:34 ` Rich Felker
2016-06-22 19:38 ` Julien Ramseier [this message]
2016-06-22 19:41   ` Rich Felker
2016-06-30 12:50     ` Julien Ramseier
2016-06-30 13:15       ` Szabolcs Nagy
2016-06-30 13:38         ` Szabolcs Nagy
2016-06-30 13:45           ` Rich Felker
2016-06-30 13:38       ` Rich Felker
2016-06-30 14:36         ` Julien Ramseier
2016-06-30 14:58           ` Rich Felker

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=1165D9B8-DEDB-4393-B734-3FC1AFFAB46F@gmail.com \
    --to=j.ramseier@gmail.com \
    --cc=musl@lists.openwall.com \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).