[MacPorts] #67475: diffutils @3.10_0+universal: error: this system appears to support timestamps after mid-January 2038, but no mechanism for enabling wide 'time_t' was detected. Did you mean to build a 64-bit binary?

MacPorts noreply at macports.org
Tue May 23 16:10:49 UTC 2023


#67475: diffutils @3.10_0+universal: error: this system appears to support
timestamps after mid-January 2038, but no mechanism for enabling wide
'time_t' was detected. Did you mean to build a 64-bit binary?
------------------------+--------------------
  Reporter:  RobK88     |      Owner:  (none)
      Type:  defect     |     Status:  new
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.8.1
Resolution:             |   Keywords:
      Port:  diffutils  |
------------------------+--------------------

Comment (by RobK88):

 @ryandesign - Ryan, I tried the latest workaround used in the `coreutils`
 port -- `ac_year2038_required=no` but it did not work for this port -
 `diffutils`.  See


 {{{
 Executing:  cd "/opt/local/var/macports/build
 /_Users_grinch_Development_MacPorts_local-
 repo_ports_sysutils_diffutils/diffutils/work/diffutils-3.10" &&
 ./configure --prefix=/opt/local --disable-dependency-tracking --program-
 prefix=g --infodir=/opt/local/share/info --mandir=/opt/local/share/man
 --disable-silent-rules ac_year2038_required=no
 checking for a BSD-compatible install... /usr/bin/install -c
 checking whether sleep supports fractional seconds... true
 checking the filesystem timestamp resolution... 0.7
 checking whether build environment is sane... yes
 checking for a race-free mkdir -p... /opt/local/bin/gmkdir -p
 checking for gawk... gawk
 checking whether make sets $(MAKE)... yes
 checking whether make supports nested variables... yes
 checking xargs -n works... yes
 checking for gawk... (cached) gawk
 checking for gcc... /usr/bin/clang
 checking whether the C compiler works... yes
 checking for C compiler default output file name... a.out
 checking for suffix of executables...
 checking whether we are cross compiling... no
 checking for suffix of object files... o
 checking whether the compiler supports GNU C... yes
 checking whether /usr/bin/clang accepts -g... yes
 checking for /usr/bin/clang option to enable C11 features... none needed
 checking whether /usr/bin/clang understands -c and -o together... yes
 checking whether the compiler is clang... yes
 checking for compiler option needed when checking for declarations...
 -Werror=implicit-function-declaration
 checking whether make supports the include directive... yes (GNU style)
 checking dependency style of /usr/bin/clang... none
 checking for ranlib... ranlib
 checking for stdio.h... yes
 checking for stdlib.h... yes
 checking for string.h... yes
 checking for inttypes.h... yes
 checking for stdint.h... yes
 checking for strings.h... yes
 checking for sys/stat.h... yes
 checking for sys/types.h... yes
 checking for unistd.h... yes
 checking for wchar.h... yes
 checking for minix/config.h... no
 checking for sys/socket.h... yes
 checking for error.h... no
 checking for fnmatch.h... yes
 checking for getopt.h... yes
 checking for sys/cdefs.h... yes
 checking for sys/time.h... yes
 checking for threads.h... no
 checking for iconv.h... yes
 checking for limits.h... yes
 checking for crtdefs.h... no
 checking for wctype.h... yes
 checking for langinfo.h... yes
 checking for xlocale.h... yes
 checking for sys/mman.h... yes
 checking for sys/param.h... yes
 checking for malloc.h... no
 checking for stdbool.h... yes
 checking for stdckdint.h... no
 checking for sys/random.h... yes
 checking for sys/wait.h... yes
 checking for features.h... no
 checking for arpa/inet.h... yes
 checking for netdb.h... yes
 checking for netinet/in.h... yes
 checking for sys/select.h... yes
 checking for pthread.h... yes
 checking for sys/ioctl.h... yes
 checking for sys/uio.h... yes
 checking for vfork.h... no
 checking whether it is safe to define __EXTENSIONS__... yes
 checking whether _XOPEN_SOURCE should be defined... no
 checking build system type... x86_64-apple-darwin17.7.0
 checking host system type... x86_64-apple-darwin17.7.0
 checking how to run the C preprocessor... /usr/bin/clang -E
 checking for egrep -e... /usr/bin/grep -E
 checking for Minix Amsterdam compiler... no
 checking for ar... ar
 checking for /usr/bin/clang option to enable large file support... none
 needed
 checking for /usr/bin/clang option for timestamps after 2038... support
 not detected
 configure: error: in '/opt/local/var/macports/build
 /_Users_grinch_Development_MacPorts_local-
 repo_ports_sysutils_diffutils/diffutils/work/diffutils-3.10':
 configure: error: this system appears to support timestamps after
 mid-January 2038, but no mechanism for enabling wide
 'time_t' was detected. Did you mean to build a 64-bit
 binary? (E.g., 'CC="/usr/bin/clang -m64"'.) To proceed with
 32-bit time_t, configure with '--disable-year2038'.
 See 'config.log' for more details
 Command failed:  cd "/opt/local/var/macports/build
 /_Users_grinch_Development_MacPorts_local-
 repo_ports_sysutils_diffutils/diffutils/work/diffutils-3.10" &&
 ./configure --prefix=/opt/local --disable-dependency-tracking --program-
 prefix=g --infodir=/opt/local/share/info --mandir=/opt/local/share/man
 --disable-silent-rules ac_year2038_required=no
 Exit code: 1
 Error: Failed to configure diffutils: consult
 /opt/local/var/macports/build/_Users_grinch_Development_MacPorts_local-
 repo_ports_sysutils_diffutils/diffutils/work/diffutils-3.10/config.log
 Error: Failed to configure diffutils: configure failure: command execution
 failed
 Error: See /opt/local/var/macports/logs
 /_Users_grinch_Development_MacPorts_local-
 repo_ports_sysutils_diffutils/diffutils/main.log for details.
 Error: Follow https://guide.macports.org/#project.tickets if you believe
 there is a bug.
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/67475#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list