[MacPorts] #66733: mpich-default @4.0.3: Configuration logfiles contain indications of -Wimplicit-function-declaration

MacPorts noreply at macports.org
Sat Jan 21 09:46:22 UTC 2023


#66733: mpich-default @4.0.3: Configuration logfiles contain indications of
-Wimplicit-function-declaration
------------------------+---------------------------
 Reporter:  ryandesign  |      Owner:  eborisch
     Type:  defect      |     Status:  assigned
 Priority:  Normal      |  Milestone:
Component:  ports       |    Version:  2.8.0
 Keywords:  monterey    |       Port:  mpich-default
------------------------+---------------------------
 Configuration logfiles contain indications of
 [wiki:WimplicitFunctionDeclaration -Wimplicit-function-declaration]:

 {{{
 --->  Configuring mpich-default
 Warning: Configuration logfiles contain indications of -Wimplicit-
 function-declaration; check that features were not accidentally disabled:
   VALGRIND_DESTROY_MEMPOOL: found in mpich-4.0.3/src/mpl/config.log
   VALGRIND_MEMPOOL_FREE: found in mpich-4.0.3/src/mpl/config.log
   VALGRIND_PRINTF_BACKTRACE: found in mpich-4.0.3/src/mpl/config.log
   VALGRIND_CREATE_BLOCK: found in mpich-4.0.3/src/mpl/config.log
   VALGRIND_MEMPOOL_ALLOC: found in mpich-4.0.3/src/mpl/config.log
   __atomic_load_8: found in mpich-4.0.3/modules/libfabric/config.log
   VALGRIND_CREATE_MEMPOOL: found in mpich-4.0.3/src/mpl/config.log
   exit: found in mpich-4.0.3/modules/json-c/config.log
 }}}
 I don't know about the others but certainly the implicit declaration of
 `exit` is a mistake. From main.log:
 {{{
 :info:configure checking for __thread support... no
 }}}
 From config.log:
 {{{
 configure:5566: checking for __thread support
 configure:5583: /usr/bin/clang -o conftest  -pipe
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -arch
 x86_64 -fvisibility=hidden
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk
 -Wl,-headerpad_max_install_names -Wl,-rpath,/opt/local/lib/libgcc
 -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk
 -arch x86_64 conftest.c  >&5
 conftest.c:37:1: error: implicitly declaring library function 'exit' with
 type 'void (int) __attribute__((noreturn))' [-Werror,-Wimplicit-function-
 declaration]
 exit (foo (0));
 ^
 conftest.c:37:1: note: include the header <stdlib.h> or explicitly provide
 a declaration for 'exit'
 1 error generated.
 configure:5583: $? = 1
 configure: failed program was:
 | /* confdefs.h */
 | #define PACKAGE_NAME "json-c"
 | #define PACKAGE_TARNAME "json-c"
 | #define PACKAGE_VERSION "0.13.99"
 | #define PACKAGE_STRING "json-c 0.13.99"
 | #define PACKAGE_BUGREPORT "json-c at googlegroups.com"
 | #define PACKAGE_URL ""
 | #define PACKAGE "json-c"
 | #define VERSION "0.13.99"
 | #define STDC_HEADERS 1
 | #define HAVE_SYS_TYPES_H 1
 | #define HAVE_SYS_STAT_H 1
 | #define HAVE_STDLIB_H 1
 | #define HAVE_STRING_H 1
 | #define HAVE_MEMORY_H 1
 | #define HAVE_STRINGS_H 1
 | #define HAVE_INTTYPES_H 1
 | #define HAVE_STDINT_H 1
 | #define HAVE_UNISTD_H 1
 | #define HAVE_FCNTL_H 1
 | #define HAVE_LIMITS_H 1
 | #define HAVE_STRINGS_H 1
 | #define HAVE_SYSLOG_H 1
 | #define HAVE_UNISTD_H 1
 | #define HAVE_SYS_CDEFS_H 1
 | #define HAVE_SYS_PARAM_H 1
 | #define HAVE_STDARG_H 1
 | #define HAVE_LOCALE_H 1
 | #define HAVE_XLOCALE_H 1
 | #define JSON_C_HAVE_INTTYPES_H 1
 | /* end confdefs.h.  */
 | #undef __thread
 | static __thread int a; int foo (int b) { return a + b; }
 | int
 | main ()
 | {
 | exit (foo (0));
 |   ;
 |   return 0;
 | }
 configure:5592: result: no
 }}}

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


More information about the macports-tickets mailing list