Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perl-5.26.1 fails self-test on osx if file system doesn’t support sub-second time resolution #16358

Open
p5pRT opened this issue Jan 11, 2018 · 5 comments

Comments

@p5pRT
Copy link

@p5pRT p5pRT commented Jan 11, 2018

Migrated from rt.perl.org#132707 (status was 'open')

Searchable as RT132707$

@p5pRT
Copy link
Author

@p5pRT p5pRT commented Jan 11, 2018

From joshertester@gmail.com

Hello,

I have found that perl-5.26.1, will not pass self-tests on OS X. I get the
error​:

% make test

....

dist/Time-HiRes/t/usleep ....................................... ok

dist/Time-HiRes/t/utime ........................................ # Failed
test 'atime set correctly'

# at t/utime.t line 73.

# got​: '1'

# expected​: '1.111111111'

# Failed test 'mtime set correctly'

# at t/utime.t line 74.

# got​: '2'

# expected​: '2.222222222'

# Failed test 'atime set correctly'

# at t/utime.t line 82.

# got​: '1'

# expected​: '1.111111111'

# Failed test 'mtime set correctly'

# at t/utime.t line 83.

# got​: '2'

# expected​: '2.222222222'

# Failed test 'File 1 atime set correctly'

# at t/utime.t line 93.

# got​: '1'

# expected​: '1.111111111'

# Failed test 'File 1 mtime set correctly'

# at t/utime.t line 94.

# got​: '2'

# expected​: '2.222222222'

# Failed test 'File 2 atime set correctly'

# at t/utime.t line 98.

# got​: '1'

# expected​: '1.111111111'

# Failed test 'File 2 mtime set correctly'

# at t/utime.t line 99.

# got​: '2'

# expected​: '2.222222222'

# Failed test 'File 1 atime set correctly'

# at t/utime.t line 113.

# '0.336687088012695'

# <

# '0.1'

# Failed test 'File 1 mtime set correctly'

# at t/utime.t line 114.

# '0.336687088012695'

# <

# '0.1'

# Failed test 'File 2 atime set correctly'

# at t/utime.t line 118.

# '0.336687088012695'

# <

# '0.1'

# Failed test 'File 2 mtime set correctly'

# at t/utime.t line 119.

# '0.336687088012695'

# <

# '0.1'

# Looks like you failed 12 tests of 18.

FAILED at test 2

dist/Unicode-Normalize/t/fcdc .................................. ok

dist/Unicode-Normalize/t/form .................................. ok

This is related​:

https://rt.cpan.org/Ticket/Display.html?id=116127

@p5pRT
Copy link
Author

@p5pRT p5pRT commented Jan 11, 2018

From @jkeenan

On Thu, 11 Jan 2018 16​:41​:57 GMT, joshertester@​gmail.com wrote​:

Hello,

I have found that perl-5.26.1, will not pass self-tests on OS X. I get the
error​:

% make test

....

dist/Time-HiRes/t/usleep ....................................... ok

dist/Time-HiRes/t/utime ........................................ # Failed
test 'atime set correctly'

# at t/utime.t line 73.

# got​: '1'

# expected​: '1.111111111'

# Failed test 'mtime set correctly'

# at t/utime.t line 74.

# got​: '2'

# expected​: '2.222222222'

# Failed test 'atime set correctly'

# at t/utime.t line 82.

# got​: '1'

# expected​: '1.111111111'

# Failed test 'mtime set correctly'

# at t/utime.t line 83.

# got​: '2'

# expected​: '2.222222222'

# Failed test 'File 1 atime set correctly'

# at t/utime.t line 93.

# got​: '1'

# expected​: '1.111111111'

# Failed test 'File 1 mtime set correctly'

# at t/utime.t line 94.

# got​: '2'

# expected​: '2.222222222'

# Failed test 'File 2 atime set correctly'

# at t/utime.t line 98.

# got​: '1'

# expected​: '1.111111111'

# Failed test 'File 2 mtime set correctly'

# at t/utime.t line 99.

# got​: '2'

# expected​: '2.222222222'

# Failed test 'File 1 atime set correctly'

# at t/utime.t line 113.

# '0.336687088012695'

# <

# '0.1'

# Failed test 'File 1 mtime set correctly'

# at t/utime.t line 114.

# '0.336687088012695'

# <

# '0.1'

# Failed test 'File 2 atime set correctly'

# at t/utime.t line 118.

# '0.336687088012695'

# <

# '0.1'

# Failed test 'File 2 mtime set correctly'

# at t/utime.t line 119.

# '0.336687088012695'

# <

# '0.1'

# Looks like you failed 12 tests of 18.

FAILED at test 2

dist/Unicode-Normalize/t/fcdc .................................. ok

dist/Unicode-Normalize/t/form .................................. ok

This is related​:

https://rt.cpan.org/Ticket/Display.html?id=116127

Can you please attach the output of './perl -Ilib -V' for the perl build where you subsequently got this test failure?

Thank you very much.

--
James E Keenan (jkeenan@​cpan.org)

@p5pRT
Copy link
Author

@p5pRT p5pRT commented Jan 11, 2018

The RT System itself - Status changed from 'new' to 'open'

@p5pRT
Copy link
Author

@p5pRT p5pRT commented Jan 12, 2018

From joshr-cpan@joshr.com

On Thu, 11 Jan 2018 12​:48​:08 -0800, jkeenan wrote​:

On Thu, 11 Jan 2018 16​:41​:57 GMT, joshertester@​gmail.com wrote​:

Hello,

I have found that perl-5.26.1, will not pass self-tests on OS X. I
get the
error​:

% make test

....

dist/Time-HiRes/t/usleep ....................................... ok

dist/Time-HiRes/t/utime ........................................ #
Failed
test 'atime set correctly'

# at t/utime.t line 73.

# got​: '1'

# expected​: '1.111111111'

# Failed test 'mtime set correctly'

# at t/utime.t line 74.

# got​: '2'

# expected​: '2.222222222'

# Failed test 'atime set correctly'

# at t/utime.t line 82.

# got​: '1'

# expected​: '1.111111111'

# Failed test 'mtime set correctly'

# at t/utime.t line 83.

# got​: '2'

# expected​: '2.222222222'

# Failed test 'File 1 atime set correctly'

# at t/utime.t line 93.

# got​: '1'

# expected​: '1.111111111'

# Failed test 'File 1 mtime set correctly'

# at t/utime.t line 94.

# got​: '2'

# expected​: '2.222222222'

# Failed test 'File 2 atime set correctly'

# at t/utime.t line 98.

# got​: '1'

# expected​: '1.111111111'

# Failed test 'File 2 mtime set correctly'

# at t/utime.t line 99.

# got​: '2'

# expected​: '2.222222222'

# Failed test 'File 1 atime set correctly'

# at t/utime.t line 113.

# '0.336687088012695'

# <

# '0.1'

# Failed test 'File 1 mtime set correctly'

# at t/utime.t line 114.

# '0.336687088012695'

# <

# '0.1'

# Failed test 'File 2 atime set correctly'

# at t/utime.t line 118.

# '0.336687088012695'

# <

# '0.1'

# Failed test 'File 2 mtime set correctly'

# at t/utime.t line 119.

# '0.336687088012695'

# <

# '0.1'

# Looks like you failed 12 tests of 18.

FAILED at test 2

dist/Unicode-Normalize/t/fcdc .................................. ok

dist/Unicode-Normalize/t/form .................................. ok

This is related​:

https://rt.cpan.org/Ticket/Display.html?id=116127

Can you please attach the output of './perl -Ilib -V' for the perl
build where you subsequently got this test failure?

Thank you very much.

Attached

@p5pRT
Copy link
Author

@p5pRT p5pRT commented Jan 12, 2018

From joshr-cpan@joshr.com

Summary of my perl5 (revision 5 version 26 subversion 1) configuration​:
 
  Platform​:
  osname=darwin
  osvers=17.3.0
  archname=darwin-2level
  uname='darwin macpro.joshr.com 17.3.0 darwin kernel version 17.3.0​: thu nov 9 18​:09​:22 pst 2017; root​:xnu-4570.31.3~1release_x86_64 x86_64 '
  config_args='-des -Dprefix=/Users/joshr/localperl'
  hint=recommended
  useposix=true
  d_sigaction=define
  useithreads=undef
  usemultiplicity=undef
  use64bitint=define
  use64bitall=define
  uselongdouble=undef
  usemymalloc=n
  default_inc_excludes_dot=define
  bincompat5005=undef
  Compiler​:
  cc='cc'
  ccflags ='-fno-common -DPERL_DARWIN -mmacosx-version-min=10.13 -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -DPERL_USE_SAFE_PUTENV'
  optimize='-O3'
  cppflags='-fno-common -DPERL_DARWIN -mmacosx-version-min=10.13 -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include'
  ccversion=''
  gccversion='4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.39.2)'
  gccosandvers=''
  intsize=4
  longsize=8
  ptrsize=8
  doublesize=8
  byteorder=12345678
  doublekind=3
  d_longlong=define
  longlongsize=8
  d_longdbl=define
  longdblsize=16
  longdblkind=3
  ivtype='long'
  ivsize=8
  nvtype='double'
  nvsize=8
  Off_t='off_t'
  lseeksize=8
  alignbytes=8
  prototype=define
  Linker and Libraries​:
  ld='cc'
  ldflags =' -mmacosx-version-min=10.13 -fstack-protector-strong -L/usr/local/lib'
  libpth=/usr/local/lib /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.0.0/lib /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib /usr/lib
  libs=-lpthread -lgdbm -ldbm -ldl -lm -lutil -lc
  perllibs=-lpthread -ldl -lm -lutil -lc
  libc=
  so=dylib
  useshrplib=false
  libperl=libperl.a
  gnulibc_version=''
  Dynamic Linking​:
  dlsrc=dl_dlopen.xs
  dlext=bundle
  d_dlsymun=undef
  ccdlflags=' '
  cccdlflags=' '
  lddlflags=' -mmacosx-version-min=10.13 -bundle -undefined dynamic_lookup -L/usr/local/lib -fstack-protector-strong'

Characteristics of this binary (from libperl)​:
  Compile-time options​:
  HAS_TIMES
  PERLIO_LAYERS
  PERL_COPY_ON_WRITE
  PERL_DONT_CREATE_GVSV
  PERL_MALLOC_WRAP
  PERL_OP_PARENT
  PERL_PRESERVE_IVUV
  PERL_USE_SAFE_PUTENV
  USE_64_BIT_ALL
  USE_64_BIT_INT
  USE_LARGE_FILES
  USE_LOCALE
  USE_LOCALE_COLLATE
  USE_LOCALE_CTYPE
  USE_LOCALE_NUMERIC
  USE_LOCALE_TIME
  USE_PERLIO
  USE_PERL_ATOF
  Built under darwin
  Compiled at Jan 11 2018 11​:19​:27
  %ENV​:
  PERLBREW_MANPATH="/opt/perlbrew/perls/perl-5.18.4/man"
  PERLBREW_PATH="/opt/perlbrew/bin​:/opt/perlbrew/perls/perl-5.18.4/bin"
  PERLBREW_PERL="perl-5.18.4"
  PERLBREW_ROOT="/opt/perlbrew"
  PERLBREW_SHELLRC_VERSION="0.82"
  PERLBREW_VERSION="0.82"
  @​INC​:
  lib
  /Users/joshr/localperl/lib/site_perl/5.26.1/darwin-2level
  /Users/joshr/localperl/lib/site_perl/5.26.1
  /Users/joshr/localperl/lib/5.26.1/darwin-2level
  /Users/joshr/localperl/lib/5.26.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants