From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-musl+bounces-114-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	by finch.gentoo.org (Postfix) with ESMTP id C35C01382AD
	for <garchives@archives.gentoo.org>; Tue, 14 Jun 2016 09:35:20 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 9A525E0893;
	Tue, 14 Jun 2016 09:35:13 +0000 (UTC)
Received: from mail-oi0-f52.google.com (mail-oi0-f52.google.com [209.85.218.52])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 33560E0893
	for <gentoo-musl@lists.gentoo.org>; Tue, 14 Jun 2016 09:35:13 +0000 (UTC)
Received: by mail-oi0-f52.google.com with SMTP id d132so144033391oig.1
        for <gentoo-musl@lists.gentoo.org>; Tue, 14 Jun 2016 02:35:13 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=mime-version:in-reply-to:references:from:date:message-id:subject:to
         :cc;
        bh=egvxe36EXWL+VlA9qiLDTh0QjUbUInCYV6nA+trzSxk=;
        b=bvfiWPvzpi2FeJMb2v8Wktz+ATq76CKRC/+dQG8GF5rjICYGgLLaBcRHws59b8aBq0
         cI2HL5mydre8dwW18CHxFQ5C0N+/SDHXR4KOPSlcbVISCMisTLSrFWfabDvobnVCJB5g
         riFtdTRfK52D/Ql7aA1QCJY2qwL/SAnR5cX+dnYTyx0ipgu4+EbCosWz2CbKY6KqyLB9
         Fy/og3q1bZWku3wCSzE3RyNKzkuVIhIgAJGJGuuTKcEGuHijHGfz+b9X5Lk/hAa3FExA
         5UnNOj5obj5j6rjo5KaxbuyQXYFbRnzjj4nZmehLtT4iPclRhGV++qYBfGuL1N3vdsG/
         qsxg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:mime-version:in-reply-to:references:from:date
         :message-id:subject:to:cc;
        bh=egvxe36EXWL+VlA9qiLDTh0QjUbUInCYV6nA+trzSxk=;
        b=gpqzH31aU1qa+zGXxOJ7o+y7hBbbNuJO/4FJhD4DRGq5+QXylm43ipHivs9m6+JIlB
         lOmYr7w0fx4LZ8pQnX0DZXCcSOnDsvbCAz1D8bQte+oX5fxPTNRExnMUWE/sx5IHsYGM
         514jGdpy8acQIiifTy1mmyNl89u8HIMHNhLNdZgTU+bXsQuSIrIxMRwissxiRLjyl0Lr
         4UXP+JLLwkSYpQ9A5XDbTyuW6VlpRdr7UB4jKLEcqr1Rr9d/5wjXBTanTRzdE6AvmaY9
         JWWdtZHIO1/QApef7zSiyYMHgXWiIYWVOXsivqUmrnSCrhvaUQN5zpyie50gGWctFBDp
         91Kg==
X-Gm-Message-State: ALyK8tJsKQ2+h7l9WiCwCpvoFZLQ4qnq6pB/rTDx61kO5gDwrzZs5cZImInc3Iq19LldwurV7L2fmUdPxim3Fw==
X-Received: by 10.202.96.68 with SMTP id u65mr8958838oib.83.1465896912452;
 Tue, 14 Jun 2016 02:35:12 -0700 (PDT)
Precedence: bulk
List-Post: <mailto:gentoo-musl@lists.gentoo.org>
List-Help: <mailto:gentoo-musl+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-musl+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-musl+subscribe@lists.gentoo.org>
List-Id: Gentoo musl list <gentoo-musl.gentoo.org>
X-BeenThere: gentoo-musl@gentoo.org
X-BeenThere: gentoo-musl@lists.gentoo.org
MIME-Version: 1.0
Received: by 10.202.63.212 with HTTP; Tue, 14 Jun 2016 02:35:12 -0700 (PDT)
In-Reply-To: <20302d1d-92ff-1c4b-8939-08894c3589ca@gentoo.org>
References: <CAOYuCc2iavSmy2Pqy5pv8TOxguSYNMPk7wZCG10_9QghfK6TSA@mail.gmail.com>
 <20160614081043.GA364@nyan> <CAOYuCc1zBZDNJhgXSG0ehaasJ6t5GhuaFHPbrKdvx7Ft11=LAw@mail.gmail.com>
 <4228046b-02f1-1b65-f56d-6e79347e4390@gentoo.org> <CAOYuCc2b2v2wBLGjBzkGRNdKe1gV8uSqnCLFxnxyodZuQ9Ym5g@mail.gmail.com>
 <20302d1d-92ff-1c4b-8939-08894c3589ca@gentoo.org>
From: Lei Zhang <zhanglei.april@gmail.com>
Date: Tue, 14 Jun 2016 17:35:12 +0800
Message-ID: <CAOYuCc1JqdQg3eshzPvTYjo-8jHP0Z_NW+e6P2G2OT5gyQGW1w@mail.gmail.com>
Subject: Re: [gentoo-musl] [GSoC] _GNU_SOURCE in C++
To: Luca Barbato <lu_zero@gentoo.org>
Cc: gentoo-musl@lists.gentoo.org
Content-Type: text/plain; charset=UTF-8
X-Archives-Salt: b423f116-c7e0-4d7c-b851-04693abb7ddc
X-Archives-Hash: 91f01f18ae5c0767dc4e5f15c2b09aeb

2016-06-14 17:28 GMT+08:00 Luca Barbato <lu_zero@gentoo.org>:
> On 14/06/16 11:17, Lei Zhang wrote:
>> 2016-06-14 17:12 GMT+08:00 Luca Barbato <lu_zero@gentoo.org>:
>>> On 14/06/16 10:28, Lei Zhang wrote:
>>>> 2016-06-14 16:10 GMT+08:00 Felix Janda <felix.janda@posteo.de>:
>>>>> Take a look at the discussion at
>>>>>
>>>>> http://www.openwall.com/lists/musl/2014/04/15/3
>>>>
>>>> And some view from the LLVM side:
>>>>
>>>> http://article.gmane.org/gmane.comp.compilers.clang.devel/46390
>>>>
>>>> IMHO, the real problem is the abuse of _GNU_SOURCE by C++ compiler.
>>>> The decisions made by LLVM and musl both look reasonable to me.
>>>>
>>>
>>> -U_GNU_SOURCE would make you get through the problem for the time being?
>>>
>>> Given you aren't using libstdc++ in that case, assuming libcxx does not
>>> have the need probably might be the easiest workaround.
>>
>> Unfortunately libc++ depends on this macro as well:
>>
>> http://lists.llvm.org/pipermail/cfe-dev/2016-June/049447.html
>>
>> I'm imagining some ugly hacks on LLVM now...
>>
>
> Please try to prepare a list and blog about this problem since possibly
> needs additional awareness.
>
> If the symbols needed aren't GNU-only there are other macros to expose
> them (and the llvm people just went the lazy route to get them).

I agree. It seems libstdc++ is also taking the lazy route, and someone
intended to fix it:

https://lwn.net/Articles/590504/

but I see no progress so far.


Lei