Opened 2 years ago

Last modified 2 years ago

#65673 closed defect

coreutils - configure: error: The 'time_t' type stops working after January 2038, and your system appears to support a wider 'time_t' — at Version 8

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

Description (last modified by mascguy (Christopher Nielsen))

I am unable to configure and install the coreutils +universal variant on High Sierra.

configure: error: The 'time_t' type stops working after January 2038,
                   and your system appears to support a wider 'time_t'.
                   Try configuring with 'CC="/usr/bin/clang -m64"'.
                   To build with a 32-bit time_t anyway (not recommended),
                   configure with '--disable-year2038'.

Change History (10)

Changed 2 years ago by RobK88

Attachment: config.log added

Changed 2 years ago by RobK88

Attachment: main.log added

comment:1 Changed 2 years ago by RobK88

Description: modified (diff)

comment:2 Changed 2 years ago by RobK88

Description: modified (diff)

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

This was fixed four weeks ago, via issue:65457.

Is your ports tree up-to-date? If so, have you made any local modifications to the portfile for coreutils?

comment:4 Changed 2 years ago by RobK88

No. I have made no local mods to any ports.

In fact, I just installed XCode 10.1 and Macports on my old Macbook Pro running High Sierra. A new installation of MacPorts is supposed to do an initial sync. But I ran sudo port -v selfupdate just in case.

Than I proceeded to install some ports. Coreutils is one of the first ports that I tried to install.

Last edited 2 years ago by RobK88 (previous) (diff)

comment:5 Changed 2 years ago by RobK88

The problem appears to be ONLY with the +universal variant.

Coreutils appears to configure and build just fine without specifying the +universal variant. (ie. the x64 bit binary). See below:

Grinchs-MacBook-Pro:~ grinch$ sudo port sync
--->  Updating the ports tree
Grinchs-MacBook-Pro:~ grinch$ 
Grinchs-MacBook-Pro:~ grinch$ sudo port clean coreutils
--->  Cleaning coreutils
Grinchs-MacBook-Pro:~ grinch$ 
Grinchs-MacBook-Pro:~ grinch$ sudo port install coreutils +universal
--->  Computing dependencies for coreutils
--->  Fetching archive for coreutils
--->  Attempting to fetch coreutils-9.1_0+universal.darwin_17.i386-x86_64.tbz2 from http://ywg.ca.packages.macports.org/mirror/macports/packages/coreutils
--->  Attempting to fetch coreutils-9.1_0+universal.darwin_17.i386-x86_64.tbz2 from http://mse.uk.packages.macports.org/coreutils
--->  Attempting to fetch coreutils-9.1_0+universal.darwin_17.i386-x86_64.tbz2 from http://fra.de.packages.macports.org/coreutils
--->  Fetching distfiles for coreutils
--->  Verifying checksums for coreutils
--->  Extracting coreutils
--->  Configuring coreutils
Error: 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: Failed to configure coreutils: configure failure: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_sysutils_coreutils/coreutils/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Error: Processing of port coreutils failed
Grinchs-MacBook-Pro:~ grinch$
Grinchs-MacBook-Pro:~ grinch$ sudo port clean coreutils
--->  Cleaning coreutils
Grinchs-MacBook-Pro:~ grinch$ sudo port -s install coreutils
--->  Computing dependencies for coreutils
--->  Fetching distfiles for coreutils
--->  Verifying checksums for coreutils
--->  Extracting coreutils
--->  Configuring coreutils
Warning: Configuration logfiles contain indications of -Wimplicit-function-declaration; check that features were not accidentally disabled:
  re_search: found in coreutils-9.1/config.log
  re_compile_pattern: found in coreutils-9.1/config.log
  re_set_syntax: found in coreutils-9.1/config.log
  MIN: found in coreutils-9.1/config.log
  __fpending: found in coreutils-9.1/config.log
  free: found in coreutils-9.1/config.log
  strchr: found in coreutils-9.1/config.log
  re_match: found in coreutils-9.1/config.log
--->  Building coreutils
--->  Staging coreutils into destroot                    
--->  Installing coreutils @9.1_0                        
--->  Activating coreutils @9.1_0
--->  Cleaning coreutils
--->  Updating database of binaries
--->  Scanning binaries for linking errors
--->  No broken files found.
--->  No broken ports found.
--->  Some of the ports you installed have notes:
  coreutils has the following notes:
    The tools provided by GNU coreutils are prefixed with the character 'g' by default to distinguish them from the BSD
    commands.
    For example, cp becomes gcp and ls becomes gls.
    
    If you want to use the GNU tools by default, add this directory to the front of your PATH environment variable:
        /opt/local/libexec/gnubin/
Grinchs-MacBook-Pro:~ grinch$

comment:6 Changed 2 years ago by RobK88

Description: modified (diff)

comment:7 Changed 2 years ago by RobK88

Description: modified (diff)

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

Cc: mascguy@… removed
Description: modified (diff)
Owner: set to mascguy
Status: newassigned
Note: See TracTickets for help on using tickets.