From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <19541ecb.ANAAAI15lDoAAAAAAAAAALFruKAAARpcY_sAAAAAAAeRJgBf3KgI@bnc3.mailjet.com> Received: from o128.p8.mailjet.com (o128.p8.mailjet.com [87.253.233.128]) by sourceware.org (Postfix) with UTF8SMTPS id 4BF473858036 for ; Fri, 18 Dec 2020 13:00:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 4BF473858036 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=viric.name Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=19541ecb.ANAAAI15lDoAAAAAAAAAALFruKAAARpcY_sAAAAAAAeRJgBf3KgI@bnc3.mailjet.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; q=dns/txt; d=viric.name; i=viric@viric.name; s=mailjet; h=message-id:mime-version:from:to:subject:date:list-unsubscribe:list-unsubscribe-post: feedback-id:in-reply-to:references:x-accept-language:x-csa-complaints: x-mj-mid:x-mj-smtpguid:x-report-abuse-to:content-type:content-disposition: content-transfer-encoding; bh=llQpbum2FsNNHOiOLfdizq8Jl/QU4XhT3eLcqecaaCM=; b=n1Srnm/RwqAHt6w8Ue+lRkW11SIAV9RoANGdTCwkRYqNhC9+JdJsm2oTH cK8nKHF2THtYdMlxdiwTB/a7UkEIrsCA9Z3JWHxFuZaKqgDSsqL8wYf2/tAZ 4Txmt6SCCPUTBT+0uk/gRvKUiQjMt4GZ1SVLnD6NkZZyLpbDuUY2Qs= Message-Id: <19541ecb.ANAAAI15lDoAAAAAAAAAALFruKAAARpcY_sAAAAAAAeRJgBf3KgI@mailjet.com> MIME-Version: 1.0 From: =?UTF-8?q?Llu=C3=ADs_Batlle_i_Rossell?= To: cygwin@cygwin.com Subject: Re: Boost wrongly built for 'context' lib Date: Fri, 18 Dec 2020 14:00:35 +0100 List-Unsubscribe-Post: List-Unsubscribe=One-Click Feedback-Id: 42.495910.472369:MJ In-Reply-To: <20201216131223.hdd4tvvol2d54ozh@vicerveza> References: <20201216131223.hdd4tvvol2d54ozh@vicerveza> X-Accept-Language: ca, es, eo, ru, en, jbo, tokipona X-CSA-Complaints: csa-complaints@eco.de X-MJ-Mid: ANAAAI15lDoAAAAAAAAAALFruKAAARpcY_sAAAAAAAeRJgBf3KgIGGZ2NES8Q4C1mMqiiu-kigAHNTE X-MJ-SMTPGUID: 18667634-44bc-4380-b598-caa28aefa48a X-REPORT-ABUSE-TO: Message sent by Mailjet please report to abuse@mailjet.com with a copy of the message Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Dec 2020 13:01:00 -0000 I could get a change to boost upstream that will fix it likely in the next release. But that would require the cygwin boost maintainer at least to provide that boost lib available. Nevertheless the fix is interesting as a patch for previous boost versions though. This patch: https://github.com/boostorg/context/commit/e785657ec4d6a885ba2fd49c3ad8eaeac1f71a34 On Wed, Dec 16, 2020 at 02:12:23PM +0100, Lluís Batlle i Rossell wrote: > Hello, > > the boost library (1.66, quite outdated) is wrongly built for cygwin > regarding the 'context' lib, in a way that makes the 'coroutine2' lib > crash. > > b2 should be called with "context-impl=ucontext" argument when building > it. > > And programs using boost context/coroutine2 should build with the flag > -DBOOST_USE_UCONTEXT > > These options are documented at the bottom of this page: > https://www.boost.org/doc/libs/1_75_0/libs/context/doc/html/context/architectures.html > > And that would fix the problem here reported for the nix program. > https://github.com/NixOS/nix/issues/4360 > > Can someone make that fix? > > I haven't tried explicitly 1.66 with that build flag, but 1.75 failed the > same way until I added that build flag. > > Thank you, > Lluís. > > -- > (Escriu-me xifrat si saps PGP / Write ciphered if you know PGP) > PGP key 7CBD1DA5 - https://emailselfdefense.fsf.org/ -- (Escriu-me xifrat si saps PGP / Write ciphered if you know PGP) PGP key 7CBD1DA5 - https://emailselfdefense.fsf.org/