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 12:02:25 -0600 Message-ID: References: <9FD9579F-AB2E-4425-999C-377ED34AA66D@gmail.com> <8335nuzmtu.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_4FDF3E73-815C-4696-BD24-C1F7DA47E8EC" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27442"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 51925@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 17 19:03:10 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 1mnPH4-0006s0-1G for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 17 Nov 2021 19:03:10 +0100 Original-Received: from localhost ([::1]:45938 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mnPH2-0006gS-Pn for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 17 Nov 2021 13:03:08 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:54324) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mnPGw-0006g4-4O for bug-gnu-emacs@gnu.org; Wed, 17 Nov 2021 13:03:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50554) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mnPGv-0004H8-Rj for bug-gnu-emacs@gnu.org; Wed, 17 Nov 2021 13:03:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mnPGv-0000Xn-OO for bug-gnu-emacs@gnu.org; Wed, 17 Nov 2021 13:03: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 18:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51925 X-GNU-PR-Package: emacs Original-Received: via spool by 51925-submit@debbugs.gnu.org id=B51925.16371721582047 (code B ref 51925); Wed, 17 Nov 2021 18:03:01 +0000 Original-Received: (at 51925) by debbugs.gnu.org; 17 Nov 2021 18:02:38 +0000 Original-Received: from localhost ([127.0.0.1]:33867 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mnPGY-0000Wv-3M for submit@debbugs.gnu.org; Wed, 17 Nov 2021 13:02:38 -0500 Original-Received: from mail-il1-f179.google.com ([209.85.166.179]:36521) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mnPGS-0000WT-DH for 51925@debbugs.gnu.org; Wed, 17 Nov 2021 13:02:36 -0500 Original-Received: by mail-il1-f179.google.com with SMTP id l8so3698303ilv.3 for <51925@debbugs.gnu.org>; Wed, 17 Nov 2021 10:02:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=pUTbAatuF1NXFTFAIsVUv85D8MDCn+cqxGiM4xv1DOA=; b=aDgk54jQnshbC5dxbQBTtJMmQy3BPbABltFY/v6iuFkaBZESb8xcJfArOY2xn/ZRDQ KjYPebntp/4tP+GgoEnwMU504vIDiH3ojpHKenhi0a9Z2+uDPTmXluVSyYnsYNWxVakE AX6i8wFhEZW3Lv3IXrk9qCS5HtFcNroh9LeVMFd/8WnAxCpOdIbURR5ykc25Q9GLSwJy SJdY+FFj9df5zBQljgDiC/9N+xBNdWkYDaOy7v92CYtELMfEjfgbNRuU1U0E3G3aFnDI 0gQwoYx2J0NDKzusoWKbEjA5zdPOf1LIuW97RE8Xs1HXKcjl3ReBPwySK7RGLpT1lSd+ LVRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=pUTbAatuF1NXFTFAIsVUv85D8MDCn+cqxGiM4xv1DOA=; b=5Vn9HEKnXZ2e0sMZJM1l+csfhCW904vfGF7PL/E4nwEl8w+6Mgnd1L/NhBt1DxASx9 L0Dx10V+I/wPuM4W5QKQf3y6sxFSzJDSniTkczV6zlnh3V782VvIVbwId9syX/jyZUT1 +M42Y6xovKOXtXgMDPDLqbXaMlo1sM4+9aSKHD+y7cIVrliVwNsGaQK//LzN8ib9MamV ypgdjuVIn6NFaI5FWpLGNJeWEjgJKkf0kzNeIZDt3gqTRdaG1s7/NTFGGCS1cuLD/bJl 0tLwPNDxI6vGj2abozVCOc7wWOwh6prMwGvapW222mMM0kscSKuBXTv5UZpwd4hvoBsQ LPTA== X-Gm-Message-State: AOAM533EASgbN7qZiqHe6DLKe3OqfcW5YyQ42GnUQZsZNB1fucXeI60K 9qwTI1VNXfy9CE53i9cU3pA= X-Google-Smtp-Source: ABdhPJwJOn+wAiOrcjKjogyUuSlcxTvO3toxAvrVbhJPgWFQ47Jseks76Ko9u36TTZL6NdyFiGXx9A== X-Received: by 2002:a92:ca47:: with SMTP id q7mr12006320ilo.63.1637172146587; Wed, 17 Nov 2021 10:02:26 -0800 (PST) Original-Received: from smtpclient.apple (node-17-233.flex.volo.net. [76.191.17.233]) by smtp.gmail.com with ESMTPSA id t6sm419057iov.39.2021.11.17.10.02.25 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 Nov 2021 10:02:26 -0800 (PST) In-Reply-To: <8335nuzmtu.fsf@gnu.org> X-Mailer: Apple Mail (2.3654.120.0.1.13) 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:220247 Archived-At: --Apple-Mail=_4FDF3E73-815C-4696-BD24-C1F7DA47E8EC Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Checking my config.log gives: configure:20626: checking for posix_spawn configure:20626: clang -o conftest -O3 -march=3Dnative -mtune=3Dnative = -flto=3Dthin -flto-jobs=3D5 -std=3Dgnu\ 17 -Wno-unused-command-line-argument -Wno-unknown-pragmas conftest.c = -lpng -ljpeg >&5 configure:20626: $? =3D 0 configure:20626: result: yes configure:20632: checking for posix_spawn_file_actions_addchdir configure:20632: clang -o conftest -O3 -march=3Dnative -mtune=3Dnative = -flto=3Dthin -flto-jobs=3D5 -std=3Dgnu\ 17 -Wno-unused-command-line-argument -Wno-unknown-pragmas conftest.c = -lpng -ljpeg >&5 undef: _posix_spawn_file_actions_addchdir Undefined symbols for architecture x86_64: "_posix_spawn_file_actions_addchdir", referenced from: _main in 0.x86_64.thinlto.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see = invocation) And the final set of defines for configure includes the following: ... #define HAVE_POSIX_SPAWN 1 #define HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR_NP 1 #define HAVE_POSIX_SPAWNATTR_SETFLAGS 1 #define HAVE_DECL_POSIX_SPAWN_SETSID 1 ... configure: exit 0 Best regards, Jacob Faibussowitsch (Jacob Fai - booss - oh - vitch) > On Nov 17, 2021, at 11:58, Eli Zaretskii wrote: >=20 >> From: Jacob Faibussowitsch >> Date: Wed, 17 Nov 2021 11:50:46 -0600 >>=20 >> 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? >=20 > That change is already on master. If your build of a recent master > branch doesn't use the posix_spawn code, the first place to look is in > config.log, where you should try to find the reason(s) why the > configure script decided your system doesn't have posix_spawn. >=20 > Thanks. --Apple-Mail=_4FDF3E73-815C-4696-BD24-C1F7DA47E8EC Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii
Checking my config.log gives:

configure:20626: checking for = posix_spawn
configure:20626: clang -o conftest -O3 = -march=3Dnative -mtune=3Dnative -flto=3Dthin -flto-jobs=3D5 -std=3Dgnu\17 -Wno-unused-command-line-argument -Wno-unknown-pragmas =     conftest.c  -lpng -ljpeg >&5
configure:20626: $? =3D 0
configure:20626: = result: yes
configure:20632: checking for = posix_spawn_file_actions_addchdir
configure:20632: clang = -o conftest -O3 -march=3Dnative -mtune=3Dnative -flto=3Dthin = -flto-jobs=3D5 -std=3Dgnu\
17 = -Wno-unused-command-line-argument -Wno-unknown-pragmas     = conftest.c  -lpng -ljpeg >&5
undef: = _posix_spawn_file_actions_addchdir
Undefined symbols for = architecture x86_64:
  = "_posix_spawn_file_actions_addchdir", referenced from:
      _main in 0.x86_64.thinlto.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v = to see invocation)

And the final set of defines for configure includes the = following:

...
#define HAVE_POSIX_SPAWN 1
#define HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR_NP 1
#define HAVE_POSIX_SPAWNATTR_SETFLAGS 1
#define = HAVE_DECL_POSIX_SPAWN_SETSID 1
...
configure: exit 0

Best regards,

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

On Nov 17, 2021, at 11:58, Eli Zaretskii <eliz@gnu.org> = wrote:

From: Jacob = Faibussowitsch <jacob.fai@gmail.com>
Date: Wed, 17 Nov = 2021 11:50:46 -0600

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?

That change is = already on master.  If your build of a recent master
branch doesn't use the posix_spawn code, the first place to = look is in
config.log, where you should try to find the = reason(s) why the
configure script decided your system = doesn't have posix_spawn.

Thanks.

= --Apple-Mail=_4FDF3E73-815C-4696-BD24-C1F7DA47E8EC--