From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: George Plymale II Newsgroups: gmane.emacs.bugs Subject: bug#28793: 26.0.90; Compile error with Emacs 26 on macOS 10.13 Date: Thu, 12 Oct 2017 02:19:19 -0400 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1507789228 15924 195.159.176.226 (12 Oct 2017 06:20:28 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 12 Oct 2017 06:20:28 +0000 (UTC) To: 28793@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 12 08:20:22 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e2Wqq-0001yr-5p for geb-bug-gnu-emacs@m.gmane.org; Thu, 12 Oct 2017 08:20:12 +0200 Original-Received: from localhost ([::1]:43952 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e2Wqv-0004JH-RM for geb-bug-gnu-emacs@m.gmane.org; Thu, 12 Oct 2017 02:20:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59348) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e2Wqm-0004Gy-Lq for bug-gnu-emacs@gnu.org; Thu, 12 Oct 2017 02:20:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e2Wqg-0000Ol-Tb for bug-gnu-emacs@gnu.org; Thu, 12 Oct 2017 02:20:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54327) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e2Wqg-0000Od-Qc for bug-gnu-emacs@gnu.org; Thu, 12 Oct 2017 02:20:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e2Wqg-0002jr-GT for bug-gnu-emacs@gnu.org; Thu, 12 Oct 2017 02:20:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: George Plymale II Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 12 Oct 2017 06:20:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 28793 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.150778919810506 (code B ref -1); Thu, 12 Oct 2017 06:20:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 12 Oct 2017 06:19:58 +0000 Original-Received: from localhost ([127.0.0.1]:34775 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e2Wqb-0002jN-Iy for submit@debbugs.gnu.org; Thu, 12 Oct 2017 02:19:57 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:39933) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e2WqX-0002j6-LY for submit@debbugs.gnu.org; Thu, 12 Oct 2017 02:19:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e2WqQ-0000DS-Qh for submit@debbugs.gnu.org; Thu, 12 Oct 2017 02:19:48 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:52817) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e2WqQ-0000DH-Ms for submit@debbugs.gnu.org; Thu, 12 Oct 2017 02:19:46 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59095) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e2WqO-0004Dr-TS for bug-gnu-emacs@gnu.org; Thu, 12 Oct 2017 02:19:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e2WqL-000094-MS for bug-gnu-emacs@gnu.org; Thu, 12 Oct 2017 02:19:44 -0400 Original-Received: from mail-qk0-x22d.google.com ([2607:f8b0:400d:c09::22d]:51342) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e2WqL-00008J-HY for bug-gnu-emacs@gnu.org; Thu, 12 Oct 2017 02:19:41 -0400 Original-Received: by mail-qk0-x22d.google.com with SMTP id 17so249461qkq.8 for ; Wed, 11 Oct 2017 23:19:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=southernohio.net; s=google; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=UbR3dqRa8zqDdoWU+RThBwmqFH1TCz+I0sr4P2Orc0U=; b=SN7NtNWYPmsdP7U+8tD9OWpVQOv5IB//VC8ixUqf0J37a63Z2Ec3oGD3HcFPaMekf7 PeEKkjzSg4cZgO9OwiwWNGnEtbwW5A3oL5bmeyn0jghRbQ3GwIMuToQOZ9pNLnqesopF js+jjai5bzvCaQUOzWtiOgHa1R3+GjDn0sJoY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=UbR3dqRa8zqDdoWU+RThBwmqFH1TCz+I0sr4P2Orc0U=; b=DuINZIXI8q0VLA56+iONqSgSJe72UkwgGnNDvSaLAA+LkAv171EyLwUJoTlAHRn8IF m23eI+9Xbt3NupRBE7jpnxYVewm4THazX6op2tEk1CQEfn89Sy1lolCUVAXTwI3DY66J t9YXAXi/ExV5XmoEc5gRe0BkbblCCq0EaH+4sKV/oPaxKaTRF/2CW4ARwow3tlkuGvGj D3o2S/MEx3o/jMmhAs7fOyCbdoes8E8sQT9FuUINCRqarM7pWmAZBCNuWqysWAwAuuzL MAGRdF1SAbdE2RjRW6hn6L4BI2GoRsX8vWMo4zzT8gPob83Za3TRS2USpqplO9Q4TwxC w4Gg== X-Gm-Message-State: AMCzsaUCCsJ0TWh70459yew4+YukhWOXIqyfjPCFQ6YzO5ruojLlcauz Us774CjN6hTT6Qou5mX+BBOzXZbRPQ== X-Google-Smtp-Source: AOwi7QDhF80WSg0sH/D5YTcuLY9ONmwsH97QzKgJtrdjGqTMUNBN023+XGzrp5XjdG9Kf04QpaGhvw== X-Received: by 10.55.6.22 with SMTP id 22mr1879973qkg.340.1507789179430; Wed, 11 Oct 2017 23:19:39 -0700 (PDT) Original-Received: from lehi.dev.orbitalimpact.com (ip-16-41-54-196.montreal.ca.northamericancoax.com. [196.54.41.16]) by smtp.gmail.com with ESMTPSA id o95sm9217254qte.20.2017.10.11.23.19.38 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 11 Oct 2017 23:19:38 -0700 (PDT) X-Google-Original-From: George Plymale II X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:138247 Archived-At: So I tried compiling Emacs 26 on macOS 10.13. I configured with `./configure' and everything went fine. However, when I ran `make', the following error appeared: /Applications/Xcode.app/Contents/Developer/usr/bin/make -C lib all CC acl_entries.o CC explicit_bzero.o CC fpending.o CC fstatat.o CC getopt.o CC getopt1.o CC lstat.o CC memrchr.o CC mktime.o CC open.o open.c:75:27: error: unknown type name 'PROMOTED_MODE_T' mode =3D va_arg (arg, PROMOTED_MODE_T); ^ 1 error generated. make[1]: *** [open.o] Error 1 make: *** [lib] Error 2 Upon inspecting this error, I see the following comment above the offending code: /* We have to use PROMOTED_MODE_T instead of mode_t, otherwise GCC 4 creates crashing code when 'mode_t' is smaller than 'int'. */ I also see the following output regarding `open.c' when I compile with `make CFLAGS=3D"-v"': ... CC open.o Apple LLVM version 9.0.0 (clang-900.0.37) Target: x86_64-apple-darwin17.0.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDe= fault.xctoolchain/usr/bin "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctool= chain/usr/bin/clang" -cc1 -triple x86_64-apple-macosx10.13.0 -Wdeprecated-o= bjc-isa-usage -Werror=3Ddeprecated-objc-isa-usage -emit-obj -mrelax-all -di= sable-free -disable-llvm-verifier -discard-value-names -main-file-name open= .c -mrelocation-model pic -pic-level 2 -mthread-model posix -mdisable-fp-el= im -fno-strict-return -masm-verbose -munwind-tables -target-cpu penryn -tar= get-linker-version 302.3 -v -dwarf-column-info -debugger-tuning=3Dlldb -cov= erage-notes-file /Users/my_username/path/to/emacs/lib/open.gcno -resource-d= ir /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoo= lchain/usr/lib/clang/9.0.0 -dependency-file deps/open.d -MT open.o -MP -I .= -I ../src -I . -I ./../src -Wno-switch -Wno-pointer-sign -Wno-string-plus-= int -Wno-unknown-attributes -Wno-initializer-overrides -Wno-tautological-co= mpare -Wno-tautological-constant-out-of-range-compare -fdebug-compilation-d= ir /Users/my_username/path/to/emacs/lib -ferror-limit 19 -fmessage-length 1= 19 -stack-protector 1 -fblocks -fobjc-runtime=3Dmacosx-10.13.0 -fencode-ext= ended-block-signature -fmax-type-align=3D16 -fdiagnostics-show-option -fcol= or-diagnostics -o open.o -x c open.c clang -cc1 version 9.0.0 (clang-900.0.37) default target x86_64-apple-darwi= n17.0.0 ignoring duplicate directory "." ignoring duplicate directory "../src" #include "..." search starts here: #include <...> search starts here: . ../src /usr/local/include /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolc= hain/usr/lib/clang/9.0.0/include /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolc= hain/usr/include /usr/include /System/Library/Frameworks (framework directory) /Library/Frameworks (framework directory) End of search list. open.c:75:27: error: unknown type name 'PROMOTED_MODE_T' mode =3D va_arg (arg, PROMOTED_MODE_T); ^ 1 error generated. make[1]: *** [open.o] Error 1 make: *** [lib] Error 2 Anyone know how to fix this error? I'd hate to run into something like this in a non-release-candidate release...