From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54866) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e2Zra-0004km-2K for guix-patches@gnu.org; Thu, 12 Oct 2017 05:33:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e2ZrS-0000Oa-Rg for guix-patches@gnu.org; Thu, 12 Oct 2017 05:33:09 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:54424) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e2ZrS-0000OS-K7 for guix-patches@gnu.org; Thu, 12 Oct 2017 05:33:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e2ZrS-0007rG-Dp for guix-patches@gnu.org; Thu, 12 Oct 2017 05:33:02 -0400 Subject: [bug#28739] bug#28793: 26.0.90; Compile error with Emacs 26 on macOS 10.13 Resent-Message-ID: MIME-Version: 1.0 In-Reply-To: References: From: Alan Third Date: Thu, 12 Oct 2017 10:32:12 +0100 Message-ID: Content-Type: multipart/alternative; boundary="94eb2c0761c81006cf055b5637ec" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: George Plymale II Cc: 28739@debbugs.gnu.org --94eb2c0761c81006cf055b5637ec Content-Type: text/plain; charset="UTF-8" My first thought is that you need to install the xcode command line tools. You do something like: xcode-select --install (I'm using my phone, so I hope this is formatted reasonably.) On 12 Oct 2017 7:20 a.m., "George Plymale II" wrote: 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 = 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="-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/ XcodeDefault.xctoolchain/usr/bin "/Applications/Xcode.app/Contents/Developer/Toolchains/ XcodeDefault.xctoolchain/usr/bin/clang" -cc1 -triple x86_64-apple-macosx10.13.0 -Wdeprecated-objc-isa-usage -Werror=deprecated-objc-isa-usage -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -discard-value-names -main-file-name open.c -mrelocation-model pic -pic-level 2 -mthread-model posix -mdisable-fp-elim -fno-strict-return -masm-verbose -munwind-tables -target-cpu penryn -target-linker-version 302.3 -v -dwarf-column-info -debugger-tuning=lldb -coverage-notes-file /Users/my_username/path/to/emacs/lib/open.gcno -resource-dir /Applications/Xcode.app/Contents/Developer/Toolchains/ XcodeDefault.xctoolchain/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-compare -Wno-tautological-constant-out-of-range-compare -fdebug-compilation-dir /Users/my_username/path/to/emacs/lib -ferror-limit 19 -fmessage-length 119 -stack-protector 1 -fblocks -fobjc-runtime=macosx-10.13.0 -fencode-extended-block-signature -fmax-type-align=16 -fdiagnostics-show-option -fcolor-diagnostics -o open.o -x c open.c clang -cc1 version 9.0.0 (clang-900.0.37) default target x86_64-apple-darwin17.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.xctoolchain/usr/lib/clang/9.0.0/include /Applications/Xcode.app/Contents/Developer/Toolchains/ XcodeDefault.xctoolchain/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 = 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... --94eb2c0761c81006cf055b5637ec Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
My first thought is that you need to install the xco= de command line tools. You do something like:

=C2=A0 =C2=A0 xcode-select= --install

(I'm= using my phone, so I hope this is formatted reasonably.)

On 12 Oct 2017 7:20 a.m., &= quot;George Plymale II" <georgie@southernohio.net> wrote:
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 al= l
=C2=A0 CC=C2=A0 =C2=A0 =C2=A0 =C2=A0acl_entries.o
=C2=A0 CC=C2=A0 =C2=A0 =C2=A0 =C2=A0explicit_bzero.o
=C2=A0 CC=C2=A0 =C2=A0 =C2=A0 =C2=A0fpending.o
=C2=A0 CC=C2=A0 =C2=A0 =C2=A0 =C2=A0fstatat.o
=C2=A0 CC=C2=A0 =C2=A0 =C2=A0 =C2=A0getopt.o
=C2=A0 CC=C2=A0 =C2=A0 =C2=A0 =C2=A0getopt1.o
=C2=A0 CC=C2=A0 =C2=A0 =C2=A0 =C2=A0lstat.o
=C2=A0 CC=C2=A0 =C2=A0 =C2=A0 =C2=A0memrchr.o
=C2=A0 CC=C2=A0 =C2=A0 =C2=A0 =C2=A0mktime.o
=C2=A0 CC=C2=A0 =C2=A0 =C2=A0 =C2=A0open.o
open.c:75:27: error: unknown type name 'PROMOTED_MODE_T'
=C2=A0 =C2=A0 =C2=A0 mode =3D va_arg (arg, PROMOTED_MODE_T);
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 ^
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
=C2=A0 =C2=A0creates crashing code when 'mode_t' is smaller than &#= 39;int'.=C2=A0 */

I also see the following output regarding `open.c' when I compile with<= br> `make CFLAGS=3D"-v"':



...
=C2=A0 CC=C2=A0 =C2=A0 =C2=A0 =C2=A0open.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/XcodeDefault.xctoolchain/usr/bin
=C2=A0"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang" -cc1 -triple x86_64-appl= e-macosx10.13.0 -Wdeprecated-objc-isa-usage -Werror=3Ddeprecated-objc-isa-<= wbr>usage -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -disca= rd-value-names -main-file-name open.c -mrelocation-model pic -pic-level 2 -= mthread-model posix -mdisable-fp-elim -fno-strict-return -masm-verbose -mun= wind-tables -target-cpu penryn -target-linker-version 302.3 -v -dwarf-colum= n-info -debugger-tuning=3Dlldb -coverage-notes-file /Users/my_username/path= /to/emacs/lib/open.gcno -resource-dir /Applications/Xcode.app/Con= tents/Developer/Toolchains/XcodeDefault.xctoolchain/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-att= ributes -Wno-initializer-overrides -Wno-tautological-compare -Wno-tautologi= cal-constant-out-of-range-compare -fdebug-compilation-dir /Users/my_us= ername/path/to/emacs/lib -ferror-limit 19 -fmessage-length 119 -stack-= protector 1 -fblocks -fobjc-runtime=3Dmacosx-10.13.0 -fencode-extended-bloc= k-signature -fmax-type-align=3D16 -fdiagnostics-show-option -fcolor-di= agnostics -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:
=C2=A0.
=C2=A0../src
=C2=A0/usr/local/include
=C2=A0/Applications/Xcode.app/Contents/Developer/Toolchains/Xcode= Default.xctoolchain/usr/lib/clang/9.0.0/include
=C2=A0/Applications/Xcode.app/Contents/Developer/Toolchains/Xcode= Default.xctoolchain/usr/include
=C2=A0/usr/include
=C2=A0/System/Library/Frameworks (framework directory)
=C2=A0/Library/Frameworks (framework directory)
End of search list.
open.c:75:27: error: unknown type name 'PROMOTED_MODE_T'
=C2=A0 =C2=A0 =C2=A0 mode =3D va_arg (arg, PROMOTED_MODE_T);
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 ^
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<= br> this in a non-release-candidate release...




--94eb2c0761c81006cf055b5637ec--