public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: "Lluís Batlle i Rossell" <viric@viric.name>
To: cygwin@cygwin.com
Subject: Boost wrongly built for 'context' lib
Date: Wed, 16 Dec 2020 14:12:23 +0100	[thread overview]
Message-ID: <3448a22c.AUoAABonV9cAAAAAAAAAALFruKAAARpcY_sAAAAAAAeRJgBf2ge8@mailjet.com> (raw)

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/

             reply	other threads:[~2020-12-16 13:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-16 13:12 Lluís Batlle i Rossell [this message]
     [not found] <20201216131223.hdd4tvvol2d54ozh@vicerveza>
2020-12-18 13:00 ` Lluís Batlle i Rossell
2020-12-18 16:56   ` Ken Brown

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=3448a22c.AUoAABonV9cAAAAAAAAAALFruKAAARpcY_sAAAAAAAeRJgBf2ge8@mailjet.com \
    --to=viric@viric.name \
    --cc=cygwin@cygwin.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.
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 read-only IMAP folder(s) and NNTP newsgroup(s).