* bug#43167: 28.0.50; Cannot build on MacOS due to -std=c99 change in configure.ac
@ 2020-09-02 5:44 Keith Irwin
2020-09-03 20:58 ` Alan Third
0 siblings, 1 reply; 5+ messages in thread
From: Keith Irwin @ 2020-09-02 5:44 UTC (permalink / raw)
To: 43167; +Cc: Alan Third
I’ve been unable to build Emacs from the master branch for the past several days on MacOS (Big Sur). Previously, compiling on Big Sur worked.
I get the following error:
CC fringe.o
CC image.o
CC json.o
CC nsterm.o
In file included from nsterm.m:46:
./lisp.h:1237:24: error: implicit declaration of function 'typeof' is invalid in
C99 [-Werror,-Wimplicit-function-declaration]
return USE_LSB_TAG ? make_fixnum (n) : XIL (n + (int0 << VALBITS));
^
./lisp.h:444:26: note: expanded from macro 'make_fixnum'
# define make_fixnum(n) lisp_h_make_fixnum (n)
^
./lisp.h:395:9: note: expanded from macro 'lisp_h_make_fixnum'
({ typeof (+(n)) lisp_h_make_fixnum_n = n; \
^
./lisp.h:1237:24: note: did you mean 'Ftype_of'?
./lisp.h:444:26: note: expanded from macro 'make_fixnum'
# define make_fixnum(n) lisp_h_make_fixnum (n)
^
./lisp.h:395:9: note: expanded from macro 'lisp_h_make_fixnum'
({ typeof (+(n)) lisp_h_make_fixnum_n = n; \
^
./globals.h:4765:8: note: 'Ftype_of' declared here
EXFUN (Ftype_of, 1);
^
In file included from nsterm.m:46:
./lisp.h:1237:24: error: expected ';' after expression
return USE_LSB_TAG ? make_fixnum (n) : XIL (n + (int0 << VALBITS));
I tracked the issue to this commit:
https://emba.gnu.org/emacs/emacs/-/commit/72f66f70eef18e3b25cc989d67711887304f184b
When I make this change to line ~1904:
#GNU_OBJC_CFLAGS="-std=c99”
GNU_OBJC_CFLAGS=""
I can compile emacs as per usual.
I’m running macOS 11, Beta 5, with Xcode Beta 6, though I’m not sure if that’s an issue.
$ clang --version
Apple clang version 12.0.0 (clang-1200.0.31.1)
Target: x86_64-apple-darwin20.0.0
Thread model: posix
InstalledDir: /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
$ gcc --version
Configured with: --prefix=/Applications/Xcode-beta.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/4.2.1
Apple clang version 12.0.0 (clang-1200.0.31.1)
Target: x86_64-apple-darwin20.0.0
Thread model: posix
InstalledDir: /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#43167: 28.0.50; Cannot build on MacOS due to -std=c99 change in configure.ac
2020-09-02 5:44 bug#43167: 28.0.50; Cannot build on MacOS due to -std=c99 change in configure.ac Keith Irwin
@ 2020-09-03 20:58 ` Alan Third
2020-09-03 21:04 ` Keith Irwin
2020-09-04 6:59 ` Eli Zaretskii
0 siblings, 2 replies; 5+ messages in thread
From: Alan Third @ 2020-09-03 20:58 UTC (permalink / raw)
To: Keith Irwin; +Cc: 43167
On Tue, Sep 01, 2020 at 10:44:07PM -0700, Keith Irwin wrote:
> I’ve been unable to build Emacs from the master branch for the past
> several days on MacOS (Big Sur). Previously, compiling on Big Sur
> worked.
>
> I get the following error:
>
>
> CC fringe.o
> CC image.o
> CC json.o
> CC nsterm.o
> In file included from nsterm.m:46:
> ./lisp.h:1237:24: error: implicit declaration of function 'typeof' is invalid in
> C99 [-Werror,-Wimplicit-function-declaration]
> return USE_LSB_TAG ? make_fixnum (n) : XIL (n + (int0 << VALBITS));
Ah, useful, now GCC won't build without -std=c99, but clang won't
build WITH it. 🙄
And the irony is that both versions I have direct access to don't care
either way.
Right, I'll have to add a test, I suppose.
Done, and pushed to master. I've checked it compiles here, but it was
working anyway, so please give it another go and let us know how it
goes.
Thanks!
--
Alan Third
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#43167: 28.0.50; Cannot build on MacOS due to -std=c99 change in configure.ac
2020-09-03 20:58 ` Alan Third
@ 2020-09-03 21:04 ` Keith Irwin
2020-09-04 6:59 ` Eli Zaretskii
1 sibling, 0 replies; 5+ messages in thread
From: Keith Irwin @ 2020-09-03 21:04 UTC (permalink / raw)
To: Alan Third; +Cc: 43167
[-- Attachment #1: Type: text/plain, Size: 1192 bytes --]
Works for me!
Thanks. ;)
Regards,
Keith
> On Sep 3, 2020, at 1:58 PM, Alan Third <alan@idiocy.org> wrote:
>
> On Tue, Sep 01, 2020 at 10:44:07PM -0700, Keith Irwin wrote:
>> I’ve been unable to build Emacs from the master branch for the past
>> several days on MacOS (Big Sur). Previously, compiling on Big Sur
>> worked.
>>
>> I get the following error:
>>
>>
>> CC fringe.o
>> CC image.o
>> CC json.o
>> CC nsterm.o
>> In file included from nsterm.m:46:
>> ./lisp.h:1237:24: error: implicit declaration of function 'typeof' is invalid in
>> C99 [-Werror,-Wimplicit-function-declaration]
>> return USE_LSB_TAG ? make_fixnum (n) : XIL (n + (int0 << VALBITS));
>
> Ah, useful, now GCC won't build without -std=c99, but clang won't
> build WITH it. 🙄
>
> And the irony is that both versions I have direct access to don't care
> either way.
>
> Right, I'll have to add a test, I suppose.
>
> Done, and pushed to master. I've checked it compiles here, but it was
> working anyway, so please give it another go and let us know how it
> goes.
>
> Thanks!
> --
> Alan Third
[-- Attachment #2: Type: text/html, Size: 12678 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#43167: 28.0.50; Cannot build on MacOS due to -std=c99 change in configure.ac
2020-09-03 20:58 ` Alan Third
2020-09-03 21:04 ` Keith Irwin
@ 2020-09-04 6:59 ` Eli Zaretskii
1 sibling, 0 replies; 5+ messages in thread
From: Eli Zaretskii @ 2020-09-04 6:59 UTC (permalink / raw)
To: Alan Third; +Cc: keith, 43167
> Date: Thu, 3 Sep 2020 22:58:30 +0200 (CEST)
> From: Alan Third <alan@idiocy.org>
> Cc: 43167@debbugs.gnu.org
>
> Ah, useful, now GCC won't build without -std=c99, but clang won't
> build WITH it. 🙄
Does it help to use -std=gnu99 instead?
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#43167: 28.0.50; Cannot build on MacOS due to -std=c99 change in configure.ac
[not found] <m2pn67j6pd.fsf@breton.holly.idiocy.org>
@ 2020-12-25 6:22 ` Lars Ingebrigtsen
0 siblings, 0 replies; 5+ messages in thread
From: Lars Ingebrigtsen @ 2020-12-25 6:22 UTC (permalink / raw)
To: Alan Third; +Cc: 43167
Alan Third <alan@idiocy.org> writes:
> fixed 43167 28.1
This was marked as fixed, but not closed? So I'm closing this now.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2020-12-25 6:22 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-02 5:44 bug#43167: 28.0.50; Cannot build on MacOS due to -std=c99 change in configure.ac Keith Irwin
2020-09-03 20:58 ` Alan Third
2020-09-03 21:04 ` Keith Irwin
2020-09-04 6:59 ` Eli Zaretskii
[not found] <m2pn67j6pd.fsf@breton.holly.idiocy.org>
2020-12-25 6:22 ` Lars Ingebrigtsen
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.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.