Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Time-HiRes CPAN distribution.

Report information
The Basics
Id:
123994
Status:
resolved
Priority:
Low/Low
Queue:

People
Owner:
Nobody in particular
Requestors:
matteo [...] corti.li
Cc:
AdminCc:

BugTracker
Severity:
(no value)
Broken in:
(no value)
Fixed in:
1.9753



Subject: Time::HiRes 1.9750 does not compile on macOS
Time::HiRes 1.9750 does not compile on macOS: HiRes.xs:1474:16: error: unrecognized platform name macOS Full log: cpanm (App::cpanminus) 1.7043 on perl 5.026001 built for darwin-2level Work directory is /Users/corti/.cpanm/work/1514899058.25733 You have make /usr/bin/make You have /opt/local/bin/wget You have /usr/bin/tar: bsdtar 2.8.3 - libarchive 2.8.3 You have /usr/bin/unzip Searching Time::HiRes () on cpanmetadb ... --> Working on Time::HiRes Fetching http://www.cpan.org/authors/id/J/JH/JHI/Time-HiRes-1.9750.tar.gz -> OK Unpacking Time-HiRes-1.9750.tar.gz Entering Time-HiRes-1.9750 Checking configure dependencies from META.json Checking if you have ExtUtils::MakeMaker 6.58 ... Yes (7.30) Configuring Time-HiRes-1.9750 Running Makefile.PL Configuring Time::HiRes... Have syscall()... looking for syscall.h... found <sys/syscall.h>. Looking for gettimeofday()... found. Looking for setitimer()... found. Looking for getitimer()... found. You have interval timers (both setitimer and getitimer). Looking for ualarm()... found. Looking for usleep()... found. Looking for nanosleep()... testing... found. You can mix subsecond sleeps with signals, if you want to. (It's still not portable, though.) Looking for clockid_t... found. Looking for clock_gettime()... found. Looking for clock_getres()... found. Looking for clock_nanosleep()... found (via emulation). Looking for clock()... found. Looking for working futimens()... found. Looking for working utimensat()... found. You seem to have subsecond timestamp setting. Looking for stat() subsecond timestamps... Trying struct stat st_atimespec.tv_nsec...found. Trying struct stat st_atimensec...NOT found. Trying struct stat st_atime_n...NOT found. Trying struct stat st_atim.tv_nsec...NOT found. Trying struct stat st_uatime...NOT found. You seem to have subsecond timestamp reading. (Your struct stat has them, but the filesystems must help.) Checking if your kit is complete... Looks good Generating a Unix-style Makefile Writing Makefile for Time::HiRes Writing MYMETA.yml and MYMETA.json Now you may issue 'make'. Do not forget also 'make test'. -> OK Checking dependencies from MYMETA.json ... Checking if you have Carp 0 ... Yes (1.42) Checking if you have ExtUtils::MakeMaker 0 ... Yes (7.30) Checking if you have Config 0 ... Yes (5.026001) Checking if you have XSLoader 0 ... Yes (0.27) Checking if you have Exporter 0 ... Yes (5.72) Checking if you have Test::More 0 ... Yes (1.302120) Checking if you have strict 0 ... Yes (1.11) Building and testing Time-HiRes-1.9750 cp HiRes.pm blib/lib/Time/HiRes.pm Running Mkbootstrap for HiRes () chmod 644 "HiRes.bs" "/Users/corti/perl5/perlbrew/perls/perl-5.26.1/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- HiRes.bs blib/arch/auto/Time/HiRes/HiRes.bs 644 "/Users/corti/perl5/perlbrew/perls/perl-5.26.1/bin/perl" "/Users/corti/perl5/perlbrew/perls/perl-5.26.1/lib/site_perl/5.26.1/ExtUtils/xsubpp" -typemap '/Users/corti/perl5/perlbrew/perls/perl-5.26.1/lib/5.26.1/ExtUtils/typemap' -typemap '/Users/corti/.cpanm/work/1514899058.25733/Time-HiRes-1.9750/typemap' HiRes.xs > HiRes.xsc mv HiRes.xsc HiRes.c cc -c -fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -I/opt/local/include -O3 -DVERSION=\"1.9750\" -DXS_VERSION=\"1.9750\" "-I/Users/corti/perl5/perlbrew/perls/perl-5.26.1/lib/5.26.1/darwin-2level/CORE" -DTIME_HIRES_NANOSLEEP -DTIME_HIRES_CLOCKID_T -DTIME_HIRES_CLOCK_GETTIME -DTIME_HIRES_CLOCK_GETRES -DTIME_HIRES_CLOCK_NANOSLEEP -DTIME_HIRES_CLOCK_NANOSLEEP_EMULATION -DTIME_HIRES_CLOCK -DHAS_FUTIMENS -DHAS_UTIMENSAT -DTIME_HIRES_UTIME -DTIME_HIRES_STAT_ST_XTIMESPEC -DTIME_HIRES_STAT=1 -DATLEASTFIVEOHOHFIVE HiRes.c HiRes.xs:1474:16: error: unrecognized platform name macOS if (UTIMENSAT_AVAILABLE) { ^ HiRes.xs:951:51: note: expanded from macro 'UTIMENSAT_AVAILABLE' # define UTIMENSAT_AVAILABLE __builtin_available(macOS 10.13, *) ^ 1 error generated. make: *** [HiRes.o] Error 1 -> FAIL Installing Time::HiRes failed. See /Users/corti/.cpanm/work/1514899058.25733/build.log for details. Retry with --force to force install it.
On Tue Jan 02 08:22:48 2018, CORTI wrote:
Show quoted text
> Time::HiRes 1.9750 does not compile on macOS:
Please test with Time-HiRes 1.9753.
On Thu Jan 18 02:52:30 2018, JHI wrote:
Show quoted text
> On Tue Jan 02 08:22:48 2018, CORTI wrote:
> > Time::HiRes 1.9750 does not compile on macOS:
> > Please test with Time-HiRes 1.9753. >
Compiles without problems
On Thu Jan 18 05:29:36 2018, CORTI wrote:
Show quoted text
> On Thu Jan 18 02:52:30 2018, JHI wrote:
> > On Tue Jan 02 08:22:48 2018, CORTI wrote:
> > > Time::HiRes 1.9750 does not compile on macOS:
> > > > Please test with Time-HiRes 1.9753. > >
> > Compiles without problems
Marking as resolved, thanks.


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.