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

chrono-test failing on i386 and armhf on Ubuntu #3774

Closed
trldp opened this issue Dec 25, 2023 · 5 comments
Closed

chrono-test failing on i386 and armhf on Ubuntu #3774

trldp opened this issue Dec 25, 2023 · 5 comments

Comments

@trldp
Copy link

trldp commented Dec 25, 2023

When building libfmt on Ubuntu, the test chrono-test.timestamps gives the following errors

3: [ RUN      ] chrono_test.timestamps_ratios
3: unknown file: Failure
3: C++ exception with description "cannot format duration" thrown in the test body.
3: [  FAILED  ] chrono_test.timestamps_ratios (0 ms)

The failure occurs on different versions of Ubuntu. Full build logs from for instance 22.04 (the latest LTS release) can be found here

@vitaut
Copy link
Contributor

vitaut commented Dec 25, 2023

The log mentions version 9.1. Do you still get an error on the current version of the library?

@trldp
Copy link
Author

trldp commented Dec 27, 2023

The source should be a copy of the latest git version (master branch). The version number is set manually in the accompanying debian branch (see https://code.launchpad.net/~trldp/+git/libfmt-debian, I've updated it now), and should not have an influence on the build itself.

@vitaut
Copy link
Contributor

vitaut commented Dec 28, 2023

Godbolt repro: https://www.godbolt.org/z/1Pfd7T51d. Looks related to #3727.

@vitaut
Copy link
Contributor

vitaut commented Dec 28, 2023

The problem is likely due to long being 32-bit on these platforms (and nonportable test).

@vitaut
Copy link
Contributor

vitaut commented Dec 29, 2023

Fixed in be57ec7. Thanks for reporting.

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