Thanks to visit codestin.com
Credit goes to github.com

Skip to content

NetBSD: reference to compatibility clock_gettime() #82

@Bodigrim

Description

@Bodigrim

NetBSD build compains that

ld: /tmp/.cabal/store/ghc-9.2.1/clock-0.8.3-4b48c3edfab7ad2b3252312f4cfd030ae5ed43f1376ac45c6857cce63715ddc8/lib/libHSclock-0.8.3-4b48c3edfab7ad2b3252312f4cfd030ae5ed43f1376ac45c6857cce63715ddc8.a(Clock.o): in function `clockzm0zi8zi3zm4b48c3edfab7ad2b3252312f4cfd030ae5ed43f1376ac45c6857cce63715ddc8_SystemziClock_getTimezuloc_info':
(.text+0x161): warning: warning: reference to compatibility clock_gettime(); include <time.h> to generate correct reference
ld: /tmp/.cabal/store/ghc-9.2.1/clock-0.8.3-4b48c3edfab7ad2b3252312f4cfd030ae5ed43f1376ac45c6857cce63715ddc8/lib/libHSclock-0.8.3-4b48c3edfab7ad2b3252312f4cfd030ae5ed43f1376ac45c6857cce63715ddc8.a(Clock.o): in function `clockzm0zi8zi3zm4b48c3edfab7ad2b3252312f4cfd030ae5ed43f1376ac45c6857cce63715ddc8_SystemziClock_getReszuloc_info':
(.text+0x3b9): warning: warning: reference to compatibility clock_getres(); include <time.h> to generate correct reference

Something is wrong indeed, because tasty (which uses clock under the hood) reports nonsensical durations of tests:

      t_head:                                     OK (2038468934121816000.00s)
        +++ OK, passed 100 tests.
      tl_head:                                    OK (7960522510754120000.00s)
        +++ OK, passed 100 tests.

Full log: https://cirrus-ci.com/task/5406405847416832?logs=main#L178

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions