From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/10201 Path: news.gmane.org!not-for-mail From: Julien Ramseier Newsgroups: gmane.linux.lib.musl.general Subject: Re: Issues when building libcxx libcxxabi with MUSL Date: Wed, 22 Jun 2016 21:38:17 +0200 Message-ID: <1165D9B8-DEDB-4393-B734-3FC1AFFAB46F@gmail.com> References: <87e30e04-a81d-4302-5dd7-0846aa0f711b@codeaurora.org> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 9.2 \(3112\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1466624331 24768 80.91.229.3 (22 Jun 2016 19:38:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 22 Jun 2016 19:38:51 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-10214-gllmg-musl=m.gmane.org@lists.openwall.com Wed Jun 22 21:38:46 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 1bFnyr-000056-VB for gllmg-musl@m.gmane.org; Wed, 22 Jun 2016 21:38:34 +0200 Original-Received: (qmail 29958 invoked by uid 550); 22 Jun 2016 19:38:31 -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 29937 invoked from network); 22 Jun 2016 19:38:31 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=rUe7Dzi0rtiEybotBhCRp5kg+sXAv1PovR/B9WkVRdc=; b=PzNatomi4gjfOe9Vl+rPgGz37hay3uf+Fa1U3mscgFmmZWH3ncPHn/t5EkzH1eEtkw N9WWEJfG/vSMdCtJ2xLZQiYheEpo+hmAV0c3jvhUGuCzdavME9HcV17faRenr5MemWr1 r6rsyJpaREkm8lPrHJMcrKpzqwA+gh7VwnltbM/0yhwGMzqGXqhDH9/CUJzK/o3t0+OE lyWiY6fGa74LDECwOcxKQc8+jSD9MBuun6UZlxP7DCimu+SOc9dMG3lUNQVPqUv+6el1 uOqYPc34kWdp+n63ZOI2xRGxQrws9vGO8twTJl1WcUC4VFvge5LVTnTCrBSS+Tzh8A7h ktAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=rUe7Dzi0rtiEybotBhCRp5kg+sXAv1PovR/B9WkVRdc=; b=POceAS7UVLiv8RyytI4SQ6KJ/rqPFpE733Vc3Dos7VK35XK+Il3L/Hq/6wzYAS+ap2 DTrndmqbC4VmCkhg/p/TuaFaZbH9JjQi2wetjDPGqRb0IKeDZiJSORRXDaW2uQ/XFv78 U5xpHZTqokLh4wdBjzHsiWnYibMPVRcg3ISl5UijBLnpwkD0b9k4NCk1bdufDoXGRF4u znrJNogluPow1GZW/UUAySCYuDmjzGiB58cKgG72acJnodw20A9dR9ohBPKYyduIBLC8 gJCK8Js3vZpZEzTeDeUiRvYO/r2smbShnwcdjLWhOiIKg8YsZco3Vww9UjiPYCBaaGD7 o1Rg== X-Gm-Message-State: ALyK8tJuhLSEDuqsCN0mMLsfPmevwtL778KnmDenDFcTzzhDH2mVcubEBO/05SY31tRpiQ== X-Received: by 10.194.236.195 with SMTP id uw3mr29419978wjc.149.1466624299417; Wed, 22 Jun 2016 12:38:19 -0700 (PDT) In-Reply-To: <87e30e04-a81d-4302-5dd7-0846aa0f711b@codeaurora.org> X-Mailer: Apple Mail (2.3112) Xref: news.gmane.org gmane.linux.lib.musl.general:10201 Archived-At: 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 =C3=A0 21:24, Zhao, Weiming = a =C3=A9crit : >=20 > Hi, >=20 > I tried to build libcxx/libcxxabi using MUSL. Compiler is clang. >=20 > The build issues I got: >=20 > 1) In libcxx, it complains that some pthread structure is not = completely initialized. >=20 > 2) Some types like max_align_t are already defined in clang's include. >=20 > 3) libcxx can't find it's own math.h >=20 > A patch is attached. Please review if the changes are correct. >=20 >=20 > Thank, >=20 > Weiming >=20 >=20 >=20 >=20 > --=20 > Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, = hosted by The Linux Foundation >=20 >