Opened 2 years ago

Last modified 3 months ago

#61383 assigned defect

xemacs @21.4.22: *** PANIC *** Configure tests are not working - compiler is broken.

Reported by: ryandesign (Ryan Schmidt) Owned by: dstrubbe (David Strubbe)
Priority: Normal Milestone:
Component: ports Version: 2.6.99
Keywords: catalina bigsur Cc: wealthychef1, mouse07410 (Mouse), cooljeanius (Eric Gallager)
Port: xemacs

Description

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.

Change History (4)

comment:1 Changed 2 years ago by ryandesign (Ryan Schmidt)

Cc: wealthychef1 mouse07410 added
Keywords: catalina bigsur added

Has duplicates #61521 and #62090.

comment:2 Changed 2 years ago by jdw13

There is no pre-compiled version for 11_arm64, but install fails with configure tests, too, and I see similar issue when trying to do a source install with MacOS 11.2.1 using Mac mini (M1,2020) and Xcode 12.4 (all latest as far as I can tell):

:info:configure checking size of short... 0
:info:configure *** PANIC *** Configure tests are not working - compiler is broken.
:info:configure *** PANIC *** Please examine config.log for compilation errors.
:info:configure Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_editors_xemacs/xemacs/work/xemacs-21.4.22" && ./configure --prefix=/opt/local --mandir=/opt/local/share/man --without-postgresql --without-ldap --with-sound=none --pdump --site-prefixes=/opt/local --with-tty --with-dialogs=athena --with-widgets=athena --with-athena=3d --with-database=gdbm --with-mule 
:info:configure Exit code: 1
:error:configure Failed to configure xemacs, consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_editors_xemacs/xemacs/work/xemacs-21.4.22/config.log
:error:configure Failed to configure xemacs: configure failure: command execution failed
:debug:configure Error code: NONE
:debug:configure Backtrace: configure failure: command execution failed
:debug:configure     while executing
:debug:configure "$procedure $targetname"
:error:configure See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_editors_xemacs/xemacs/main.log for details.
(END)

comment:3 Changed 4 months ago by cooljeanius (Eric Gallager)

Cc: cooljeanius added

comment:4 Changed 3 months ago by trm61

I just upgraded my 2018 MB Air to Ventura and ran into the features.h issues, as well, installation fails almost immediately.

I rely on xemacs, and it seems it has been broken on MacPorts for over two years with no resolution in sight, despite it seeming like something simple? How can we work around this issue?

Note: See TracTickets for help on using tickets.