X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:from:date:message-id:subject:to :content-type; q=dns; s=default; b=nTUesMRcqulXBoDAz/IYhoTwZRAeT vNIuQS+p+NNv+K4Nt5RWRo46j+eHkr55oZBt1tFdQ6KIVSeGHaUnYBxzAmKys3DP kF6j0m5ym9TxCH8RO7W6vecUdq4JInH/Wo1sGBVcI8opgr1LLI2EhCpghgBvDSiQ ekch5Gah/wLnQo= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:from:date:message-id:subject:to :content-type; s=default; bh=nRfaeYuwkJBYkUChhoyOjXrSt5c=; b=UiF SYXiA1oNXeEGRHxeFKQmj9leY8jwuUvHXvy3+TDRTtMT6zw5WEIj0iMkw5m7xM4b HnHxeWmJInNuNtf8415KCqamI6S/2pHlepfh2xL7bpPt7rr6L7CJwxIXJomfZ+cN x8clUcBwHYjLuTm9+i33nknIC9m8dqrqTj24+dm0= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=H*c:alternative X-HELO: mail-lf0-f54.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=2puBXLXYykdPFciBlNY3lWX7wU10U4XCy0R8/pbCcmo=; b=VEkPoMyUXY/gRiBaZaSoMUHuNacY46MuCbeuHeD2In1TbgrH03rez+h7cxy9hFNhu3 TRbIHRgOI15/vj5kU/3k4ZOGBOS233j4u3jJDPqGGI7N3sxIidi18yVqWBu+4Ywsrfy8 BYHmEqfmWIVfL3Im+8Bb1crB4tEh+FuVqc1RCWuV75Op7mGJ3svUGWjziHLamVOv2BLK AUPMh6oRuqb9ROnuIhFA71XIwWNlyDWaFf3ZZlKPRzZrAeII+LZTMyUD8xTFABKwaHBp 9u+GUEvBHxKsMs2N5NYyR1FqRJ2LpQ1j3LKE6ONUfOmIk2/D4P6z8nRcof4SYSefdkuV DgCA== X-Gm-Message-State: APt69E1f3ahUCrQfpgQKfI78zgrH8v8QI8unCLi1sA8XlGRARAWZBJ0f WRgkLHqWfhtzZX2oabzDb0E5k8uopUpzTMZZw2pi1Q== X-Google-Smtp-Source: ADUXVKIaa8GmCLDa1O5/mhjRuozphj25DX9gRgM3yH2HPK7Ys5j/Vwywnw4mfPT1ELi6imIMb5Jk0/dY1Pfa2BHq0Gs= X-Received: by 2002:a19:7:: with SMTP id 7-v6mr4409479lfa.62.1528471009190; Fri, 08 Jun 2018 08:16:49 -0700 (PDT) MIME-Version: 1.0 From: Denis Nikiforov Date: Fri, 8 Jun 2018 20:16:38 +0500 Message-ID: Subject: [Bug] __wait_status_to_int() is expected to be a macro To: cygwin AT cygwin DOT com Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes Hi I'm trying to compile a very simple program: #include int main() { } And I get the following error: In file included from /usr/include/boost/process/detail/child_decl.hpp:31:0, from /usr/include/boost/process/child.hpp:21, from /usr/include/boost/process/async_system.hpp:22, from /usr/include/boost/process.hpp:24, from bp.cpp:2: /usr/include/boost/process/detail/posix/is_running.hpp:18:1: error: non-constant condition for static assertion static_assert(!WIFEXITED(still_active), "Internal Error"); ^~~~~~~~~~~~~ In file included from /usr/include/cygwin/stdlib.h:13:0, from /usr/include/stdlib.h:26, from /usr/lib/gcc/x86_64-pc-cygwin/7.3.0/include/c++/cstdlib:75, from /usr/lib/gcc/x86_64-pc-cygwin/7.3.0/include/c++/ext/string_conversions.h:41, from /usr/lib/gcc/x86_64-pc-cygwin/7.3.0/include/c++/bits/basic_string.h:6349, from /usr/lib/gcc/x86_64-pc-cygwin/7.3.0/include/c++/string:52, from /usr/lib/gcc/x86_64-pc-cygwin/7.3.0/include/c++/stdexcept:39, from /usr/lib/gcc/x86_64-pc-cygwin/7.3.0/include/c++/system_error:41, from /usr/include/boost/process/detail/config.hpp:21, from /usr/include/boost/process/detail/basic_cmd.hpp:10, from /usr/include/boost/process/args.hpp:33, from /usr/include/boost/process.hpp:22, from bp.cpp:2: /usr/include/boost/process/detail/posix/is_running.hpp:18:16: error: call to non-constexpr function 'int __wait_status_to_int(int)' static_assert(!WIFEXITED(still_active), "Internal Error"); ^ As people suggested: https://stackoverflow.com/questions/50760411/boostprocess-doesnt-work-in-cygwin it's a bug in /usr/include/sys/wait.h __wait_status_to_int must be a macros but it's redefined as a function. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple