all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alan Third <athird@googlemail.com>
To: George Plymale II <georgie@southernohio.net>
Cc: 28739@debbugs.gnu.org
Subject: [bug#28739] bug#28793: 26.0.90; Compile error with Emacs 26 on macOS 10.13
Date: Thu, 12 Oct 2017 10:32:12 +0100	[thread overview]
Message-ID: <CABGBtw=Q1U02axkYX6tkNbEOgns7ukKH8Fw9rBmwO9kmSVnX4Q@mail.gmail.com> (raw)
In-Reply-To: <CABGBtwm9vThJwZxdiAHzZaXjeZdmHqhk24_dAdMywHiydRVcDA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 3590 bytes --]

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" <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 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...

[-- Attachment #2: Type: text/html, Size: 4769 bytes --]

       reply	other threads:[~2017-10-12  9:33 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <m0bmlckhw8.fsf@lehi.dev.orbitalimpact.com>
     [not found] ` <CABGBtwkWwJnYL7j0LdZTJhHWmxudvdxo0VEKNUf3z-Q9Lx7T=A@mail.gmail.com>
     [not found]   ` <CABGBtwm9vThJwZxdiAHzZaXjeZdmHqhk24_dAdMywHiydRVcDA@mail.gmail.com>
2017-10-12  9:32     ` Alan Third [this message]
2017-10-12  9:53       ` [bug#28739] bug#28793: 26.0.90; Compile error with Emacs 26 on macOS 10.13 George Plymale II
2017-10-12 15:28       ` Ludovic Courtès
2017-10-13  1:02         ` George Plymale II
2017-10-13  8:11           ` Ludovic Courtès
2017-10-08  4:35 [bug#28739] [PATCH 0/5] Update python{,2}-a* Cyril Roelandt
2017-10-08  4:35 ` [bug#28738] [PATCH 1/5] gnu: python-apispec: Update to 0.25.3 Cyril Roelandt
2017-10-08  4:35 ` [bug#28737] [PATCH 2/5] gnu: python-arrow: Update to 0.10.0 Cyril Roelandt
2017-10-18 20:57   ` bug#28737: " Ricardo Wurmus
2017-10-08  4:35 ` [bug#28740] [PATCH 3/5] gnu: python-alembic: Update to 0.9.5 Cyril Roelandt
2017-10-08  4:35 ` [bug#28741] [PATCH 4/5] gnu: python-aniso8601: Update to 1.3.0 Cyril Roelandt
2017-10-08  4:35 ` [bug#28742] [PATCH 5/5] gnu: Add python2-aniso8601 Cyril Roelandt
2017-10-09 19:22 ` [bug#28739] [PATCH 0/5] Update python{,2}-a* Leo Famulari
2017-10-09 19:49   ` Cyril Roelandt
2017-10-09 19:53     ` Leo Famulari
2017-10-11 19:45       ` Ludovic Courtès
2017-10-13  7:39 ` Christopher Baines

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CABGBtw=Q1U02axkYX6tkNbEOgns7ukKH8Fw9rBmwO9kmSVnX4Q@mail.gmail.com' \
    --to=athird@googlemail.com \
    --cc=28739@debbugs.gnu.org \
    --cc=georgie@southernohio.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.