Skip to content

Error in obtaining time on ‘arm-unknown-linux-musleabihf’ platform #115921

Open
@vnt-dev

Description

fn main() {
    let now = std::time::SystemTime::now();
    println!("now={:?}",now);
}

image

rustc --version --verbose:

rustc 1.72.0-nightly (f4b80cacf 2023-06-30)
binary: rustc
commit-hash: f4b80cacf93ca216c75f6ae12f4b9dec19eba42f
commit-date: 2023-06-30
host: x86_64-unknown-linux-gnu
release: 1.72.0-nightly
LLVM version: 16.0.5

build

cargo build --target arm-unknown-linux-musleabihf
[target.arm-unknown-linux-musleabihf]
linker = "arm-linux-musleabihf-gcc" # https://musl.cc/arm-linux-musleabihf-cross.tgz

os


uname -a
================================================================
Linux LTBK 3.2.40 #15284 Sat May 19 04:36:51 CST 2018 armv7l GNU/Linux synology_armada370_213j

cat /proc/cpuinfo
================================================================
Processor	: Marvell PJ4Bv7 Processor rev 1 (v7l)
BogoMIPS	: 1196.85
Features	: swp half thumb fastmult vfp edsp vfpv3 vfpv3d16 tls 
CPU implementer	: 0x56
CPU architecture: 7
CPU variant	: 0x1
CPU part	: 0x581
CPU revision	: 1

Hardware	: Marvell Armada-370
Revision	: 0000
Serial		: 0000000000000000

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    A-timeArea: TimeC-gubCategory: the reverse of a compiler bug is generally UBO-AArch64Armv8-A or later processors in AArch64 modeO-ArmTarget: 32-bit Arm processors (armv6, armv7, thumb...), including 64-bit Arm in AArch32 stateO-muslTarget: The musl libcT-libsRelevant to the library team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions