Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#65457 closed defect (fixed)

coreutils @9.1 +universal configure fails on Snow Leopard to to 32-bit time_t warning

Reported by: rlhamil Owned by: mascguy (Christopher Nielsen)
Priority: Normal Milestone:
Component: ports Version: 2.7.2
Keywords: pending Cc: rlhamil@…
Port: coreutils

Description

coreutils +universal now may have a problem configuring where that includes 32-bit, specifically seen on Snow Leopard

::info:configure configure: error: in `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_coreutils/coreutils/work/coreutils-9.1':
:info:configure configure: error: The 'time_t' type stops working after January 2038,
:info:configure                    and your system appears to support a wider 'time_t'.
:info:configure                    Try configuring with 'CC="/opt/local/bin/clang-mp-8.0 -m64"'.
:info:configure                    To build with a 32-bit time_t anyway (not recommended),
:info:configure                    configure with '--disable-year2038'.
:info:configure See `config.log' for more details

Change History (7)

comment:1 Changed 2 years ago by mascguy (Christopher Nielsen)

Owner: set to mascguy
Status: newassigned

comment:2 Changed 2 years ago by barracuda156

I got the same failure when building on 10.6.8 for PPC:

:info:configure checking for time_t past the year 2038... no
:info:configure checking for 64-bit time_t with _TIME_BITS=64... no
:info:configure configure: error: in `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_coreutils/coreutils/work/coreutils-9.1':
:info:configure configure: error: The 'time_t' type stops working after January 2038,
:info:configure                    and your system appears to support a wider 'time_t'.
:info:configure                    Try configuring with 'CC="/usr/bin/gcc-4.2 -std=gnu99 -m64"'.
:info:configure                    To build with a 32-bit time_t anyway (not recommended),
:info:configure                    configure with '--disable-year2038'.
:info:configure See `config.log' for more details
:info:configure Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_coreutils/coreutils/work/coreutils-9.1" && ./configure --prefix=/opt/local --disable-silent-rules --program-prefix=g TIME_T_32_BIT_OK=yes 
:info:configure Exit code: 1
:error:configure Failed to configure coreutils: consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_coreutils/coreutils/work/coreutils-9.1/config.log
:error:configure Failed to configure coreutils: configure failure: command execution failed
:debug:configure Error code: NONE
Version 0, edited 2 years ago by barracuda156 (next)

comment:3 Changed 2 years ago by kencu (Ken)

here, it would appear you need to change this line:

https://github.com/macports/macports-ports/blob/2cf253253e0444f10d1c2f855e2631a5c1d78a14/sysutils/coreutils/Portfile#L57

to this:

--disable-year2038

comment:4 Changed 2 years ago by mascguy (Christopher Nielsen)

Keywords: pending added

comment:5 Changed 2 years ago by Christopher Nielsen <mascguy@…>

In aa2c8d2afe20ab02d2acc23a56b074dd0d7eadf9/macports-ports (master):

coreutils-devel: i386/ppc: disable year 2038 support
See: #65457

comment:6 Changed 2 years ago by Christopher Nielsen <mascguy@…>

Resolution: fixed
Status: assignedclosed

In 6e7a8e4cebd28c6919f575c2281cd7373cf99e5c/macports-ports (master):

coreutils: i386/ppc: disable year 2038 support
Fixes: #65457

comment:7 Changed 2 years ago by Christopher Nielsen <mascguy@…>

In ee2681da0d281112bf6cafc1b4c917de90da6a2f/macports-ports (master):

coreutils/coreutils-devel: fix year 2038 check
See: #55643
See: #65457
Fixes: #65673

Note: See TracTickets for help on using tickets.