Re: Reading out the time zone on different architecures produces different results.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Feb 02, 2021 at 01:07:51PM -0000, Martin Gansser wrote:
> Hi,
> 
> the testsuite of the package cxxtools fails on armv7hl and i686.
>
> In cxxtools there is a tool in "tools/cxxtz", which reads the tz
> database using cxxtools::Tz.
>
> For some reason reading the offset for Europe/Berlin on 2018-11-7
> 13:00:06 leads to a offset of 0.89111h instead of exactly 1h.  This
> happens on the Fedora Build Server for armv7hl and i686 architecture
> [1].

1h is the correct answer according to zdump (and common sense).

It seems more than just coincidence that it only fails on 32 bit
architectures.  I prepped the cxxtools 3.0 sources and ran this on a
x86-64 host (easier than finding an armv7 or i686 host):

$ ./configure CC="gcc" CFLAGS="-m32" CXXFLAGS="-m32" LDFLAGS="-m32"
$ make
$ tools/cxxtz -z Europe/Berlin '2018-11-07 13:00:05'
2018-11-07 13:53:33 LMT 0

so that reproduces the bug.

I would say this is an upstream bug and you should report it to them.
They should be easily able to reproduce it following the steps above
on any x86-64 host.

Rich.

> I put in der check section the command "tools/cxxtz -z Europe/Berlin '2018-11-07 13:00:05'" so that it can be seen in the log file.
> 
> build.log results on armv8hl and i686
> ...
> Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.IfvkcP
> + umask 022
> + cd /builddir/build/BUILD
> + cd cxxtools-3.0
> + tools/cxxtz -z Europe/Berlin '2018-11-07 13:00:05'
> 2018-11-07 13:53:33 LMT 0
> + test/alltests
> SmartPtr::RefCounted: OK
> ....
> 
> 
> [1] https://koji.fedoraproject.org/koji/taskinfo?taskID=60983464
> [2] https://martinkg.fedorapeople.org/ErrorReports/cxxtools-3.0-1.fc33.src.rpm
> 
> Regards
> Martin
> _______________________________________________
> devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
> To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
> Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
libguestfs lets you edit virtual machines.  Supports shell scripting,
bindings from many languages.  http://libguestfs.org
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux