Opened 10 days ago

Last modified 10 days ago

#69948 assigned defect

util-linux @2.40.1 does not build on PPC Tiger, Mac OS X 10.4.11, because of configure failure: command execution failed

Reported by: ballapete (Peter "Pete" Dyballa) Owned by: khindenburg@…
Priority: Normal Milestone:
Component: ports Version: 2.9.3
Keywords: tiger ppc Cc: khindenburg@…
Port: util-linux

Description

checking for /opt/local/bin/gcc-apple-4.2 -std=gnu99 option for timestamps after 2038... support not detected
configure: error: in `/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_devel_util-linux/util-linux/work/util-linux-2.40.1':
configure: error: could not enable timestamps after mid-January 2038.
This package recommends support for these later
timestamps. However, to proceed with signed 32-bit
time_t even though it will fail then, configure with
'--disable-year2038'.
See `config.log' for more details
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_devel_util-linux/util-linux/work/util-linux-2.40.1" && ./configure --prefix=/opt/local --disable-agetty --disable-cramfs --disable-eject --disable-fallocate --disable-fsck --disable-kill --disable-libblkid --disable-liblastlog2 --disable-libmount --disable-libuuid --disable-login --disable-losetup --disable-mount --disable-mountpoint --disable-partx --disable-pg --disable-pg-bell --disable-pivot_root --disable-schedutils --disable-silent-rules --disable-su --disable-sulogin --disable-switch_root --disable-unshare --disable-uuidd --disable-wall --enable-shared=no --without-audit --without-python 
Exit code: 1
Error: Failed to configure util-linux: consult /opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_devel_util-linux/util-linux/work/util-linux-2.40.1/config.log
Error: Failed to configure util-linux: configure failure: command execution failed

config.log contains (a bit enhanced):

configure:22959: checking for /opt/local/bin/gcc-apple-4.2 -std=gnu99 option for timestamps after 2038
configure:22991: /opt/local/bin/gcc-apple-4.2 -std=gnu99 -c -pipe -Os -I/opt/local/include/LegacySupport -arch ppc -I/opt/local/include -D__DARWIN_UNIX03 -I/opt/local/include/LegacySupport conftest.c >&5
conftest.c:48: warning: integer overflow in expression
conftest.c:48: warning: integer overflow in expression
conftest.c:48: warning: integer overflow in expression
conftest.c:50: error: size of array 'verify_time_t_range' is negative
configure:22991: $? = 1
configure: failed program was:
    1	| /* confdefs.h */
    2	| #define PACKAGE_NAME "util-linux"
    3	| #define PACKAGE_TARNAME "util-linux"
    4	| #define PACKAGE_VERSION "2.40.1"
    5	| #define PACKAGE_STRING "util-linux 2.40.1"
    6	| #define PACKAGE_BUGREPORT "kzak@redhat.com"
    7	| #define PACKAGE_URL "https://www.kernel.org/pub/linux/utils/util-linux/"
    8	| #define HAVE_STDIO_H 1
    9	| #define HAVE_STDLIB_H 1
   10	| #define HAVE_STRING_H 1
   11	| #define HAVE_INTTYPES_H 1
   12	| #define HAVE_STDINT_H 1
   13	| #define HAVE_STRINGS_H 1
   14	| #define HAVE_SYS_STAT_H 1
   15	| #define HAVE_SYS_TYPES_H 1
   16	| #define HAVE_UNISTD_H 1
   17	| #define HAVE_WCHAR_H 1
   18	| #define STDC_HEADERS 1
   19	| #define _ALL_SOURCE 1
   20	| #define _DARWIN_C_SOURCE 1
   21	| #define _GNU_SOURCE 1
   22	| #define _HPUX_ALT_XOPEN_SOCKET_API 1
   23	| #define _NETBSD_SOURCE 1
   24	| #define _OPENBSD_SOURCE 1
   25	| #define _POSIX_PTHREAD_SEMANTICS 1
   26	| #define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1
   27	| #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
   28	| #define __STDC_WANT_IEC_60559_DFP_EXT__ 1
   29	| #define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1
   30	| #define __STDC_WANT_IEC_60559_TYPES_EXT__ 1
   31	| #define __STDC_WANT_LIB_EXT2__ 1
   32	| #define __STDC_WANT_MATH_SPEC_FUNCS__ 1
   33	| #define _TANDEM_SOURCE 1
   34	| #define __EXTENSIONS__ 1
   35	| #define PACKAGE "util-linux"
   36	| #define VERSION "2.40.1"
   37	| #define HAVE_DLFCN_H 1
   38	| #define LT_OBJDIR ".libs/"
   39	| #define _DARWIN_C_SOURCE 1
   40	| #define HAVE_STRUCT_TM_TM_ZONE 1
   41	| #define HAVE_TM_ZONE 1
   42	| /* end confdefs.h.  */
   43	| 
   44	|   #include <time.h>
   45	|   /* Check that time_t can represent 2**32 - 1 correctly.  */
   46	|   #define LARGE_TIME_T \
   47	|     ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
   48	|   int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
   49	|                            && LARGE_TIME_T % 65537 == 0)
   50	|                           ? 1 : -1];
   51	| 
   52	| int
   53	| main (void)
   54	| {
   55	| 
   56	|   ;
   57	|   return 0;
   58	| }
…
configure:23002: result: support not detected
configure:23061: error: in `/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_devel_util-linux/util-linux/work/util-linux-2.40.1':
configure:23063: error: could not enable timestamps after mid-January 2038.
This package recommends support for these later
timestamps. However, to proceed with signed 32-bit
time_t even though it will fail then, configure with
'--disable-year2038'.
See `config.log' for more details

## ---------------- ##
## Cache variables. ##
## ---------------- ##

Attachments (2)

main.log (24.3 KB) - added by ballapete (Peter "Pete" Dyballa) 10 days ago.
Main.log from PPC Tiger, Mac OS X 10.4.11
config.log (199.5 KB) - added by ballapete (Peter "Pete" Dyballa) 10 days ago.
Config.log from PPC Tiger, Mac OS X 10.4.11

Download all attachments as: .zip

Change History (5)

Changed 10 days ago by ballapete (Peter "Pete" Dyballa)

Attachment: main.log added

Main.log from PPC Tiger, Mac OS X 10.4.11

Changed 10 days ago by ballapete (Peter "Pete" Dyballa)

Attachment: config.log added

Config.log from PPC Tiger, Mac OS X 10.4.11

comment:1 Changed 10 days ago by ballapete (Peter "Pete" Dyballa)

Using GCC7 for building I get:

conftest.c:47:43: warning: integer overflow in expression [-Woverflow]
     ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
                                           ^
conftest.c:48:28: note: in expansion of macro 'LARGE_TIME_T'
   int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
                            ^~~~~~~~~~~~
conftest.c:47:43: warning: integer overflow in expression [-Woverflow]
     ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
                                           ^
conftest.c:49:31: note: in expansion of macro 'LARGE_TIME_T'
                            && LARGE_TIME_T % 65537 == 0)
                               ^~~~~~~~~~~~
conftest.c:48:7: error: variably modified 'verify_time_t_range' at file scope
   int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
       ^~~~~~~~~~~~~~~~~~~

Same error as before.

comment:2 Changed 10 days ago by ryandesign (Ryan Carsten Schmidt)

Did you try the obvious? (Add --disable-year2038 to configure.args)

comment:3 Changed 10 days ago by ballapete (Peter "Pete" Dyballa)

Yes, it just built with this option!

Note: See TracTickets for help on using tickets.