[MacPorts] #61383: xemacs @21.4.22: *** PANIC *** Configure tests are not working - compiler is broken.

MacPorts noreply at macports.org
Fri Oct 30 05:22:35 UTC 2020


#61383: xemacs @21.4.22: *** PANIC *** Configure tests are not working - compiler
is broken.
------------------------+----------------------
 Reporter:  ryandesign  |      Owner:  dstrubbe
     Type:  defect      |     Status:  assigned
 Priority:  Normal      |  Milestone:
Component:  ports       |    Version:  2.6.99
 Keywords:              |       Port:  xemacs
------------------------+----------------------
 xemacs fails to build for me on 10.13 when I add `-Werror=implicit-
 function-declaration` to configure.cflags. I have done this in order to
 simulate what happens by default with Xcode 12. The error is:
 {{{
 checking size of short... 0
 *** PANIC *** Configure tests are not working - compiler is broken.
 *** PANIC *** Please examine config.log for compilation errors.
 }}}
 The config.log shows this is happening because a few configure tests have
 neglected to include the required headers:
 {{{
 config.log-configure:3593: checking for ANSI C header files
 config.log-configure:3604: ccache /usr/bin/clang -E -I/opt/local/include
 -I/opt/local/include  -I/opt/local/include     conftest.c >/dev/null
 2>conftest.out
 config.log-configure:3668: ccache /usr/bin/clang -o conftest -pipe -Os
 -Werror=implicit-function-declaration -std=gnu89 -arch x86_64
 -I/opt/local/include  -I/opt/local/include      -L/opt/local/lib
 -Wl,-headerpad_max_install_names -Wl,-no_pie -Xlinker -arch -Xlinker
 x86_64  -L/opt/local/lib     conftest.c           1>&5
 config.log:configure:3663:67: error: implicitly declaring library function
 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror
 ,-Wimplicit-function-declaration]
 config.log-if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER
 (i)) exit(2);
 config.log-
 ^
 config.log-configure:3663:67: note: include the header <stdlib.h> or
 explicitly provide a declaration for 'exit'
 config.log-1 error generated.
 }}}
 {{{
 config.log-configure:4511: checking size of short
 config.log-configure:4525: ccache /usr/bin/clang -o conftest -pipe -Os
 -Werror=implicit-function-declaration -std=gnu89 -arch x86_64
 -I/opt/local/include  -I/opt/local/include      -L/opt/local/lib
 -Wl,-headerpad_max_install_names -Wl,-no_pie -Xlinker -arch -Xlinker
 x86_64  -L/opt/local/lib     conftest.c           1>&5
 config.log:configure:4519:11: error: implicitly declaring library function
 'exit' with type 'void (int) __attribute__((noreturn))' [-Werror
 ,-Wimplicit-function-declaration]
 config.log-  if (!f) exit(1);
 config.log-          ^
 config.log-configure:4519:11: note: include the header <stdlib.h> or
 explicitly provide a declaration for 'exit'
 config.log-configure:4520:22: warning: format specifies type 'int' but the
 argument has type 'unsigned long' [-Wformat]
 config.log-  fprintf(f, "%d\n", sizeof(short));
 config.log-              ~~     ^~~~~~~~~~~~~
 config.log-              %lu
 config.log-1 warning and 1 error generated.
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/61383>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list