Skip to content

tm_gmtoff unknown field - Without feature local-offset #495

@Nassiel

Description

@Nassiel

Hi,

While compiling with the ESP toolchain and for an ESP32-IDF, time launches the next error:

error[E0609]: no field `tm_gmtoff` on type `tm`
   --> /home/<myhome>/.cargo/registry/src/git.colasdn.top-1ecc6299db9ec823/time-0.1.44/src/sys.rs:392:30
    |
392 |             let gmtoff = out.tm_gmtoff;
    |                              ^^^^^^^^^ unknown field
    |
    = note: available fields are: `tm_sec`, `tm_min`, `tm_hour`, `tm_mday`, `tm_mon` ... and 4 others

Despite issue #438 I'm not using the local-offset feature, and I don't see that Chrono 0.4.20 requests it.
System information:

rustc --print cfg
debug_assertions
panic="unwind"
target_abi=""
target_arch="x86_64"
target_endian="little"
target_env="gnu"
target_family="unix"
target_feature="fxsr"
target_feature="llvm14-builtins-abi"
target_feature="sse"
target_feature="sse2"
target_has_atomic="16"
target_has_atomic="32"
target_has_atomic="64"
target_has_atomic="8"
target_has_atomic="ptr"
target_has_atomic_equal_alignment="16"
target_has_atomic_equal_alignment="32"
target_has_atomic_equal_alignment="64"
target_has_atomic_equal_alignment="8"
target_has_atomic_equal_alignment="ptr"
target_has_atomic_load_store="16"
target_has_atomic_load_store="32"
target_has_atomic_load_store="64"
target_has_atomic_load_store="8"
target_has_atomic_load_store="ptr"
target_os="linux"
target_pointer_width="64"
target_thread_local
target_vendor="unknown"
unix

I guess that the problem is that the target os (based on your code and cfg) is Linux, but it's a FreeRTOs with a custom toolchain, and it may not contain that field internally. If you need any further information, please let me know.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-invalidCategory: no issue exists or the issue cannot be reproduced

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions