From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jacob Faibussowitsch Newsgroups: gmane.emacs.bugs Subject: bug#51925: [Trunk][macOS] "vfork" is deprecated Date: Wed, 17 Nov 2021 11:50:46 -0600 Message-ID: <9FD9579F-AB2E-4425-999C-377ED34AA66D@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_ECA43775-BC17-4E4A-9F5F-2BFED92E9213" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4918"; mail-complaints-to="usenet@ciao.gmane.io" To: 51925@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 17 18:51:28 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mnP5k-00016Z-IJ for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 17 Nov 2021 18:51:28 +0100 Original-Received: from localhost ([::1]:58556 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mnP5i-000446-ER for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 17 Nov 2021 12:51:26 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:51638) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mnP5K-00041D-Aw for bug-gnu-emacs@gnu.org; Wed, 17 Nov 2021 12:51:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50544) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mnP5K-0002k7-2P for bug-gnu-emacs@gnu.org; Wed, 17 Nov 2021 12:51:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mnP5J-00007s-Tf for bug-gnu-emacs@gnu.org; Wed, 17 Nov 2021 12:51:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Jacob Faibussowitsch Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 17 Nov 2021 17:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 51925 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.1637171456468 (code B ref -1); Wed, 17 Nov 2021 17:51:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 17 Nov 2021 17:50:56 +0000 Original-Received: from localhost ([127.0.0.1]:33857 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mnP5D-00007T-JO for submit@debbugs.gnu.org; Wed, 17 Nov 2021 12:50:55 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:60062) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mnP5A-00007I-Ef for submit@debbugs.gnu.org; Wed, 17 Nov 2021 12:50:54 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:51636) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mnP59-0003sB-R8 for bug-gnu-emacs@gnu.org; Wed, 17 Nov 2021 12:50:52 -0500 Original-Received: from [2607:f8b0:4864:20::d29] (port=36476 helo=mail-io1-xd29.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mnP57-0002io-OQ for bug-gnu-emacs@gnu.org; Wed, 17 Nov 2021 12:50:51 -0500 Original-Received: by mail-io1-xd29.google.com with SMTP id e144so4334094iof.3 for ; Wed, 17 Nov 2021 09:50:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:mime-version:subject:message-id:date:to; bh=vk9h8ovb71jDWxFFfohqmBZjrbcJW1WssrgmHaFet/s=; b=Bw5UXmrVoNDCTxaGG3oyL+B+do3Ks0zL6CxV5iiNeABIJaX0KsWDR0mFXdcAoXr30H TlhuvoaWLWGKzHOcPIChTiCmAhBlXSrsHR5moI/dA1ROI4f0H4Dm2yH+i2HKxkxcqiF0 KRcedKrFIXw8+PuaAm6yxEapLnr68YWqPVlGrREcG5q4J2XHKmkCOH/ZXlyS4gBSOkhF s0Yqalh7EB+CikOox8CanL01NtrWiA0uos4pKmtheIPzrHeL99fuSSN6RUvcyIkjMePu GblRCDMDGFpknJ2E+KJI9X7SjOtzO+R8fHdNDbCxRSMyXSYm01pL5nQze4eNIpaoJY4+ CcgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:mime-version:subject:message-id:date:to; bh=vk9h8ovb71jDWxFFfohqmBZjrbcJW1WssrgmHaFet/s=; b=e/fPLoZWGBg6+7XEuUJrHNptuQw9nekEFSeF/oXIeOY0XhgLERI156OHi8QmlfJDwJ 6JWfknMqLkF32yQb7yr0ff9Fo1amImQ+hbDfJv8eS7YKYk9yDSxjK1hUDv2zmG19Sxxu bTpPxawLkKAiyNkXzoeT+IRaF8J0kI8hh29/ZLslPXT2bLhDeZz3NZELZcyjcSTdM/fR IcGxVpX2XcLSyQMwC7CEUJIfyZ/tBWdhZchX0Ha6tbG2N+s04P/+MwZHTmtTER5BaoQm xBGz7BeWS9EFS9R/TCZvaswK1rTS50+jRlHaYHQjdZ8uEz6rvTxLTVP2OcchpSTLgxr2 AGvQ== X-Gm-Message-State: AOAM530oN49XKmBQTh8JboQeECbws5TQqRpg0pKsuCJRWIb6La1R2xlz MFOKykMf7xAS0BdiDtLo1KWdAgJ3z+BJ4A== X-Google-Smtp-Source: ABdhPJxugZfmQaiZiIoIDNyeyzIkCtul3LH7o2kCa5CTGX98ei9QDYErqYmAFa+hvxlsDzmfaMyf0g== X-Received: by 2002:a6b:4013:: with SMTP id k19mr12273981ioa.18.1637171448286; Wed, 17 Nov 2021 09:50:48 -0800 (PST) Original-Received: from smtpclient.apple (node-17-233.flex.volo.net. [76.191.17.233]) by smtp.gmail.com with ESMTPSA id y8sm234035iox.32.2021.11.17.09.50.47 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 Nov 2021 09:50:48 -0800 (PST) X-Mailer: Apple Mail (2.3654.120.0.1.13) X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::d29 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::d29; envelope-from=jacob.fai@gmail.com; helo=mail-io1-xd29.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:220245 Archived-At: --Apple-Mail=_ECA43775-BC17-4E4A-9F5F-2BFED92E9213 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hello Emacs Devs, I have recently been getting the following warnings building emacs on = macOS Big Sur v11.6.1 with clang: sysdep.c:667:11: warning: 'vfork' is deprecated: Use posix_spawn or fork = [-Wdeprecated-declarations] pid =3D vfork (); ^ = /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Devel= oper/SDKs/MacOSX.sdk/usr/include/unistd.h:604:1: note: 'vfork' has been = explicitly marked deprecated here __deprecated_msg("Use posix_spawn or fork") ^ = /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Devel= oper/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:208:48: note: expanded from = macro '__deprecated_msg' #define __deprecated_msg(_msg) = __attribute__((__deprecated__(_msg))) ^ 1 warning generated. callproc.c:1478:11: warning: 'vfork' is deprecated: Use posix_spawn or = fork [-Wdeprecated-declarations] pid =3D vfork (); ^ = /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Devel= oper/SDKs/MacOSX.sdk/usr/include/unistd.h:604:1: note: 'vfork' has been = explicitly marked deprecated here __deprecated_msg("Use posix_spawn or fork") ^ = /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Devel= oper/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:208:48: note: expanded from = macro '__deprecated_msg' #define __deprecated_msg(_msg) = __attribute__((__deprecated__(_msg))) ^ 1 warning generated. = =E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2= =80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80= =94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94= =E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2= =80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80= =94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94 This is by no means breaking or disrupting anything on my end (at least = that I can tell), but I did notice in some commit messages a few weeks = that someone was attempting to replace vfork with posix_spawn = specifically on macOS, so maybe my system is some unhandled corner-case? commit cc4edea872ca653f3e0631ce50e47b5260c6773a Author: Philipp Stephani Date: Wed Dec 30 14:42:01 2020 +0100 Use posix_spawn if possible. posix_spawn is less error-prone than vfork + execve, and can make better use of system-specific enhancements like 'clone' on Linux. = Use it if we don't need to configure a pseudoterminal. Backported from commit a60053f8368e058229721f1bf1567c2b1676b239. Unlike that commit, only define USABLE_POSIX_SPAWN on macOS, because there posix_spawn is much faster than vfork. Best regards, Jacob Faibussowitsch (Jacob Fai - booss - oh - vitch) --Apple-Mail=_ECA43775-BC17-4E4A-9F5F-2BFED92E9213 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Hello= Emacs Devs,

I have = recently been getting the following warnings building emacs on macOS Big = Sur v11.6.1 with clang:

sysdep.c:667:11: warning: 'vfork' is deprecated: Use = posix_spawn or fork [-Wdeprecated-declarations]
  =   pid =3D vfork ();
        =   ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.pla= tform/Developer/SDKs/MacOSX.sdk/usr/include/unistd.h:604:1: = note: 'vfork' has been explicitly marked deprecated here
__deprecated_msg("Use posix_spawn or fork")
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.pla= tform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:208:48: note:= expanded from macro '__deprecated_msg'
    =     #define __deprecated_msg(_msg) = __attribute__((__deprecated__(_msg)))
      =                     =                     =         ^
1 warning = generated.

callproc.c:1478:11: warning: 'vfork' is deprecated: Use = posix_spawn or fork [-Wdeprecated-declarations]
  =   pid =3D vfork ();
        =   ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.pla= tform/Developer/SDKs/MacOSX.sdk/usr/include/unistd.h:604:1: = note: 'vfork' has been explicitly marked deprecated here
__deprecated_msg("Use posix_spawn or fork")
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.pla= tform/Developer/SDKs/MacOSX.sdk/usr/include/sys/cdefs.h:208:48: note:= expanded from macro '__deprecated_msg'
    =     #define __deprecated_msg(_msg) = __attribute__((__deprecated__(_msg)))
      =                     =                     =         ^
1 warning = generated.

=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94= =E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2= =80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80= =94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94= =E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2= =80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94

This is by no = means breaking or disrupting anything on my end (at least that I can = tell), but I did notice in some commit messages a few weeks that someone = was attempting to replace vfork with posix_spawn specifically on macOS, = so maybe my system is some unhandled corner-case?
commit = cc4edea872ca653f3e0631ce50e47b5260c6773a
Author: = Philipp Stephani <phst@google.com>
Date:   Wed = Dec 30 14:42:01 2020 +0100

    Use posix_spawn if possible.

    = posix_spawn is less error-prone than vfork + execve, and can = make
    better use of system-specific = enhancements like 'clone' on Linux.  Use
  =   it if we don't need to configure a pseudoterminal.

    Backported = from commit a60053f8368e058229721f1bf1567c2b1676b239.
    Unlike that commit, only define = USABLE_POSIX_SPAWN on macOS, because
    = there posix_spawn is much faster than vfork.

Best regards,

Jacob = Faibussowitsch
(Jacob Fai - booss - oh - vitch)

= --Apple-Mail=_ECA43775-BC17-4E4A-9F5F-2BFED92E9213--