From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/10202 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: Issues when building libcxx libcxxabi with MUSL Date: Wed, 22 Jun 2016 15:41:50 -0400 Message-ID: <20160622194149.GU10893@brightrain.aerifal.cx> References: <87e30e04-a81d-4302-5dd7-0846aa0f711b@codeaurora.org> <1165D9B8-DEDB-4393-B734-3FC1AFFAB46F@gmail.com> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1466624531 27908 80.91.229.3 (22 Jun 2016 19:42:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 22 Jun 2016 19:42:11 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-10215-gllmg-musl=m.gmane.org@lists.openwall.com Wed Jun 22 21:42:10 2016 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1bFo2G-0003gq-R0 for gllmg-musl@m.gmane.org; Wed, 22 Jun 2016 21:42:04 +0200 Original-Received: (qmail 32231 invoked by uid 550); 22 Jun 2016 19:42:03 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 32208 invoked from network); 22 Jun 2016 19:42:02 -0000 Content-Disposition: inline In-Reply-To: <1165D9B8-DEDB-4393-B734-3FC1AFFAB46F@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:10202 Archived-At: On Wed, Jun 22, 2016 at 09:38:17PM +0200, Julien Ramseier wrote: > 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. Note that the code using them is still formally/conceptually buggy. POSIX does not permit using these initializers as values. They can only be used as initializers for objects with static storage duration. A "mutex value" makes no sense; mutexes are objects not values. Rich > > Le 22 juin 2016 à 21:24, Zhao, Weiming 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 > > > >